* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f7fa;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #2980b9;
    margin-bottom: 15px;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.instructions {
    font-size: 1.5em;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 15px auto;
    width: fit-content;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-button {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #3498db;
}

#game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #e1f5fe;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#start-screen, #game-over {
    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;
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

#sentence-container {
    width: 90%;
    max-width: 700px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 1.4em;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
}

.blank {
    display: inline-block;
    min-width: 80px;
    padding: 0 10px;
    margin: 0 5px;
    border-bottom: 2px dashed #2980b9;
    text-align: center;
    font-weight: bold;
    color: #2980b9;
}

.blank.filled {
    border-bottom: 2px solid #27ae60;
}

#options-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.option {
    padding: 15px 25px;
    background-color: #3498db;
    color: white;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.option:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.option:active {
    transform: translateY(0);
}

.option.correct {
    background-color: #27ae60;
    transform: scale(1.05);
    animation: correctPulse 0.5s ease-in-out;
}

.option.incorrect {
    background-color: #e74c3c;
    animation: incorrectShake 0.5s ease-in-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

@keyframes incorrectShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

#feedback-container {
    height: 60px;
    margin: 15px 0;
    font-size: 1.8em;
    font-weight: bold;
}

.feedback-message {
    padding: 10px 25px;
    border-radius: 10px;
    display: inline-block;
    animation: fadeInOut 2s forwards;
}

.feedback-message.correct {
    background-color: #a5d6a7;
    color: #2e7d32;
}

.feedback-message.wrong {
    background-color: #ef9a9a;
    color: #c62828;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.bonus-time {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: bonusAnimation 2s ease-in-out;
    z-index: 10;
}

@keyframes bonusAnimation {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3498db;
}

.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .instructions {
        font-size: 1.2em;
        min-width: auto;
        width: 90%;
    }
    
    #sentence-container {
        font-size: 1.2em;
        width: 95%;
    }
    
    #options-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .option {
        padding: 12px 20px;
        font-size: 1.1em;
    }
} 