﻿
.nav-item {
    cursor: pointer;
}

/* HTML: <div class="loader"></div> */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above other content */
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #48c7e9 #0000;
    animation: l16 1s infinite linear;
}

    .loader::before,
    .loader::after {
        content: "";
        grid-area: 1/1;
        margin: 2px;
        border: inherit;
        border-radius: 50%;
    }

    .loader::before {
        border-color: #ef3e58 #ed9d24;
        animation: inherit;
        animation-duration: .5s;
        animation-direction: reverse;
    }

    .loader::after {
        margin: 8px;
    }

@keyframes l16 {
    100% {
        transform: rotate(1turn)
    }
}

.loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: 100px;
    color: #FFF;
    margin: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

    .loading p {
        text-align: center !important;
    }

    .loading span {
        position: absolute;
        height: 15px;
        width: 100px;
        top: 40px;
        overflow: hidden;
    }

        .loading span > i {
            position: absolute;
            height: 11px;
            width: 11px;
            border-radius: 50%;
            -webkit-animation: wait 4s infinite;
            -moz-animation: wait 4s infinite;
            -o-animation: wait 4s infinite;
            animation: wait 4s infinite;
        }

            .loading span > i:nth-of-type(1) {
                left: -28px;
                background: #48c7e9;
            }

            .loading span > i:nth-of-type(2) {
                left: -21px;
                -webkit-animation-delay: 0.2s;
                animation-delay: 0.2s;
                background: #f89f1c;
            }

            .loading span > i:nth-of-type(3) {
                left: -14px;
                -webkit-animation-delay: 0.4s;
                animation-delay: 0.4s;
                background: #ef3e58;
            }

            .loading span > i:nth-of-type(4) {
                left: -7px;
                -webkit-animation-delay: 0.6s;
                animation-delay: 0.6s;
                background: #4489c9;
            }

@-webkit-keyframes wait {
    0% {
        left: -7px
    }

    30% {
        left: 52px
    }

    60% {
        left: 22px
    }

    100% {
        left: 100px
    }
}

@-moz-keyframes wait {
    0% {
        left: -7px
    }

    30% {
        left: 52px
    }

    60% {
        left: 22px
    }

    100% {
        left: 100px
    }
}

@-o-keyframes wait {
    0% {
        left: -7px
    }

    30% {
        left: 52px
    }

    60% {
        left: 22px
    }

    100% {
        left: 100px
    }
}

@keyframes wait {
    0% {
        left: -7px
    }

    30% {
        left: 52px
    }

    60% {
        left: 22px
    }

    100% {
        left: 100px
    }
}

.error_page img {
    width: 100%;
}

@media (min-width: 992px) {
    .error_page img {
        width: 60%;
    }
}


.skeleton-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* max-width: 300px;*/
    padding: 20px;
}

.skeleton-image {
    width: 100%;
    /* height: 180px;*/
    background: #e0e0e0;
    border-radius: 8px;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-text {
    width: 100%;
    height: 20px;
    background: #e0e0e0e0;
    border-radius: 4px;
    animation: shimmer 1.5s infinite linear;
}

    .skeleton-text.short {
        width: 60%;
    }


@keyframes shimmer {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: -100%;
    }
}

.skeleton-image,
.skeleton-text {
    background: linear-gradient( 90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75% );
    background-size: 200% 100%;
}

.main-text h1 {
    text-transform: none !important;
}

.main-text h5 {
    text-transform: none !important;
}
