/* ---------------- GLOBAL PAGE STYLE ---------------- */

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka One', sans-serif;

    background: radial-gradient(circle, #ffe8a3, #ffcc5c, #ffb347);
    overflow-x: hidden;
}

/* Wrapper centered column layout */
#wrapper {
    max-width: 700px;
    margin: auto;
    padding: 30px;
    text-align: center;

    position: relative;
    z-index: 2;
}

/* Make title circus-like */
h2 {
    font-size: 3rem;
    color: #d7263d;
    text-shadow: 4px 4px 0 #118ab2;
    margin-bottom: 10px;
}

/* Subtitle */
h3 {
    font-size: 1.6rem;
    color: #118ab2;
}

/* Center the website link and add spacing */
a {
    display: block;
    margin: 15px auto 30px auto;
    font-size: 1.1rem;
    color: #d7263d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------- SPOTLIGHT BACKGROUND ANIMATION ------------- */

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.05),
        transparent 70%
    );
    animation: moveSpotlights 8s linear infinite alternate;
    pointer-events: none;
    z-index: 0;
}

body::after {
    animation-duration: 10s;
    animation-direction: alternate-reverse;
}

/* Spotlight animation */
@keyframes moveSpotlights {
    0% { transform: translate(-15%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 15%) rotate(30deg); }
    100% { transform: translate(-10%, 5%) rotate(-20deg); }
}

/* ------------- QUIZ BOX ------------- */

#QuizContainer {
    margin-top: 25px;
    background: #fff6dd;
    border: 6px solid #d7263d;
    border-radius: 20px;
    padding: 25px;
    font-size: 1.3rem;

    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    animation: popIn 0.6s ease-out;
}

/* Answer dropdown styling */
#QuizContainer select {
    font-size: 1.2rem;
    padding: 10px;
    margin-top: 15px;
    border: 3px solid #118ab2;
    border-radius: 10px;
    background: #ffe066;
}

/* Pop animation */
@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- CHECK ANSWER AREA ---------- */

#ContainerQuestion {
    margin-top: 25px;
    padding: 15px;
}

#ContainerQuestion input[type="button"] {
    background: #d7263d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #8c1c28;
    transition: 0.15s;
}

/* Button hover */
#ContainerQuestion input[type="button"]:hover {
    transform: translateY(-3px);
    background: #f0354b;
}

/* Spacing stats */
#AnswersCorrect, 
#TotalQuestions, 
#divisor {
    padding: 0 8px;
    font-size: 1.6rem;
}

/* Add spacing between answers and check answer */
#ContainerQuestion {
    margin-top: 40px;
}

/* Make numbers stand out */
#AnswersCorrect {
    color: #118ab2;
}

#TotalQuestions {
    color: #d7263d;
}
