/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:400,500,600,700";
body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */
/* 
    Flex container; enables a flex context for all its direct children.
    
    https://css-tricks.com/snippets/css/a-guide-to-flexbox/
    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
    https://getbootstrap.com/docs/4.0/utilities/flex/		
    https://scotch.io/tutorials/a-visual-guide-to-css3-flexbox-properties
*/		
.wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: black;
    color: white;
    transition: all 0.3s;
/*  https://stackoverflow.com/questions/16692909/jquery-custom-content-scroller-doesnt-scroll-to-bottom */    
    padding-bottom: 50px;  
}
#sidebar .logo {
display: block;
width: 120px;
height: 120px;
margin: 0 auto; }
#sidebar .logo span {
  display: block; }
      
#sidebar.active {
    margin-left: -300px;
}
/*   https://www.geeksforgeeks.org/how-to-vertically-center-text-with-css/   */   
.align_vertical {
    border-radius: 10px;    
    font-size: 25px;
    line-height: 55px;
    text-align: center;
    background: #890B20; 
    color: gold;
}    

#sidebar .sidebar-header {
vertical-align: middle;
    background: magenta;

    padding: 20px;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 10px solid black;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul.components li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: none;       
    border-bottom: 1px solid grey;      
}

#sidebar ul li a:hover {
    color: gold; 
}
#sidebar ul li.active > a
    , a[aria-expanded="true"]
{
      background: transparent;
      color: gold; 
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
/*   Node leaves   */   
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #1A0703;
    color: #E49147; /* michel lose color on back-arror */
}

/*   Download source buttong   */  
ul.CTAs {
    padding-top: 0px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
}

ul.CTAs >li a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;

    border-radius: 5px;
    margin-bottom: 5px;
        
}

a.download {
    padding: 10px;
    background: grey !important;
    color: black !important;

}
a.download:hover {
    padding: 10px;
    background: grey !important;
    color: gold !important;

}

a.article,
a.article:hover {
     padding: 10px;
    background: orange !important;
    color: yellow !important;
}
.img {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center; }
/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: calc(100% - 300px);
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

#content.active {
    width: 100%;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -300px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    #content.active {
        width: calc(100% - 300px);
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* ---------------------------------------------------
    Login classes
----------------------------------------------------- */
.wrapper-signin {
  margin-top: 80px;
  margin-bottom: 80px; }

.form-signin {
  max-width: 380px;
  padding: 15px 35px 45px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1); }
  .form-signin .form-signin-heading,
  .form-signin .checkbox {
    margin-bottom: 30px; }
  .form-signin .checkbox {
    font-weight: normal; }
  .form-signin .form-control {
    position: relative;
    font-size: 16px;
    height: auto;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; }
    .form-signin .form-control:focus {
      z-index: 2; }
  .form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0; }
  .form-signin input[type="password"] {
    margin-bottom: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0; }
