@import url('https://fonts.googleapis.com/css2?family=Poppins');

.options{
    width: 60%;
    max-height: calc(7 * var(--font-size));
    margin-bottom: var(--font-size);
    margin-left: auto;
    position: relative;
    padding: calc(2 * var(--font-size)) calc(2 * var(--font-size)) var(--font-size);
    font-family: 'Poppins', sans-serif;
    font-size: calc(.36 * var(--font-size));
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-content: space-evenly;
    gap: calc(.4 * var(--font-size));
}

.options::before,
.options::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius:  12% / 18%;
    background-color: rgba(240, 255, 255, 0.829);
    z-index: 1;
    transform: rotate(1deg);
}

.options::before{
    background-color: rgba(240, 255, 255, 0.63);
    transform: rotate(-2deg);
}

.options > *{
    position: relative;
    z-index: 2;
}

.options .message{
    position: absolute;
    top: 1.3em;
    left: 2.5em;
    font-size: 1.5em;
    text-shadow: .03em .03em .1em rgba(37, 37, 37, 0.082);
    color: rgb(53, 53, 53);
}

/*       Custom Checkbox       */
.options .option{
    min-width: 30%;
    user-select: none;
}

.options .option label{
    cursor: pointer;
}

.options .option label input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.options .option label span{
    position: relative;
    display: inline-block;
    padding: .5em 1em;
    background-color: #7a7373;
    color: rgb(184, 184, 184);
    text-shadow: 0 .025em .1em rgba(0, 0, 0, 0.5);
    border-radius: 1em;
    box-shadow: .05em .05em .2em rgba(3, 3, 3, 0.171);
    transition: 0.5s;
    overflow: hidden;
    --shadow-color: rgba(41, 41, 41, 0.466);
}

.options .option label span::before{
    content: '';
    position: absolute;
    display: inline-block;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(240, 255, 255, .1);
}

.options .option label input[type="checkbox"]:checked + span{
    color: white;
    text-shadow: 1px 1px 0 var(--shadow-color),
                -1px 1px 0 var(--shadow-color),
                1px -1px 0 var(--shadow-color),
                -1px -1px 0 var(--shadow-color);
}

.options .option:nth-child(4n) label input[type="checkbox"]:checked + span{
    background-color: rgb(59, 236, 35);
    box-shadow: .1em .1em .3em rgba(94, 235, 28, 0.678);
}
.options .option:nth-child(4n + 1) label input[type="checkbox"]:checked + span{
    background-color: rgb(255, 51, 51);
    box-shadow: .1em .1em .3em rgba(255, 51, 51, 0.678);
}
.options .option:nth-child(4n + 2) label input[type="checkbox"]:checked + span{
    background-color: rgb(0, 183, 255);
    box-shadow: .1em .1em .3em rgba(1, 183, 255, 0.678);
}
.options .option:nth-child(4n + 3) label input[type="checkbox"]:checked + span{
    background-color: rgb(221, 51, 255);
    box-shadow: .1em .1em .3em rgba(190, 51, 255, 0.678);
}

/*       Timeline System       */
.timeline{
    width: 100%;
    --offset: calc(2 * var(--font-size));
    --thickness: calc(.6 * var(--font-size));
    padding: var(--offset);
    position: relative;
}

.timeline .line{
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--offset);
    width: var(--thickness);
    border-radius: calc(0.5 * var(--thickness));
    background-color: var(--highlight-color-lighter);
    box-shadow: inset .1em .2em .5em  0 rgba(255, 255, 255, 0.39),
                inset -0.1em -0.2em .5em  0 rgba(0, 0, 0, 0.192),
                .5em .5em 1em  0 rgba(0, 0, 0, 0.11),
                0 0 0 calc(.5 * var(--thickness)) var(--highlight-color),
                .5em .5em 1em  calc(.5 * var(--thickness)) rgba(0, 0, 0, 0.068);
}

.timeline .line .shadow-wrapper{
    filter: drop-shadow(.5em .5em .5em rgba(0, 0, 0, 0.158));

}

.timeline .line .shadow-wrapper .arrow1,
.timeline .line .shadow-wrapper .arrow2{
    position: absolute;
    top: calc(-2 * var(--font-size));
    --dx: calc(-1.2 * var(--font-size));
    left: var(--dx);
    right: var(--dx);
    --width: calc(var(--thickness) - 2 * var(--dx));
    aspect-ratio: 7 / 8;
    clip-path: polygon(71% 88%, 50% 75%, 29% 88%, 0 100%, 29% 50.5%, 50% 0, 71% 50.5%, 100% 100%);
    background: linear-gradient(115deg, white 20%, var(--highlight-color-lighter) 40%);
}

.timeline .line .shadow-wrapper .arrow1{
    background: linear-gradient(115deg, white 20%, var(--highlight-color) 38%);
    transform: scale(1.5);
}

.events{
    width: 100%;
    height: 100%;
    position: relative;
}

.events .event{
    width: 100%;
    margin-top: calc(4 * var(--font-size));
    position: relative;
}

.events .event:first-child{
    margin-top: 0;
}

.events .event:last-child{
    margin-bottom: 2em;
}

.events .event .event-timepoint-badge{
    position: absolute;
    --width: calc(1.5 * 1.5 * var(--thickness));
    left: calc(0.5 * var(--thickness) - 0.5 * var(--width));
    width: var(--width);
    aspect-ratio: 1 / 1;
    top: calc(50% - 0.5 * var(--width));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(1 * var(--font-size));
    color: white;
    text-shadow: 1px 1px black,
                 -1px 1px black,
                 1px -1px black,
                 -1px -1px black;
    z-index: 100;
    transition: all .3s ease-in;
}

.events .event .event-timepoint-badge::before{
    content: '';
    position: absolute;
    top: calc(-0.75 * var(--thickness));
    right: calc(-0.75 * var(--thickness));
    bottom: calc(-0.75 * var(--thickness));
    left: calc(-0.75 * var(--thickness));
    background-color: var(--highlight-color);
    z-index: -2;
    border-radius: 50%;
}

.events .event .event-timepoint-badge::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--highlight-color-lighter);
    z-index: -1;
    border-radius: 50%;
}

.events .event .event-timepoint-badge::before,
.events .event .event-timepoint-badge::after{
    box-shadow: .2em .2em .3em rgba(0, 0, 0, 0.068),
                0 .5em .3em rgba(0, 0, 0, 0.048),
                inset -.1em -.1em .2em rgba(0, 0, 0, 0.226),
                inset .2em .2em .2em rgba(255, 255, 255, 0.24);
    transition: inherit;
}

.events .event .event-timepoint-badge:hover{
    transform: scale(1.1);
}

.events .event .event-date{
    position: absolute;
    --height: calc(.6 * var(--font-size));
    left: calc(1.6 * var(--font-size));
    top: calc(50% - 0.5 * var(--height));
    bottom: calc(50% - 0.5 * var(--height));
    font-size: calc(.8 * var(--height));
    font-family: 'Poppins', sans-serif;
    color: white;
    text-shadow: .1em .1em .1em rgba(0, 0, 0, 0.116);
    z-index: 2;
    --offset: calc(-0.15 * var(--font-size));
    padding:  calc(.1 * var(--height)) calc(1 * var(--height));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(156, 202, 202, 0.466);
    border-radius: calc(.5 * var(--height));
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-info{
    width: 60%;
    margin-left: auto;
    padding: 1.5em;
    border-radius: 10% / 15%;
    --angle: 1.2deg;
    position: relative;
    transform: rotate(0deg);
}

.event-info::before,
.event-info::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.733);
    border-radius: inherit;
    z-index: -1;
    transform: rotate(calc(-1 * var(--angle)));

}

.event-info::after{
    z-index: -2;
    transform: rotate(calc(2 * var(--angle)));
    background-color: rgba(255, 255, 255, 0.527);
}

.event-info .event-name{
    width: 100%;
    margin-bottom: .5em;
    letter-spacing: .2em;
    text-indent: 2em;
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    --color: var(--highlight-color-lighter);
    --contour-color: var(--highlight-color);
    background: linear-gradient(to top, var(--color), var(--contour-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.event-info .name-link{
    text-decoration: none;
}

@media all and (max-width: 941px){
    .event-info .event-name{
        font-size: calc(0.4 * var(--font-size));
    }
}

.events .event .event-info .event-images{
    width: 100%;
    height: 14em;
    padding: 1em;
    border-radius: .6em;
    border: .2em solid rgb(146, 9, 180);
    display: flex;
    flex-flow: row nowrap;
    gap: 1.5em;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.events .event .event-info .event-images.centered{
    justify-content: center;
}

.events .event .event-info .event-images .event-image-wrapper{
    height: 100%;
}

.events .event .event-info .event-images .event-image-wrapper .event-image{
    height: 100%;
    width: auto;
    display: inline-block;
    border-radius: .4em;
    box-shadow: .2em .2em .3em rgba(0, 0, 0, 0.11);
}

.big-img{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.26);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all .5s ease-out;
    opacity: 1;
}

.big-img .close{
    position: absolute;
    --offset: 3em;
    top: var(--offset);
    right: var(--offset);
    width: 4em;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(.2em .2em .4em rgba(0, 0, 0, 0.082));
    transition: inherit;
}

.big-img .close::before,
.big-img .close::after{
    content: '';
    position: absolute;
    --width: 3em;
    --height: .6em;
    width: var(--width);
    height: var(--height);
    top: calc(50% - 0.5 * var(--height));
    left: calc(50% - 0.5 * var(--width));
    background-color: rgb(41, 41, 41);
    border-radius: calc(0.5 * var(--height));
    transform: rotate(45deg);
    transition: inherit;
}

.big-img .close::after{
    transform: rotate(-45deg);
}

.big-img .close:hover::before,
.big-img .close:hover::after{
    background-color: rgb(97, 97, 97);
    transform: rotate(45deg) scale(1.1);
}

.big-img .close:hover::after{
    transform: rotate(-45deg) scale(1.1);
}

.big-img .big-pic{
    
    width: 70%;
    height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 1001;
}

.hidden{
    opacity: 0;
    visibility: hidden;
}

.cut{
    overflow-y: hidden;
}

.events .empty-category{
    margin-left: calc(5.5 * var(--font-size));
    color: aliceblue;
    font-family: 'Poppins', sans-serif;
    text-shadow: .2em .1em .3em rgba(41, 41, 41, 0.253);
}