/* Game-specific styles */

/* Game area dimensions as specified */
#game-area {
    width: 80rem;
    height: 42rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #4a6fa5 0%, #b8d0e8 100%);
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #0C6AA0;
    color: white;
    border-bottom: 0.2rem solid #f9b000;
    font-size: 1.6rem;
    font-weight: 600;
}

.score-display, .lives-display, .level-display, .correct-display, .missed-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* Screen Styles */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.hidden {
    display: none;
}

/* Start and End Screen */
#start-screen h1, #end-screen h2 {
    color: #00699F;
    font-size: 3rem;
    margin-bottom: 2rem;
}

#start-screen p, #end-screen p {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.instructions {
    padding: 1.5rem;
    border: 0.2rem solid #F9B002;
    border-radius: 1rem;
    background-color: rgba(249, 176, 2, 0.1);
}

#start-button, #restart-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.8rem;
    background-color: #00699F;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#start-button:hover, #restart-button:hover {
    background-color: #0C6AA0;
}

/* Target Word Container */
#target-word-container {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #F9B002;
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    z-index: 2;
    display: none; /* Hide the target word container */
}

/* Book Styles */
#book-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 12rem;
    height: 12rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#book {
    width: 12rem;
    height: auto;
    cursor: pointer;
}

#book-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    width: 8rem;
    z-index: 3;
}

/* Falling Word Styles */
.falling-word {
    position: absolute;
    padding: 0.8rem 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
    box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: all 0.3s ease;
    min-width: 8rem;
}

.falling-word.correct {
    background-color: rgba(37, 129, 116, 0.8);
    border: 0.2rem solid #258174;
    color: white;
    transform: scale(1.1);
}

.falling-word.incorrect {
    background-color: rgba(255, 0, 0, 0.8);
    border: 0.2rem solid #FF0000;
    color: white;
    transform: scale(1.1);
}

/* Final message styling */
#final-message {
    font-size: 1.8rem;
    max-width: 60rem;
    text-align: center;
    margin: 1rem 0;
    line-height: 1.5;
}

#final-score {
    font-weight: bold;
    color: #00699F;
}

/* Level Transition Screen */
.level-transition {
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 15;
}

.level-transition h2 {
    color: #00699F;
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.level-theme {
    font-size: 2.2rem;
    font-weight: 600;
    color: #F9B002;
    margin-bottom: 2rem;
}

.level-instructions {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

#continue-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.8rem;
    background-color: #00699F;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#continue-button:hover {
    background-color: #0C6AA0;
    transform: scale(1.05);
} 