@charset "utf-8";

/* -------------- 서브페이지 템플릿 -------------------*/
@font-face {
    font-family: 'GowunDodum-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunDodum-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;    
}
@font-face {
    font-family: 'CallifontSamulnori-Medium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2505@1.0/CallifontSamulnori-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* @import url('https://fonts.googleapis.com/css2?family=Fleur+De+Leah&family=Instrument+Serif:ital@0;1&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Mr+Bedfort&display=swap');

/*.mr-bedfort-regular {
  font-family: "Mr Bedfort", cursive;
  font-weight: 400;
  font-style: normal;
}
 */

 /* -------------- reset -------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

a {
    text-decoration: none;
    color: black;
    }

body {
    /* border: 1px solid red; */
    line-height: 200%; 
    height: auto; 
    font-family: 'GowunDodum-Regular';
    }

   /* 스크롤바 색상 변경 */
body::-webkit-scrollbar {
    width: 2px; /* 스크롤바 너비 */
    }
body::-webkit-scrollbar-track {
    background: rgba(20,110,114); /* 스크롤바 트랙 색상 */
    border-radius: 10px;
    }
body::-webkit-scrollbar-thumb {
    background-color: white; /* 스크롤바 손잡이 색상 */
    border-radius: 10px;
    /* border: 2px solid #bbb; 손잡이 테두리 */
    }
body::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* 마우스 오버 시 색상 */
    }


.sec {
    min-height: calc(100vh - 244px);
}

/* ---- overlay ---- 오버레이창 첨에 안보이도록! */
  .modal {
            background-color: rgba(255,255,255,0.9);
            position: fixed;
            top :0;
            right: -100%;            
            width: 100vw;
            height: 100%;
            z-index: 9998;   
            color: aliceblue;         
            transition: 0.2s;           
        }

.overlay {
    background-color: rgba(20,110,114,0.7);    
    position: fixed;    
    top:0;
    right: -100%;
    width: 80vw;
    height: 100%;
    z-index: 9999;

}



/* ---- 메인 네브바 ---- */
 /* ---------------- header --------------- */
header {    
    z-index: 9998;
    width: 100%;
    height: 244px;
    background-color: white;   
}

header > h1 {
    /* border: 1px solid red;       */    
    padding: 30px 0;  
         }

header > h1 > a {
    /* border: 1px solid red;     */
    display: block;
    max-width: 300px; 
    margin: 0 auto;
    animation: logo 5s cubic-bezier(0,1.1,1,-0.4) 2s infinite alternate;
}   

@keyframes logo { 
0% { }

100% {
    transform: rotateY(90deg);
    color: palevioletred;
 }
}

header > h1 > a > img {
    width: 100%;
    }


header > h3 {
    display: none;
}

/* ------------------ nav .topnav #myTopnav ---------------------- */
.topnav2 {
    overflow: hidden;
    background-color: rgba(20,110,114,0.7);
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    z-index: 9999;
    /* padding: 0 20%; */
}

.topnav2 a {
    /* float: left; */
    display: block;
    color: white;
    width: 200px;
    text-align: center;
    padding: 10px 30px;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 110%;
}
.topnav2 a:nth-child(5),
.topnav2 a:nth-child(4) {
    padding: 10px 0px;
}

.topnav2 a:hover,
.topnav2 a.active { 
    background-color: rgba(255,255,255,0.3);    
    text-transform: uppercase !important;
    /* text-shadow: 2px 2px 1px #ffa955; */
    color: white !important;
    font-weight: normal !important;    
}

.topnav2 .icon {
    display: none;
}

/* ------ section .sec ------- */
.sec {
    /* border: 1px solid red; */
    height: auto;
}


/* ------ footer ------- */
footer {
    background-color: rgba(20,110,114,0.7);
    color: white ;
    font-size: 80%;
    text-align: center;
    margin-top: 50px;
}










/* --------------------------- 미디어 쿼리 ------------------------------ */


@media screen and (max-width: 800px) {
    /* ---- overlay ---- */
.modal {
    overflow-y: hidden; /*이걸 해줘야 열고 닫는 게 자연스러움*/
    transition: 0.2s;
}
.overlay {    
    /* background-color: rgba(255,255,255,0.9); */
    overflow-y: hidden; /*이걸 해줘야 열고 닫는 게 자연스러움*/
    transition: 0.2s;
    /* width:  0; */    
    /* width: 100%; */
}
.overlay-content {    
    /* border: 1px solid red; */
    margin-top: 50vh;
    transform: translateY(-50%);         
}
.overlay a {
    padding: 5px;
    text-decoration: none;
    font-size: 20px;
    color: aliceblue;
    display: block;/*지금 디스플레이는 한줄씩 아래로 떨어뜨리는 것*/
    transition: 0.3s;
    text-align: center;           
}

.overlay-content a:not(:first-child) {
    border: 1px solid aliceblue;
    border-radius: 20px;
    font-size: 16px;
    width: 70%;    
    margin: 10px auto;   
}



.overlay a:hover, .overlay a:focus, .overlay .active {
    color: rgb(10, 52, 54);
    background-color: aliceblue;
    font-weight: bold;
}/*포커스는 클릭했을 때, 그게 남아 있는 걸 의미!*/
/*콤마는 그리고! 콜론은 ~일때 * ==> 이 효과가ㅏ 0.3초 동안!*/

.overlay .closebtn {
    position: absolute; /*포지션 3가지 상대,절대, 고정 */
    top : 20px ;
    right: 20px ;
    font-size: 40px;
    color: aliceblue;    
}
.overlay .overlay-content h1 {
    display: block;
    max-width: 210px;
    /* padding-top: 70px;    오버레이콘텐트 위치를 중앙으로 잡아줘서 필요 없음    */
    margin-left: auto;    
    margin-right: auto;
}

.overlay .overlay-content h1 > a > img {
    width: 100%; 
    /* border-radius: 20%;   */
}


/* ---- header ---- */
header {
    /* border: 20px solid rgba(238, 130, 238, 0.5); */ 
    /* position: fixed;
    left: 0;
    top: 0; */
    display: flex;    
    justify-content: space-between;
    padding: 0 4%;
    width: 100%;    
    z-index: 999;
    height: 110px;    
    /* background-image: url(images/bg3.jpg); */
    background-position: top center;
    background-color: #5A999C;
}

main {
    min-height: calc(100vh - 110px);
}

header > h1 {
    /* border: 1px solid purple; */
    /* float: left;*/
    display: block; 
    max-width: 150px;
    padding: 20px 0 10px 0;    
} 
header > h1 > a > img {
    /* border: 1px solid purple; */
    width: 100%;
    animation: none !important;  
}
header > h1 > a > img:hover {
    opacity: 0.8;
}


/* ---- 오버레이 보이기 전에 보이는 햄버거 ---- */
header > h3 {
    /* border: 1px solid violet; */
    display: block;
    margin-top: 50px;    
    text-transform: capitalize;
    font-size: 26px;
    cursor: pointer;
    color: aliceblue;
}

header > h3:hover, 
header > h3:focus {
    /* font-weight: bold; */
    color: rgb(255, 217, 0) ;
    transition: 0.5s;
}

.topnav2 {
    display: none  ;
}
}

/* ---- 미디어 쿼리 반응형  ---- */
@media screen and (max-width:800px) and (orientation:landscape) {
.modal {
    overflow-y: auto; /*이걸 해줘야 열고 닫는 게 자연스러움*/
}

.overlay-content {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.overlay .overlay-content h1 {
    max-width: 150px;
}
.overlay .overlay-content a {
    font-size: 14px;
}
}

@media screen and (max-width:1000px) and (orientation:landscape) {
    header > h1 {
        padding-top: 5px;
    }
    header > h3 {
        margin-top: 40px;
    }
    header > h1 > a {
        max-width: 200px;
    }    
}
 



  




