/* CSS-Stile, kann auch im html unter head sein muss dann zwischen <style> und </style> sein  */ 
body { 
    font-family: Arial, sans-serif; 
    text-align: center; 
    position: relative; 
    background-image: url('Hintergrund.webp'); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center center; 
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1 {
    margin-top: 80px; /* Platz für die oberen Buttons */
    color: #fff;
    text-shadow: 2px 2px 4px #000;
}
.question { 
    font-size: 24px; 
    margin: 20px auto; 
    padding: 10px; 
    background-color: rgba(255, 255, 255, 0.8); 
    width: 50%; 
    max-width: 400px;
    border-radius: 10px;
}
.result { 
    font-size: 20px; 
    color: green; 
    margin: 10px auto; 
    min-height: 30px; /* Feste Höhe für Ergebnismeldung */
    width: 50%; 
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.8); 
    padding: 5px;
    border-radius: 5px;
}
.error { color: red; }

/* Eingabefeld und Buttons */
#answer {
    font-size: 24px;
    padding: 10px;
    width: 80%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
    border-radius: 5px;
    border: 1px solid #ccc;
}
button {
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
button:hover {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
}

/* Styling für die Buttons auf der linken und rechten Seite */
#leftButtons, #rightButtons {
    position: fixed;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
#leftButtons {
    left: 10px;
}
#rightButtons {
    right: 10px;
}
/* Anpassung der Buttons für kleinere Bildschirme */
@media (max-width: 900px) {
    #leftButtons, #rightButtons {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
    }
    #leftButtons button, #rightButtons button {
        margin: 5px;
    }
    h1 {
        margin-top: 20px;
    }
}

/* Stil für die Tabellen */
table {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    word-break: break-word; /* Zeilenumbruch in Tabellenzellen */
}
tr:nth-child(even){background-color: rgba(242, 242, 242, 0.9);}
tr:hover {background-color: rgba(221, 221, 221, 0.9);}
th {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
}
/* Limitierung der Session-Historie Höhe */
#stats {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}
/* Hintergrund für Eingabeelemente transparent machen */
input[type="number"], button {
    background-color: rgba(255, 255, 255, 0.8);
}
/* Modal-Fenster */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    margin: auto; padding: 20px; border: 1px solid #888; width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 10px;
}
.close {
    color: #aaa; position: absolute; right: 10px; top: 5px; font-size: 28px; font-weight: bold;
}
.close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }