@import url('colors.css');
@import url('fonts.css');

@import url('frames/nav/search.css');
@import url('frames/nav/items.css');
@import url('frames/nav/form.css');

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--color-gray);
    color: var(--color-font-dark);
    font-family: Inter;
    user-select: none;
}

body:has(#blankie.active) {
    overflow: hidden;
    margin-right: 4px;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 2px;
}

*::-webkit-scrollbar-track {
    background: #efefef;
}

img {
    -webkit-user-drag: none;
}

input, textarea {
    resize: none;
    display: block;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    background: inherit;
    color: inherit;
}
input::placeholder, textarea::placeholder {
    color: inherit;
}

input[type='checkbox'] {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid var(--color-light);
    cursor: pointer;
}
input[type='checkbox']:checked {
    background: var(--color-checked);
}

a {
    color: inherit;
    text-decoration: none;
}

.rules {
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;

    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.6px;
}

.rules a {
    text-decoration: underline;
}

hr {
    margin: 0;
    height: 0px;
    border: none;
    border-top: 1px solid var(--color-dark);
    opacity: 0.2;
}

.slider_control > img {
    cursor: pointer;
}

#blankie {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 0px;
    height: 100%;
    background: var(--color-blankie);
    opacity: 0;
    transition: opacity 0.2s;
}

#blankie.active {
    width: 100%;
    opacity: 0.5;
}

.nav {
    z-index: 10;
    position: fixed;
    top: 0px;
    right: -720px;
    transition: right 0.2s ease-in;
    width: 720px;
    height: 100%;
    background: var(--color-gray);

    display: flex;
    flex-direction: column;
}

.nav.active {
    right: 0;
}

.nav > .head {
    padding: 40px 25px 20px 25px;
    width: 670px;
    height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav > .head > .title {
    font-size: 50px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%;
    text-transform: uppercase;
}

.nav > .head > .exit {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.nav > .body {
    margin: 0 25px;
    flex-grow: 1;
    overflow: auto;
}

.nav > .after {
    padding: 25px;
    padding-top: 0;
    position: relative;
}

.nav > .after.active {
    flex-basis: 85px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav > .after.active > .shadow {
    height: 15px;
    opacity: 0.2;
    background: linear-gradient(0deg, #343A40 0%, rgba(255, 255, 255, 0.00) 100%);
    flex-shrink: 0;
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
}

.nav > .after.active > .frame {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.nav > .after.active > .frame > .label {
    opacity: 0.4;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.48px;
}

.nav > .after.active > .frame > .total {
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    text-align: right;
}

.nav > .after.active > .button {
    display: flex;
    padding: 10px;
    border-radius: 30px;
    background: var(--color-dark);
    justify-content: center;
    align-items: center;
    cursor: pointer;

    color: var(--color-font-light);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 80%;
    letter-spacing: -0.48px;
}

.nav > .after.active > .button.disabled {
    background-color: var(--color-form-button-disabled);
    pointer-events: none;
    cursor: default;
}

#alert_popup {
    position: fixed;
    top: -1px;
    left: 49%;
    transform: translate(-50%, -100%);
    z-index: 30;

    width: 500px;
    height: 9%;
    border: 1px solid var(--color-sep);
    background: var(--color-light);
    box-shadow: 0px -1px 6px -2px var(--color-dark);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
#alert_popup.active {
    left: 50%;
    top: 35px;
    transition: transform 400ms linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
    transform: translate(-50%, 0);
}
#alert_popup > .error {color: var(--color-r);}
#alert_popup > .warn {color: var(--color-w);}
#alert_popup > .done {color: var(--color-g);}

uwu {
    display: inline;
    background: #faee41;
}

#floatingChattBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}