html {
    scroll-behavior: smooth;
    font-size: 16px;
}

#wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
}

/* _____________________________left header_____________________________ */
#header.leftHeader {
    width: 20%;
    height: 100vh;
    background-color: var(--white);
    border-right: 1px solid var(--gray);
    position: fixed;
    padding: 30px;
    z-index: 1000;
}

.leftHeader .header_logo img {
    width: 50%;
    padding: 5px;
}

/* header_nav */
.leftHeader .header_nav {
    margin: 40px 0;
    width: 100%;
    font-size: 1.1rem;
}

.leftHeader .header_nav li {
    /* border: 1px solid red; */
    padding: 1rem;
    padding-left: 3.5rem;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.2s;
}
.leftHeader .header_nav li:hover {
    background-color: var(--white100);
}
.leftHeader .header_nav li:hover i {
    font-style: 25px;
}

.leftHeader .header_nav li a {
    display: block;
    width: 100%;
}
.leftHeader .header_nav li i {
    display: block;
    font-size: 22px;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

/* ____________________________________bottom header____________________________________ */

.topLogo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 60px;
    /* padding: 1.5rem; */
    transition: top 0.4s ease-in-out;
    background-color: var(--white);
    display: none;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--gray);
}
.nav-up {
    top: -120px;
}
.nav-down {
    top: 0px;
}
.topLogo .header_logo {
    width: 100%;
    text-align: center;
}
.topLogo .header_logo img {
    width: 120px;
    padding: 1.1rem;
}

header.bottomHeader {
    width: 100%;
    height: auto;
    background-color: var(--white);
    border-top: 1px solid var(--gray);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
}
.bottomHeader .header_nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottomHeader .header_nav li {
    width: calc(100%/5);
}
.bottomHeader .header_nav li:hover a {
    color: var(--mcolorUp);
}
.bottomHeader .header_nav li.active a {
    color: var(--mcolor);
}
.bottomHeader .header_nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    padding: 1.5rem 1.2rem;
    transition: all 0.3s;
    width: 100%;
    color: var(--black);
}
.bottomHeader .header_nav li a i {
    font-size: 1.5rem;
}

/* ______________________________________contents______________________________________ */

#contents_area {
    width: 80%;
    height: auto;
    min-height: 100vh;
    margin-left: 20%;
    background-color: var(--bgcolor);
    display: flex;
    justify-content: space-between;
    padding: 50px;
    position: relative;
}
#main_contents {
    width: 75%;
    padding: 0 25px;
}

/* ____________________________best_board w100% 꽉차는 게시판 목록____________________________ */

.board_w100 {
    width: 100%;
    height: auto;
    margin-top: 10px;
}
.board_w100 li {
    padding: 0.7rem;
    font-size: 1rem;
    color: var(--black);
    transition: all 0.2s;
}
.board_w100 li:nth-child(odd) {
    background-color: #eee;
}
.board_w100 li:hover {
    background-color: #e0e0e0;
}
.board_w100 li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.board_w100 li .board_info {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   text-align: center;
   font-size: .85rem;
   color: var(--black200);
}
.board_w100 li .board_info > div {
    padding: 0 5px;
}
.board_w100 li .board_title {
    width: 70%;
    text-align: left;
    font-size: 1rem;
    color: var(--black);
}
.board_w100 li .board_author {
    width: 10%;
}
.board_w100 li .board_date {
    width: 10%;
}
.board_w100 li .board_view {
    width: 10%;
}


/* ________________________________aside________________________________ */
#side_wrap {
    width: 25%;
    max-width: 300px;
    height: auto;
    max-height: 380px;
    margin: 0 25px;
    position: sticky;
    top: 50px;
    right: 50px;
}
.side_box {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    background-color: var(--white);
}

/* _________________________________search_________________________________ */
.search_box {
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
    position: relative;
}
.search_box input {
    padding: 10px 15px;
    border-radius: 10px;
    color: #555;
    width: 80%;
}
.search_box input::placeholder {
    font-size: 1rem;
}
.search_box button {
    background-color: transparent;
    border: none;
    color: var(--mcolor);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

/* _________________________________login_________________________________ */

.info_box {
    padding: 20px;
}

/* 로그인 */
.login_info {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 10px;
}
.login_info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}
.login_info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.login_info ul {
    display: flex;
    font-size: 0.85rem;
}
.login_info li {
    padding: 0 10px;
    color: #555;
    border-right: 2px solid rgb(219, 219, 219);
}
.login_info li:first-child {
    padding-left: 0;
}
.login_info li:last-child {
    padding-right: 0;
    border-right: none;
}

/* 로그인하지 않음 */

.not_login p {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--black);
}
.not_login p i {
    font-size: 1.8rem;
    color: var(--mcolor);
    margin: 10px;
}

/* _______________________________footer_______________________________ */

#side_wrap::after {
    content: "© 2023 INSTAGRAM FROM META";
    clear: both;
    display: block;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #aaa;
    width: 100%;
    text-align: center;
}


/* _____________________________board_pages________________________________ */
.board_pages {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.board_pages ul {
    display: flex;
    justify-content: space-evenly;
    width: 50%;
}

.board_pages ul li a {
    display: inline-block;
    padding: 0px 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    background-color: var(--white);
}

.board_pages ul li a:hover {
    text-decoration-color: var(--mcolor);
    color: var(--mcolorUp);
    font-weight: bold;
}

.board_pages ul li.active a {
    color: var(--mcolor);
    font-weight: bold;
    border: 1px solid var(--mcolor);
}


/* ________________________________1650________________________________ */
@media (max-width: 1650px) {
    html {
        font-size: 14px;
    }
    #header.leftHeader {
        width: 250px;
        padding: 30px 20px;
    }
    #contents_area {
        width: calc(100% - 250px);
        margin-left: 250px;
        padding: 30px;
    }
    #main_contents {
        padding: 0;
        width: calc(100% - 270px);
    }
    #side_wrap {
        width: 270px;
        /* max-height: 380px; */
        margin: 0;
        margin-left: 30px;
        position: sticky;
        top: 20px;
        right: 20px;
    }

    .board_w100 li .board_title {
        width: 60%;
        text-align: left;
        font-size: 1rem;
        color: var(--black);
    }

}

/* ________________________________1150________________________________ */
@media (max-width: 1150px) {
    #header.leftHeader {
        width: 250px;
        padding: 30px 20px;
    }
    #contents_area {
        width: calc(100% - 250px);
        margin-left: 250px;
        padding: 30px;
    }
    #main_contents {
        padding: 0;
        width: 100%;
    }
    #side_wrap {
        display: none;
    }
    .board_w100 li .board_author {
        width: 15%;
    }
    .board_w100 li .board_date {
        width: 15%;
    }
    .board_w100 li .board_view {
        width: 10%;
    }
}

/* ________________________________840________________________________ */
@media (max-width: 840px) {
    #header.leftHeader {
        display: none;
    }
    #header.bottomHeader {
        display: block;
    }
    .topLogo {
        display: flex;
    }
    #contents_area {
        width: 100%;
        margin-left: 0px;
        padding: 2.5rem;
        padding-bottom: 6rem;
        padding-top: 6rem;
    }
    #main_contents {
        padding: 0;
        width: 100%;
    }
    #side_wrap {
        display: none;
    }
}

/* ________________________________600________________________________ */
@media (max-width: 600px) {
    html {
        font-size: 13px;
    }
    #contents_area {
        padding: 1rem;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .board_w100 li .board_title {
        width: 56%;
        text-align: left;
        font-size: 1rem;
    }
    .board_w100 li .board_author {
        width: 17%;
    }
    .board_w100 li .board_date {
        width: 17%;
    }
    .board_w100 li .board_view {
        width: 10%;
    }
}