body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
}

header {
    background-color: #ffcc00;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #ff4500;
}

header h1 {
    font-family: 'Lobster', cursive;
    color: #ff4500;
    margin: 0;
    font-size: 3em;
    text-shadow: 2px 2px #fff;
}

nav {
    background-color: #ff6347;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 15px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #ff4500;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: 40px;
}

/* Game Selection Cards */
.game-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.game-card {
    background: white;
    border: 3px solid #ff4500;
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card h4 {
    font-family: 'Lobster', cursive;
    font-size: 1.5em;
    color: #ff4500;
    margin-top: 0;
}

/* Game Layout Specifics */
.game-container {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 60vh;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    background-color: #e6f7ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #ddd;
    padding: 20px;
    position: relative; /* For absolute positioning of speaker button */
}

.right-panel {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* Restored Styles for Letter Jacht & Woord Bouwer */
.word-display {
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Explicit gap from user request */
    flex-wrap: wrap;
    max-width: 100%;
}

.options-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 100px;
    width: 100%; /* Ensure it takes width */
}

/* Standardized Game Letter Box (for consistency) */
.game-letter {
    width: 80px;
    height: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 5px;
    box-sizing: border-box;
}

/* Dropzones */
.dropzone {
    width: 80px;
    height: 80px;
    border: 3px dashed #333; /* Standard box look */
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 5px;
    background-color: #f9f9f9;
}

/* Static letters in word display */
.static-letter {
    width: 80px;
    height: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 5px;
    /* Optional: Add box style if desired, or keep transparent but sized */
}

.draggable {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    transition: transform 0.1s;
    padding: 0; /* Remove padding to ensure size */
}

.draggable:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.dragging {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.8;
}

.cursive-text {
    /* Font family set dynamically via JS/Settings */
    font-weight: normal; /* Often cursive doesn't need bold */
}

/* Speaker Button Style */
.speaker-button-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #ffcc00;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.speaker-button-overlay:hover {
    transform: scale(1.1);
    background-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    .left-panel {
        min-height: 200px;
        border-right: none;
        border-bottom: 2px solid #ddd;
    }
    .word-display {
        font-size: 2.5em; /* Smaller on mobile */
    }
}
