/* CSS to center everything */
body {
    text-align: center;
    font-family: "Myriad Pro", "Segoe UI", "Helvetica Neue", sans-serif;
}
a:link {
    color: black;
    text-decoration: underline;
}

a:visited {
    color: #777;
    text-decoration: underline;
}

a:hover,
a:active {
    text-decoration: underline;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;              /* Thin scrollbar */
  height: 6px;             /* For horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent; /* No background */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
  border-radius: 3px;                   /* Rounded edges */
}

/* Firefox */
* {
  scrollbar-width: thin;              /* Thin scrollbar */
  scrollbar-color: rgba(0,0,0,1) transparent; /* Thumb color and track */
}
.text-container {
    text-align: left; !important
}

.entries-list {
  text-align: left;
  max-width: 800px; /* optional */
  margin: 0 auto; /* center the block itself */
}

.entries-list li {
  margin-bottom: 1em;
}

/* CSS to style the random entries */
.random-entry {
    width: 45%;
    height: 300px;
    display: inline-block;
    padding: 20px;
    margin: 10px;
    border: 1px solid #000; /* black border */
    border-radius: 0; /* square corners */
    background-color: transparent; /* no background */
    font-family: Arial, sans-serif;
    vertical-align: top;
    box-shadow: none; /* remove shadow */
    overflow: auto;
    text-align: left;
}

.left-entry {
    text-align: left;
}

.right-entry {
    text-align: left;
}

/* CSS for the form */
form {
    width: 90%; /* More flexible than 50% */
    max-width: 600px;
    max-height: 90vh; /* Prevent form from exceeding viewport height */
    margin: 20px auto;
    padding: 20px;
    border: none;
    background-color: transparent;
    overflow-y: auto; /* Scroll within form if content is too tall */
    box-sizing: border-box;
}

textarea {
    width: 100%;
    height: 150px; /* Default size */
    max-height: 40vh; /* Shrinks if screen is short */
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical; /* Let user resize vertically if needed */
    margin: 0;
}

/* Style for the submit button */
input[type="submit"] {
    width: 100px;
    height: 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000; /* always show black border */
    font-size: 16px;
    font-family: "Myriad Pro", "Segoe UI", "Helvetica Neue", sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

input[type="submit"]:hover {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}
.entry-title-box {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 4px 8px;
    border: 1px solid black;
    border-radius: 0;
    margin-left: 5px;
    white-space: nowrap;    /* prevent line breaks */
    width: auto !important; /* force auto width */
    max-width: none !important;
    box-sizing: content-box; /* exclude padding from width */
}

.entry-title-box a {
    color: black;                /* Link color inside box */
    text-decoration: none;
}

.entry-title-box a:hover {
    text-decoration: underline;  /* Optional: underline on hover */
}
.button {
    color: black !important;       /* Always black text */
    background-color: transparent; /* or whatever you prefer */
    border: 1px solid black;
    padding: 6px 12px;
    text-decoration: none;         /* No underline */
    font-family: "Myriad Pro", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.button:hover,
.button:focus,
.button:active {
    color: black !important;       /* Text stays black */
    background-color: #ddd;        /* Optional hover background */
    text-decoration: none;         /* No underline on hover */
}


