body {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 18px;
    background-color: #f0e0d6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    margin: 0;
}

header {
    background-color: #663300;
    color: #fff;
    padding: 20px;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 4px #000000;
}

.input-container {
    margin-bottom: 20px;
    text-align: center;
    /* Zentriert den Text über dem Eingabefeld */
}

.input-container label {
    margin-top: 20px; /* Falls nicht bereits vorhanden */
    margin-bottom: 15px; /* Erhöht den Abstand zum Eingabefeld */
    display: block; /* Damit der Abstand nach unten korrekt funktioniert */
    font-size: 24px; /* Schriftgröße vergrößern */
    font-weight: bold; /* Falls du es noch auffälliger haben möchtest */
}
.output-container {
    width: 100%; /* Vollständige Breite des Elternelements */
}

.img-container {
    display: flex;
    justify-content: center; /* Zentriert das Bild horizontal */
    align-items: center; /* Zentriert das Bild vertikal */
    
}

button {
    background-color: #ffcc00;
    color: #333;
    padding: 15px 50px; /* Mehr Innenabstand */
    font-size: 24px; /* Größere Schrift */
    width: 100%; /* Volle Breite nutzen */
    max-width: 300px; /* Begrenzung der Breite */
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    margin: 0 auto;
    display: block;
    text-align: center;
}

button:hover {
    background-color: #e6b800;
}

input[type="number"] {
    padding: 15px; /* Mehr Innenabstand */
    font-size: 24px; /* Größere Schrift */
    width: 100%; /* Volle Breite nutzen */
    max-width: 300px; /* Maximale Breite setzen */
    border-radius: 5px;
    border: 2px solid #663300;
}

#ergebnisliste {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-width: 800px;
    text-align: left;
    font-size: 22px;
    font-weight: bold;
}

#ergebnisliste h2 {
    font-size: 24px;
    /* Größere Schrift für die Überschrift */
    margin-bottom: 10px;
    /* Abstand zur Liste */
}

#ergebnisliste td {
    white-space: nowrap;
    /* Verhindert das Umbrechen des Textes */
    padding: 5px;
}

#ergebnisliste .anzahl {
    text-align: right;
    /* Richtet die Anzahl rechtsbündig aus */
}

#ergebnisliste .betrag {
    text-align: right;
    /* Richtet die Anzahl rechtsbündig aus */
}

.ergebniszeile {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.anzahl,
.betrag {
    flex: 1;
}

.faktor {
    flex: 0;
    min-width: 50px;
}

/* Bierkrug-Spiel Styles */
#spiel-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.spiel-titel {
    text-align: center;
    margin-bottom: 20px;
    color: #663300;
    font-size: 28px;
}

.punkte-container {
    font-size: 24px;
    margin-bottom: 10px;
    color: #663300;
}

#spiel-bereich {
    width: 100%;
    height: 60vh; /* Reduzierte Höhe für bessere Mobilgeräte-Kompatibilität */
    background-color: #ffebcd;
    border: 3px solid #663300;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#spieler {
    position: absolute;
    bottom: 10px; /* Näher am unteren Rand */
    left: 50%;
    transform: translateX(-50%);
    width: 30%; /* Breiteres Paddle für Mobilgeräte */
    min-width: 100px;
    max-width: 180px;
    height: 20px;
    background-color: #663300;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 100; /* Sicherstellen, dass es über allem anderen liegt */
}

.bierkrug {
    position: absolute;
    width: 50px;
    height: 60px;
    background-image: url('./icons/Bierkrug.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5; /* Sicherstellen, dass Bierkrüge über dem Hintergrund aber unter dem Spieler erscheinen */
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 200; /* Höherer z-index als alles andere */
    width: 80%; /* Breiter für bessere Lesbarkeit auf Mobilgeräten */
    max-width: 300px;
}

#game-over h3 {
    font-size: 28px;
    color: #663300;
    margin-bottom: 10px;
}

#game-over p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

#game-over button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 18px;
    width: auto;
    display: inline-block;
}

/* Spezielle Anpassungen für Mobilgeräte */
@media screen and (max-width: 768px) {
    #spiel-bereich {
        height: 50vh; /* Noch kürzere Höhe für kleine Bildschirme */
    }
    
    .spiel-titel {
        font-size: 24px;
    }
    
    .punkte-container {
        font-size: 20px;
    }
    
    #game-over h3 {
        font-size: 24px;
    }
    
    #game-over p {
        font-size: 18px;
    }
    
    #game-over button {
        font-size: 16px;
        padding: 8px 16px;
    }
}