/**********************************************************
 * 뷰포트 해상도가 800px 이하인 경우 사용되는 코드
 * --------------------------------------------
 * header, main, footer 영역에 있는 주요 요소가 대상
 */

/******************************
 * default
 */

/* 맨처음 로드될때 다이어리 가운데 오게 */

@media screen and (max-width: 800px) {
    .diary {
        left: -12vw;
    }
}
/* iPad */
@media screen and (max-width: 768px) {
    .diary {
        left: -14vw;
    }
}
@media screen and (max-width: 700px) {
    .diary {
        left: -22vw;
    }
}
@media screen and (max-width: 600px) {
    .diary {
        left: -33vw;
    }
}
@media screen and (max-width: 540px) {
    .diary {
        left: -44vw;
    }
}
@media screen and (max-width: 500px) {
    .diary {
        left: -51vw;
    }
}
/* Moto G4 & Galaxy S5 */
@media screen and (max-width: 414px) {
    .diary {
        left: -75vw;
    }
    .diary-preloading::before {
        left: 2%;
    }
    .diary-preloading::after {
        left: 2%;
    }
}
/* Pixel 2 */
@media screen and (max-width: 411px) {
    .diary {
        left: -76vw;
    }
    .diary-preloading::before {
        left: 2%;
    }
    .diary-preloading::after {
        left: 2%;
    }
}
/* iphone 6/7/8 */
@media screen and (max-width: 375px) {
    .diary {
        left: -92vw;
    }
    .diary-preloading::before {
        left: 3%;
    }
    .diary-preloading::after {
        left: 3%;
    }
}
/* iphone 6/7/8 plus */
@media screen and (max-width: 360px) {
    .diary {
        left: -100vw;
    }
    .diary-preloading::before {
        left: 4%;
    }
    .diary-preloading::after {
        left: 4%;
    }
}
/* iphone 5/SE */
@media screen and (max-width: 320px) {
    .diary {
        left: -124vw;
    }
    .diary-preloading::before {
        left: 6%;
    }
    .diary-preloading::after {
        left: 6%;
    }
}
/* Galaxy Fold */
@media screen and (max-width: 280px) {
    .diary {
        left: -157vw;
    }
    .diary-preloading::before {
        left: 8%;
    }
    .diary-preloading::after {
        left: 8%;
    }
}


/******************************
 * Header 영역
 */
.header-wrapper {
    width: 100%;
}
/* 헤더 높이 작아짐 */
.header {
    position: relative;
    width: 100%;
    height: 80px;
}
/* 로고 크기 작아짐 */
/* 로고 왼쪽정렬 */
.header-logo {
    position: absolute;
    left: 15px;
    top: calc(50% - 22.5px);
    margin: 0;
    width: 126px;
    height: 45px;
}
.header-logo > a:link, .header-logo > a:visited {
    text-decoration: none;
    color: #FFFAEB;
}
/* 로고 크기 작아짐 */
.header-logo > a > svg {
    width: 126px;
    height: 45px;
}
/* 메뉴아이콘 크기 작아짐 */
/* 메뉴 폰트크기 작아짐 */
/* radius 조절 */
.header-navi-toggle {
    position: absolute;
    right: 15px;
    top: 20px;
    width: 70px;
    height: 40px;
    border-radius: 8px 8px 0 0;
    background: #FFF;
    text-align: center;
    font-size: 0.8rem;
    z-index: 10;
}
/* radius 조절 */
.header-navi-toggle > div {
    width: 70px;
    height: 24px;
    line-height: 24px;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 250, 235);
    font-family: NanumGothicBold;
    color: #000;
}
/* 밑으로 슬라이딩 되면서 메뉴가 나오게 */
/* .header > label > *, .header-navi 로 써도됨 */
.header-navi-toggle, .header-navi {
    transition: 0.3s;
}
.header-navi {
    position: absolute;
    right: 15px;
    top: 20px;
    margin: 0;
    padding: 0;
    text-align: center;
    /* display: none이 아니라 height 0이었다가 체크박스가 체크되면 높이가 생기게 */
    height: 0;
    width: 70px;
    overflow: hidden;
}
/* 내비 폰트크기 작아짐 */
.header-navi > li {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    font-family: NanumGothicBold;
    font-size: 0.8rem;
    z-index: 10;
    cursor: pointer;
}
.header-navi > li:nth-child(1) {
    top: 48px;
}
.header-navi > li:nth-child(2) {
    top: 96px;
}
.header-navi > li:nth-child(3) {
    top: 144px;
}


/******************************
 * Main 영역
 */
.main-wrapper {
    width: 100%;
    /* padding: 30px 20px; */
}
.main {
    width: 100%;
    /* 다이어리 오른쪽 여백으로 스크롤 안되게 */
    overflow-x: hidden;
}

/* works */
.dialog-open {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #FFFAEB;
    overflow-y: scroll;
    padding: 10% 0;
    z-index: 11;
    /* opacity를 대상으로 트랜지션 효과 적용 */
    transition: opacity 0.3s;
}
.dialog > .close-btn {
    width: 24px;
    height: 24px;
    right: 10px;
    top: 10px;
}
.work-title {
    font-size: 1.5rem;
}
.work-info {
    font-size: 0.8rem;
    line-height: 1.5rem;
}
.work-content > p {
    font-size: 1rem;
}
.work-content > ul {
    width: 80%;
    margin-left: calc(50% - 40%);
}
.work-content > ul > li:nth-of-type(odd) {
    font-size: 1rem;
}
.work-content > ul > li:nth-of-type(even) {
    font-size: 0.9rem;
}




/******************************
 * Footer 영역
 */
.footer-wrapper {
    width: 100%;
    padding: 10px 0;
    display: none;
}

.footer {
    width: 100%;
    height: 50px;
}
.footer > p {
    text-align: center;
    line-height: 50px;
    color: #666;
    margin: 8px;
}