html,
body {
    height: 100%;
    width: 100%;
    /* max-width: 480px; */
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background-color: var(--background-color-light);
    color: var(--color-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    position: fixed;
    bottom: 5%;
    left: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    color: #000; /* Цвет текста */
  }

.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    /* font-size: 1.5em; */
}

@media (prefers-color-scheme: dark) {
    .spinner::after {
        content: "";
    width: 48px;
    height: 48px;
    border: 3px solid var(--background-color-dark);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    }
}

@media (prefers-color-scheme: light) {
    .spinner::after {
        content: "";
    width: 48px;
    height: 48px;
    border: 3px solid var(--background-color-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    }
}

/* Spinner animation */  
@keyframes spin {
    to {
        transform: rotate(360deg);
        --webkit-transform: rotate(360deg);
    }
}

/* Credits: https://tobiasahlin.com/spinkit/ */
/* Spinner animation styles */

.sk-chase {
    width: 40px;
    height: 40px;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: #66D7D1;
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) {
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2) {
    animation-delay: -1.0s;
}

.sk-chase-dot:nth-child(3) {
    animation-delay: -0.9s;
}

.sk-chase-dot:nth-child(4) {
    animation-delay: -0.8s;
}

.sk-chase-dot:nth-child(5) {
    animation-delay: -0.7s;
}

.sk-chase-dot:nth-child(6) {
    animation-delay: -0.6s;
}

.sk-chase-dot:nth-child(1):before {
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2):before {
    animation-delay: -1.0s;
}

.sk-chase-dot:nth-child(3):before {
    animation-delay: -0.9s;
}

.sk-chase-dot:nth-child(4):before {
    animation-delay: -0.8s;
}

.sk-chase-dot:nth-child(5):before {
    animation-delay: -0.7s;
}

.sk-chase-dot:nth-child(6):before {
    animation-delay: -0.6s;
}

@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {
    80%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }
    100%,
    0% {
        transform: scale(1.0);
    }
}