* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f8ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.quiz-container {
    background-color: #1e90ff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 139, 0.3);
    width: 100%;
    max-width: 800px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #00bfff, #ff69b4, #ff8c00);
}

.quiz-header h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.timer, .score {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.progress-container {
    flex-grow: 1;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 0 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7cfc00, #32cd32);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-body {
    margin-bottom: 25px;
}

.question {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.option.correct {
    background-color: #32cd32;
    color: white;
}

.option.incorrect {
    background-color: #ff4500;
    color: white;
}

.option.disabled {
    pointer-events: none;
}

.explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: none;
}

.btn {
    background-color: #ff8c00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff6b00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-container {
    background-color: #1e90ff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 139, 0.3);
    width: 100%;
    max-width: 800px;
    padding: 30px;
    color: white;
    text-align: center;
}

.result-container h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.result-score {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.result-remark {
    font-size: 20px;
    margin-bottom: 20px;
    font-style: italic;
}

.summary {
    text-align: left;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.summary h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.summary-item {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .quiz-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .progress-container {
        margin: 10px 0;
    }
    
    .question {
        font-size: 18px;
    }
}