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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #e0f2fe, #fce7f3);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-box {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 12px 35px #64748b30;
}

h1 {
    text-align: center;
    color: #7c3aed;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
}

.info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: bold;
    color: #475569;
}

#timer {
    color: #dc2626;
}

.progress-bg {
    background: #e2e8f0;
    height: 8px;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: #8b5cf6;
    transition: width 0.3s;
}

#question {
    font-size: 21px;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.option {
    width: 100%;
    padding: 13px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.option:hover:not(:disabled) {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.option:disabled {
    cursor: default;
}

.correct {
    background: #dcfce7;
    border-color: #22c55e;
}

.wrong {
    background: #fee2e2;
    border-color: #ef4444;
}

#feedback {
    min-height: 25px;
    margin: 10px 0;
    font-weight: bold;
}

.main-btn {
    width: 100%;
    padding: 14px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.main-btn:hover:not(:disabled) {
    background: #6d28d9;
    transform: translateY(-2px);
}

.main-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#result {
    text-align: center;
    display: none;
}

#result h2 {
    font-size: 28px;
    color: #7c3aed;
    margin: 20px 0;
}

#result p {
    color: #475569;
    line-height: 1.8;
}

.trophy {
    font-size: 60px;
}

@media (max-width: 400px) {
    .quiz-box {
        padding: 20px;
    }

    #question {
        font-size: 18px;
    }

    .info {
        font-size: 12px;
    }
}