/* =========================================================
   KOVIL WEBSITE
   COMMON OM LOADER
========================================================= */

.om-loader {

    position: fixed;

    inset: 0;

    z-index: 999999999;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100vw;

    height: 100vh;

    background:
        radial-gradient(
            circle at center,
            #fffef9 0%,
            #fff7e7 45%,
            #f1dbad 100%
        );

    opacity: 1;

    visibility: visible;

    pointer-events: all;

    transition:
        opacity .75s cubic-bezier(.4,0,.2,1),
        visibility .75s ease;

}


/* Loader hidden */

.om-loader.loaded {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


/* =========================================================
   LOADER CENTER
========================================================= */

.om-loader-inner {

    position: relative;

    width: 140px;

    height: 140px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   OUTER ROTATING RING
========================================================= */

.om-loader-ring {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    border-radius: 50%;

    border:
        2px solid
        rgba(181, 9, 19, .13);

    border-top-color:
        #b50914;

    border-right-color:
        #e5a72a;

    animation:
        omLoaderRotate
        1.25s
        linear
        infinite;

}


/* =========================================================
   INNER RING
========================================================= */

.om-loader-ring-inner {

    position: absolute;

    inset: 12px;

    border-radius: 50%;

    border:
        1px solid
        rgba(229, 167, 42, .55);

    animation:
        omLoaderReverse
        2s
        linear
        infinite;

}


/* =========================================================
   OM CIRCLE
========================================================= */

.om-loader-om {

    position: relative;

    z-index: 5;

    width: 84px;

    height: 84px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #c70b17 0%,
            #a00611 45%,
            #70040a 100%
        );

    color:
        #ffd85a;

    font-family:
        "Noto Sans Tamil",
        "Noto Sans",
        serif;

    font-size: 48px;

    font-weight: 700;

    line-height: 1;

    box-shadow:

        0 12px 38px
        rgba(90, 0, 0, .28),

        0 0 0 5px
        rgba(229, 167, 42, .13),

        0 0 30px
        rgba(229, 167, 42, .14);

    animation:
        omLoaderPulse
        1.8s
        ease-in-out
        infinite;

}


/* =========================================================
   ROTATION
========================================================= */

@keyframes omLoaderRotate {

    0% {

        transform:
            rotate(0deg);

    }

    100% {

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   REVERSE ROTATION
========================================================= */

@keyframes omLoaderReverse {

    0% {

        transform:
            rotate(360deg);

    }

    100% {

        transform:
            rotate(0deg);

    }

}


/* =========================================================
   OM PULSE
========================================================= */

@keyframes omLoaderPulse {

    0%,
    100% {

        transform:
            scale(1);

        box-shadow:

            0 12px 38px
            rgba(90, 0, 0, .28),

            0 0 0 5px
            rgba(229, 167, 42, .13),

            0 0 30px
            rgba(229, 167, 42, .14);

    }

    50% {

        transform:
            scale(1.07);

        box-shadow:

            0 16px 45px
            rgba(90, 0, 0, .32),

            0 0 0 8px
            rgba(229, 167, 42, .10),

            0 0 45px
            rgba(229, 167, 42, .20);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .om-loader-inner {

        width: 112px;

        height: 112px;

    }


    .om-loader-om {

        width: 70px;

        height: 70px;

        font-size: 40px;

    }


    .om-loader-ring-inner {

        inset: 10px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .om-loader-ring,
    .om-loader-ring-inner,
    .om-loader-om {

        animation: none;

    }

}