/* Game Area */
.game-area {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f0f4f8;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
}

/* Falling Words */
.word {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5568;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: transform 0.1s linear;
}

.word span.matched {
    color: #48bb78;
    /* Green for matched letters */
}

.word span.current {
    text-decoration: underline;
    color: #ed8936;
    /* Orange for current target letter */
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

/* Buttons */
.primary-btn {
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #4299e1;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Score Board */
.score-board {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
}

.score-item span {
    color: #4299e1;
}