/* === ALLGEMEINES */

@font-face {
    font-family: 'Veotec';
    src: url('../fonts/Veotec-ExtraBold.ttf') format('truetype');
    font-weight: bold; /* Fettgewicht */
    font-style: normal; /* Normalstil */
}

@font-face {
    font-family: 'Veotec-Medium';
    src: url('../fonts/Veotec-Medium.ttf') format('truetype');
    font-weight: bold; /* Fettgewicht */
    font-style: normal; /* Normalstil */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: black; 
}

h1, h3, h4, h5, h6 {
    font-family: 'Veotec', sans-serif;
    text-transform: uppercase;
}

#wichtiger-text {
    font-family: 'Veotec-Medium';
    color:#fab900;
}

#normaler-text {
    font-family: 'Veotec-Medium';
    color: #fff;
}

#normaler-text-wichtig {
    font-family: 'Veotec-Medium';
    color: #fab900;
}

/* Centered logo */
.centered-logo {
    text-align: center; /* Text zentrieren */
    margin-top: 50px;
}

.centered-logo img {
    max-width: 150px;
    height: auto;
}

/* === ALLGEMEINES FÜR DIE QUIZ-APP === */
#quizapp-app {
    font-family: Arial, sans-serif;
    color: white; /* Weißer Text für den Quiz-App-Bereich */
}

.triangle-quizapp {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-right: 200px solid transparent;
    border-top: 200px solid #fab900; /* Das Dreieck zeigt jetzt nach oben */
}

.triangle-quizapp h1 {
    position: absolute;
    top: -148px;
    left: 37px;
    transform: rotate(-45deg); /* Text wird um 45 Grad gedreht */
    color: black;
    font-size: 24px;
}

/* === SEITEN-SICHTBARKEIT === */
/* Verstecke Seiten standardmäßig */

.quizapp-hidden {
    display: none !important;
}

.quizapp-page {
    display: none; /* Alle Seiten standardmäßig ausblenden */
}

.quizapp-page:not(.quizapp-hidden) {
    display: flex; /* Sichtbare Seiten als Flexbox anzeigen */
}


/* Nur die aktive Seite soll sichtbar sein */
.quizapp-page.quizapp-active {
    display: block;
    text-align: center;
    background: none; /* Kein Hintergrund */
}

/* Flexbox, um den Inhalt sowohl horizontal als auch vertikal zu zentrieren */
#quizapp-welcome-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 280px;
    position: relative;
}

/* Styling für die Boxen */
.quizapp-left-box, .quizapp-right-box {
    flex: 1;                     /* Gleiche Breite für beide Boxen */
    display: flex;
    justify-content: center;      /* Inhalt in der Box horizontal zentrieren */
    align-items: center;          /* Inhalt in der Box vertikal zentrieren */
}

/* Bild in der linken Box */
.quizapp-left-box img {
    max-width: 80%;              /* Bild passt sich der Box an, kleiner für mehr Platz */
    height: auto;                /* Bild bleibt proportional */
}

/* Text und Button in der rechten Box */
.quizapp-right-box {
    display: flex;
    flex-direction: column;       /* Inhalt der rechten Box vertikal anordnen */
    text-align: center;           /* Text zentrieren */
}

/* Button Styling */
#quizapp-start-button {
    background-color: #fab900;
    color: black;
    font-weight: bold;
    padding: 20px 40px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

#quizapp-start-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* === KATEGORIEN-SEITE (ZWEITE SEITE) === */
#quizapp-categories-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    margin-top: 280px;
}

.quizapp-categories {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.quizapp-category {
    text-align: center;
    margin: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-Effekt für Kategorien */
.quizapp-category:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}

.quizapp-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fab900;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.quizapp-circle img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.quizapp-category p {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* === FRAGEN- UND ANTWORTSEITE (DRITTE SEITE) === */
#quizapp-quiz-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    margin-top: 120px;
}

#quizapp-question-container {
    width: 80%;
    background-color: rgba(255, 255, 255, 0.1); /* Leicht transparent */
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

#quizapp-question-container h3 {
    font-size: 1.8rem;
    color: white;
}

.quizapp-choice {
    display: block;
    width: 100%;
    background-color: #fab900;
    color: black;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-Effekt für Antwort-Buttons */
.quizapp-choice:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Feedback für richtige/falsche Antworten */
.quizapp-choice.correct {
    background-color: green;
}

.quizapp-choice.wrong {
    background-color: red;
}

/* Final Result Page Style */
#quizapp-result-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    max-width: 800px;
    margin: 100px auto;
    margin-top: 200px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    animation: fade-in 1s ease-in-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#quizapp-result-summary {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    color: #fff;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
    animation: slide-up 1s ease-in-out;
    display: block;
    align-items: center;
    gap: 15px;
}

/* New Styling for the detailed result summary */
#quizapp-detailed-summary {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
    animation: slide-up 1s ease-in-out;
    display: block;
    gap: 15px;
}

#quizapp-detailed-summary h3 {
    color: #fab900;
    margin-bottom: 10px;
}

#quizapp-detailed-summary .question {
    margin: 10px 0;
    font-weight: bold;
}

#quizapp-detailed-summary .correct-answer {
    color: green;
}

#quizapp-detailed-summary .wrong-answer {
    color: red;
}

@keyframes slide-up {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Buttons aligned next to each other */
#quizapp-button-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    flex-wrap: nowrap;
}

#quizapp-restart-button, #quizapp-back-button {
    background-color: #fab900;
    color: black;
    padding: 15px 30px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    max-width: 200px;
}

#quizapp-restart-button:hover, #quizapp-back-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.confetti-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #fab900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: black;
    margin-bottom: 20px;
    animation: pop-in 1.2s ease;
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.question-container-inner {
    text-align: center;
    margin-bottom: 20px;
}

.choices-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quizapp-choice {
    display: block;
    width: 80%;
    max-width: 500px;
    background-color: #fab900;
    color: black;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quizapp-choice:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background-color: #fab900;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.home-button a {
    color: black;
    text-decoration: none;
    font-size: 0.6rem;
}

.home-button:hover {
    transform: scale(1.1);
    background-color: #ffc700;
}

.home-button i {
    font-size: 1.0rem;
}
