﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7ff 0%, #e0e6ff 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.score-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4e7ae6 0%, #6c5ce7 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
}

.score-box {
    text-align: center;
}

.score-value {
    font-size: 1.8rem;
    font-weight: bold;
}

.color-display {
    text-align: center;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 2.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pinyin {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-top: 10px;
}

.feedback {
    text-align: center;
    font-size: 1.5rem;
    height: 50px;
    margin: 15px 0;
    font-weight: bold;
    transition: all 0.3s ease;
}

.correct {
    color: #2ecc71;
}

.incorrect {
    color: #e74c3c;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.color-option {
    height: 120px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#hint-btn {
    background-color: #9b59b6;
}

#hint-btn:hover {
    background-color: #8e44ad;
}

.instructions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #3498db;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .color-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .color-display {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 20px;
    }
}