@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

@font-face {
    font-family: "untitled";
    src: url("../assets/fonts/test-untitled-sans-regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "untitled";
    src: url("../assets/fonts/test-untitled-sans-regular-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
}

:root {
    --std: calc(16px * 1.25);
    --maxWidth: calc(100% - var(--std) * 5.0);
    --unit: calc((var(--maxWidth) - var(--std) * 7.0) / 7);
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    line-height: 1;
    font-family: "untitled", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
    list-style-type: none;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    text-transform: none;
}

*, html, body {
    -webkit-text-size-adjust: 100%;
       -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
            text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 15px;
}

#app {
    width: 100%;
    height: auto;
    -webkit-transition: opacity 1s ease-out;
    -o-transition: opacity 1s ease-out;
    transition: opacity 1s ease-out;
    opacity: 0;
}

#app.active {
    opacity: 1;
}

/* common */
button, input, a {
    outline: none;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

button {
    background-color: transparent;
    border: none;
    border-radius: 0px;
    cursor: pointer;
}

button.selectable {
    border: none;
    background-color: transparent;
    border-radius: 0px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: calc(var(--std) * (1.125 * 0.25));
    cursor: pointer;
    pointer-events: all !important;
}

button.selectable::before {
    display: inline-block;
    content: "";
    width: calc(var(--std) * (1.125 * 0.575));
    height: calc(var(--std) * (1.125 * 0.575));
    border: 1px solid rgb(180, 180, 180);
    /* border-radius: 100%; */
}

button.selectable.active::before {
    border: 1px solid rgb(180, 180, 180);
    background-color: rgb(0, 0, 0);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    outline: none;
    background-color: rgb(0, 0, 0);
}

::-webkit-scrollbar-track {
    background-color: rgb(220, 220, 220);
}

/* lang */
@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;        
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;        
    }
}

.ko, .en {
    display: none;
}

html:lang(ko) .ko,
html:lang(en) .en {
    display: block;
    opacity: 0;
    -webkit-animation-name: fadeIn;
            animation-name: fadeIn;
    -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
}

/* grid */
#cont-grid {
    position: fixed;
    z-index: 9999;
    opacity: 0.375;
    display: none;
}

#cont-grid.active {
    display: block;
}

.grid:nth-child(1) {
    position: fixed;
    top: calc(var(--std) * 1.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(2) {
    position: fixed;
    top: 0;
    right: calc(var(--std) * 1.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(3) {
    position: fixed;
    bottom: calc(var(--std) * 1.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(4) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 0, 255);
}

.grid:nth-child(5) {
    position: fixed;
    top: calc(var(--std) * 2.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(6) {
    position: fixed;
    top: calc(var(--std) * 3.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(7) {
    position: fixed;
    bottom: calc(var(--std) * 2.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(8) {
    position: fixed;
    bottom: calc(var(--std) * 3.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(9) {
    position: fixed;
    bottom: calc(var(--std) * 4.0);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(10) {
    position: fixed;
    top: 0;
    right: calc(var(--std) * 4.0);
    width: 1px;
    height: 100%;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(11) {
    position: fixed;
    top: 0;
    right: calc(var(--std) * 5.0);
    width: 1px;
    height: 100%;
    background-color: rgb(0, 255, 255);
}

.grid:nth-child(12) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 1);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(13) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 1 + var(--std) * 1.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(14) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 2 + var(--std) * 1.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(15) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 2 + var(--std) * 2.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(16) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 3 + var(--std) * 2.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(17) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 3 + var(--std) * 3.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(18) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 4 + var(--std) * 3.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(19) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 4 + var(--std) * 4.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(20) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 5 + var(--std) * 4.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(21) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 5 + var(--std) * 5.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(22) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 6 + var(--std) * 5.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

.grid:nth-child(23) {
    position: fixed;
    top: 0;
    left: calc(var(--std) * 1.0 + (var(--maxWidth) - var(--std) * 7.0) / 7 * 6 + var(--std) * 6.0);
    width: 1px;
    height: 100%;
    background-color: rgb(255, 50, 0);
}

@media screen and (max-width: 500px) {
    :root {
        --std: calc(15px * 1.25);
        --maxWidth: calc(100% - var(--std) * 1.0);
    }

    html {
        font-size: 14px;
    }
}