@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
     font-family: "Fredericka the Great", serif;
  font-weight: 400;
  font-style: normal;
    background: black;
    min-height: 100vh;
    padding-top: 120px;
}
.special-elite-regular {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Navigační lišta */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Přesná výška, aby všude byla stejná */
    display: flex;
    justify-content: space-between; /* Logo vlevo, menu vpravo */
    align-items: center;
    padding: 10px 50px;
    box-sizing: border-box; /* padding se nepočítá k šířce */
    z-index: 1000;
    
}

.logo {
    font-size: 80px;
    z-index: 1001;
    font-family: "Fredericka the Great", serif;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 22px;
    transition: 0.3s;
    font-family: "Special Elite", system-ui;
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Aby bylo nad navigační lištou*/
    
}
.bar {
    width: 35px;
    height: 4px;
    background-color: rgb(255, 255, 255);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 0px rgba(0,0,0,0,2);
    
    
}

/* Interaktivita: Změna barvy při najetí myší */
.nav-links a:hover {
    color: gray;
    text-decoration: underline;
}

/* Responzivita pro mobily */
@media screen and (max-width: 768px) {
.navbar {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .logo {
        font-size: 65px !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: black;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 30px; }
}

.quiz-container {
    background: black;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 50px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    
}

.quiz-container h1 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 36px;
    font-family: "Special Elite", system-ui;
}

#questions-container {
    margin-bottom: 30px;
}

.question {
    margin-bottom: 30px;
    padding: 30px;
    background-color: black;
    text-align: center;
    font-family: "Special Elite", system-ui;
}

.question.hidden {
    display: none;
}

.question h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option {
    padding: 5px 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    user-select: none;
    color: white;
    font-family: "Special Elite", system-ui;
}

.answer-option:hover {
    text-decoration: underline;
}

.answer-option.selected {
    font-weight: bold;
    color: #d1efff;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option.correct {
    color: #28a745;
    font-weight: bold;
}

.answer-option.incorrect {
    color: #dc3545;
    font-weight: bold;
}

.answer-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    font-family: "Special Elite", system-ui;
}

.submit-btn:hover {
    background-color: #ccc;
}

.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: black;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    max-width: 400px;
    font-family: "Special Elite", system-ui;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-content p {
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.restart-btn {
    padding: 12px 30px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Special Elite", system-ui;
}

.restart-btn:hover {
    background-color: #ccc;
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 30px;
    }

    .quiz-container h1 {
        font-size: 32px;
    }

    .question {
        padding: 20px;
    }

    .question h3 {
        font-size: 20px;
    }

    .answer-option {
        font-size: 18px;
    }
}
