.page-top,
.navbar {
    height: var(--navbar-height);
}

.hero-h1 {
    font-family: "Stack Sans Headline", sans-serif;
    font-weight: 400;
}

ul li {
    margin-right: 1rem;

    &:last-child {
        margin-bottom: 0;
    }
}

.faqc {
    transition: max-height 0.2s ease, border-color 0.2s ease;

    .que {
        cursor: pointer;

        svg {
            transform: rotate(0);
            transition: transform 0.2s ease;
            color: var(--text-color);
        }
    }

    &.expanded .que svg {
        transform: rotate(45deg);
    }
}

.dbnv {
    top: 3.5rem;
    left: 0;
    bottom: 0;
    z-index: 300;
}

.dbtb {
    z-index: 100;
    top: 0;
    left: 0;
    position: fixed;
}

.dbnv,
.nvmb {
    a {
        transition: background-color 0.2s ease;

        &:hover,
        &.active {
            background-color: var(--gray-800);

            span,
            svg {
                transition: color 0.2s ease;
                color: var(--white);
            }
        }
    }
}

.pfim {
    position: absolute;
    left: 0.75rem;
    top: 0;
    transform: translateY(-50%);
}

.hdn {
    .vsv,
    &.shn .vsh {
        display: none;
    }

    .vsh,
    &.shn .vsv {
        display: block;
    }
}

.cart-plus:hover span,
.cart-minus:hover span {
    color: var(--red);
}

.cart-icon {
    .cart-dot {
        display: none;
        top: 0;
        right: 0;
        transform: translate(50%, -50%);
        background-color: var(--red);
    }

    &.has-items .cart-dot {
        display: block;
    }
}

.popup {
    z-index: 999;
    opacity: 0;
    transform: translateY(0.25rem), scale(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;

    &.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.wllt-slct-btns button {
    background-color: var(--gray-1000);
    transition: background-color 0.2s ease;

    span {
        color: var(--text-color);
        transition: color 0.2s ease;
    }

    &.selected {
        background-color: var(--gray-800);

        span {
            color: var(--white);
        }
    }
}

.rev-buttons button {
    span {
        transition: color 0.2s ease;
    }

    &.selected {
        border-color: var(--gray-600);

        span {
            color: var(--white);
        }
    }
}

.pymnt-optns a {
    &.selected {
        border-color: var(--red);
    }
}

.hv-ppp {
    position: relative;
    overflow: visible;

    .hv-pp {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -75%);
        transition: opacity 0.2s ease;
        z-index: 1;
    }

    &:hover .hv-pp {
        opacity: 1;
    }
}

.overlay,
.o-overlay {
    display: none;
    pointer-events: none;
    background-color: #00000050;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 200;

    &.visible {
        pointer-events: all;
    }
}

.overlay.visible {
    display: block;
}

.o-overlay {
    z-index: 900;
    &.visible {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.sidebar {
    max-height: 100vh;
    z-index: 300;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    display: none;

    &.visible {
        opacity: 1;
        transform: translateX(0);
    }

    &.cart {
        width: 25rem;
    }
}

.product {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;

    .img img {
        transform: scale(1);
        transition: transform 0.2s ease-in-out;
    }

    &:hover .img img {
        transform: scale(1.04);
    }
}

.krx-hero-section {
    min-height: calc(100vh - var(--navbar-height));
    padding-top: 6rem;
}

.opt {
    cursor: pointer;
    transition: border-color 0.2s ease;

    &.active {
        border-color: var(--red) !important;
    }
}

.db-sw {
    width: var(--side);
}

.db-mw {
    width: calc(100% - var(--side));
}

table {
    border-collapse: collapse;

    th,
    td {
        text-align: left;
        white-space: nowrap;
    }

    th {
        padding: 0.75rem 1rem;
    }

    td {
        padding: 0.625rem 1rem;
    }

    &.transactions {
        th:not(:last-child),
        td:not(:last-child) {
            width: 12%;
        }

        th:last-child,
        td:last-child {
            width: 100%;
        }

        td:last-child {
            white-space: normal;
            word-break: break-all;
        }
    }

    tr:not(:last-child) {
        border-bottom: solid 1px var(--gray-800);
    }
}

@keyframes opacity-animation {
    0% {
        opacity: 0;
    }
}

@keyframes pulse-animation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    70% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.25);
    }
    to {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.pulse:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #f9e9a2;
    border-radius: 100%;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(2.25);
    animation: pulse-animation 2s infinite;

    &.red {
        background: var(--red);
    }
    &.orange {
        background: var(--orange);
    }
    &.green {
        background: var(--green);
    }
}

.pulse {
    position: relative;
    display: inline-block;
    vertical-align: 0px;
    width: 6px;
    height: 6px;
    margin: 0 6px;
    background: #ffdd40;
    color: transparent;
    border-radius: 100%;
    flex: 0 0 auto;

    &.red {
        background: var(--red);
    }
    &.orange {
        background: var(--orange);
    }
    &.green {
        background: var(--green);
    }
}

.br-t-l-1 {
    border-top-left-radius: 0.5rem;
}

.gd-bg-t-1100-500 {
    background: linear-gradient(to top, var(--gray-1100), var(--gray-500));
}

.animated-size-circles {
    position: relative;

    .center-circle {
        height: 4rem;
        width: 4rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
    }

    .animated-size-circle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        height: calc((var(--circle-index, 1) * 5.5rem));
        width: calc((var(--circle-index, 1) * 5.5rem));
        opacity: calc(0.3 - (var(--circle-index, 1) * 0.03));
        border: solid 1px;
        border-color: rgba(
            250,
            250,
            250,
            calc(var(--circle-index, 1) * 0.09 + 0.1)
        );
        background-color: #fafafa1a;
        border-radius: 50%;
        animation: circles 3s ease infinite;
        animation-delay: calc(var(--circle-index, 1) * 0.07s);
    }
}

@keyframes circles {
    0%,
    to {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.color-grid {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: 1px;
    background-color: var(--gray-800);

    .cell {
        aspect-ratio: 1;
        background-color: var(--gray-1000);
        transition: background-color 0.7s ease-in-out;

        &.active {
            background: rgba(44, 47, 54, var(--tile-opacity));
        }

        &.active.red {
            background: var(--red);
        }
    }
}

.chat {
    opacity: 0;
    transform: translateY(0.25rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.chat.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.jump-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.jump-animation {
    animation: jump 1.5s ease infinite;
}

.jump-animation:nth-child(1) {
    animation-delay: 0s;
}

.jump-animation:nth-child(2) {
    animation-delay: 0.25s;
}

.jump-animation:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes jump {
    0%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-1rem);
    }
}

.fg-pay {
    opacity: 0;
    transform: translateY(0.25rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fg-pay.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.fg-pay-div {
    transform: scale(1);
    transition: transform 0.5s ease;

    &.active {
        transform: scale(0.96);
    }
}

.slider {
    -webkit-appearance: none;
    width: 8rem;
    height: 0.5rem;
    background: linear-gradient(
        to right,
        #fa445480 0%,
        #fa445480 50%,
        var(--gray-900) 50%,
        var(--gray-900) 100%
    );
    border-radius: 50px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    border: none;
}

.slider::-moz-range-track {
    width: 100%;
    height: 0.5rem;
    background: var(--gray-900);
    border: none;
    border-radius: 50px;
}

.slider::-moz-range-progress {
    height: 0.5rem;
    border-radius: 50px;
    background: #fa445480;
}

/* */

.switch {
    position: relative;
    display: inline-block;
    width: 2.25rem;
    height: 1.25rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-900);
    transform: translateX(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 50px;
}

.toggle:before {
    position: absolute;
    content: "";
    height: 1rem;
    width: 1rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: var(--gray-500);
    transform: translateX(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 50%;
}

input:checked + .toggle {
    background-color: #fa445480;
}

input:checked + .toggle:before {
    transform: translateX(1rem);
    background-color: var(--red);
}

.tos-check {
    height: 1.375rem;
    width: 1.375rem;
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 1px;

    &.err {
        border-color: var(--red) !important;
    }

    .content {
        display: none;
    }
    &.checked .content {
        display: block;
    }
}

@media only screen and (max-width: 991px) {
    .krx-hero-section {
        min-height: 80vh;
        padding-top: 2rem;
    }

    .mb-no-mw {
        width: inherit !important;
        min-width: 0 !important;
    }
}
