

/* === Stilar för snöfall === */

.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
        transform: translateY(100vh);
    }
}

@keyframes diagonal-fall {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0.25;
        transform: translate(10vw, 100vh);
    }
}
/* === Stilar för snöfall (Slut) === */

/* === Stilar för kalendern med luckor === */

.calendar-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
    container-type: inline-size;
    background-size: cover;
    background-position: center;
}

.calendar {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 84px);
}

/* Luckor CSS grid */
.slot-wrapper {
    padding: clamp(1rem, calc(1rem + ((1cqi - 0.36rem) * 5.8252)), 4rem);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13%, 1fr));
    grid-auto-rows: auto;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

@media screen and (min-width: 1200px) {
    
    .slot-wrapper,
    .calendar {
        min-height: calc(100vh - 90px);
    }
}

@media screen and (min-width: 1700px) {
    
    .slot-wrapper,
    .calendar {
        min-height: calc(100vh - 112px);
    }
}

button.slot {
    appearance: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    border: 2px solid #ffffff;
    border-left-style: dotted;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: clamp(1.25rem, calc(1.25rem + ((1cqi - 0.36rem) * 1.4563)), 2rem);
    line-height: 1;
    color: #9E231B;
    width: clamp(3.75rem, calc(3.75rem + ((1cqi - 0.36rem) * 7.2816)), 7.5rem);
    transition: .25s ease-in-out;
}

    button.slot:not([disabled]):not(.open):hover {
        box-shadow: 8px 0 8px 0 rgba(0, 0, 0, 0.60);
        background-color: rgba(255, 255, 255, 0.4);
    }

    button.slot.open {
        background-color: rgba(0, 0, 0, 0.2);
        color: #ffffff;
        border-style: solid; /* Ändra från "dotted" till "solid" som exempel */
        border-color: rgba(0, 0, 0, 0.4) rgba(255, 255, 255, 0.8) rgba(255, 255, 255, 0.8) rgba(0, 0, 0, 0.4);
        box-shadow: none;
    }


    button.slot:focus-visible {
        outline: 3px solid #9E231B;
        outline-offset: 3px;
        transition: none;
    }

/* Modal */

body.modal-open:has(.calendar-modal.show) {
    transition: none;
    overflow-y: none;
}

body.modal-open:has(.calendar-modal.show) {
    transition: none;
    max-height: unset;
    overflow-y: none;
}

body:has(.calendar-modal) .navbar {
    z-index: 1051;
    background-color: #141414;
}

.modal-backdrop {
    display: none;
}

.calendar-modal {
    padding: 1rem !important;
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    z-index: 1052;
}

    .calendar-modal .modal-header {
        border: none;
        position: absolute;
        width: 100%;
        padding: 20px;
        z-index: 2;
    }

    .calendar-modal .modal-dialog {
        max-width: 1000px;
    }

    .calendar-modal .modal-content {
        background-color: rgba(255,255,255,0.75);
        backdrop-filter: blur(3px);
        border-radius: 3px;
        min-height: 500px;
        container-type: inline-size;
        border: none;
    }

    .calendar-modal .modal-body {
        z-index: 1;
        padding: clamp(1.5rem, 0.981rem + 2.308cqi, 3rem);
    }

    .calendar-modal.fade .modal-dialog {
        transform: translate(0,0) scale(0.8);
    }

    .calendar-modal.show .modal-dialog {
        transform: translate(0,0) scale(1);
    }

    .calendar-modal .btn-close {
        background-size: 20px 20px;
        border-radius: 3px;
    }

        .calendar-modal .btn-close:focus {
            box-shadow: none;
        }

        .calendar-modal .btn-close:focus-visible {
            box-shadow: 0 0 0 3px #9E231B;
            border: none;
            outline: none;
        }

a.slot-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
}

    a.slot-link svg {
        margin-left: 0.25em;
    }

img.slot-image {
    display: block;
}

a.slot-link:has(+ img) {
    margin-bottom: 1.5em;
}

.blog-header {
    height: 84px;
}

@media screen and (min-width: 1200px) {
    
    .blog-header {
        height: 90px;
    }
}

@media screen and (min-width: 1700px) {
    
    .blog-header {
        height: 112px;
    }
}


#chatbase-bubble-button {
    z-index: 500 !important;
}
