@charset "utf-8";

/* 아카이브 페이지 연습용 css - index.css */

/* 초기화 */
html{
    font-size: 10px;
    scroll-behavior: smooth;
}
html,body{
    margin: 0;
    padding: 0;
    height: 100%;
    text-align: center;
}
body{
    background-color: #f0ede1;
    color: #333;
    /* font-size: min(max(3vw, 20px), 42px); */

    overflow: hidden;
}
h1{
    margin: 0;
    padding: 0;
    font-size: min(max(3vw, 20px), 42px);
}
ul, ol{
    margin: 0;
    padding: 0;
    list-style: none;
}
a{
    color: #333;
    text-decoration: none;
}
img{
    border: none;
    /* 이미지에 링크시 기본 보더 없앰 : 서버 배포할 때 보더 나올 수 있음 */
    vertical-align: top;
    /* 박스 요소에 이미지 단독 삽입시 하단 공백 생기는 문제 해결 위함 */
}
footer{
    font-size: min(max(1.5vw, 14px), 20px);
}

/* 공사중 표시 */
html *{
    /* outline: 1px dashed red; */
}


/**************************** 상단 영역 ****************************/
.top{
    /* 내비게이션 상단 고정시키기 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;

    width: 100vw;
    /* %말고 vw를 하면 안돼? => vw를 쓰면 스크롤바 포함되잖아...?그치?? 그래서 좀 애매쓰.....흠... */
    height: 15vh;
    /* background-color: #f5f5f5; */
}

.menu{
    display: flex;
    justify-content: center;
}


/* 제목 */
body>h1{
    padding: 20px;
}
body h1 span{
    color: tomato;
}

/* 로고박스 */
.logo img{
    width: 80px;
    height: 80px;
}

/* GNB 메뉴 */
.gnb ul{
    display: flex;
    justify-content: center;
    padding-top: 25px;
}

/* 상위메뉴 li */
.gnb ul>li{
    position: relative;
    padding: 0 50px;
}
.gnb ul>li>a{
    font-size: 2.5rem;
    font-weight: bold;
}


/* 가상요소로 상위메뉴 하이라이트 칠하기 */
.gnb>ul>li:nth-child(1)>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 0px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(-10deg, 1deg)
    translate(-10px, -30px);

    transition: all .3s;
}
.gnb>ul>li:nth-child(1):hover>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 80px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(-10deg, 1deg)
    translate(-10px, -30px);

    transition: all .3s ease-in-out;
}

.gnb>ul>li:nth-child(2)>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 0px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(10deg, 0deg)
    translate(-2px, -30px);

    transition: all .3s;
}
.gnb>ul>li:nth-child(2):hover>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 60px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(10deg, 0deg)
    translate(-2px, -30px);

    transition: all .3s ease-in-out;
}

.gnb>ul>li:nth-child(3)>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 0px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(-12deg, -1deg)
    translate(-8px, -30px);

    transition: all .3s;
}
.gnb>ul>li:nth-child(3):hover>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 190px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(-12deg, -1deg)
    translate(-8px, -32px);

    transition: all .3s ease-in-out;
}

.gnb>ul>li:nth-child(4)>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 0px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(-14deg, -2deg)
    translate(-13px, -30px);

    transition: all .3s;
}
.gnb>ul>li:nth-child(4):hover>a::after{
    content: '';
    display: block;
    position: absolute;
    z-index: -1;

    width: 85px;
    height: 33px;
    background-color: rgba(255, 0, 0, 0.5);

    transform: 
    skew(-14deg, -2deg)
    translate(-13px, -32px);

    transition: all .3s ease-in-out;
}



/* 가상요소로 상위메뉴 언더바 만들기 */
/* .gnb>ul>li>a::after{
    content: '';
    display: block;

    height: 3px;
    background-color: red;
    margin-top: 2px;

    변경되는 속성
    width: 0%;
    margin-left: 100%;

    transition: all .3s;
} */

/* 상위메뉴 마우스오버시 언더바 등장 */
/* .gnb>ul>li:hover>a::after{
    width: 100%;
    margin-left: 0%;

    transition: width .3s;
} */


/************************** 메인 영역 **************************/

.top::after{
    content: '👆';
    display: block;
    width: 50px;
    height: 50px;

    position: fixed;
    bottom: 10%;
    right: 10%;
    text-align: center;
    font-size: 3rem;
}
/* 아! 이렇게 만드니까 링크를 못.....거네...?!ㅠ0ㅜㅋㅋㅋ */




/* 페이지별 컨텐츠 박스 */
.pbx>div{
    height: 100vh;
}

/* 메인 페이지의 본문만 중앙가운데 정렬 */
main .cbx{
    height: 80vh;
    align-items: center;
    justify-content: center;
}


/* 본문 */
.cont{
    position: relative;
    top: 145px;
    margin: 0 auto;
    height: 80vh;
    /* 조절하기 힘드네ㅠ 자꾸...넘치네...? */
    
    max-width: 70vw;
    border: 5px dashed tomato;
    
    font-size: 1.8rem;
}

/* 본문 안을 2단으로 만들기 */
.cbx{
    /* 플렉스박스 */
    display: flex;
    /* justify-content: center; */
}
.cbx .part{
    flex: 1;
}

/* 각 단의 제목 */
.part h2{
    letter-spacing: 3px;
}

/* 각 단의 내용 */
.part ol{
    text-align: left;
}


