/* 공통 변수 */
:root {
    --header-height: 3rem;
    /* --nav-width: 68px; 기본값 */
    --nav-width: 63px;
    --nav-color: rgb(0, 0, 21);
    --active-color: rgb(238, 119, 40);
    --nav-color-light: rgba(255, 255, 255, 0.6);
    --white-color: #FFFFFF;
    --body-font: Arial, sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100;
    --bs-link-color: rgb(81, 81, 83);
    --bs-body-color: rgba(44, 56, 74, 0.95);
}

*,
::before,
::after {
    box-sizing: border-box
}

/* 태그 요소 */
body {
    background-color: var(--bs-light);
    position: relative;
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    /*transition: .5s*/
}

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    /*transition: .5s*/
}

.header-toggle {
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer
}

.header-menu-box {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden
}

.header-nav {
    flex-direction: row;
    margin-bottom: 0;
    list-style: none;
}

.header-item {
    color: var(--nav-color);
    padding: 0.8em;
    font-weight: 600;
}

.header-item a {
    text-decoration: none;
}

.avatar {
    width: 2.5rem;
    display: flex;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: auto;
    border-radius: 50em;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    /* background-color: var(--nav-color); */
    background: linear-gradient(rgb(53, 48, 66), #0b0d12);
    padding: .5rem 1rem 0 0;
    /*transition: .5s;*/
    z-index: var(--z-fixed);
    overflow-y: auto;
}

.sidebar-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden
}

.sidebar-brand {
    margin-left: -0.4em;
    /* 사이드바 접었을때 로고 보이는 마진 */
    margin-bottom: 1rem
}

/* sidebar brand- 현재 미사용 */
.sidebar-brand-icon {
    font-size: 1.25rem;
    color: var(--white-color)
}

.sidebar-brand-name {
    color: var(--white-color);
    font-weight: 700
}

.sidebar-show {
    left: 0
}

.sidebar-link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    color: var(--nav-color-light);
    /*transition: .3s;*/
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1rem;
    text-decoration: none;
}

.sidebar-link:hover {
    color: var(--white-color)
}

/*
.hide {
    width: var(--nav-width);
}
*/

.nav-icon {
    font-size: 1.25rem
}

.nav-divider {
    margin-left: 10px;
    border-top: #e6e9ed solid 1px;
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}

.sidebar-link-active {
    color: var(--white-color) !important;
}

.sidebar-link-active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 32px;
    background-color: var(--active-color);
    margin: -3px 0 0 0;
}

.height-100 {
    height: 100vh
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.5rem 1rem;
    color: rgba(44, 56, 74, 0.95);
    /* background: #ebedef; */
    border-top: 1px solid #d8dbe0;
}

.wrapper {
    width: 100%;
    will-change: auto;
    /*transition: padding 0.15s;*/
}

/* landing, content 강좌 배경 이미지 설정 */
.card-cover {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Start BS Override */
.min-vh-100 {
    min-height: 90vh !important;
    /* dinfree: footer 밀려서 조정해봄. min-height: 100vh !important; */
}

/* 갑작스러운 ios, macos 사파리 에서만 문제로 임시로 추가 */
.alert {
    padding-left: 1.5rem;
}

/* End BS Override */

/* 화면 크기 변경시 조정 */
@media screen and (min-width: 868px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        /* 기존 calc(var(--nav-width) + 2rem)에서 변경 */
        padding-left: calc(var(--nav-width) + 188px);
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        /* 기존 calc(var(--nav-width) + 2rem)에서 변경 */
        padding: 0 2rem 0 calc(var(--nav-width) + 188px);
    }

    .header-toggle {
        display: none;
    }

    .header-menu-box {
        width: 40px;
        height: 40px
    }

    .avatar {
        width: 45px
    }

    .sidebar {
        left: 0;
        /* 데스크탑에서 기본적으로 펼쳐진 너비를 갖도록 추가 */
        width: calc(var(--nav-width) + 156px);
        padding: 1rem 1rem 0 0;
    }

    .sidebar-show {
        width: calc(var(--nav-width) + 156px)
            /* sidebar 보여졌을때 크기 계산 */
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 188px)
            /* sidebar 보여졌을때 body 마진 계산 */
    }

    /* 데스크탑에서 토글 버튼 숨기기 */
    .header-toggle {
        display: none;
    }
}

/* 화면 크기 변경시 조정 */
/*@media (width <= 390px) {*/

/*}*/