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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-attachment: fixed;
    line-height: 1.6;
}

.container {
    background: rgba(24, 24, 50, 0.8);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    font-weight: 700;
}

.quiz-settings {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.quiz-settings select, 
.quiz-settings button {
    appearance: none;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.quiz-settings select:hover, 
.quiz-settings button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

#questionProgress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #00f2fe;
}

#questionDisplay {
    background: rgba(45, 45, 85, 0.7);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.5;
    min-height: 120px;
    display: flex;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
}

.answer-button {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-button:hover {
    transform: scale(1.02);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.correct {
    background: linear-gradient(to right, #2ecc71, #27ae60) !important;
    color: white !important;
}

.incorrect {
    background: linear-gradient(to right, #e74c3c, #c0392b) !important;
    color: white !important;
}

#scoreTracker {
    text-align: center;
    font-size: 1.2rem;
    color: #00f2fe;
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Quiz End Screen */
#quizContainer h2 {
    text-align: center;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 20px;
}

#quizContainer p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#restartQuiz {
    display: block;
    margin: 0 auto;
    padding: 15px 30px;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#restartQuiz:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Responsivitet */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    #questionDisplay {
        font-size: 1rem;
    }
}