﻿/*
    DEMO STYLE
*/

/* ---------------------------------------------------
    Navbar STYLE
----------------------------------------------------- */
.navbar {
    margin: 0.5rem 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: rgba(115, 134, 213, 0.25);
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 0px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

/* 전화기: 메뉴는 닫힌 채로 시작하고, 열면 내용을 밀지 않고 위에 덮인다.
   페이지는 #sidebar 에 'active' 를 붙인 채로 나온다 - 데스크톱에서 그것은
   '닫힘'이다. 예전 규칙은 좁은 화면에서 그 뜻을 뒤집어 놓아서, 전화기에서는
   메뉴가 열린 채 시작해 내용을 화면 반쪽으로 밀어냈다. 이제 어디서나
   'active' = 닫힘. 메뉴 밖을 누르면 닫히는 것은 WebPage.aspx 의 스크립트. */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        margin-left: 0;
        background: #7386D5;          /* 투명 배경이면 덮인 내용이 비쳐 글이 안 읽힌다 */
        box-shadow: 2px 0 12px rgba(0, 0, 0, .25);
    }
    #sidebar.active {
        margin-left: -250px;
        box-shadow: none;
    }
    #content {
        min-height: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}