* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow: hidden;
    height: 100%;
}

#loader {
    display: block; /* Ensure the loader is visible initially */
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
    z-index: 9999999; /* Ensure it appears above everything */
}

.skeleton {
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.763) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

:root {
    --navbarHeight: 80px;
    --topSliderHeight: 30px;
    --mobFooterHeight: 64px;
}

#loader header {
    position: fixed !important;
    inset: 0 !important;
    height: calc(var(--navbarHeight) + var(--topSliderHeight)) !important;
    width: 100% !important;
    background-color: #ffffff !important;
    z-index: 1000009 !important;
}

#loader main {
    padding-top: calc(var(--navbarHeight) + var(--topSliderHeight));
    height: calc(100vh - 90px - 70px);
}

.skeleton-header {
    height: var(--navbarHeight);
    padding: 10px;
}

.skeleton-topSlider {
    width: 100%;
    height: 30px;
}

.skeleton-location {
    width: 450px;
    height: 100%;
}

.skeleton-logo {
    width: 100px;
    height: 100%;
    max-height: 70px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.skeleton-search {
    width: 220px;
    height: 100%;
}

#loader footer {
    display: none;
    /* height: var(--mobFooterHeight); */
    padding: 8px;
    position: fixed;
    bottom: 0;
    z-index: 9;
    background-color: #ffffff;
    width: 100%;

    .skeleton-nav-container {
        display: flex;
        justify-content: space-between;

        .logo {
            width: 70px;
            height: 54px;
        }

        .food {
            width: 50px;
            height: 54px;
        }

        .menu {
            width: 50px;
            height: 54px;
        }
    }
}

/* media queries */
@media (max-width: 1023px) {
    :root {
        --navbarHeight: 60px;
        --topSliderHeight: 30px;
    }

    .skeleton-header {
        max-height: var(--navbarHeight);
    }

    .skeleton-location {
        max-width: 180px;
    }

    .skeleton-logo {
        display: none;
    }

    .skeleton-search {
        max-width: var(--navbarHeight);
    }

    footer {
        display: block;
    }
}
