


:root {
    --font-family: 'Poppins', sans-serif;
    --bg-color: oklch(99% 0.005 300);
    --card-bg-color: oklch(100% 0 0);
    --text-color: oklch(45% 0.01 285);
    --heading-color: oklch(25% 0.02 285);
    --primary-color: oklch(65% 0.22 290);
    --primary-color-light: oklch(95% 0.05 290);
    --primary-color-hover: oklch(60% 0.22 290);
    --shadow-color: oklch(65% 0.05 290 / 0.2);
    --glow-color: oklch(65% 0.22 290 / 0.4);
    --border-color: oklch(90% 0.01 285);
    --danger-color: oklch(65% 0.25 25);
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}
html{
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px);
}

.blob:nth-child(1) {
    width: 600px;
    height: 600px;
    background: oklch(80% 0.15 310);
    top: -20%;
    left: -25%;
    animation: float 38s infinite ease-in-out;
}

.blob:nth-child(2) {
    width: 500px;
    height: 500px;
    background: oklch(80% 0.15 280);
    bottom: -15%;
    right: -15%;
    animation: float 32s infinite ease-in-out reverse;
}

.blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: oklch(80% 0.1 330);
    top: 10%;
    right: 20%;
    animation: float 45s infinite ease-in-out;
}

.blob:nth-child(4) {
    width: 350px;
    height: 350px;
    background: oklch(75% 0.12 300);
    bottom: 20%;
    left: 10%;
    animation: float 40s infinite ease-in-out;
}

.blob:nth-child(5) {
    width: 300px;
    height: 300px;
    background: oklch(85% 0.1 290);
    top: 50%;
    left: 50%;
    animation: float 35s infinite ease-in-out reverse;
}

.brain-blob {
    position: fixed;
    width: 100%;
    top: 70%;
    left: 15%;
    opacity: .1;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-80px) translateX(60px) scale(1.1);
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

.app-header {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.sound-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    color: purple;
    padding: 0.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.sound-toggle:hover {
    color: white;
    transform: scale(1.1);
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    padding: .7rem;
    background-color: var(--card-bg-color);
    z-index: 100;
}

.app-footer p {
    margin: 0;
    font-size: 0.775rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.app-footer p .material-symbols-outlined {
    font-size: 1rem;
    vertical-align: middle;
}
#user-info-form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
    z-index: 1;
}

.progress-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-radius: 1.5rem;
    flex-grow: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: oklch(60% 0.02 285);
    font-weight: 500;
    font-size: 0.75rem;
    transition: color 0.4s ease;
    text-align: center;
    width: 70px;
    letter-spacing: 0.5px;
}

.progress-step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--card-bg-color);
    border: 2px solid var(--border-color);
    color: oklch(50% 0.02 285);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.3, 1.2, 0.5, 1);
    margin-bottom: 0.5rem;
}

.progress-step.active .progress-dot {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    top: 18px; /* Vertically center with dots */
}

#main-timer {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--card-bg-color);
    padding: 0.8rem 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px -10px var(--shadow-color);
    margin-left: 1rem;
}

#main-timer.ending {
    color: var(--danger-color);
    animation: pulse 1s infinite;
}

#app {
    min-height: fit-content;
    min-width: 750px;
    z-index: 1;
    box-sizing: border-box;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: page-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    padding: 3rem 3.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 60px -15px var(--shadow-color);
    text-align: center;
    box-sizing: border-box;
}

h1 {
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    font-size: 2.8rem;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

h2 {
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    font-size: 2.2rem;
    letter-spacing: -1px;
    word-wrap: break-word;
}

.intro-text {
    color: var(--text-color);
    margin: 1.5rem auto;
    font-weight: 400;
    max-width: 42ch;
    word-wrap: break-word;
}

button {
    background: linear-gradient(135deg, var(--primary-color), oklch(65% 0.22 300));
    color: #fff;
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 3rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40%;
    margin-top: 2rem;
    box-shadow: 0 10px 25px -8px var(--glow-color);
}

button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px -10px var(--glow-color);
    background: linear-gradient(135deg, var(--primary-color-hover), oklch(60% 0.22 300));
}

input, textarea, .select-wrapper select {
    width: 100%;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    box-sizing: border-box;
    background-color: oklch(99% 0.005 240);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus, textarea:focus, .select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--glow-color);
    background-color: #fff;
}

input, textarea{
    width: 70%;

}
.select-wrapper {
    position: relative;
    width: 70%;
}

.select-wrapper::after {
    content: '\25BC';
    font-size: 1rem;
    color: var(--text-color);
    position: absolute;
    top: 37%;
    right: 1.2rem;
    transform: translateY(-50%);
    pointer-events: none;
}

img {
    max-width: 28rem;
}

@keyframes pulse {
    50% { transform: scale(1.05); }
}
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}
.result-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.result-card h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin: 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.score {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}
.answers {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.answers p {
    margin: 0.5rem 0;
}
.answers-user {
    font-style: italic;
    color: var(--text-color);
}
.answers-correct p:last-child {
    color: var(--primary-color);
    font-weight: 600;
}
.answers-all p:last-child {
    font-size: 0.9rem;
    color: oklch(50% 0.02 285);
}

/* =========================================================
   RESPONSIVE MEDIA
   - Mobile: 100vh allowed
   - Laptops / Tablets: centered, no scroll, not fullscreen
   ========================================================= */


/* ===============================
   SMALL LAPTOPS ≤ 1366px
   =============================== */
   @media (max-width: 1366px), (max-height: 800px) {

    #app {
        width: 100%;
        max-width: 980px;
        max-height: 700px;
        margin: 0 auto;
    }

    .card {
        padding: 2rem 2.25rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    #main-timer {
        font-size: 1.9rem;
        padding: 0.7rem 1rem;
    }
}


/* ===============================
   TABLETS ≤ 1024px
   =============================== */
@media (max-width: 1024px), (max-height: 720px) {



    #app {
        max-width: 640px;
        max-height: 640px;
    }

    .card {
        padding: 1.5rem 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .progress-tracker {
        padding: 0.75rem 1rem;
    }

    #main-timer {
        font-size: 1.6rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   MOBILE ≤ 768px
   =============================== */
@media (max-width: 768px), (max-height: 600px) {

    body {
        padding: 0;
    }

    /* MOBILE: fullscreen app allowed */
    #app {
        margin: 0 auto 3.5rem auto;
        min-width: 100px;
    }

    /* HEADER */
    .app-header {
        top: 0.5rem;
        right: 0.5rem;
    }

    .sound-toggle {
        font-size: 1.7rem;
        padding: 0.4rem;
    }

    /* PROGRESS */
    .progress-container {
        padding: .5rem;
    }

    .progress-tracker {
        padding: 0.5rem;
    }

    .progress-step {
        font-size: 0.65rem;
        width: auto;
        flex: 1 1 0;
        min-width: 0;
    }

    .progress-dot {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .progress-label {
        display: none;
    }

    #main-timer {
        font-size: 1.3rem;
        padding: 0.45rem 0.7rem;
    }

    /* CARD */
    .card {
        padding: 1.25rem 1rem;
    }

    /* TEXT */
    h1 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .intro-text {
        font-size: 0.85rem;
        margin: 0.5rem auto;
    }

    /* FORMS */
    input,
    textarea,
    .select-wrapper select {
        padding: 0.7rem 0.85rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    textarea {
        min-height: 90px;
    }

    /* BUTTONS */
    button {
        margin-top: 0.75rem;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    /* FOOTER */
    .app-footer {
        padding: 0.4rem;
        font-size: 0.7rem;
        border: none;
        box-shadow: none;
    }

    /* BACKGROUND */
    .blob {
        filter: blur(40px);
        opacity: 0.15;
    }

    .brain-blob {
        display: none;
    }
    img{
        width: 20rem;
        object-fit: fill;
    }
    body{
        padding: .7rem;
    }
    input, textarea{
        width: 100%;
    
    }
    .select-wrapper {
        position: relative;
        width: 100%;
    }
}


/* ===============================
   EXTRA SMALL PHONES ≤ 360px
   =============================== */
@media (max-width: 360px), (max-height: 520px) {

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.3rem; }

    .progress-dot {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
  
    .card {
        padding: 1rem 0.75rem;
    }
    img{
        width: 15rem;
    }
}
