:root {
    --border-color: #ccc;
    --header-bg: #e9ecef;
    --cell-bg: #fff;
    --correct-bg: #d4edda;
    --incorrect-bg: #f8d7da;
    --drag-over-bg: #cfe2ff;
}

body {
    font-family: sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    color: #004085;
}

#game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 15px auto;
    padding: 0 10px;
}

#game-controls h2 {
    margin: 0;
    color: #dc3545;
}

#reset-btn {
    background-color: #6c757d;
    padding: 8px 20px;
    font-size: 14px;
}

#app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

#term-bank {
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

#bank-list {
    height: 80vh;
    overflow-y: auto;
}

.term-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: grab;
    transition: background-color 0.3s;
    font-size: 15px;
}

.term-item.dragging {
    opacity: 0.5;
}

#drop-zone-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.3s;
}

.drop-zone.drag-over {
    background-color: var(--drag-over-bg);
}

.drop-zone .definition {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.drop-zone .mnemonic {
    font-size: 0.9em;
    font-style: italic;
    color: #6c757d;
}

.term-item.correct {
    background-color: var(--correct-bg);
    border-color: #c3e6cb;
}

.term-item.incorrect {
    background-color: var(--incorrect-bg);
    border-color: #f5c6cb;
}

footer {
    width: 100%;                  /* Ensures the footer spans the full width */
    text-align: center;           /* Centers the text and icons */
    margin-top: 40px;             /* Adds space above the footer */
    padding-top: 20px;            /* Adds space below the separator line */
    border-top: 1px solid #ccc;   /* A subtle line to separate it from the game */
    color: #6c757d;               /* A muted gray color for the text */
    font-size: 0.9em;             /* Makes the font slightly smaller */
}

.social-icon {
    height: 1.1em; /* Sets the icon height relative to the text size */
    width: auto;   /* Maintains the icon's aspect ratio */
    vertical-align: middle; /* Aligns the icon nicely with the text line */
}