* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(135deg, #5a6ff0, #4c9be8);
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease-in-out;
}

.hidden {
    display: none;
}

/* FORM */
.form-wrapper input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
}

button {
    background: #00c853;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
    background: #009624;
}

/* QUIZ */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#timer {
    font-weight: bold;
    color: #ffeb3b;
}

.options {
    list-style: none;
    margin-top: 15px;
    text-align: left;
}

.options li {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    cursor: pointer;
    transition: 0.3s;
}

.options li:hover {
    background: rgba(255, 255, 255, 0.35);
}

.selected {
    background: #fbc02d !important;
    color: #000;
}

.correct {
    background: #4caf50 !important;
    color: #fff;
}

.wrong {
    background: #f44336 !important;
    color: #fff;
}

.quiz-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RESULT */
.result-wrapper p {
    margin: 10px 0;
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}