/* Grundlegende Stile, die als Standard gelten */



* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url("./img/christmas-bg.jpg");
    background-position: center;
}

h2 {
    text-align: center;
    margin-top: 25px;
    color: white;
    font-size: 1.5rem;
}

#adventskalender {
    margin-block: 25px;
    display: flex;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;

}

.fenster {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    opacity: 0.8;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    font-size: 5rem;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    z-index: 9;
}

.fenster.geoeffnet {
    /* Stil für geöffnete Fenster */
    border: solid 1px lightblue;
    opacity: 1;
}

/* Stile für Geräte im Hochformat */
@media screen and (orientation: portrait) {

    /* Beispiel: Anpassung der Breite und Höhe */
    .fenster {
        width: 40vw;
        height: 40vw;
    }
}

/* Stile für Geräte im Querformat */
@media screen and (orientation: landscape) {

    /* Beispiel: Anpassung der Breite und Höhe */
    .fenster {
        width: 28vw;
        height: 28vw;
    }
}


.overlay {
    display: none; /* Versteckt das Overlay standardmäßig */
    position: fixed; /* Fixierte Position über dem ganzen Bildschirm */
    z-index: 9999; /* Sorgt dafür, dass das Overlay über anderen Elementen liegt */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Ermöglicht das Scrollen, falls das Bild zu groß ist */
    background-color: rgb(0,0,0); /* Hintergrundfarbe */
    background-color: rgba(0,0,0,0.8); /* Hintergrundfarbe mit Transparenz */
}

.overlayBild {
    display: block; /* Block-Element */
    margin-inline: auto; /* Zentriert das Bild */
    margin-top: 15px;
    max-width: 95vw; /* Maximale Breite */
    max-height: 95vw; /* Maximale Höhe */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}



