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

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f8ff;
    /* Jasnoniebieskie tło */
    color: #333;
    display: flex;
    flex-direction: column;
    /* Zmienione na kolumnę dla przycisku na dole */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

h1 {
    color: #0056b3;
    /* Ciemnoniebieski */
    margin-bottom: 10px;
}

h2 {
    color: #555;
    font-weight: 400;
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

#question-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
    min-height: 20px;
    /* Aby nie skakało */
}

.quiz-container {
    padding: 20px 0;
}

#question {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
    min-height: 60px;
    /* Stała wysokość na pytanie */
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fdfdfd;
    border: 2px solid #b0c4de;
    /* Jasny niebiesko-szary */
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn:hover:not(:disabled) {
    background-color: #e6f7ff;
    border-color: #007bff;
}

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

/* Klasy dodawane przez JavaScript */
.btn.correct {
    background-color: #d4edda;
    /* Zielony */
    border-color: #28a745;
    color: #155724;
    font-weight: 600;
}

.btn.incorrect {
    background-color: #f8d7da;
    /* Czerwony */
    border-color: #dc3545;
    color: #721c24;
    font-weight: 600;
}

/* ZAKTUALIZOWANY STYL PRZYCISKU "DALEJ" */
#next-btn {
    background-color: #007bff;
    /* Główny niebieski */
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    width: 50%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px auto 0 auto;
    /* Zmienione, aby centrować */
    display: none;
    /* Ukryty na początku */
    transition: background-color 0.2s;
}

#next-btn:hover {
    background-color: #0056b3;
}

.results-container {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #e6f7ff;
    color: #0056b3;
}

/* STYLE DLA PRZYCISKU POWROTU */
.footer-link {
    text-align: center;
    margin-top: 25px;
}

.home-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    /* Neutralny szary */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.home-btn:hover {
    background-color: #5a6268;
}