@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200..1000&display=swap');

:root {
    --main-color: rgba(25, 102, 255, 1);
    --text-color: rgba(224, 229, 255, 1);
    --block-background: #11123B;
    --block-hover: #09235d;
    --background: rgba(15, 9, 35, 1);
    --subtext-color: rgba(120, 119, 145, 1);
    --bottom-shadow: 0 5px 0 0 rgba(22, 73, 176, 1);

    --title-size: 36px;
    --subtitle-size: 28px;
    --basic-size: 24px;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
}

p,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6,
div,
img,
button,
input,
label,
select,
textarea {
    position: relative;

    color: var(--text-color);

    font-family: "Nunito", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    font-size: var(--basic-size);
    letter-spacing: -.96px;
}

a {
    text-decoration: none;
}

a,
img {
    -webkit-user-drag: none;
}

svg:not(.svg_stroke) {
    fill: var(--text-color);
}

.svg_stroke {
    fill: none;
    stroke: var(--text-color);
}

input,
select,
textarea,
button {
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

html, body {
    background-color: var(--background);
}

body {
    min-height: 100vh;

    background-image: url(/static/assets/background.jpg);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--background);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 8px;
}

/* Basic */

.solid-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;

    background: var(--main-color);
    -webkit-box-shadow: var(--bottom-shadow);
            box-shadow: var(--bottom-shadow);

    border-radius: 8px;
    padding: 15px 25px;

    cursor: pointer;

    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.solid-button:active {
    -webkit-box-shadow: inset 0 0 0 3px rgba(22, 73, 176, 1);
            box-shadow: inset 0 0 0 3px rgba(22, 73, 176, 1);
}

@media (hover: hover) and (pointer: fine) {
    .solid-button:hover {
        -webkit-transform: scale(0.95);
            -ms-transform: scale(0.95);
                transform: scale(0.95);
        -webkit-box-shadow: inset 0 0 0 3px rgba(22, 73, 176, 1);
                box-shadow: inset 0 0 0 3px rgba(22, 73, 176, 1);
    }
}

.solid-button__icon {
    width: var(--basic-size);
    height: var(--basic-size);
}

.solid-button__text {
    font-weight: 800;
}

.border_left:before,
.border_right:before {
    content: "";
    position: absolute;

    background: var(--main-color);

    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);

    width: 5px;
    height: 60%;
    border-radius: 5px;
}

.border_left:before {
    left: -2.5px;
}

.border_right:before {
    right: -2.5px;
}

/* Loading */

#loading {
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: -o-radial-gradient(center, circle, var(--block-background) 0, var(--background) 70%);
    background: radial-gradient(circle at center, var(--block-background) 0, var(--background) 70%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1000;
}

.loading-logo__img {
    width: 150px;
    height: 150px;

    -webkit-animation: ease 3s infinite loading-logo;
            animation: ease 3s infinite loading-logo;
}

@-webkit-keyframes loading-logo {

    0% {
        -webkit-transform: rotate(0) scale(1);
                transform: rotate(0) scale(1);
    }

    12.5% {
        -webkit-transform: rotate(10deg) scale(1.2);
                transform: rotate(10deg) scale(1.2);
    }

    25% {
        -webkit-transform: rotate(15deg) scale(0.8);
                transform: rotate(15deg) scale(0.8);
    }

    37.5% {
        -webkit-transform: rotate(10deg) scale(1.2);
                transform: rotate(10deg) scale(1.2);
    }

    50% {
        -webkit-transform: rotate(0) scale(1);
                transform: rotate(0) scale(1);
    }

    62.5% {
        -webkit-transform: rotate(-10deg) scale(1.2);
                transform: rotate(-10deg) scale(1.2);
    }

    75% {
        -webkit-transform: rotate(-15deg) scale(0.8);
                transform: rotate(-15deg) scale(0.8);
    }

    87.5% {
        -webkit-transform: rotate(-10deg) scale(1.2);
                transform: rotate(-10deg) scale(1.2);
    }

    100% {
        -webkit-transform: rotate(0) scale(1);
                transform: rotate(0) scale(1);
    }

}

@keyframes loading-logo {

    0% {
        -webkit-transform: rotate(0) scale(1);
                transform: rotate(0) scale(1);
    }

    12.5% {
        -webkit-transform: rotate(10deg) scale(1.2);
                transform: rotate(10deg) scale(1.2);
    }

    25% {
        -webkit-transform: rotate(15deg) scale(0.8);
                transform: rotate(15deg) scale(0.8);
    }

    37.5% {
        -webkit-transform: rotate(10deg) scale(1.2);
                transform: rotate(10deg) scale(1.2);
    }

    50% {
        -webkit-transform: rotate(0) scale(1);
                transform: rotate(0) scale(1);
    }

    62.5% {
        -webkit-transform: rotate(-10deg) scale(1.2);
                transform: rotate(-10deg) scale(1.2);
    }

    75% {
        -webkit-transform: rotate(-15deg) scale(0.8);
                transform: rotate(-15deg) scale(0.8);
    }

    87.5% {
        -webkit-transform: rotate(-10deg) scale(1.2);
                transform: rotate(-10deg) scale(1.2);
    }

    100% {
        -webkit-transform: rotate(0) scale(1);
                transform: rotate(0) scale(1);
    }

}

/* Main */

main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;

    padding: 100px 0;

    min-height: calc(100vh - 200px);
}

/* Messages */

.messages {
    position: fixed;
    bottom: 30px;
    right: 30px;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    gap: 25px;

    list-style: none;

    z-index: 999
}

.message {
    position: relative;

    background: var(--block-background);

    padding: 35px 13px 10px 35px;

    border-radius: 12px;
    border: 1px solid var(--main-color);

    -webkit-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.2);
}

.message_success {
    border: 3px solid #00FF85;
}

.message_error {
    border: 3px solid #B63F4B;
}

.message__close {
    position: absolute;

    width: 18px;
    height: 18px;

    top: 10px;
    right: 10px;

    cursor: pointer;
}

.message__text-block {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;

    max-width: 500px;
    max-height: 300px;

    overflow-y: auto;
    overflow-x: hidden;
}

.message__text-block::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.message__text-block::-webkit-scrollbar-track {
    border-radius: 8px;
    background: var(--background);
    border: 1px solid var(--main-color);
}

.message__text-block::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    background-clip: content-box;
    background-color: var(--main-color);
    border-radius: 8px;
}

.message__text {
    word-break: break-word;
    white-space: pre-line;
    font-weight: 500;

    padding: 0 20px 25px 0;
}

/* Tippy */

.tippy-box {
    padding: 5px;

    -webkit-box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.2)
}

.tippy-content {
    font-size: 18px;
}

@media all and (max-width: 1520px) {

    :root {
        --title-size: 32px;
        --subtitle-size: 24px;
        --basic-size: 21px;
    }

    main {
        padding: 10vh 0;
        min-height: 80vh;
    }

}

@media all and (max-width: 1200px) {

    :root {
        --title-size: 28px;
        --subtitle-size: 22px;
        --basic-size: 19px;
    }

}

@media all and (max-width: 950px) {

    body {
        background-position: right center;
    }

}

@media all and (max-width: 600px) {

    .loading-logo__img {
        width: 20vw;
        height: 20vw;
    }

    .messages {
        width: 90%;
        bottom: 3vh;
        right: 5%;
    }

    .message {
        max-width: 100%;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
    }

    .message__text-block {
        max-width: 100%;
    }

}

@media all and (max-width: 440px) {

    :root {
        --title-size: 27px;
        --subtitle-size: 21px;
        --basic-size: 18px;
    }

    main {
        padding: 5vh 0;
        min-height: 90vh;
    }

}