body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

#quiz-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 0, 0, 0.05);
    padding: 30px;
    max-width: 750px;
    width: 100%;
    text-align: center;
    position: relative;
    min-height: 660px;
}

#score {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.9em;
    color: #555;
}

#quiz-container h1 {
    font-family: 'Nunito', sans-serif; /* Nunito-fonten */
    font-size: 2em;
    margin: 15px 0 20px;
    color: #333; /* Fast mørk farge, ingen fargeforandringer */
    font-weight: 600; /* Litt tykkere skrift */
}

#image-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#amino-acid-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

button {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0288d1, #0277bd);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #01579b, #014a8f);
    transform: translateY(-2px);
}

button.correct {
    background: linear-gradient(135deg, #2ecc71, #28a745);
}

button.incorrect {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

#feedback {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#feedback.show {
    opacity: 1;
}

#next-button {
    background: linear-gradient(135deg, #0288d1, #0277bd);
    padding: 10px 30px;
    font-size: 1em;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    transition: background 0.3s ease, transform 0.2s ease;
}

#next-button:hover {
    background: linear-gradient(135deg, #01579b, #014a8f);
    transform: translateY(-2px);
}

#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 768px) {
    #options {
        grid-template-columns: repeat(2, 1fr);
    }
    #quiz-container h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    #options {
        grid-template-columns: 1fr;
    }
    #quiz-container h1 {
        font-size: 1.5em;
    }
    button {
        padding: 8px;
        font-size: 0.9em;
    }
    #next-button {
        padding: 8px 25px;
    }
    #image-container {
        height: 180px;
    }
}