* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Monserrat", sans-serif;
    background-color: #121212;
    color: #eeeeee;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form {
    color: #555;
    display: flex;
    padding: 2px;
    border: 1px solid currentColor;
    border-radius: 5px;
    margin: 10px 0;
}

input[type="search"] {
    border: none;
    background: transparent;
    margin: 0;
    padding: 7px 8px;
    font-size: 14px;
    color: #bbb;
    border: 1px solid transparent;
    border-radius: inherit;
}

input[type="search"]::placeholder {
    color: #bbb;
}

button[type="submit"] {
    text-indent: -999px;
    overflow: hidden;
    width: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: transparent url("/img/icons/search.svg") no-repeat center;
    cursor: pointer;
    opacity: 0.7;
}

button[type="submit"]:hover {
    opacity: 1;
}

input[type="search"]:focus {
    outline: none;
}

form:has(input[type="search"]:focus) {
    box-shadow: 0 0 3px 0 #1183d6;
    border-color: #1183d6;
    outline: none;
}

.error-text {
    color: #ec5d5e;
    font-size: 12px;
    margin-left: 12px;
}

.data {
    margin-top: 5px;
    line-height: 1.5;
    text-align: left;
}

.back-button {
    position: absolute;
    left: 20px;
    top: 20px;
    line-height: 0;
}

.back-button object {
    pointer-events: none;
    width: 1.5rem;
    height: 1.5rem;
}

.statistics {
    position: relative;
    width: 100%;
    padding-left: 12px;
}

.loader-wrapper {
    display: flex;
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 1000;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    justify-content: center;
    align-items: center;
    background-color: #121212;
}

.loader {
    display: none;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid #ddd;
    animation: l20-1 0.8s infinite linear alternate, l20-2 1.6s infinite linear;
}

body.loading .loader {
    display: block;
}

body.loading .loader-wrapper {
    display: flex;
}

body.loaded .loader-wrapper {
    display: none;
}

@keyframes l20-1 {
    0% {
        clip-path: polygon(
            50% 50%,
            0 0,
            50% 0%,
            50% 0%,
            50% 0%,
            50% 0%,
            50% 0%
        );
    }

    12.5% {
        clip-path: polygon(
            50% 50%,
            0 0,
            50% 0%,
            100% 0%,
            100% 0%,
            100% 0%,
            100% 0%
        );
    }

    25% {
        clip-path: polygon(
            50% 50%,
            0 0,
            50% 0%,
            100% 0%,
            100% 100%,
            100% 100%,
            100% 100%
        );
    }

    50% {
        clip-path: polygon(
            50% 50%,
            0 0,
            50% 0%,
            100% 0%,
            100% 100%,
            50% 100%,
            0% 100%
        );
    }

    62.5% {
        clip-path: polygon(
            50% 50%,
            100% 0,
            100% 0%,
            100% 0%,
            100% 100%,
            50% 100%,
            0% 100%
        );
    }

    75% {
        clip-path: polygon(
            50% 50%,
            100% 100%,
            100% 100%,
            100% 100%,
            100% 100%,
            50% 100%,
            0% 100%
        );
    }

    100% {
        clip-path: polygon(
            50% 50%,
            50% 100%,
            50% 100%,
            50% 100%,
            50% 100%,
            50% 100%,
            0% 100%
        );
    }
}

@keyframes l20-2 {
    0% {
        transform: scaleY(1) rotate(0deg);
    }

    49.99% {
        transform: scaleY(1) rotate(135deg);
    }

    50% {
        transform: scaleY(-1) rotate(0deg);
    }

    100% {
        transform: scaleY(-1) rotate(-135deg);
    }
}
