@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

*{
    box-sizing: border-box;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif !important;
    text-underline-offset: 5px;
}

:root{
    --font-weight: 700;
    --font-size: 2rem;
    --line-height: 1.6rem;
    --title-font-size: 2.5rem;
    --des-font-size: 1.5rem;
}

::-moz-selection{
    color:  white;
    background-color: lightgray;
}
::selection{
    color: white;
    background-color: lightgray;
}

img, svg{
    height: 100%;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

a{
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    color: white;
    text-decoration: none;
    opacity: 30%;
    transition: 0.5s;
    cursor: alias;
}
a:hover{
    opacity: 100%;
}

p{
    display: inline-block;
    font-size: var(--font-size);
    font-weight: var(--font-weight);
}

body{
    width: 100vw;
    height: 100vh;
    background-color: lightgray;
    transition: background-color 0.7s;
    overflow: hidden;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

/* data load */

#load{
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: lightgray;
    z-index: 99999;
}
#load-iconArea{
    width: 20rem;
    height: 20rem;
}

/* main page */

#wrap{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#main{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
#main::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}
#main[data-mode="list"]{
    display: flex;
    height: calc(100% - 4rem);
    flex-direction: column;
}

.itemSelector{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 0.1%;
    pointer-events: none;
    transition: 0.5s;
}

.itemSelector[data-mode="info"] .item{
    transform: none !important;
}

.itemSelector[data-mode="info"] .item p:nth-last-of-type(1){
    margin-top: 1.3rem;
    font-size: 1rem;
    word-break: keep-all;
    white-space: break-spaces;
    line-height: var(--line-height);
}

.itemSelector[data-mode="list"]{
    position: relative;
    left: 0 !important;
    top: 0 !important;
    display: block !important;
    width: 100% !important;
    height: fit-content !important;
    padding: 0;
    text-align: center;
    pointer-events: all;
    cursor: pointer;
    animation: listModeAni 1s both;
    transition: background-color 0.1s, top 0.5s, left 0.5s !important;
}
#wrap[data-device="desktop"] .itemSelector[data-mode="list"]:hover{
    background-color: transparent !important;
}
.itemSelector[data-mode="list"] .item{
    position: static !important;
    margin: 0 auto;
    transform: none !important;
    cursor: pointer;
}

.itemSelector[data-mode="infoNlist"]{
    position: relative;
    left: 0 !important;
    top: 0 !important;
    display: block !important;
    width: 100% !important;
    height: fit-content !important;
    padding: 0;
    text-align: center;
    pointer-events: all;
    animation: listModeAni 1s both;
    transition: background-color 0.1s, top 0.5s, left 0.5s !important;
}
#wrap[data-device="desktop"] .itemSelector[data-mode="infoNlist"]:hover{
    background-color: transparent !important;
}
.itemSelector[data-mode="infoNlist"] .item{
    position: static !important;
    margin: 0 auto;
    transform: none !important;
    cursor: pointer;
}
.itemSelector[data-mode="infoNlist"] .item p{
    /* line-height: calc(var(--line-height) * 2); */
    word-break: keep-all;
    display: block;
}
.itemSelector[data-mode="infoNlist"] .item p:nth-last-of-type(1){
    margin-top: 1.3rem;
    font-size: 1rem;
    word-break: keep-all;
    white-space: break-spaces;
    line-height: var(--line-height);
}

.item{
    width: fit-content;
    height: fit-content;
    padding: 1rem 1.5rem;
    transition: 0.4s;
    cursor: move;
    pointer-events: all;
}

.item p{
    white-space: nowrap;
}

/* footer */

#footer{
    position: fixed;
    bottom: 0px;
    width: 100vw;
    height: 4rem;
    border-top: 1px solid black;
    padding: 0.9rem;
    background-color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 99999;
}

#footer .itemContainer{
    height: 100%;
    margin-right: 0.7rem;
    float: left;
    cursor: pointer;
    pointer-events: all;
    transition: 0.5s;
}

.itemContainer:nth-last-of-type(1){
    margin-right: 0 !important;
    float: right !important;
}

.spRotate{
    transform: rotate(180deg);
}

.ScDark{
    background-color: black !important;
}

/* info page */

#wrap[data-url="info"] a{
    display: inline-block;
    word-break: keep-all;
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    line-height: calc(var(--font-size) * 1.68);
    opacity: 100%;
    cursor: move;
}
#wrap[data-url="info"] #main[data-mode="default"] a{
    white-space: nowrap;
}
#wrap[data-url="info"] #main[data-mode="list"] a{
    cursor: pointer;
}

/* work page */

#wrap[data-url="work"]{
    width: 100%;
}

#wrap[data-url="work"] #main[data-mode="list"]{
    width: 50%;
    float: left;
}
#wrap[data-url="work"] #main[data-mode="list"] .itemSelector, #wrap[data-url="work"] #main[data-mode="list"] .item{
    width: 100%;
    cursor: auto;
}
#wrap[data-url="work"] #main[data-mode="list"] .item[data-dataType="p"] p{
    width: 100%;
}
#wrap[data-url="work"] #main[data-mode="list"] .itemSelector[data-dataType="v"]{
    display: none !important;
}
#wrap[data-url="work"] #main[data-mode="default"] .item[data-dataType="p"]{
    max-width: 30rem;
    height: auto;
}
#wrap[data-url="work"] #main[data-mode="default"] iframe{
    pointer-events: none;
}
#wrap[data-url="work"] .item p, #wrap[data-url="work"] .item a{
    white-space: normal;
    word-break: keep-all;
    font-size: var(--des-font-size);
    line-height: calc(var(--des-font-size) * 1.68);
    text-align: left;
}
#wrap[data-url="work"] .item[data-dataType="a"] a{
    display: inline-block;
    width: 100%;
    text-overflow: ellipsis;
    text-align: center;
    overflow: hidden;
    opacity: 100%;
}
#wrap[data-url="work"] #main[data-mode="default"] img{
    width: 30rem;
}


#mediaArea{
    /* display: flex;
    flex-wrap: wrap; */
    width: 50%;
    height: calc(100% - 4rem);
    border-left: 1px solid black;
    float: left;
    overflow-y: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
#mediaArea::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}
.showAni{
    animation: showAni 1s both;
}

#mediaArea img, #mediaArea iframe{ 
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid black;
    cursor: zoom-in;
}
iframe{
    border: 0 !important;
}
#mediaArea img:nth-last-of-type(1){
    border: 0;
}

#preview{
    position: absolute;
    left: 0;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: lightgray;
    z-index: 99999;
    overflow: hidden;
}

.previewShow{
    display: flex !important;
}

.preview-btn{
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    opacity: 0;
}
#preview-prev{
    left: 0;
    background-color: red;
    cursor: w-resize;
}
#preview-next{
    right: 0;
    background-color: blue;
    cursor: e-resize;
}

#preview-center{
    left: 10%;
    width: 80%;
    background-color: green;
    cursor: zoom-out;
}

/* IOS, Error 대응 */

#ios-main, #error-main{
    width: 100%;
    height: 100%;
    padding: 5%;
    word-break: keep-all;
}
#ios-title p, #error-title p{
    font-size: calc(var(--font-size) * 1.5);
    line-height: calc(var(--line-height) * 2.3);
}
#ios-article, #error-article{
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
}
#ios-article p, #error-article p{
    font-size: calc(var(--font-size) / 1.8);
    line-height: calc(var(--line-height) * 1.1);
}
#ios-article p:nth-of-type(2){
    margin-top: 1rem;
    line-height: calc(var(--line-height) * 0.9);
}
#ios-main img, #error-main img{
    position: absolute;
    right: 5%;
    bottom: 5%;
    height: calc(var(--font-size) * 1.8);
}

/* Error page 세부 조정 */

#error-article{
    margin-top: 3rem;
}
#error-article a{
    font-size: calc(var(--font-size) / 1.8) !important;
    line-height: calc(var(--line-height) * 1.1) !important;
    color: black !important;
    opacity: 30% !important;
    cursor: alias !important;
}
#error-article a:hover{
    opacity: 100% !important;
}

/* keyframe */

@keyframes listModeAni {
    0%{
        opacity: 0%;
    }
    100%{
        opacity: 100%;
    }
}

@keyframes showAni {
    0%{
        opacity: 0%;
    }
    100%{
        opacity: 100%;
    }
}

/* mediaQ */

@media screen and (max-width: 700px) {
    :root{
        --font-size: 1.3rem;
        --des-font-size: 1.1rem;
    }

    body{
        overflow: hidden;
    }
    #main{
        height: calc(100% - 4rem);
    }
    #main[data-mode="default"] iframe{
        display: none;
    }
    .itemSelector[data-mode="list"] .item{
        width: 100% !important;
        overflow: hidden;
    }
    .itemSelector[data-mode="list"] .item p{
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .itemSelector[data-mode="infoNlist"] .item p{
        white-space: normal;
    }

    #footer{
        width: 100%;
        bottom: 0;
        border-left: 0px;
        border-right: 0px;
        border-bottom: 0px;
    }

    /* work page */
    #wrap[data-url="work"] #main[data-mode="list"]{
        width: 100%;
        height: 50%;
    }
    #wrap[data-url="work"] #main[data-mode="default"] .item[data-dataType="p"]{
        width: 20rem;
    }
    #wrap[data-url="work"] #main[data-mode="default"] img{
        width: 10rem;
    }
    
    #mediaArea{
        width: 100%;
        height: calc(50% - 4rem);
        border: 0;
        border-top: 1px solid black;
    }

    #preview img{
        width: 100%;
        height: auto;
    }

    /* IOS, Error 대응 */
    #ios-title p, #error-title p{
        font-size: calc(var(--font-size) * 1.5);
        line-height: calc(var(--line-height) * 1.5);
    }
    #ios-article{
        margin-top: 3rem;
    }
    #ios-article p, #error-article p{
        font-size: calc(var(--font-size) * 0.8);
        line-height: calc(var(--line-height) * 1);
    }

    /* Error page 세부 조정 */

    #error-article{
        margin-top: 1.5rem;
    }
    #error-article a{
        font-size: calc(var(--font-size) * 0.8) !important;
        line-height: calc(var(--line-height) * 1) !important;
    }
}