﻿#loadinggif {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    background: rgba(255, 255, 255, 0.82);
}

#loadinggif .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    background: transparent;
    border: 2px solid #e3e4dc;
    border-radius: 50%;
    z-index: 1;
}

#loadinggif .loader:before,
#loadinggif .loader:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    display: block;
    width: 164px;
    height: 164px;
    box-sizing: border-box;
    border: 2px solid;
    border-radius: 50%;
}

#loadinggif .loader:before {
    z-index: 10;
    border-color: #898a86;
    clip: rect(0, 35px, 35px, 0);
    animation: spinner-rotate 3s linear infinite;
}

#loadinggif .loader:after {
    z-index: 9;
    border-color: #c1bebb;
    clip: rect(0, 164px, 150px, 0);
    animation: spinner-rotate-secondary 3s linear infinite;
}

#loadinggif .hexagon-container {
    position: relative;
    top: 33px;
    left: 41px;
    width: 84px;
    height: 95px;
    border-radius: 50%;
}

#loadinggif .hexagon {
    position: absolute;
    width: 40px;
    height: 23px;
    background-color: #556c82;
    list-style: none;
}

#loadinggif .hexagon:before,
#loadinggif .hexagon:after {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    height: 0;
    border-right: 20px solid transparent;
    border-left: 20px solid transparent;
}

#loadinggif .hexagon:before {
    top: -11px;
    border-bottom: 11.5px solid #556c82;
}

#loadinggif .hexagon:after {
    top: 23px;
    border-top: 11.5px solid #556c82;
}

#loadinggif .hex_1 { top: 0; left: 0; animation-delay: .21429s; }
#loadinggif .hex_2 { top: 0; left: 42px; animation-delay: .42857s; }
#loadinggif .hex_3 { top: 36px; left: 63px; animation-delay: .64286s; }
#loadinggif .hex_4 { top: 72px; left: 42px; animation-delay: .85714s; }
#loadinggif .hex_5 { top: 72px; left: 0; animation-delay: 1.07143s; }
#loadinggif .hex_6 { top: 36px; left: -21px; animation-delay: 1.28571s; }
#loadinggif .hex_7 { top: 36px; left: 21px; animation-delay: 1.5s; }

#loadinggif .hexagon.hex_1,
#loadinggif .hexagon.hex_2,
#loadinggif .hexagon.hex_3,
#loadinggif .hexagon.hex_4,
#loadinggif .hexagon.hex_5,
#loadinggif .hexagon.hex_6,
#loadinggif .hexagon.hex_7 {
    animation-name: spinner-hexagon;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

#loadinggif .loader h3 {
    position: absolute !important;
    top: 190px !important;
    left: 0;
    width: 160px;
    margin: 0;
    color: #556c82;
    text-align: center;
}

@keyframes spinner-hexagon {
    0%, 65% { transform: scale(1); opacity: 1; }
    15%, 50% { transform: scale(.5); opacity: 0; }
}

@keyframes spinner-rotate {
    0% { transform: rotate(0); clip: rect(0, 35px, 35px, 0); }
    50% { clip: rect(0, 40px, 40px, 0); }
    100% { transform: rotate(360deg); clip: rect(0, 35px, 35px, 0); }
}

@keyframes spinner-rotate-secondary {
    0% { transform: rotate(0deg); clip: rect(0, 164px, 150px, 0); }
    50% { transform: rotate(360deg); clip: rect(0, 164px, 0, 0); }
    100% { transform: rotate(720deg); clip: rect(0, 164px, 150px, 0); }
}
