/*WHat's up bitches welcome to my code #MyCode*/

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #FFF;
  color: black;
  font-family: Verdana, sans-serif;
}

/*Style the top navigation links*/

  .topnav { /*Adds a main bar across the top for everything else to fit in, keeps layouts consistent*/
    display: block;
    width: 100%;
    height: 120px;
    background-color: white;
  }

  .nav-ul {
    list-style-type: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: white;
    height: 120px;
  }
  
  .leftnav ul { /*Floats logo/name/email to the left*/
    float: left;
  }

 /*Floats navigation to the right/style right navigation*/ 
    .rightnav ul {
      float: right;
    }
    
    .nav-ul li { 
      float: right;
    }
    
    .nav-ul li a {
      display: inline-block;
      color: black;
      text-align: center;
      padding: 14px 23px;
      text-decoration: none;
      line-height: 80px;
      font-size: 1.1em;
    }
  
  li a:hover { /*Change the link colors on hover*/
    color: #666;
  }
  
  .nav-ul .active { /*Change the link colors on the active page*/
    color: #BBB;
  }
  
  .namelink a { /*Style name in header*/
    line-height: 75px; 
    padding: 14px 10px;
  }
  
  .namelink a:hover { /*Make name in header not change on hover*/
    color: black;
  }
  
/*Navigation style END*/


/*Style Story Page*/
  .headerimage { /*Style main header image*/
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 900px;
    max-width: 100%;
    padding: 15px 15px 15px 15px;
  }
  
  /*Style storyboards*/ 
  .boards {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 800px;
    max-width: 100%;
  }
  
  .boards h2 {
    padding: 0px 10px 0px 10px;
  }
  
  .boards p {
    padding: 10px 10px 20px 10px;
  }
  
  .speakerdeck { /*Style speakerdeck container for storyboards*/
    display: block;
    border: 0px;
    background: rgba(0, 0, 0, 0.1) padding-box;
    margin: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 3px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 10px;
    width: 800px;
    max-width: 100%;
    height: auto;
   }
   
  /*Style storyboard development/process work*/
  .boards h3 {
    padding: 10px;
  }

  .devwork {
    display: inline-block; /*Put them in a row*/
  }
   
  .devwork img { /*Add border to dev images*/
    border-style: solid;
    border-width: 2px;
    border-color: #DDD;
    border-radius: 6px;
  }
   
  .devwork img:hover { /*Change cursor on hover*/
    cursor: pointer;
  }

  .devwork img:focus { /*Enlarge image on click*/
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 0 1000px 1000px rgba(0, 0, 0, 0.5); /*Shadow to darken background on enlarge*/
  }
 
 /*Story page end*/
 
 /*Design page*/
 
  .designs {
    display: block;
    padding-top: 20px;
    padding-left: 50px;
    padding-right: 50px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 400px;
    max-width: 800px;
  }
  
  .designs img {
    border-style: solid;
    border-width: 2px;
    border-color: #DDD;
    border-radius: 6px; 
  }
  
  .designsstwo {
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    padding-top: 56.25%; 
  }
  
  .designsstwo img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 99%; /*keep at 99% for mobile optimization*/
    height: 99%;
  }
  
  .designstwo img:hover { /*Change cursor when hovering over image*/
    cursor: pointer;
}

  .designstwo img:focus { /*Enlarge image on click*/
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    box-shadow: 0 0 1000px 1000px rgba(0, 0, 0, 0.5); /*Box shadow used to grey out background when image is enlarged*/
    margin-left: 0 !important; /*Keep smaller images centered when clicked*/
  }
 
 /*Design page end*/
 
 /*Films page*/
 
  .vids {
    display: block;
    padding-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 400px;
    max-width: 800px;
  }
  
  .vidstwo {
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    padding-top: 56.25%; 
  }
  
  .vidstwo iframe {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   width: 99%; /*Keep at 99% for mobile optimization*/
   height: 99%;
   border: none; 
  }
 
 /*Films page end*/
 
 /*About page (honestly I'm not sure what all is going on here)*/
  
  .aboutbody {
    display: block;
    padding: 0px 10px 0 10px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 400px;
    max-width: 800px;
  }
  
  .aboutbodypic {
    position: relative; 
    width: 100%;  
    padding-top: 52%; 
  }
  
  .aboutbodypic img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 45%;
    margin-left: 25%;
    height: auto;
    border: none; 
  }
  
  .resume { /*Size and center resume in speakerdeck frame*/
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 45%;
}
 
 /*About page end*/
 
 /*Back to top button*/
 
  #myBtn { /*I stole this code from the internet including the comments*/
    display: none;
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border-style: solid;
    border-color: #DDD;
    background-color: #EEE; /* Set a background color */
    color: #BBB; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 8px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 0.8em; /* Increase font size */
  } 

  #myBtn:hover { /*Stole this as well*/
    background-color: #CCC; /* Add a dark-grey background on hover */
    color: #EEE;
  }

/*Style footer*/

  footer {
    bottom: 0; /*Keeps at bottom of page*/
    position: static; /*Also keeps at bottom of page*/
    font-size: 0.8em;
    text-align: center;
    padding: 20px;
    width: 100%;
  }

/*MOBILE NAV - RESPONSIVE TO DIFFERENT BROWSER SIZES*/

@media screen and (max-width: 1162px) { /*Tablet size/starts when navigation starts to break*/

/*Make back to top button span full width of screen, at bottom above footer*/ 
  .toTop {
    display: block;
    position: relative;
    height: 35px;
    bottom: 5px;
    margin-top: 20px;
  }
          
  .topButt #myBtn {
    display: block;
    position: absolute;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }
 
/*Responsive header/navigation. I don't know what exactly does what but I know it's all important, so. Teehee.*/         
  .header {
    display: block;
    width: 100%;
    height: 240px;
  }
  
  .rightnav {
    display: block;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
          
  .rightnav ul {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
  }
          
  .leftnav ul {
    list-style-type: none;
    display: inline-block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: white;
    height: 110px;
    width: 100%;
  }
    
  .facegif {
    position: absolute;
    top: 0;
    left: 0;
  }
                    
/*Responsive Design page - makes the images on the design page look better in mobile*/
  div.designs {
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
  }
                    
/*Responsive Film page - makes the images on the fims page look better in mobile*/
  div.vids {
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }
                    
/*Responsive about page*/  
  div.resume { /*Resize resume*/
    width: 60%;
  } 
}

  @media screen and (max-width: 725px) { /*Phone size/when navigation starts to break again*/
  
    .namelink { /*Disappear name on navigation*/
      display: none;
    }
      
    /*Responsive about page - make photo resize correctly*/    
    .aboutbodypic {
     margin-bottom: 37%;
    }
  
    .aboutbodypic img {
     width: 80%;
     height: auto;
     margin-left: 9%;
    }
    
    div.resume { /*Resize resume*/
      width: 90%;
    }
  }

/*MOBILE NAV END*/

    
    