:fullscreen nav,
:-webkit-full-screen nav,
:fullscreen .footer,
:-webkit-full-screen .footer {
    display: none;
}

/* Add Fullscreen button style */
#fullscreen-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    position: absolute;
    top: 20px;
    right: 20px;
}

#fullscreen-btn:hover {
    background-color: #4CAF50;
    transform: scale(1.05);
}

.quiz-container {
    background-color: #1e1e1e;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 400px;
    margin: 40px auto;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.flag-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.flag-image:hover {
    transform: scale(1.1);
}

.options {
    display: grid;
    gap: 15px;
}

.option-button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.option-button:hover {
    background-color: #4CAF50;
    transform: scale(1.05);
}

.option-button.correct {
    background-color: #4CAF50;
    animation: correctHighlight 0.5s ease;
}

@keyframes correctHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.option-button.wrong {
    background-color: #f44336;
}

.highlight-correct {
    border: 3px solid #4CAF50;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px #4CAF50; }
    50% { box-shadow: 0 0 20px #4CAF50; }
    100% { box-shadow: 0 0 10px #4CAF50; }
}

.footer {
    text-align: center;
    margin-top: 30px;
}

.footer a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

.percentage {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 18px;
    color: #fff;
}

.wrong-answers {
    margin-top: 20px;
    text-align: left;
    color: #fff;
    font-size: 16px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    color: white;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.popup.show {
    display: block;
}

.popup button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background-color: #45a049;
}

#finish-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

/* Prozentsatz-Anzeige im Server-Card-Stil, aber mit max-width */
.percentage {
    position: sticky;
    top: 0px;
    left: 20px;
    font-size: 1.2em;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    background-color: #2c2c2c;
    padding: 12px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    max-width: 400px;
    text-align: center;
    z-index: 1000;
}

/* Finish-Button im Server-Card-Stil */
#finish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2c2c2c;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    min-width: 250px;
    max-width: 400px;
    text-align: center;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

#finish-btn:hover {
    background-color: #4CAF50;
    color: #fff;
}
:fullscreen .quiz-container,
:-webkit-full-screen .quiz-container {
    width: 80%; /* Mehr Breite */
    max-width: 1200px; /* Optional: Begrenzung */
    height: auto;
    margin: 20px auto;
    padding: 40px;
}

:fullscreen .flag-image,
:-webkit-full-screen .flag-image {
    width: 60%; /* Breitere Anzeige der Flagge */
    height: auto;
    margin: 0 auto;
}

:fullscreen .options,
:-webkit-full-screen .options {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    gap: 20px; /* Abstand zwischen den Optionen */
    margin-top: 40px;
}

/* Vergrößerte Buttons im Fullscreen */
:fullscreen .option-button,
:-webkit-full-screen .option-button {
    padding: 20px;
    font-size: 20px;
    border-radius: 12px;
    height: 80px; /* Option-Buttonhöhe anpassen */
}


:fullscreen #finish-btn,
:-webkit-full-screen #finish-btn {
    width: 50%; /* Größerer Finish-Button */
    margin: 20px auto;
}

:fullscreen #percentage,
:-webkit-full-screen #percentage {
    font-size: 1.5em; /* Größere Fortschrittsanzeige */
}
    @keyframes fullscreenEnter {
from {
    opacity: 0;
    transform: scale(0.9);
}
to {
    opacity: 1;
    transform: scale(1);
}
}

/* Animation for exiting fullscreen */
@keyframes fullscreenExit {
from {
    opacity: 1;
    transform: scale(1);
}
to {
    opacity: 0;
    transform: scale(0.9);
}
}

/* Apply animations when toggling fullscreen */
:fullscreen .quiz-container {
animation: fullscreenEnter 0.5s ease;
}

.quiz-container:not(:fullscreen) {
animation: fullscreenExit 0.5s ease;
}

body:fullscreen {
overflow: hidden; /* Prevent scrolling */
}
.percentage {
position: sticky;
top: 0px;
left: 20px;
font-size: 1.2em;
color: #4CAF50;
border: 2px solid #4CAF50;
background-color: #2c2c2c;
padding: 12px 30px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
min-width: 150px;
max-width: 200px;
text-align: center;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
}

#time-elapsed {
font-size: 1.2em;
}
.quiz-title {
font-size: 2.5em;
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
font-weight: bold;
}
@media (max-width: 768px) { /* Adjust the max-width as needed for your mobile breakpoint */
#fullscreen-btn {
display: none;
}
}

