﻿/* Navigation Menu - Background */
.navigation {
    /* critical sizing and position styles */
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    
    /* non-critical appearance styles */
    list-style: none;
    background: white;
  }
  
  /* Navigation Menu - List items */
  .nav-item {
    /* non-critical appearance styles */
    width: 200px;
  }
  
  .nav-item a {
    /* non-critical appearance styles */
    display: block;
    padding: 1em;
    background-color: white;
    color:black;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.2s, background 0.5s;
  }
  
  .nav-item a:hover {
    color: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(75,20,20,0.65) 100%);
    background: red;
  }
  
  /* Site Wrapper - Everything that isn't navigation */
  .header{
    min-width: 100%;
    background-color: white; /* Needs a background or else the nav will show through */
    top: 0;
    left: 0;
    height: 40px;
    background-color: blue;
    z-index: 3;
    /* non-critical apperance styles */
    padding-top:1em;
  }
  .content{
    margin-left: 2em;
    margin-right: 1em;

    max-width: 1080px;
  
  }
  .site-wrap {
    /* Critical position and size styles */
    min-height: 100%;
    min-width: 100%;
    background-color: white; /* Needs a background or else the nav will show through */
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    word-wrap: break-word;
    /* non-critical apperance styles */
  }
  .footer{
    min-width: 100%;
    background-color: yellow; /* Needs a background or else the nav will show through */
   top: 0;
   margin-top: 10%;
    left: 0;
    z-index: 1;
    /* non-critical apperance styles */
    padding-top:2em;
  }
  /* Nav Trigger */
  .nav-trigger {
    /* critical styles - hide the checkbox input */
    display: block;
    height: 0;
    width: 0;
  }
  
  label[for="nav-trigger"] {
    /* critical positioning styles */
    position: fixed;
    LEFT: 10PX;
    TOP: 10PX;
    z-index: 2;
    cursor: pointer;
    /* non-critical apperance styles */
    height:30px;
    width: 30px;
    color: black;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='30px' height='30px' viewBox='0 0 30 30' enable-background='new 0 0 30 30' xml:space='preserve'><rect width='30' height='6'/><rect y='24' width='30' height='6'/><rect y='12' width='30' height='6'/></svg>");
  background-size: contain;
    padding-right: 1em;
  }
  
  /* Make the Magic Happen */
  .nav-trigger + label, .site-wrap {
    transition: left 0.7s;
  }
  .navigation img{
      width: 100%;
      height: auto;
  }
  .nav-trigger:checked + label {
    LEFT : 200PX;
    
  }
  
  .nav-trigger:checked ~ .site-wrap {
    left: 200px;

  }
  @media (max-width:780px){
  
    
    label[for="nav-trigger"] {
      width: 15px;
      height: 15px;
    }
    
  }
  @media (min-width:780px){
  
    

    .site-wrap {
      /* Critical position and size styles */
      min-height: 100%;
      min-width: 100%;
      background-color: white; /* Needs a background or else the nav will show through */
      position: relative;
      top: 0;
      word-wrap: break-word;
      left: 0;
    
      z-index: 1;
      /* non-critical apperance styles */
    }
    label[for="nav-trigger"] {
      width: 20px;
      height: 20px;
    }

  }
  body {
      /* Without this, the body has excess horizontal scroll when the menu is open */
    overflow-x: hidden;
    padding: 0;
  }
  
  /* Additional non-critical styles */
  
  h1, h3, p {

    max-width: 1000px;
    padding: .1em;
  }

      .nav-trigger:checked ~ .site-wrap {
        left: 200px;
        margin:0;
        padding: 0;
        text-ALIGN: left;  
        max-width: 1000px;

      }
  
  code {
      padding: 2px;
      background:white;
  }
  
  /* Micro reset */
  *,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}
  html, body { height: 100%; width: 100%; font-family: Intro Free, Arial, sans-serif; }