/* Global styling */
body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to bottom, #87ceeb, #f7f7f7) no-repeat center center fixed;
    font-family: 'Arial', sans-serif;
    overflow: scroll;
    position: relative;
}

/* Kalender container */
.calendar {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1000px;  
}

/* Luke (dør) */
.door {
    width: 100%;
    height: 100%;
    background: #a00;
    border-radius: 8px;
    position: absolute;
    backface-visibility:visible;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: left center; /* Rotasjonspunkt: venstre */
    transition: transform 1s ease-in-out;
}

.door.closed {
    transform: rotateY(0deg);
}

.door.open {
    transform: rotateY(-120deg); /* Åpnes utover til venstre */
}

/* Knapp på døren */
.open-button {
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #a00;
}

/* Innhold bak døren */
.content {
    display: none;
    background: white;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.door.open ~ .content {
    display: block;
}

/* Snøeffekt */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    font-size: 1.5em;
    color: #ffffff;
    animation: snowfall 10s linear infinite;
    opacity: 0.8;
}

/* Snøfnugg posisjoner */
.snowflake:nth-child(1) { left: 10%; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-delay: 3s; }
.snowflake:nth-child(5) { left: 50%; animation-delay: 4s; }
.snowflake:nth-child(6) { left: 60%; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-delay: 6s; }
.snowflake:nth-child(8) { left: 80%; animation-delay: 7s; }
.snowflake:nth-child(9) { left: 90%; animation-delay: 8s; }

/* Animasjoner */
@keyframes snowfall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(120vh);
    }
}

img {
    width: 100%;
    height: auto;
}