@import url('./fonts.css');
@import url('./common.css');

html{
    overflow: hidden;
    height: 100%;
}
body {
    font-family: 'Pretendard', 'MDNiChrome', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: black;
    scroll-behavior: smooth;
    overflow: hidden;
}

/* main{
    overflow: hidden;
} */

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-layer {
    font-family: 'CloudYa', 'MDNiChrome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(150px + var(--layer) * 3px);
    z-index: var(--layer);
    pointer-events: none;
    opacity: calc(0.1 + var(--layer) * 0.2);
    letter-spacing: -1%;
    will-change: transform;
}

.layer-1 {
    color: #ffffff;
}

.layer-2 {
    color: #DFE6E9;
}

.layer-3 {
    color: #D3D9DC;
}

.layer-4 {
    color: #C7CED1;
}

.layer-5 {
    color: #BAC1C5;
}

.layer-6 {
    color: #AEB5B8;
}

.layer-7 {
    color: #A1A8AC;
}

.layer-8 {
    color: #949C9F;
}

.layer-9 {
    color: #868F91;
}

.layer-10 {
    color: #788184;
}

.layer-11 {
    color: #6A7477;
}

.layer-12 {
    color: #5A6669;
}

.layer-13 {
    color: #4D575A;
}

.layer-11 {
    color: #6A7477;
}

.layer-12 {
    color: #5A6669;
}

.layer-13 {
    color: #4D575A;
}

.layer-14 {
    color: #3C494B;
}

.layer-15 {
    color: #2E3A3D;
}

.layer-16 {
    color: #1D282C;
}

.layer-17 {
    color: #0A181D;
}

.layer-18 {
    color: #000000;
}


@media (min-width: 280px) {
    .logo-layer {
        font-size: calc(35px + var(--layer) * 2px);
    }
}

@media (min-width: 360px) {
    .logo-layer {
        font-size: calc(58px + var(--layer) * 2px);
    }
}
@media (min-width: 400px) {
    .logo-layer {
        font-size: calc(64px + var(--layer) * 2px);
    }
}
@media (min-width: 500px) {
    .logo-layer {
        font-size: calc(78px + var(--layer) * 2px);
    }
}

@media (min-width: 640px) {
    .logo-layer {
        font-size: calc(100px + var(--layer) * 2px);
    }
}

@media (min-width: 768px) {
    .logo-layer {
        font-size: calc(130px + var(--layer) * 2.5px);
    }
}

  @media (min-width: 1280px) {
    .logo-layer {
        font-size: calc(138px + var(--layer) * 3.5px);
    }
}

@media (min-width: 1536px) {
    .logo-layer {
        font-size: calc(150px + var(--layer) * 5px);
    }
}


.overlay {
    transition: 0.2s all;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* fallback */
    z-index: 998;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}

.overlay {
    -webkit-backdrop-filter: blur(2px); /* Safari 9+ */
    backdrop-filter: blur(2px); 
}

@supports (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px)) {
    .overlay {
        background-color: rgba(0, 0, 0, 0.6); 
    }
}

.open-button {
    position: fixed;
    top: 0;
    right: 0;
    font-size: 19px;
    cursor: pointer;
    /* 스크롤에 의한 틀어짐 보완 */
    /* z-index: 999; */
    z-index: 2;
    background-color: transparent !important; 
    border: 0 !important;
    outline: none;
    color: white;
    letter-spacing: 0.025em;
    font-family: 'MDNiChrome';
    font-weight: 700;
    background-color: black;
    padding:25px 32px 30px 50px !important; /*figma 간격 기준*/
    line-height: 1;
}

.open-button:hover, .open-button:active{
    background-color: transparent !important; 
    border: 0 !important;
    outline: 0 !important;
}


.close-button {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 19px;
    cursor: pointer;
    /* 스크롤에 의한 틀어짐 보완 */
    /* z-index: 999; */
    z-index: 5;
    background-color: transparent !important; 
    border: 0 !important;
    outline: none;
    color: white;
    letter-spacing: 0.025em;
    font-family: 'MDNiChrome';
    font-weight: 700;
    background-color: black;
    padding:25px 0px 30px 30px !important; /*figma 간격 기준*/
    line-height: 1;
}

.close-button:hover, .close-button:active{
    background-color: transparent !important; 
    border: 0 !important;
    outline: 0 !important;
}



.overlay>.contents-container {
    transition: 0.2s all;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
}

.main-contents {
    transition: 0.6s opacity;
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    opacity:0;
    padding: 0 32px;
    font-size: 19px;
    max-width: 534px;
}

.body-text {
    font-size: 19px;
}


.sub-title {
    border-bottom: 2px dotted white;
    line-height: 112%;
    letter-spacing: 0.38px;
    font-family: 'MDNiChrome';
    font-weight: 700;
    flex-shrink: 0;
}

.top-spacer{
    flex-shrink: 0;
    width: 100%;
    min-height: 120px;
    height: 120px;
}

.credit{
    color: rgba(221, 228, 230, 0.60);
    font-family:'MDNiChrome';
    font-size: 14.25px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; /* 15.675px */
    letter-spacing: 0.285px;
}

.label-sm{
    color: rgba(221, 228, 230, 0.60);
    font-family: 'MDNiChrome';
    font-size: 14.25px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; /* 15.675px */
    letter-spacing: 0.285px;
}

.bottom-spacer{
    height: 50px;
    width: 100%;
    min-height: 50px;
    flex-shrink: 0;
}