body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.app-container {
    background-color: white;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    text-align: center;
    width: 100%;
    max-width: 550px;
}

h1 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
}

#question-counter {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

#question {
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 1.6em;
    color: #2c3e50;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.option-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: 500;
}

.option-btn:hover:not(:disabled) {
    background-color: #5568d3;
    transform: translateY(-2px);
}

.option-btn:active:not(:disabled) {
    transform: translateY(0px);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

#feedback {
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 1.15em;
    font-weight: bold;
    min-height: 1.5em; 
}

#feedback.correct {
    color: #27ae60;
}

#feedback.incorrect {
    color: #e74c3c;
}

.feedback-icon {
    font-size: 1.3em;
    display: inline-block;
    margin-bottom: 5px;
}

.feedback-answer {
    font-size: 0.95em;
    margin-top: 5px;
}

.feedback-explanation {
    font-size: 0.85em;
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
}

#next-btn, #restart-btn, .button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.05em;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

#next-btn, #restart-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#next-btn:hover, #restart-btn:hover, .button:hover {
    background-color: #219d55;
}

#score-container h2 {
    color: #333;
    margin-bottom: 15px;
}

#score-container p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

#score-container p strong {
    color: #667eea;
    font-size: 1.2em;
}

.back-button {
    display: inline-block;
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* Responsiv design for mindre skjermer */
@media (max-width: 480px) {
    .app-container {
        padding: 20px 25px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    #question {
        font-size: 1.3em;
    }
    
    .options-grid {
        gap: 10px;
    }
    
    .option-btn {
        padding: 12px;
        font-size: 1em;
    }
    
    #feedback {
        font-size: 1em;
    }
    
    .feedback-answer {
        font-size: 0.9em;
    }
    
    .feedback-explanation {
        font-size: 0.8em;
    }
}
