/* Grundlegendes Reset und Schrift */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #c8c6c4; /*#f9f9f9;*/
    display: flex;
    justify-content: center;
/*     align-items: center; */
    align-items: flex-start; /* Oben ausrichten */
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    height: 100vh; /* Volle Höhe des Viewports */
    margin: 0; /* Standardmargin der Browser zurücksetzen */    
    
}

/* Container für das Quiz zentriert und mit max-Breite */
#quiz-container, #result-container {
    background: #f1f2f3;/*white;*/
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 952px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}





/* Bild responsive und max. Breite */
#question-image {
   max-width: 100%;
    height: auto;
    max-height: 430px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Frage */
#question-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Antwort-Buttons Container als flexbox mit Abstand */
#answer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Buttons einheitlich, groß genug für Touch */
#answer-buttons button {
    flex: 1 1 45%; /* 2 Buttons pro Reihe, flexibel */
    min-width: 120px;
    padding: 12px 10px;
    font-size: 1rem;
    border: 2px solid #007BFF;
    border-radius: 6px;
    background-color: white;
    color: #007BFF;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
}

/* Hover und Fokus */
#answer-buttons button:hover,
#answer-buttons button:focus {
    background-color: #007BFF;
    color: white;
    outline: none;
}

/* Feedback-Text */
#answer-feedback {
    font-size: 1.1rem;
    margin-bottom: 20px;
    min-height: 2em; /* Platz halten */
}

/* Next-Button und Ergebnis-Buttons */
#next-button,
#restart-button,
#end-button {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    margin: 10px 10px 0 10px;
    min-width: 140px;
    user-select: none;
    transition: background-color 0.3s;
}

/* Hover für Buttons */
#next-button:hover,
#restart-button:hover,
#end-button:hover {
    background-color: #0056b3;
}

/* Container für die zwei Buttons am Ende zentriert und mit Abstand */
#result-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Media Query für sehr kleine Bildschirme */
@media (max-width: 360px) {
    #answer-buttons button {
        flex: 1 1 100%; /* Buttons untereinander */
        min-width: auto;
    }
    #result-buttons {
        flex-direction: column;
        gap: 15px;
    }
}
/* Stile für den Footer */
.quiz-footer {
    margin-top: 5px; /* Abstand oben zur Karte */
    font-size: 0.8em; /* Kleinere Schriftgröße für den Footer */
    color: #555; /* Schriftfarbe für den Footer */
    padding: 5px 0; /* Innenabstand (Padding) */
}
