body {
    background-color: rgb(0, 0, 0);
}
#input-tiles {
    background-color: rgb(0, 0, 0);
    min-height: 84px; /* Increased to accommodate larger tiles */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.question-tile {
    width: 76px !important;
    height: 76px !important;
    min-height: 76px;
    margin: 4px;
    object-fit: contain;
    border: 1px solid #808080 !important;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.answer-tile {
    width: 76px !important;
    height: 76px !important;
    min-height: 76px;
    margin: 4px;
    object-fit: contain;
    border: 1px solid #808080 !important;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.answer-tile-placeholder {
    display: inline-block;
    position: relative;
    width: 76px;
    height: 76px;
    min-height: 76px;
    margin: 4px;
    border: 1px solid #ccc;
    background-color: #333;
    /* Always visible even when empty */
    visibility: visible;
}
.answer-tile-placeholder .answer-tile {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}
.answer-tile.fixed {
    opacity: 0.7; /* Visually distinguish fixed tiles */
    pointer-events: none; /* Prevent dragging fixed tiles */
}
.nohooks {
    color: red; /* Words or hooks with no hooks */
}
.no_s_hook {
    color: blue; /* Words or hooks without -S hook */
}
.submission-log {
    max-height: 300px;
    overflow-y: auto;
}
.submission-log table {
    width: 100%;
    border-collapse: collapse;
}
.submission-log th, .submission-log td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}
.submission-log td[data-value="0"], .submission-log td[data-value="null"] {
    color: transparent;
}
#feedback.duplicate {
    color: #ffffff !important;
    font-weight: bold;
}
.correct { color: green !important; }
.correct-with-hints { color: rgb(126, 83, 3) !important; }
.incorrect { color: red !important; }
tr.incorrect td { color: red !important; }
tr.correct-with-hints td { color: orange !important; }
#last-entry-area {
    text-align: center;
}
.alphabox {
    background-color: #000000;
    font-family: monospace;
    color: white;
    font-weight: bold;
    margin: 20px;
    padding: 20px;
}
.alphaheadline {
    font-family: monospace;
    color: white;
    font-size: 2.5em;
    font-weight: bolder;
    margin-bottom: 20px;
}
.deffield {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: medium;
    margin-bottom: 10px;
}
.hookfield {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: large;
    margin-bottom: 10px;
    text-align: left;
}
.hookfield2 {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: large;
    margin-bottom: 10px;
    padding-left: 20px;
    text-align: left;
}
.hookfield3 {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: large;
    margin-bottom: 10px;
    padding-left: 40px;
    text-align: left;
}
.hookfield4 {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: large;
    margin-bottom: 10px;
    padding-left: 60px;
    text-align: left;
}
.extrabox {
    font-family: monospace;
    color: white;
    font-weight: bold;
    font-size: large;
    margin-bottom: 20px;
    margin-top: 20px;
}
#last-entry-area .accordion {
    text-align: left;
}
#last-entry-area .accordion-body {
    background-color: #000000;
    padding: 10px;
}
#last-entry-area .accordion-button {
    background-color: #000000;
    font-family: monospace;
    font-size: large;
    font-weight: bold;
    color: white;
}
#last-entry-area .accordion-button:not(.collapsed) {
    background-color: #000000;
    color: white;
}
.form-group {
    margin-bottom: 1rem;
}
.form-label {
    color: white !important;
    font-family: monospace;
    font-weight: bold;
}
.form-control, .form-select {
    background-color: #333 !important;
    color: white !important;
    border: 1px solid #808080;
}
.form-check-input {
    background-color: #333;
    border: 1px solid #808080;
}
.form-check-label {
    color: white !important;
    font-family: monospace;
}
#optionsAccordion {
    background-color: #1a1a1a; /* Slightly lighter than black for contrast */
}
#optionsAccordion .accordion-item {
    background-color: #1a1a1a;
    color: white;
}
#optionsAccordion .accordion-button {
    background-color: #1a1a1a;
    color: white;
}
#optionsAccordion .accordion-button:not(.collapsed) {
    background-color: #333;
    color: white;
}