/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.container {
    background-color: lightblue;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

/* SCREENS */
.screen {
    display: none;
    padding: 2.5rem 2rem;
    text-align: center;
}

.screen.active {
    display: block;
}

/* START SCREEN */
#start-screen h1 {
    color: purple;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

#start-screen p {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* QUIZ SCREEN */
.quiz-header {
    margin-bottom: 2rem;
}

#question-text {
    color: rgb(25, 114, 114);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    color: slateblue;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Answers */
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.answer-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.answer-btn:hover {
    background-color: #f0f0ff;
    border-color: #7c3aed;
}

.answer-btn.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.answer-btn.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Progress Bar */
.progress-bar {
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress {
    height: 100%;
    background-color: #7c3aed;
    width: 0%;
    transition: width 0.4s ease;
}

/* RESULT SCREEN */
#result-screen h1 {
    color: purple;
    margin-bottom: 1.5rem;
}

.result-info {
    background-color: slateblue;
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.result-info p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Buttons */
button {
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 500px) {
    .screen {
        padding: 1.5rem 1rem;
    }
    
    #start-screen h1 {
        font-size: 2.2rem;
    }
    
    #question-text {
        font-size: 1.35rem;
    }
}