﻿:root {
    --width: 150px;
    --height: 150px;
}


.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 25%;
    left: 50%;
    z-index: 9999999;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: inline-block;
    border-top: 6px solid red;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border-left: 6px solid black;
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}


/*Escritorio*/
@media (min-width: 1199.98px) {
    .loader {
        
        top: 30%;
        left: 45%;
        z-index: 9999999;
        width: var(--width);
        height: var(--height);
        border-radius: 50%;
        display: inline-block;
        border-top: 6px solid red;
        border-right: 4px solid transparent;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }
    .loader::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 0;
        top: 0;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        border-left: 6px solid black;
        border-bottom: 4px solid transparent;
        animation: rotation 0.5s linear infinite reverse;
    }
}


/*Tablet*/
/*Portrait*/
@media (min-width: 576px) and (max-width: 991.98px) and (orientation:portrait) {
    .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 40%;
        z-index: 9999999;
        width: var(--width);
        height: var(--height);
        border-radius: 50%;
        display: inline-block;
        border-top: 6px solid red;
        border-right: 4px solid transparent;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

        .loader::after {
            content: '';
            box-sizing: border-box;
            position: absolute;
            left: 0;
            top: 0;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border-left: 6px solid black;
            border-bottom: 4px solid transparent;
            animation: rotation 0.5s linear infinite reverse;
        }
}

/*landscape*/
@media (min0-width: 991.98px) and (max-width: 1199.98px)and (orientation:landscape) {
    .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 25%;
        left: 45%;
        z-index: 9999999;
        width: var(--width);
        height: var(--height);
        border-radius: 50%;
        display: inline-block;
        border-top: 6px solid red;
        border-right: 4px solid transparent;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

        .loader::after {
            content: '';
            box-sizing: border-box;
            position: absolute;
            left: 0;
            top: 0;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border-left: 6px solid black;
            border-bottom: 4px solid transparent;
            animation: rotation 0.5s linear infinite reverse;
        }
}
/*fin tablet*/

/*movil*/
/*Portrait*/
/*Default*/
@media (max-width: 575.98px)and (orientation:portrait) {

    .loader {
     
        top: 30%;
        left: 35%;
        z-index: 9999999;
        width: var(--width);
        height: var(--height);
        border-radius: 50%;
        display: inline-block;
        border-top: 6px solid red;
        border-right: 4px solid transparent;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

        .loader::after {
            content: '';
            box-sizing: border-box;
            position: absolute;
            left: 0px;
            top: 0;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border-left: 6px solid black;
            border-bottom: 4px solid transparent;
            animation: rotation 0.5s linear infinite reverse;
        }
}
/*landscape*/
@media (min-width: 576px) and (max-width: 991.98px) and (orientation:landscape) {
    .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 25%;
        left: 45%;
        z-index: 9999999;
        width: var(--width);
        height: var(--height);
        border-radius: 50%;
        display: inline-block;
        border-top: 6px solid red;
        border-right: 4px solid transparent;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

        .loader::after {
            content: '';
            box-sizing: border-box;
            position: absolute;
            left: 0;
            top: 0;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border-left: 6px solid black;
            border-bottom: 4px solid transparent;
            animation: rotation 0.5s linear infinite reverse;
        }
}
/*fin movil*/


@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
