* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.header {
    margin-bottom: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.score {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.question-container {
    margin-bottom: 20px;
}

.sinhala-name {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container {
    margin-bottom: 15px;
}

.answer-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.answer-input:focus {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.submit-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    flex: 1;
    max-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.restart-btn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    flex: 1;
    max-width: 200px;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feedback {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.correct {
    color: #4CAF50;
    animation: bounce 0.5s ease;
}

.incorrect {
    color: #f44336;
    animation: shake 0.5s ease;
}

.game-over {
    text-align: center;
}

.game-over h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f44336;
}

.final-score {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 3px;
    transition: width 0.3s ease;
}

@media (max-width: 600px) {
    .game-container {
        padding: 20px;
        margin: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .sinhala-name {
        font-size: 2.5rem;
        min-height: 70px;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn, .restart-btn {
        max-width: 100%;
    }
}
