// Font
@import "../common/font.scss";

// Variables
@import '../variables';

// Bootstrap
@import 'bootstrap/scss/bootstrap';

// Jquery-ui
@import 'jquery-ui/themes/base/all.css';
@import 'jquery-ui/themes/base/datepicker.css';

// Rateyo
@import 'rateyo/lib/cjs/rateyo.min.css';

// Common
@import '../common/reset';

// Swiper slide
@import 'swiper/swiper-bundle.min.css';
@import 'swiper/swiper.min.css';

// photoswipe.com
@import 'photoswipe/dist/photoswipe.css';

// 메인 페이지
//@import 'main/index.scss';

// 회원 정보 상세
@import 'account/profile.scss';

// 비밀번호 재설정, 변경 처리
@import 'account/certify.scss';

// 회원 정보 수정
@import 'account/modify.scss';

// 비밀번호 변경, 정기적 변경
@import 'account/passwords.scss';

// 회원탈퇴
@import 'account/leave.scss';

// 로그인 기록
@import 'account/loginLog.scss';

// 작성 게시글
@import 'account/post.scss';

// 작성 댓글
@import 'account/comment.scss';

// 게시판 목록, 사진/동영상, 공지사항, 검색
@import 'board/index.scss';

// 게시판 작성/수정
@import 'board/write.scss';

// 최근 게시글
@import 'board/latest.scss';

// 게시글 보기
@import 'board/view.scss';

// 댓글
@import 'board/comment.scss';

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#header {
    position: relative;
    background: #001620;
    border-bottom: 1px solid #2c2c2c;

    .navbar {
        .navbar-brand {
            color: #d2d2d2;
            font-size: 1.2rem;
            font-family: 'Open-Sans-Extrabold';
            font-weight: bolder;
        }

        .navbar-toggler {
            color: #d6d6d6;
        }

        #navbarSearch {
            margin-top: 7px;

            form {
                display: flex;
                flex-wrap: nowrap;

                input[type="search"] {
                    flex-shrink: 1;
                }

                button[type="submit"] {
                    flex-shrink: 0;
                    flex-basis: auto;
                }
            }
        }
    }

    #navbarMenu {
        max-width: 60%;

        .offcanvas-header {

            .offcanvas-title {
                font-size: 1.2rem;
                font-family: 'Open-Sans-Extrabold';
                font-weight: bolder;
            }

            &:nth-of-type(2) {
                padding-top: 0;

                .dropdown {
                    height: inherit;

                    .dropdown-item {
                        color: #333;

                        &:active {
                            background: none;
                        }
                    }
                }
            }
        }

        .offcanvas-body {
            padding-top: 0;

            p {
                margin-bottom: 0;

                a {
                    display: block;
                    padding: 8px 0;
                    line-height: 24px;

                    &:hover,
                    &:focus {
                        color: #ffffff;
                    }
                }
            }

            ul {
                margin-bottom: 15px;

                li {

                    &.active {
                        a {
                            font-weight: bold;
                            color: #b1b1b1;
                        }
                    }

                    a {
                        line-height: 24px;
                        padding-left: 0;
                        padding-right: 0;

                        &:hover,
                        &:focus {
                            color: #ffffff;
                        }
                    }
                }
            }

            .coupang {
                padding: 15px 0 15px 0;
                height: auto;
                margin-top: auto;

                small {
                    font-size: 11px;
                    color: #bbbbbb;
                }
            }

            table {
                width: 100%;

                caption {
                    caption-side: top;
                    padding: 0 0;
                }

                tr {
                    th {
                        text-align: left;
                        padding: 3px 0;
                        font-weight: inherit;
                    }

                    td {
                        text-align: right;
                        padding: 3px 0;
                    }
                }
            }

            address {
                color: #8d8d8d;
                font-size: 0.7rem;
                line-height: 3rem;
                text-align: center;
                margin-bottom: 0;
            }
        }
    }
}

#main {
    flex-grow: 1;
    background: #000;

    // 내 정보 네비
    .navigate {
        ul {
            white-space: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            flex-wrap: inherit !important;
            scrollbar-width: none;

            &::-webkit-scrollbar {
                display: none;
            }

            li {
                a.active {
                    color: #fff;
                }
            }
        }
    }
}

#footer {
    border-top: 1px solid #2c2c2c;
    background: #070707;

    > div {
        ul {
            padding: 0;
            margin: 0;
            list-style: none;

            li {
                display: inline-block;
                vertical-align: middle;
            }

            @include media-breakpoint-down(sm) {
                & li {
                    display: block;
                    margin-bottom: 9px;

                    &.divider {
                        display: none;
                    }
                }
            }
        }
    }

    a {
        img {
            width: 100%;
            max-width: 120px;
        }
    }

    address {
        color: #839900;
        font-size: 0.7rem;
        margin-bottom: 0;
    }
}

// 문서
#document {
    padding: calc(var(--bs-gutter-x) * .5);

    h6 {
        font-weight: bold;
        margin-bottom: 0;
    }

    blockquote {
        text-align: justify;

        img {
            max-width: 100%;
            height: 100%;
        }
    }
}

// 게시판 에디터 색상
.mce-content-body  {
    background: #1f1f1f;
    color: #c1c1c1;
}
