body {
    background-color: #333;
    color: #eee;
    font-family: Arial, sans-serif;
}

.main-container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 25rem;
    max-width: 95vw;
    transform: translate(-50%, -50%);
    text-align: center;
}

#loader {
    z-index: 999;
}

#section-saved {
    display: none;
}
#section-error {
    display: none;
}
#section-active {
    display: none;
}
#active-repeat {
    margin-top: 1rem;
}

#location-wait {
    display: none;
}
#cooldown-wait {
    display: none;
}

#err-front {
    display: none;
}
#err-back {
    display: none;
}

#distance-msg {
    font-size: 1.25rem;
}

.mb-half {
    margin-bottom: .5rem;
}

.accuracy-0 {
    color: #f44;
}
.accuracy-1 {
    color: #b4b413;
}
.accuracy-2 {
    color: #4f4;
}

.loader-wrapper {
    display: flex;
    justify-content: center;
}

.btn {
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
.btn:disabled {
    filter: saturate(30%) brightness(70%);
    cursor: not-allowed;
}

#btn-retry {
    background-color: #f44;
    color: #fff;
}
#btn-toggle {
    background-color: #4f4;
    color: #000;
}
#btn-repeat {
    background-color: #265d1f;
    color: #fff;
}
#btn-stop {
    display: none;
    background-color: #5d311f;
    color: #fff;
}

#msg-repeat {
    display: none;
}
#msg-repeat-stopped {
    display: none;
}

.text-red {
    color: #f44;
}
.text-green {
    color: #4f4;
}
.text-big {
    font-size: 1.75rem;
}

.check-icon-green {
    width: 10rem;
    height: 10rem;
    filter: invert(62%) sepia(92%) saturate(494%) hue-rotate(75deg) brightness(94%) contrast(94%);
}

.x-icon-red {
    width: 10rem;
    height: 10rem;
    filter: invert(30%) sepia(97%) saturate(2735%) hue-rotate(337deg) brightness(105%) contrast(91%);
}

.repeat-icon-white {
    width: 1rem;
    height: 1rem;
    filter: invert(100%) brightness(200%);
}
.stop-icon-white {
    width: 1rem;
    height: 1rem;
    filter: invert(100%) brightness(200%);
}


.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

.scan-animation {
  width: 120px;
  height: 60px;
  border-radius: 200px 200px 0 0;
  -webkit-mask: repeating-radial-gradient(farthest-side at bottom ,#0000 0,#000 1px 12%,#0000 calc(12% + 1px) 20%);
  background:
   radial-gradient(farthest-side at bottom,#4aac4c 0 95%,#0000 0) bottom/0% 0% no-repeat
   #ddd;
  animation: l10 2s infinite steps(6);
}

.cooldown-animation {
    width: 40px;
    aspect-ratio: 1;
    --c: linear-gradient(#fff 0 0);
    --r1: radial-gradient(farthest-side at bottom,#fff 93%,#0000);
    --r2: radial-gradient(farthest-side at top   ,#fff 93%,#0000);
    background: 
    var(--c) ,var(--r1),var(--r2),
    var(--c) ,var(--r1),var(--r2),
    var(--c) ,var(--r1),var(--r2);
    background-repeat: no-repeat;
    animation: l2 1s infinite alternate;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}



@keyframes l10 {
    100% {background-size:120% 120%}
}


@keyframes l2 {
  0%,25% {
    background-size: 8px 0,8px 4px,8px 4px,8px 0,8px 4px,8px 4px,8px 0,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(50% - 2px),0 calc(50% + 2px),50% 50%,50% calc(50% - 2px),50% calc(50% + 2px),100% 50%,100% calc(50% - 2px),100% calc(50% + 2px);
 }
 50% {
    background-size: 8px 100%,8px 4px,8px 4px,8px 0,8px 4px,8px 4px,8px 0,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(50% - 2px),50% calc(50% + 2px),100% 50%,100% calc(50% - 2px),100% calc(50% + 2px);
 }
 75% {
    background-size: 8px 100%,8px 4px,8px 4px,8px 100%,8px 4px,8px 4px,8px 0,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(0% - 2px),50% calc(100% + 2px),100% 50%,100% calc(50% - 2px),100% calc(50% + 2px);
 }
 95%,100% {
    background-size: 8px 100%,8px 4px, 8px 4px,8px 100%,8px 4px,8px 4px,8px 100%,8px 4px,8px 4px;
    background-position: 0 50%,0 calc(0% - 2px),0 calc(100% + 2px),50% 50%,50% calc(0% - 2px),50% calc(100% + 2px),100% 50%,100% calc(0% - 2px),100% calc(100% + 2px);
 }
}