/* 12T Sidebar - Custom CSS
www.12t.co - 09/21/2023
*/

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 10px;
}

/* Side Menu */
#sidebar-wrapper {
    position: fixed;
    z-index: 998;   /* above the timeline (its parts use z-index 1-2); below .menu-toggle (999) */
    top: 0;         /* pin to the top of the screen instead of relying on where it sits in the HTML */
    right: 0;
    width: 250px;
    height: 100%;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
    transform: translateX(250px);
    background: #f68e1e;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow: auto;
}

/* Keep the menu items evenly spaced even if a page's own CSS pads .sidebar-nav-item
   (feasts.css adds padding: 7px, which made each item 14px taller). */
#sidebar-wrapper .sidebar-nav-item {
    padding: 0;
}

/* Keep the menu's text the same on every page, even where the page's own CSS
   styles every <li> (feasts.css sets "p, li" to 1.2rem Georgia). */
#sidebar-wrapper,
#sidebar-wrapper li,
#sidebar-wrapper a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 250px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li.sidebar-nav-item a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 15px;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    font-size: 1.2rem;
    background: rgba(52, 58, 64, 0.1);
    height: 80px;
    line-height: 50px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
}

.sidebar-nav > .sidebar-brand a {
    color: #000000;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: #fff;
    background: none;
}

#sidebar-wrapper.active {
    right: 250px;
    width: 250px;
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}

.menu-toggle {
    position: fixed;
    right: 15px;
    top: 15px;
    width: 50px;
    height: 50px;
    text-align: center;
    color: black;
    background: #ff8c00;
    box-shadow: 0 6px 12px -2px rgb(50,50,93), 0 3px 7px -3px rgb(0,0,0);
    line-height: 50px;
    z-index: 999;
}

.menu-toggle:focus,
.menu-toggle:hover {
    color: #000;
    background-color: #fff;
}

.menu-toggle:hover {
    background-color: #fff;
}


/* Scroll to top */
.scroll-to-top {
    position: fixed;
    z-index: 997;   /* above the timeline/article, below the open menu (998) and menu button (999) */
    right: 15px;
    bottom: 15px;
    display: none;
    width: 50px;
    height: 50px;
    text-align: center;
    color: #000;
    background: #ff8c00;
    box-shadow: 0 6px 12px -2px rgb(50,50,93), 0 3px 7px -3px rgb(0,0,0);
    line-height: 45px;
}

.scroll-to-top:focus,
.scroll-to-top:hover {
    color: #000;
    }

.scroll-to-top:hover {
    background-color: #fff;
}

.scroll-to-top i {
    font-weight: 800;
}
