@layer base, demo;
@import url(https://fonts.bunny.net/css?family=abel:400);

.hidden-checkbox {
    display: none;
    /* Hides the actual checkbox */
}

.toggle-button {
    cursor: pointer;
    padding: 5px 10px;
    display: inline-block;
}

.toggled-content {
    display: none;
    /* Hidden by default */
    padding: 10px;
}

.hidden-checkbox:checked+.toggled-content {
    display: block;
    /* Shows the div when the checkbox is checked */
}

main>.container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer>.container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.button-29 {
    align-items: center;
    appearance: none;
    background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%);
    border: 0;
    border-radius: 6px;
    box-shadow: rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, rgba(58, 65, 111, .5) 0 -3px 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: "JetBrains Mono", monospace;
    height: 48px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow, transform;
    font-size: 18px;
}

.button-29:focus {
    box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
}

.button-29:hover {
    box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
    transform: translateY(-2px);
}

.button-29:active {
    box-shadow: #3c4fe0 0 3px 7px inset;
    transform: translateY(2px);
}

div.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

div.gallery-item {
    text-align: center;
    margin: 5px;
    border: 1px solid #ccc;
    width: calc(25% - 20px);
}

div.gallery-item:hover {
    border: 1px solid #777;
}

div.gallery-item img {
    width: auto;
    max-height: 200px;
}

div.gallery-item div.desc {
    padding: 15px;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    div.gallery-item {
        width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 480px) {
    div.gallery-item {
        width: calc(100% - 20px);
    }
}

@layer demo {
    .carousel {
        --items: 25;
        --carousel-duration: 120s;

        @media (width > 600px) {
            --carousel-duration: 100s;
        }

        --carousel-width: min(80vw,
            1200px);
        /* note - it will "break" if it gets too wide and there aren't enough items */
        --carousel-item-width: 280px;
        --carousel-item-height: 450px;
        --carousel-item-gap: 2rem;

        --clr-cta: rgb(0, 132, 209);

        position: relative;
        width: var(--carousel-width);
        height: var(--carousel-item-height);
        overflow: clip;

        &[mask] {
            /* fade out on sides */
            mask-image: linear-gradient(to right,
                    transparent,
                    black 10% 90%,
                    transparent);
        }

        &[reverse]>article {
            animation-direction: reverse;
        }

        /* hover pauses animation */
        &:hover>article {
            animation-play-state: paused;
        }
    }

    .carousel>article {
        position: absolute;
        top: 0;
        left: calc(100% + var(--carousel-item-gap));
        width: var(--carousel-item-width);
        height: var(--carousel-item-height);
        display: grid;
        grid-template-rows: 200px auto 1fr auto;
        gap: 0.25rem;
        border: 1px solid light-dark(rgba(0 0 0 / 0.25), rgba(255 255 255 / 0.15));
        text-align: center;
        padding-block-end: 1rem;
        border-radius: 10px;
        background: light-dark(white, rgba(255 255 255 / 0.05));
        /* color: light-dark(rgb(49, 65, 88), white); */

        /* animation */
        will-change: transform;
        animation-name: marquee;
        animation-duration: var(--carousel-duration);
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-delay: calc(var(--carousel-duration) / var(--items) * 1 * var(--i) * -1);

        &:nth-child(1) {
            --i: 0;
        }

        &:nth-child(2) {
            --i: 1;
        }

        &:nth-child(3) {
            --i: 2;
        }

        &:nth-child(4) {
            --i: 3;
        }

        &:nth-child(5) {
            --i: 4;
        }

        &:nth-child(6) {
            --i: 5;
        }

        &:nth-child(7) {
            --i: 6;
        }

        &:nth-child(8) {
            --i: 7;
        }

        &:nth-child(9) {
            --i: 8;
        }

        &:nth-child(10) {
            --i: 9;
        }

        &:nth-child(11) {
            --i: 10;
        }

        &:nth-child(12) {
            --i: 11;
        }

        &:nth-child(13) {
            --i: 12;
        }

        &:nth-child(14) {
            --i: 13;
        }

        &:nth-child(15) {
            --i: 14;
        }

        &:nth-child(16) {
            --i: 15;
        }

        &:nth-child(17) {
            --i: 16;
        }

        &:nth-child(18) {
            --i: 17;
        }

        &:nth-child(19) {
            --i: 18;
        }

        &:nth-child(20) {
            --i: 19;
        }

        &:nth-child(21) {
            --i: 20;
        }

        &:nth-child(22) {
            --i: 21;
        }

        &:nth-child(23) {
            --i: 22;
        }

        &:nth-child(24) {
            --i: 23;
        }

        &:nth-child(25) {
            --i: 24;
        }
    }

    .carousel img {
        width: 100%;
        height: 100%;
        object-fit: contain;

        border-radius: 10px 10px 0 0;
    }

    .carousel>article>*:not(img) {
        padding: 0 1rem;
    }

    .carousel>article>div {
        grid-row: span 2;
        display: grid;
        grid-template-rows: subgrid;
        font-size: 0.8rem;
    }

    .carousel>article h2 {
        font-size: 1.2rem;
        font-weight: 300;
        padding-block: 0.75rem 0.25rem;
        margin: 0;
    }

    .carousel>article p {
        margin: 0;
    }

    .carousel>article a {
        text-decoration: none;
        border: 1px solid var(--clr-cta);
        color: light-dark(var(--clr-cta), white);
        border-radius: 3px;
        padding: 0.25rem 0.5rem;
        place-self: center;
        transition: 150ms ease-in-out;

        &:hover,
        &:focus-visible {
            background-color: var(--clr-cta);
            color: white;
            outline: none;
        }
    }

    @keyframes marquee {
        100% {
            transform: translateX(calc((var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) * -1));
        }
    }
}

/* From Uiverse.io by Yaya12085 */
.task {
    position: relative;
    color: #2e2e2f;
    cursor: move;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: rgb(0 90 255 / 76%) 0px 2px 8px 0px;
    margin-bottom: 1rem;
    border: 3px dashed transparent;
}

.task:hover {
    box-shadow: rgba(99, 99, 99, 0.3) 0px 2px 8px 0px;
    border-color: rgba(162, 179, 207, 0.2) !important;
}

.task p {
    font-size: 15px;
    margin: 1.2rem 0;
}

.tag {
    border-radius: 100px;
    padding: 4px 13px;
    font-size: 12px;
    color: #ffffff;
    background-color: #1389eb;
}

.tags {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.options {
    background: transparent;
    border: 0;
    color: #c4cad3;
    font-size: 17px;
}

.options svg {
    fill: #9fa4aa;
    width: 20px;
}

.stats {
    position: relative;
    width: 100%;
    color: #9fa4aa;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats div {
    margin-right: 1rem;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.stats svg {
    margin-right: 5px;
    height: 100%;
    stroke: #9fa4aa;
}

.viewer span {
    height: 30px;
    width: 30px;
    background-color: rgb(28, 117, 219);
    margin-right: -10px;
    border-radius: 50%;
    border: 1px solid #fff;
    display: grid;
    align-items: center;
    text-align: center;
    font-weight: bold;
    color: #fff;
    padding: 2px;
}

.viewer span svg {
    stroke: #fff;
}

.slider {
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.slides {
    width: 500%;
    height: 550px;
    display: flex;
}

.slides input {
    display: none;
}

.slide1 {
    width: 20%;
    transition: 2s;
    background-image: url(Images/Slider1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.slide2 {
    width: 20%;
    transition: 2s;
    background-image: url(Images/Slider2.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.slide3 {
    width: 20%;
    transition: 2s;
    background-image: url(Images/Slider3.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

.slide4 {
    width: 20%;
    transition: 2s;
    background-image: url(Images/Slider4.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

/* Overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 650px;
    top: 0;
    left: 0;
    background-color: #0000009e;
}

/* Content Styling */
.contents {
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contents h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    z-index: 10;
}

.contents h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    z-index: 10;
}

.contents p {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    padding: 30px;
    text-align: center;
    margin-top: -20px;
    z-index: 10;
}

.contents button {
    background: #d30054;
    border: 1px solid #d30054;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 45px;
    z-index: 10;
}

.contents button:hover {
    background: #fff;
    border: 1px solid #ffffff;
    color: #d30054;
    transition: 0.5s;
}

/* CSS for Manual Slide Navigation */
.navigation-manual {
    position: absolute;
    width: 100%;
    margin-top: -40px;
    display: flex;
    justify-content: center;
}

.manual-btn {
    border: 2px solid #ffffff;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}

.manual-btn:not(:last-child) {
    margin-right: 40px;
}

.manual-btn:hover {
    background: #ffffff;
}

#radio1:checked~.first {
    margin-left: 0;
}

#radio2:checked~.first {
    margin-left: -20%;
}

#radio3:checked~.first {
    margin-left: -40%;
}

#radio4:checked~.first {
    margin-left: -60%;
}

/* CSS for Automatic Navigation */
.navigation-auto {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 510px;
}

.navigation-auto div {
    border: 2px solid #ffffff;
    padding: 5px;
    border-radius: 10px;
    transition: 1s;
}

.navigation-auto div:not(:last-child) {
    margin-right: 40px;
}

#radio1:checked~.navigation-auto .auto-bnt1 {
    background: #ffffff;
}

#radio2:checked~.navigation-auto .auto-bnt2 {
    background: #ffffff;
}

#radio3:checked~.navigation-auto .auto-bnt3 {
    background: #ffffff;
}

#radio4:checked~.navigation-auto .auto-bnt4 {
    background: #ffffff;
}

.char {
    font-size: 40px;
    height: 40px;
    animation: an 3s ease-out infinite;
    display: inline-block;
}

@keyframes an {
    from {
        opacity: 0;
        transform: perspective(500px) translate3d(-35px, -40px, -150px) rotate3d(1, -1, 0, 35deg);
    }

    to {
        opacity: 1;
        transform: perspective(500px) translate3d(0, 0, 0);
    }
}

/* general styling */
/* @layer base {
    * {
        box-sizing: border-box;
    }

    :root {
        color-scheme: light dark;

        --bg-dark: rgb(2, 6, 24);
        --bg-light: rgb(229, 229, 229);
        --txt-light: rgb(10, 10, 10);
        --txt-dark: rgb(245, 245, 245);
    }

    body {
        background-color: light-dark(var(--bg-light), var(--bg-dark));
        color: light-dark(var(--txt-light), var(--txt-dark));
        min-height: 100svh;
        margin: 0;
        padding: 1rem;
        font-size: 1rem;
        font-family: "Abel", sans-serif;
        line-height: 1.5;
        display: grid;
        place-items: center;
        gap: 2rem;
    }
} */