@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BAGGRUND */
body{
    font-family:'Poppins', sans-serif;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    min-height:100vh;
    color:white;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:10px;
    transition:0.4s;
}

/* GRØN / RØD FEEDBACK */
body.correct{
    background: linear-gradient(135deg, #16a34a, #0f172a) !important;
}

body.wrong{
    background: linear-gradient(135deg, #dc2626, #0f172a) !important;
}

/* CONTAINER */
.container{
    width:100%;
    max-width:500px;
}

/* KORT */
.card{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:25px;
    padding:20px;
    box-shadow:0 15px 40px rgba(0,0,0,0.4);
}

/* TEKST */
h1{
    font-size:32px;
    margin-bottom:10px;
}

h2{
    font-size:20px;
    margin-bottom:10px;
}

p{
    font-size:14px;
    opacity:0.8;
    margin-bottom:10px;
}

/* BILLEDE */
.quiz-image{
    width:100%;
    max-width:260px;
    border-radius:20px;
    margin:10px auto;
    display:block;
    box-shadow:0 10px 20px rgba(0,0,0,0.4);
}

/* SVAR */
.answers{
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.answers button{
    padding:12px;
    font-size:15px;
    border:none;
    border-radius:12px;
    cursor:pointer;

    background:linear-gradient(135deg,#7c3aed,#4f46e5);
    color:white;

    transition:0.2s;
}

.answers button:hover{
    transform:scale(1.02);
}

/* SCORE */
.score{
    margin-top:10px;
    font-size:16px;
    font-weight:600;
}

/* PROGRESS BAR (hvis du bruger den) */
.progress{
    width:100%;
    height:10px;
    background:rgba(255,255,255,0.1);
    border-radius:20px;
    overflow:hidden;
    margin-bottom:10px;
}

.progress-bar{
    height:100%;
    background:linear-gradient(90deg,#7c3aed,#4f46e5);
    transition:0.4s;
}

/* RESPONSIVE */
@media (max-width:600px){

    .card{
        padding:15px;
    }

    h1{
        font-size:26px;
    }

    .quiz-image{
        max-width:220px;
    }

}