body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .container {
    background-color: #333333; /* oder eine andere Farbe, die zum Dark-Mode passt */
}

#gameContainer {
    position: relative;
    width: 100%; /* Setzt die Breite auf 100% des Elternelements (in diesem Fall body) */
    height: 100vh; /* Setzt die Höhe auf 100% der Viewport-Höhe */
    min-height: 100vh; /* Optional, um sicherzustellen, dass der Container immer die volle Höhe hat, auch wenn der Inhalt kürzer ist */
    overflow: auto; /* Ermöglicht das Scrollen, wenn der Inhalt den Viewport übersteigt */
}


.mode-button {
    cursor: pointer;
    width: 10%;
    position: absolute;
    right: 10px;
}

#lightModeButton {
    right: 15%; /* Oder welcher Wert auch immer, um den Abstand zwischen den beiden Bildern zu kontrollieren */
}



button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.beer-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
}

.beer-container::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 60px;
    top: 40px;
    right: -20px;
    border: 10px solid #704214;
    border-top-right-radius: 40px; /* Rundung oben rechts */
    border-top-left-radius: 10px; /* Rundung oben links */
    border-bottom-right-radius: 40px; /* Rundung unten rechts */
    border-bottom: 0;
    background-color: transparent;
}


.beer-glass {
    position: relative;
    width: 100px;
    height: 150px;
    margin: 0 auto;
    background-color: transparent;
    border: 10px solid #704214;
    border-top: 0;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

.beer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Zu Beginn ist das Glas voll */
    background-color: #f4c542;
    transition: height 1s;
}

.foam {
    position: absolute;
    bottom: 100%; /* Der Schaum befindet sich am Anfang oben im Glas */
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #ffffff;
    transition: bottom 1s;
}

.foam-75 {
    opacity: 1; /* Schaum ist vollständig sichtbar */
    height: 10px; /* Normale Höhe */
}

.foam-50 {
    opacity: 0; /* Schaum ist vollständig unsichtbar */
    height: 0px; /* Keine Höhe */
}

.shots-taken {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}

.foam-crown {
    position: absolute;
    bottom: 100%; /* Die Schaumkrone befindet sich am Anfang oben auf dem Glas */
    left: 15%; /* Setze den linken Rand auf 10%, um die Schaumkrone zu zentrieren */
    right: 15%; /* Setze den rechten Rand auf 10%, um die Schaumkrone zu zentrieren */
    width: 70%; /* Die Schaumkrone hat 80% der Breite des Bieres */
    height: 10px; /* Feste Höhe für die Schaumkrone */
    background-color: #ffffff;
    opacity: 1; /* Anfangs ist der Schaum sichtbar */
    transition: opacity 1s;
}


.light-mode {
    background-color: #d3d3d3; /* Hintergrundfarbe für den Light-Mode */
    color: #000000; /* Textfarbe für den Light-Mode */
    /* Weitere Stile für den Light-Mode */
}

.dark-mode {
    background-color: #000000; /* Hintergrundfarbe für den Dark-Mode */
    color: #ffffff; /* Textfarbe für den Dark-Mode */
    /* Weitere Stile für den Dark-Mode */
}
