@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Lato', 'Roboto', Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: rgb(220, 217, 217);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 6px rgb(0, 0, 0);
    width: 90%;
    max-width: 800px;
    text-align: center;
    margin-top: 50px;
}

h1 {
    color: #a28a00;
    margin-bottom: 0;
    font-size: 3em;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.creator {
    color: #666;
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 50px;
}

button {
    padding: 15px 25px;
    margin: 20px auto;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    display: block;
}

button:hover {
    background-color: #0056b3;
}

#back-to-home-button {
    background-color: #333;
    color: white;
    padding: 15px 25px;
    margin-top: 20px;
    margin-bottom: 40px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    display: block;
    align-self: center;
    text-align: center;
    transition: background-color 0.3s;
}

#back-to-home-button:hover {
    background-color: #555;
}

#quiz-container, #result-container {
    display: none;
}

#question {
    font-size: 1.5em;
    font-weight: bold;
    min-height: 100px; /* Mindesthöhe */
    max-height: 150px; /* Maximalhöhe */
    line-height: 1.4;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow-y: auto; /* Ermöglicht das Scrollen bei Überlauf */
}

.answer-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.answer-button:hover {
    background-color: #0056b3;
}

.result-text {
    font-size: 1.2em;
    color: #333;
    margin-top: 20px;
}

.result-detail {
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 10px;
}
#scores-container {
    display: none;
    text-align: center;
}

#scores-list {
    text-align: left;
    margin: 20px auto;
    max-width: 600px;
}

#back-to-quiz-button {
    padding: 15px 25px;
    margin-top: 20px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}


/* Responsive Anpassungen */
@media (max-width: 1200px) {
    h1 {
        font-size: 1.9em;
    }

    #question {
        font-size: 1.4em;
    }

    .answer-button {
        font-size: 1.1em;
        padding: 14px;
    }

    .result-text {
        font-size: 1.1em;
    }

    .result-detail {
        font-size: 0.9em;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 1.7em;
    }

    #question {
        font-size: 1.3em;
    }

    .answer-button {
        font-size: 1em;
        padding: 12px;
    }

    .result-text {
        font-size: 1em;
    }

    .result-detail {
        font-size: 0.8em;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        width: 95%;
        margin: 10px;
    }

    h1 {
        font-size: 1.6em;
    }

    #question {
        font-size: 1.2em;
        padding: 15px;
        min-height: 120px;
        max-height: 180px;
    }

    button, .answer-button, #back-to-home-button {
        font-size: 0.9em;
        padding: 10px;
    }

    .answer-button {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .result-text {
        font-size: 0.9em;
    }

    .result-detail {
        font-size: 0.8em;
    }
}
