:root {
    --font-size: 16px;
}

html {
    font-size: var(--font-size);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #fff;
    margin: 0;
    position: relative;
    min-height: 100vh;
    background-color: #151719;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: calc(var(--font-size) * 28);
}

header {
    width: 100%;
    background-size: auto;
    border-bottom: 1px solid rgba(49, 53, 56, 1);
}

.header {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin: 2rem auto 1.7rem;
    max-width: 80rem;
    width: calc(100% - 4rem);
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: calc(var(--font-size) * 4);
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

nav#auth {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 1rem;
}

nav#auth h2 {
    margin: 0;
}

nav#auth a,
#pay-buttons a,
#recommended a {
    text-decoration: none;
}

.user-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.user-buttons button {
    min-width: 7rem;
}

main {
    flex: 1 0 auto;
    display: flex;
    font-size: calc(var(--font-size) * 1.3);
    gap: 7rem;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 0 2vw 4rem;
    min-height: 76vh;
    margin-bottom: 2rem;
    scroll-margin-top: 1rem;
}

footer {
    width: 100%;
    background-color: #0a0b0c;
}

.footer {
    text-align: center;
    padding: 3em 0;
    margin: 0 2rem;
    color: #9ca3af;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    opacity: .8;
}

.racoon-container {
    margin: 1rem 0;
    height: 100px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

img#racoon {
    width: 96px;
    height: 96px;
}

img#racoon.playing {
  animation: pulse .5s infinite;
}


.logo svg {
    width: .74em;
}

p {
    margin: 0;
}

button {
    color: #000;
    outline: 2px solid transparent;
    outline-offset: 2px;
    outline-style: solid;
    background-color: #53fc17;
    border-radius: .25rem;
    padding: 0 1rem;
    font-size: calc(var(--font-size) * 1.3);
    min-width: 12rem;
    width: fit-content;
    height: 2.8rem;
    cursor: pointer;
    border: 0;
    font-family: 'Roboto', Segoe UI, sans-serif;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

button,
.logo {
    transition: cubic-bezier(.4, 0, .2, 1) .15s;
}

button.button-gray {
    background-color: #323436;
    color: #fff;
}

button.button-gray:focus-visible {
    outline-color: #aab0b6;
}

button.button-gray:hover {
    background-color: hsla(210, 8%, 69%, .4);
}

button svg {
    height: calc(var(--font-size) * 1.3);
}

button:focus-visible {
    outline-color: #bafea3;
}

button:hover {
    background-color: rgba(66, 202, 19, 1);
}

button:active,
.logo:active,
nav#auth a:active,
.channel_sugg:active,
.account_sugg:active,
.mini-order:active {
    transform: scaleX(0.98) scaleY(0.98);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

.loader-spin {
    animation: spin 1s linear infinite;
    width: .8em;
    height: .8em;
    border-radius: 50%;
    border-color: #081902;
    border-right-color: transparent !important;
    border-style: solid;
    border-width: 3px;
    display: none;
}

.a-logo {
    color: inherit;
    text-decoration: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

input,
textarea {
    transition: cubic-bezier(.4, 0, .2, 1) .2s;
    border: .2rem solid rgba(73, 77, 85, 1);
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-radius: .25rem;
    background-color: rgba(20, 21, 23, 1);
    color: #fff;
    padding: 0 1rem;
    font-size: calc(var(--font-size) * 1.3);
    height: 3rem;
    font-family: 'Roboto', Segoe UI, sans-serif;
    min-width: 17rem;
}

textarea {
    padding: 1rem;
}

input:hover,
textarea:hover {
    border-color: rgba(170, 176, 182, 1);
}

input:focus-visible,
textarea:focus-visible {
    border-color: #fff !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    opacity: 1;
    color: #9ca3af78;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: #9ca3af78;
}

.hidden {
    display: none;
}

p.error-input {
    color: #ff0000;
    font-size: .8em;
}

input.invalid {
    border-color: #ff0000;
}

#form-error {
    color: #ff0000;
    text-align: center;
}

form.htmx-request p#continue-text {
    display: none;
}

form.htmx-request .loader-spin {
    display: block;
}

#buy-block {
    align-items: center;
    min-width: 24rem;
}

#buy-block form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

#buy-block button {
    align-self: center;
}

.suggs {
    padding-left: .1rem;
    padding-top: 0.2rem;
    display: flex;
    flex-direction: row;
    gap: .5rem;
    overflow: auto;
    max-width: 23.9rem;
}

.suggs::-webkit-scrollbar {
    display: none;
}

.channel_sugg:hover,
.account_sugg:hover {
    color: #ffffff;
}

.channel_sugg,
.account_sugg {
    width: fit-content;
    padding: .5rem .8rem;
    font-size: .9rem;
    background: #323437;
    border-radius: .5rem;
    color: #aab0b6;
    transition: cubic-bezier(.4, 0, .2, 1) .15s;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

h2 {
    font-weight: 400;
    margin: 2rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

h2 svg {
    height: 1em;
    width: 1em;
    margin-right: .3em;
}

hr {
    border: 1px solid rgba(49, 53, 56, 1);
    margin: 1rem 0;
    width: 100%;
}

.vhr {
    width: 2px;
    height: 100%;
    background-color: #000;
    margin-left: .4em;
    margin-right: .3em;
}

.form-group {
    display: flex;
    flex-direction: column;
    max-width: 30rem;
    gap: .5rem;
}

label {
    margin-left: .2rem;
    font-size: calc(var(--font-size) * 1.5);
}

section {
    height: fit-content;
    max-width: 48rem;
}

a {
    color: inherit;
}

@keyframes indeterminate {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -150%;
    }

    100% {
        left: 100%;
    }
}

.progress-container {
    width: 100%;
    height: .3rem;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #53fc1726;
    transition: cubic-bezier(.4, 0, .2, 1) .15s;
    opacity: var(--progress-opacity, 1);
}

.progress-bar {
    position: absolute;
    height: 100%;
    width: var(--progress-width, 100%);
    background-color: #53fc17;
    animation: indeterminate 1.7s infinite ease-in-out;
}

.progress-bar::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: inherit;
    animation: indeterminate-short 1.7s infinite ease-in-out;
}

.progress-bar.hide-before::before {
    display: none;
}

.progress-bar.hide-before {
    animation: none;
    transition: cubic-bezier(.4, 0, .2, 1) .15s;
}

#order-block .progress-container {
    position: relative;
    border-radius: .25rem;
    margin: 1rem 0;
}

.dollar {
    font-size: 2.5em;
    font-weight: bold;
    width: fit-content;
    height: fit-content;
}

.mini-usernames img {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 3px rgb(50 52 54) solid;
    margin-right: .3em;
}

.mini-usernames {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .2em;
    position: relative;
}

.mini-order,
.mini-topup {
    display: flex;
    flex-direction: row;
    padding: .6rem 1rem;
    padding-top: 1.1rem;
    justify-content: space-between;
    user-select: none;
    cursor: pointer;
    border-radius: .25rem;
    transition: cubic-bezier(.4, 0, .2, 1) .15s;
    background-color: #31353854;
    margin: 0;
    position: relative;
    overflow: hidden;
    align-items: center;
    text-decoration: none;
    min-width: 21.5rem;
}

.mini-order:hover,
.mini-topup:hover {
    background-color: #313538;
}

.mini-status {
    width: 2.5em;
    height: 100%;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #53fc17;
}

.mini-topup .mini-status {
    height: 3rem;
}

.mini-usernames p {
    padding: 0;
}

.mini-channel {
    z-index: 1;
}

.mini-topup {
    padding-top: .6rem;
}

h2.mini-amount {
    margin: 0;
    font-size: 1em;
}

#order-block {
    max-width: 100rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.card #kick-frame {
    position: absolute;
    width: auto;
    height: 15rem;
    margin-top: .7rem;
    opacity: .5;
}

.card #avatar {
    width: 16rem;
    height: 16rem;
    border-radius: 0.25rem;
    border: 4px rgb(50 52 54) solid;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    font-size: calc(var(--font-size) * 1.6);
}

.card svg {
    margin-right: .1em;
}

.card p,
.mini-usernames p {
    display: flex;
    gap: .2em;
    padding-right: .5em;
    align-items: center;
}

.card span,
.mini-usernames span {
    overflow: hidden;
    max-width: 55vw;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1em;
}

.mini-usernames span {
    max-width: 11rem;
    font-size: .9em;
}

#recommended .card {
    flex-direction: row;
    padding-left: 1rem;
    margin-top: 0.5em;
    font-size: calc(var(--font-size)* 1.3);
}

#recommended .card.card--first {
    font-size: calc(var(--font-size) * 1.6);
}

#recommended .card #avatar {
    width: 2em;
    height: 2em;
    border-radius: 50%;
}

#recommended .card #kick-frame {
    display: none;
}

#order-card {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 1rem 2rem;
    max-width: 100rem;
}

#order-card .form-group {
    gap: 1rem;
    border-radius: .25rem;
}

#order-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.order-data,
.topup-data {
    min-width: 25rem;
    display: flex;
    flex-direction: column;
    gap: .2em;
}

.topup-data {
    font-size: 1.2rem;
}

.order-data-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.order-data-line span {
    max-width: 12rem;
    text-align: right;
}

.order-data-line span:first-of-type {
    color: #9ca3af;
    font-size: .9em;
}

p.note {
    color: #9ca3af;
    font-size: 0.6em;
}

#order-form {
    max-width: 60rem;
}

#order-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-cost h3 {
    margin: 0;
}

.order-cost {
    text-align: center;
}

#order-card h3 {
    margin: 0;
    text-align: center;
}

.order-cost p {
    color: rgb(83, 252, 23);
    font-size: calc(var(--font-size) * 2);
    margin-top: 1rem;
}

#pay-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 35rem;
}

p.pay-terms {
    color: #9ca3af;
    font-size: .9rem;
    text-align: center;
    margin-top: 1rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes bdollar {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.dollar-bill {
    width: 7.5em;
    height: 3.75em;
    background: #009a27;
    border-radius: .5rem;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: float 2s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: .6em;
}

.dollar-bill::before {
    content: "$";
    font-size: 2em;
    animation: bdollar 0.5s ease-out both;
}

@keyframes lid-lift {

    0%,
    50% {
        transform: rotate(0deg);
    }

    80% {
        transform: translateY(-1px) rotate(2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.gift-svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: float 2s ease-in-out infinite;
}

.gift-lid {
    transform-origin: 85% 20%;
    animation: lid-lift 2s ease-in-out infinite;
}

.mini-status .gift-svg {
    height: 65%;
}

#order-status,
#topup-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.6rem;
    align-items: center;
    text-align: center;
}

.order-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 36rem;
    margin: 1rem 0;
    font-size: calc(var(--font-size) * 1.2);
}

.order-warning svg {
    width: 6em;
}

.order-warning-text h2 {
    margin: 0;
    margin-bottom: 1rem;
}

.order-warning-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#order-status p {
    font-size: .8em;
    color: #9ca3af;
}

.order-status-icon,
.topup-status-icon {
    height: 4rem;
    margin-top: 2rem;
    user-select: none;
}

.topup-status-icon {
    margin-top: 1rem;
}

.order-canceled {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    fill: #ff0000;
}

.order-completed {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    fill: #53fc17;
    padding-top: .5rem;
}

.popup-input {
    display: inline-flex;
    gap: 1rem;
    width: 100%;
    align-items: center;
    flex-direction: row;
}

.rub-cost {
    color: rgb(83, 252, 23);
    font-size: calc(var(--font-size)* 2);
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: .5rem;
}

#topup .form-group {
    margin: 0 auto;
    padding: 0 1rem;
}

input#deposit {
    min-width: 10rem;
    width: 100%;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 40%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #171c1e;
    padding: 1.8rem;
    max-width: 30rem;
    min-width: 25rem;
    box-shadow: 0 0 #000, 0 0 #000, 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    border-radius: .25rem;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 90vh;
}

@keyframes fadeIn {
    0% {
        opacity: .5;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: .5;
    transform: scale(0.95);
    animation: fadeIn 100ms cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.modal-close {
    font-size: 1.5em;
    padding: .2em;
    width: 1em;
    height: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .25em;
    transition: cubic-bezier(.4, 0, .2, 1) .15s;
    cursor: pointer;
    user-select: none;
}

.modal-close:hover {
    background-color: #313538;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    margin: 0;
    margin-left: .1em;
}

section#topup {
    width: 25rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 2.25em;
    min-width: 2.25em;
    height: 1.25em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555c65;
    transition: .15s;
    border-radius: 1.25em;
}

.slider:before {
    position: absolute;
    content: "";
    height: .875em;
    width: .875em;
    left: .2em;
    bottom: .2em;
    background-color: #ffffff;
    transition: .15s;
    border-radius: 50%;
}

/* ÃÂ¡Ã‘â€šÃÂ¸ÃÂ»ÃÂ¸ ÃÂ¿Ã‘â‚¬ÃÂ¸ ÃÂ°ÃÂºÃ‘â€šÃÂ¸ÃÂ²ÃÂ°Ã‘â€ ÃÂ¸ÃÂ¸ ÃÂ¿ÃÂµÃ‘â‚¬ÃÂµÃÂºÃÂ»Ã‘Å½Ã‘â€¡ÃÂ°Ã‘â€šÃÂµÃÂ»Ã‘Â */
input:checked+.slider {
    background-color: #53fc18;
}

input:checked+.slider:before {
    transform: translateX(1em);
    background-color: #000000;
}

input:disabled+.slider {
    opacity: .5;
}

.user-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-setting {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    max-width: 25rem;
}

.user-setting .note {
    font-size: 0.8em;
    margin-top: .3rem;
}

h2.user-history-item {
    display: flex;
    flex-direction: column;
}

.user-history-title {
    display: flex;
    font-size: 1.5rem;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: 1rem;
    padding-top: 0;
}

.user-history-container {
    width: 100%;
}

h2.user-history-item .note {
    font-size: 1rem;
    color: #9ca3af;
}

.tooltip {
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: fit-content;
    min-width: 7rem;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: .5rem;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.card .tooltip-text {
    margin-bottom: .35rem;
}

#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: #53FC18;
    position: fixed;
    z-index: 1600;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translate3d(-23%, 0px, 0px);
    transition: 200ms;
}

#nprogress .peg {
    display: block;
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px #53FC18, 0 0 5px #53FC18;
    opacity: 1;
    -webkit-transform: rotate(3deg) translate(0px, -4px);
    -ms-transform: rotate(3deg) translate(0px, -4px);
    transform: rotate(3deg) translate(0px, -4px);
}

#nprogress .spinner {
    display: none;
    /* ÃÂ¡ÃÂºÃ‘â‚¬Ã‘â€¹Ã‘â€šÃ‘Å’ Ã‘ÂÃÂ¿ÃÂ¸ÃÂ½ÃÂ½ÃÂµÃ‘â‚¬ */
}

.maintenance {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maintenance svg {
    width: 10rem;
}


.ad-box {
    background-image: url("/static/ad1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    max-width: 800px;
    height: 80px;
    display: block;
    margin: 1.2rem 0 1.5rem;
    border-radius: 0.25rem;
}

@media (max-width: 1420px) {
    :root {
        --font-size: 1vw;
    }
    main {
        font-size: calc(var(--font-size) * 1.3);
        box-shadow: none;
        padding: 0 6vw 4rem;
    }

    a.user-name {
        font-size: calc(var(--font-size) * 1.7);
        padding: .5rem 0;
    }
}

@media (max-width: 1024px) {
    :root {
        --font-size: 1.5vw;
    }
    main {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

@media (max-width: 912px) {
    :root {
        --font-size: 1.8vw;
    }
}

@media (max-width: 860px) {
    :root {
        --font-size: 2vw;
    }
    .header {
        flex-direction: column;
        gap: 1rem;
    }

    #order-card h3 {
        text-align: left;
    }

    #order-form form {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    
    .card {
        flex-direction: row;
        font-size: calc(var(--font-size) * 1.6);
    }

    .card #avatar {
        width: 2em;
        height: 2em;
        border-radius: 50%;
    }

    .card #kick-frame {
        display: none;
    }

    .card .tooltip-text {
        margin-bottom: 0;
    }

    #order-card {
        flex-direction: column;
        gap: 1rem;
        align-items: baseline;
    }

    .ad-box {
        background-image: url("/static/ad2.png") !important;
    }

}

@media (max-width: 515px) {
    :root {
        --font-size: 3.5vw;
    }
    #pay-buttons {
        max-width: 25rem;
    }
}