body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e2f;
    color: #cfcfcf;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    min-height: 100vh;
    flex-direction: column;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.container {
    display: flex;
    text-align: center;
    background: rgba(41, 41, 69, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    width: 80%;
    max-width: 700px;
    z-index: 10;
    position: relative;
    margin: 32px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #c8a2ff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

hr {
    width: 100%;
    opacity: 0.1;
}

form {
    width: 434px;
    max-width: 90%;
    margin: 30px 0px;
}

.custom-quiz-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.custom-quiz-link a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    color: #00c6ff;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.custom-quiz-link a:hover {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

p.overSession {
    max-width: 600px;
    width: 100%;
    color: #d8b2ffc9;
}

.highscore {
    padding: 0px 22px;
    text-align: center;
    font-size: 1.3rem;
    color: #feff2a;
    position: absolute;
    top: 0px;
    right: 0px;
}

.quizForm {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 88%;
    gap: 15px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    justify-content: center;
}

label {
    color: #cfcfcf;
    flex: 1;
    text-align: left;
    margin-right: 30px;
}

input[type="number"], input[type="text"], input[type="password"], input[type="checkbox"] {
    flex: 2;
    font-size: 1rem;
    padding: 8px;
    border-radius: 5px;
    border: none;
    max-width: 120px;
    text-align: center;
}

select#region, select#mode {
    width: 136px;
    border-radius: 6px;
    outline: none;
    border: none;
    height: 35px;
    text-align: center;
}

select#modeSelect {
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1em;
    background: transparent;
    color: #c2c2c2;
}

input[type="number"]:focus {
    outline: 2px solid #6f42c1;
}

input[type="submit"] {
    background-color: #6f42c1;
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #5a329a;
}

/* Quiz */
h1 {
    color: #f2b632;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.scoreboard {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.scoreboard p {
    margin: 5px 0;
    color: #ffffff;
}

.addonContainer {
    display: flex;
    margin: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

button, input[type="submit"] {
    background-color: #6f42c1;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    margin: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: auto;
    min-width: 45.5%;
    max-width: 45.5%;
    height: 64px;
}

button.hintButton, button.skipButton {
    max-width: 200px;
    min-width: 200px;
    height: 40px;
    background-color: #6f42c180;
}

button:hover, input[type="submit"]:hover {
    background-color: #7e4ed8;
}

button.sendAnswer {
    width: 100%;
    max-width: 100%;
}

/* Addon Buttons */
.addonButtons {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.addonButtons button {
    width: 100%;
    max-width: 36%;
    min-width: auto;
    height: 40px;
}

img {
    /*max-width: 350px;*/
    margin: 20px auto;
    border: 3px solid #6f42c1;
    border-radius: 8px;
}

.countyImage {
    max-height: 234px;
    min-height: 234px;
}

#timer {
    font-size: 2rem;
    color: #dc3545;
    font-weight: bold;
    margin: 15px 0;
}

input[type="checkbox"] {
    appearance: none;
    width: 32px;
    max-width: 32px;
    height: 31px;
    border: 1px solid #6f42c18c;
    border-radius: 5px;
    background: #1e1e2f;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="checkbox"]:checked {
    background-color: #6f42c1;
    border-color: #c8a2ff5e;
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 1.5rem;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none;
}

/* Flaggen Regen */
.falling-flag {
    position: absolute;
    top: -80px;
    animation-name: fall;
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0.8;
}

/* Custom Input */
input.countryInput {
    width: 100%;
    max-width: 100%;
    height: 40px;
    border: 1px solid #6b00bf;
    border-radius: 8px;
    background: #1104163b;
    padding: 5px 14px;
    font-size: 18px;
    color: white;
    outline: none;
}

input.countryInput:focus {
    border-color: #c8a2ff;
    box-shadow: 0 0 5px #c8a2ff;
}

/* Dropdown */
.dropdown {
    position: absolute;
    width: 81%;
    max-height: 200px;
    background: #1e1e2f;
    border: 1px solid #6f42c1;
    border-radius: 5px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
    margin-top: 55px;
    padding: 0;
    list-style: none;
}

.dropdown.hidden {
    display: none;
}

.dropdown li {
    padding: 10px;
    cursor: pointer;
    color: #cfcfcf;
}

.dropdown li:hover {
    background-color: #6f42c1;
    color: #fff;
}

.countryInput {
    width: 100%;
    max-width: 400px;
    height: 40px;
    border: 1px solid #6b00bf;
    border-radius: 8px;
    background: #1104163b;
    padding: 5px 14px;
    font-size: 18px;
    color: white;
    outline: none;
}

.countryInput:focus {
    border-color: #c8a2ff;
    box-shadow: 0 0 5px #c8a2ff;
}

.Copyright {
    color: #ffffff78;
    margin: 15px 0 5px;
    width: 100%;
    text-align: center;
}

/* Logo & Head */
.headContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 5px 0 20px 0;
}

img.logo {
    width: 68px;
    border: none;
    margin: 0;
    opacity: 0.8;
}

/* Result */
form.ngSendName {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ngSendName p {
    max-width: 300px;
    width: 100%;
}

.ngSendName input[type="text"], .ngSendName button {
    width: 100%;
    max-width: 300px;
    max-height: 42px;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Responsive for Tablets */
@media (max-width: 868px) {
    body {
        overflow: auto;
        min-height: 70vh;
    }

    .container {
        width: 90%;
        max-width: 90%;
        padding: 20px;
        min-height: 80vh;
    }

    h1 {
        font-size: 1.8rem;
    }

    .quizForm {
        flex-direction: column;
        gap: 5px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        margin: 5px;
    }

    button, input[type="submit"] {
        width: 43%;
        height: 9vh;
        font-size: 0.9rem;
        min-width: auto;
        max-width: 100%;
        margin: 5px 0;
        padding: 6px;
    }

    img {
        max-width: 100%;
        max-height: 150px;
    }

    .scoreboard {
        font-size: 1rem;
    }
}

/* Responsive for Smartphones */
@media (max-width: 480px) {
    body {
        overflow: auto;
    }

    .container {
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    label {
        margin-bottom: 5px;
        text-align: center;
    }

    input[type="number"], select#region, select#mode, input[type="checkbox"] {
        width: 100%;
        font-size: 1rem;
    }

    img {
        max-width: 100%;
        max-height: 120px;
    }

    .scoreboard {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 442px) { 
    button, input[type="submit"] {
        width: 38%;
    }
}

@media (max-width: 436px) { 
    button, input[type="submit"] {
        width: 46%;
        height: 70px;
    }
}

@media (max-width: 544px) { 
    .countyImage {
        max-height: 170px;
        min-height: 170px;
    }
}