* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #fdf6e3;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #f39c12;
    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: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #e67e22;
}

#game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #fff8e1;
    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;
}

#word-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.speak-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.5em;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.speak-button:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}

.speak-button:active {
    transform: scale(0.95);
}

.speak-icon {
    font-size: 1.5em;
}

#hint-container {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

#spelling-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
    max-width: 500px;
}

#spelling-input {
    padding: 15px;
    font-size: 1.5em;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

#spelling-input:focus {
    border-color: #f39c12;
}

#check-button, #hint-button {
    padding: 12px 25px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#check-button {
    background-color: #2ecc71;
    color: white;
}

#check-button:hover {
    background-color: #27ae60;
}

#hint-button {
    background-color: #3498db;
    color: white;
}

#hint-button:hover {
    background-color: #2980b9;
}

#feedback-container {
    height: 60px;
    margin: 20px 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-score {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: bonusScore 2s ease-in-out;
    z-index: 10;
}

@keyframes bonusScore {
    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: 5px 0;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e67e22;
}

.hidden {
    display: none !important;
}

.correct-animation {
    animation: correctPulse 0.5s;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wrong-animation {
    animation: wrongShake 0.5s;
}

@keyframes wrongShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .instructions {
        font-size: 1.2em;
        min-width: auto;
        width: 90%;
    }
    
    #spelling-container {
        width: 90%;
    }
    
    #spelling-input {
        font-size: 1.2em;
    }
}

/* Add this to your CSS file */
.speaking-indicator {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    animation: pulsate 1s infinite;
}

@keyframes pulsate {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.spell-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.spell-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.spell-button:active {
    transform: scale(0.95);
}

.spell-icon {
    font-size: 1.3em;
}

.volume-reminder {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.9em;
    animation: fadeInOut 4s ease-in-out;
    z-index: 100;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
} 