/* fredericka-the-great-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fredericka the Great';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/fredericka-the-great-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* life-savers-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Life Savers';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/life-savers-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* urbanist-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/urbanist-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* urbanist-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/urbanist-v18-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
  
::-webkit-scrollbar-track {
    border-radius: 10px;
}
  
::-webkit-scrollbar-thumb {
    background: linear-gradient(130deg, rgb(255, 255, 255), rgb(146, 0, 0), rgb(255, 255, 255), rgb(146, 0, 0), rgb(255, 255, 255), rgb(146, 0, 0), rgb(255, 255, 255), rgb(146, 0, 0), rgb(255, 255, 255), rgb(146, 0, 0), rgb(255, 255, 255), rgb(146, 0, 0));
    border-radius: 10px;
    border: 1px solid #09072a;
}
  
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(130deg, rgb(146, 0, 0), rgb(255, 255, 255),  rgb(146, 0, 0), rgb(255, 255, 255),  rgb(146, 0, 0), rgb(255, 255, 255),  rgb(146, 0, 0), rgb(255, 255, 255),  rgb(146, 0, 0), rgb(255, 255, 255),  rgb(146, 0, 0), rgb(255, 255, 255));
    cursor: pointer;
}

* {
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #09072a;
    background-image: url('img/lichterkette.png');
    background-repeat: repeat;
    background-position: top right;
    margin: 0;
}

.calendar-wrapper {
    position: relative;
    overflow: visible; 
    padding: 5dvh 0;
}

.full-width {
    display: flex;
    flex-direction: column;
    align-items: center;
    & .calender-ctn {
        transform: scale(1);
        transform-origin: center top;
        transition: transform 0.3s ease;
        height: 90dvh;
        max-height: 1920px;
        width: auto;
        max-width: 1080px;
        aspect-ratio: 9 / 16;
        border-radius: 4px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        position: relative;
        & img {
            border-radius: 4px;
            width: 100%;
            height: 100%;
        }
        & .doors-ctn {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            gap: 2%;
            & .row {
                display: flex;
                height: 15%;
                & .door {
                    width: 25%;
                    height: 100%;
                    position: relative;
                    & .day {
                        position: absolute;
                        color: rgb(165, 94, 19);
                        font-family: 'Fredericka the Great';
                        font-size: 16px;
                        padding: 5%;
                        transition: all 0.4s ease-in-out;
                        &:hover {
                            cursor: pointer;
                            scale: 1.5;
                        }
                    }
                }
            }
        }
        & .door-overlay {
            background-color: #09072a;
            border-radius: 4px;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: none;
            z-index: 10;
            & img {
                border-radius: 4px;
                width: 100%;
                height: 100%;
            }
            & .day-number {
                position: absolute;
                top: 10%;
                left: 50%;
                transform: translateX(-50%);
                color: white;
                font-size: 2rem;
                font-family: 'Fredericka the Great';
            }
            & .text {
                position: absolute;
                top: 25%;
                left: 20%;
                right: 20%;
                color: white;
                text-align: center;
                font-family: 'Fredericka the Great';
                letter-spacing: 2px;
                font-weight: 300;
                font-size: 1.5rem;
            }
            & .back {
                position: absolute;
                bottom: 2.5%;
                right: 5%;
                width: 4%;
                height: auto;
                transition: all 0.2s ease-in-out;
                &:hover {
                    cursor: pointer;
                    scale: 1.25;
                }
            }
        }
         & .zoom {
            display: flex;
            gap: 2px;
            position: absolute;
            bottom: 2%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 8px;
            z-index: 5;
            & .btn {
                font-family: 'Fredericka the Great';
                font-size: 16px;
                color: gray;
                width: 30px;
                height: 70%;
                background-color: rgba(255, 255, 255, 1);
                display: flex;
                justify-content: center;
                align-items: center;
                transition: all 0.2s ease-in-out;
                &:hover {
                    cursor: pointer;
                    background-color: rgba(255, 255, 255, 0.3);
                }
                &:active {
                    scale: 0.98;
                }
            }
            & .zoom-out {
                border-bottom-left-radius: 50px;
                border-top-left-radius: 50px;
            }
            & .zoom-in {
                border-bottom-right-radius: 50px;
                border-top-right-radius: 50px;
            }
        }
       
    }
}

/* .start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    z-index: 20;
    transition: all 10s ease-in;
}

.start-overlay.off {
    opacity: 0;
} */

.door-overlay {
    opacity: 0;
    transform: scale(0.96);
    transition: 
        opacity 1s ease,
        transform 1s ease;
}

.door-overlay-content {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.5s ease 0.15s,
        transform 0.5s ease 0.15s;
}

.door-overlay.open {
    opacity: 1;
    transform: scale(1);
}

.door-overlay.open .door-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.star-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.falling-star {
    position: absolute;
    top: 0;
    opacity: 0;
    transform-origin: center center;
    animation-name: fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}



#star-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  .star {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    animation: fadeOut 1s ease-out forwards;
    }
}

.door.locked {
    filter: grayscale(1);
}


@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(120deg);
  }
}

.day-06 {
    bottom: 5%;
    left: 10%;
}

.day-20 {
    bottom: 15%;
    left: 30%;
}

.day-15 {
    top: 50%;
    right: 50%;
}

.day-07 {
    bottom: 15%;
    right: 25%;
}

.day-17 {
    top: 15%;
    right: 45%;
}

.day-23 {
    top: 50%;
    right: 60%;
}

.day-01 {
    top: 45%;
    right: 45%;
}

.day-12 {
    top: 37%;
    right: 35%;
}

.day-14 {
    top: 37%;
    left: 5%;
}

.day-05 {
    top: 37%;
    left: 50%;
}

.day-24 {
    bottom: 5%;
    right: 5%;
}

.day-08 {
    bottom: 40%;
    right: 40%;
}

.day-10 {
    bottom: 7%;
    right: 20%;
}

.day-19 {
    top: 7%;
    right: 7%;
}

.day-02 {
    top: 25%;
    right: 45%;
}

.day-13 {
    top: 32%;
    right: 10%;
}

.day-16 {
    bottom: 10%;
    right: 30%;
}

.day-09 {
    bottom: 20%;
    left: 30%;
}

.day-21 {
    top: 28%;
    left: 25%;
}

.day-04 {
    top: 40%;
    left: 40%;
}

.day-18 {
    bottom: 20%;
    left: 40%;
}

.day-03 {
    bottom: 30%;
    left: 40%;
}

.day-22 {
    bottom: 15%;
    left: 60%;
}

.day-11 {
    bottom: 40%;
    left: 60%;
}