/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
@media (min-width: 60em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 90em) {
  html {
    font-size: 20px;
  }
}

/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #202020;
}
@media (min-width: 60em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: right;
  }

  .sidebar-sticky {
    flex-direction: column !important;
  }

  .sidebar-about p{
    display:inline-block !important;
  }

  .sidebar-about h1 {
    font-size: 3.25rem !important;
  }

  .sidebar-nav {
    display:inline-block !important;
  }

  .sidebar-nav-collapse {
    display:none !important;
  }
}

.sidebar-sticky {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

/* Sidebar collapse*/
.sidebar-nav-collapse {
  vertical-align:top;
  display: inline-block;
  text-align: right;
  order: 2;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.sidebar-nav-collapse ul{
  list-style:none;  
  margin:0;
  padding:0;
}
.sidebar-nav-collapse ul li{
  display:none;
  height:20px;    
  padding:12px;   
}
.sidebar-nav-collapse ul li:last-child{
  border-bottom-left-radius:4px;
  border-bottom-right-radius:4px;
}
.sidebar-nav-collapse label:before{
  height:2px;
  width:20px;
  background:#FFFFFF;
  display:inline-block;
  content:"";
  box-shadow:0px -5px 0px 0px  #FFFFFF,
             0px -10px 0px 0px #FFFFFF;
  transition:all .5s;
  position:relative;
  opacity:1;
}
.sidebar-nav-collapse label{
  display:block;  
  padding:10px;
  color:white;  
  cursor:pointer; 
}
.sidebar-nav-collapse input[type="checkbox"]{
  display: none;
  position:absolute;
}
#collapse:checked ~ li{  
  margin-top:0;
  display: block;
}
#collapse:checked + label:before{
  position:relative;
  opacity:0.5;
  
}


/* About section */
.sidebar-about{
  display: inline-block;
}

.sidebar-about p{
  display: none;
}

.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Abril Fatface", serif;
  font-size: 1.25rem;
  padding: 0.5rem;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
  display: none;
}

.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 60em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 60em) {
  .content {
    max-width: 60rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 90em) {
  .content {
    max-width: 68rem;
    margin-left: 22rem;
    margin-right: 4rem;
  }
}

/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (https://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}
