/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 * 
 * Released under MIT License, copyright (c) 2013 Mark Otto.
 * 
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:

 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.

 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * 
 */


/*
 * 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: 600px) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 1160px) {
  html {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .labellabel {
    display: none;
  }
}


/*
 * 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 {
  text-align: center;
  padding: 20px 10px;
  color: rgba(255,255,255,.5);
  /* background-color: #202020; */
  margin-left: -15px;
  padding-left: 20px;
  z-index: 1000;
}
@media (min-width: 600px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    text-align: left;
    unicode-bidi: bidi-override;
    direction: rtl;
    overflow: scroll;
    overflow-x: hidden;
  }
}

.subtitle {
    margin-left: 0px;
}
@media (min-width: 600px) {
    .subtitle {
        margin-left: -20px;
    }
}

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

/* About section */
.sidebar-about img {
  width: 70%
  height: auto;
  margin-top: 5px;
  margin-bottom: 0px;
  margin-left: 2%;
}

.sidebar-about p {
    font-weight: bold;
    font-size: 24px;
    color: white;
    line-height: 1.0;
}

.sidebar-about a {
    text-decoration: none;
}

.sidebar h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 5px;
  margin-left: 5%;
  font-size: 24px;
}

.toc {
  line-height: 1.2;
}

.toc ul {
    list-style-type: none;
    padding-left: 15px;
}

/* Sidebar nav */
.sidebar-nav {
  padding-left: 8%;
  list-style: none;
}
.sidebar-nav-item {
  display: block;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* 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: 600px) {
  .sidebar-sticky {
    position: absolute;
    right:  20px;
    bottom: 20px;
    left:   20px;
  }
}


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

.content {
  padding-top:    60px;
  padding-bottom: 80px;
}

@media (min-width: 600px) {
  .content {
    max-width: 760px;
    margin-left: 360px;
    margin-right: 40px;
  }
}

@media (max-width: 800px) {
  .plustoggle {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 800px) {
  .dmglogo {
    height: 75px;
  }
  .sidebar {
    width: 110%;
    height: 160px;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  .content {
    max-width: 100%;
    margin-top: 130px;
    margin-left: 40px;
    margin-right: 40px;
  }
  .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    margin-top: -170px;
    padding-top: 170px;
  }
}

@media (min-width: 1280px) {
  .content {
    margin-left: 440px;
    margin-right: 80px;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 600px) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 40px;
    margin-right: 400px;
  }
}

@media (min-width: 1280px) {
  .layout-reverse .content {
    margin-left: 80px;
    margin-right: 440px;
  }
}



/*
 * 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 (http://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;
}

/* Bluer */
.theme-base-bluer .content a,
.theme-base-bluer .related-posts li a:hover {
  color: #116c91;
}

/* 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;
}