*{
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    font-style: normal;
    word-break: keep-all;
}
ul, li{
    list-style: none;
    padding: 0;
    margin: 0;
}
html{
    overflow-x: hidden;
}
body {
  -webkit-user-select:none;
  -ms-overflow-style: none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

::-webkit-scrollbar {
  display: none;
}

body{
    overflow: hidden;
}
body:has( .openAnimation){
    animation: unlockScroll 0.1s both 1.5s;
    /* 딜레이는 loadData 45번줄과 시간 연동해야 함 */
}
@keyframes unlockScroll {
    100%{
        overflow: auto;
    }
}

/* loading */
#loading{
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    z-index: 999;
    overflow: hidden;
    background-color: white;
}

#loading span{
    color: black;
}


#wapper{
    opacity: 0;
}
.openAnimation{
    animation: opening 0.7s both;
}
@keyframes opening {
    100%{
        opacity: 1.0;
    }
}



/* -- -- -- Header and Footer -- -- -- */

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0;
}


.footerInnerWrapper{
    display: flex;
    justify-content: center;
    position: relative;
    margin: 1rem 0;
}

.title:hover,
.headerWrapper:has( .clock:hover) .title,
.footerFirst:hover,
.footerInnerWrapper:has( .footerAfter:hover) .footerFirst{
    opacity: 0;
}

.title,
.clock{
    position: absolute;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    text-align: center;
    white-space: nowrap;
}


.footerFirst,
.footerAfter{
    position: absolute;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: .3s;
}

.clock,
.footerAfter{
    opacity: 0;
}
.clock:hover,
.headerWrapper:has( .title:hover) .clock,
.footerAfter:hover,
.footerInnerWrapper:has( .footerFirst:hover) .footerAfter{
    opacity: 1;
}

footer{
    padding-bottom: 1.25rem;
}


/* -- -- -- Contents side -- -- -- -- */


#contentWrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.sectionTitle{
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.contents{
    padding: 1rem;
}

.bodyTextWrapper{
    font-size: 1.075rem;
    line-height: 1.75;
    letter-spacing: .0125em;
    font-weight: 400;
    margin-bottom: 1rem;
    color: white;
    transition: color .3s;
}
.bodyTextWrapper[data-style="indent"]{
    padding-left: 3rem;
}

.bodyListEle[data-status="show"] .bodyTextWrapper{
    color: black;
    
}

.caption{
    vertical-align: top;
    font-size: 0.8rem;
    cursor: pointer;
    color: black;
}

span:hover {
    cursor: zoom-in;
}

/* caption - popup */
.bodyListEle:has( .caption:hover) .bodyPopup{
    opacity: 1.0;
}
.bodyListEle:has( span.caption:hover) .bodyPopup{
    opacity: 0 !important;
}

.bodyPopup{
    position: absolute;
    max-width: 310px;
    padding: 4px 5px;
    background-color: black;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: .3s;
}

.bodyPopupText{
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: white;
}


@media (max-width: 1080px) {
    #contentWrapper{
        grid-template-columns: repeat(1, 1fr);
    }
    .bodyListEle:has( .caption:hover) .bodyPopup{
        opacity: 0 !important;
    }
    .bodyPopup{
        display: none;
    }
}


@media (prefers-color-scheme: dark) {
    body{
        background-color: black;
    }

    #loading {
        background-color: black;
    }

    #loading span {
        color: white;
    }

    .title,
    .clock,
    .langBtn{
        color: white;
    }

    .footerFirst,
    .footerAfter{
        color: white;
    }



    .bodyTextWrapper{
        color: black;
    }

    .sectionTitle {
        color: white;
    }

    .bodyListEle[data-status="show"] .bodyTextWrapper{
        color: white;
    }
    .caption{
        color: white;
    }



    .bodyPopup{
        background-color: white;
    }
    .bodyPopupText{
        color: black;
    }
}
