* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.header h1 {
    color: #2d3436;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .subtitle {
    color: #636e72;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.header .description {
    color: #636e72;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.quiz-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 15px;
    position: relative;
}

.progress-step.active {
    background: #74b9ff;
    color: white;
}

.progress-step.completed {
    background: #00b894;
    color: white;
}

.progress-step.inactive {
    background: #ddd;
    color: #999;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    width: 30px;
    height: 3px;
    background: #ddd;
    top: 50%;
    transform: translateY(-50%);
}

.progress-step.completed:not(:last-child)::after {
    background: #00b894;
}

.question-container {
    display: none;
}

.question-container.active {
    display: block;
}

.question {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #74b9ff;
}

.question h3 {
    color: #2d3436;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.question p {
    color: #636e72;
    font-size: 1.1rem;
    line-height: 1.8;
}

.options {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    background: #f1f2f6;
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.option:hover {
    background: #e8f4f8;
    border-color: #74b9ff;
}

.option.selected {
    background: #74b9ff;
    color: white;
    border-color: #0984e3;
}

.option.correct {
    background: #00b894;
    color: white;
    border-color: #00b894;
}

.option.incorrect {
    background: #e17055;
    color: white;
    border-color: #e17055;
}

.option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #74b9ff;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.option.selected::before {
    background: white;
    border-color: white;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background: #74b9ff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background: #0984e3;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #ddd;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #636e72;
}

.btn-secondary:hover {
    background: #2d3436;
}

.results {
    display: none;
    text-align: center;
}

.results.active {
    display: block;
}

/* Result Symbol Styles */
.result-symbol {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    margin: 20px 0;
    display: none;
    animation: scaleIn 0.5s ease-out;
}

.result-symbol.correct {
    color: #00b894;
    display: block;
}

.result-symbol.incorrect {
    color: #e17055;
    display: block;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Game Over Styles */
.game-over {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.game-over.active {
    display: block;
}

.game-over-symbol {
    font-size: 8rem;
    color: #e17055;
    margin: 30px 0;
    animation: pulse 1s ease-in-out infinite;
}

.game-over-title {
    font-size: 3rem;
    color: #e17055;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-over-message {
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 30px;
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score {
    font-size: 3rem;
    color: #00b894;
    font-weight: 700;
    margin: 30px 0;
}

.score-message {
    font-size: 1.3rem;
    color: #2d3436;
    margin-bottom: 30px;
}

.water-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.water-drop {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: drop 2s ease-in-out infinite;
}

@keyframes drop {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.explanation {
    background: #e8f8f5;
    border-left: 5px solid #00b894;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    display: none;
}

.explanation.show {
    display: block;
}

.explanation h4 {
    color: #00b894;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .quiz-container {
        padding: 20px;
    }

    .progress-step {
        width: 35px;
        height: 35px;
        margin: 0 10px;
    }

    .progress-step:not(:last-child)::after {
        right: -20px;
        width: 20px;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .game-over-symbol {
        font-size: 6rem;
    }

    .game-over-title {
        font-size: 2.2rem;
    }
}

.image {
    width: 20px;
    margin-right: 30px;
}

.image2 {
    width: 50px;
    margin-left: 10px;
}