/*  ALL LAYOUT CSS GOES IN THIS FILE */

* { box-sizing: border-box; }

html, body  { width: 100%;   }  /*body margin is set to 0 in normalize */

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}



 /* Mobile and up */
@media screen and (min-width: 0em) {  /* 64em to 90em @ 16px = 1024px to 1440px */
	

	
	header{
    position: fixed;
    top: 0;
    left: 0;
    height: 3.1em;
    width: 100%;
    z-index: 5;
  }
  
    header img{
    display: block;
    height: 2.375em;
    width: 4em;

    margin: 0.3em auto;
  }
  
  .menu-button{
    position: fixed;
    top: 0;
    left: 0;
    height: 3em;
    width: 3em;

    transition: all 0.5s ease-in;
  }
  
  .menu-button.active{

  }
  
  .menu-button-line{
    height: 4px;
    width: 32px;
    background-color: #0B3954;
    margin: auto;
    margin-bottom: 0.3em;
  }
  
  #menu-button-top-line{
    margin-top: 0.75em;
  }
  
  #menu-button-top-line, #menu-button-middle-line, #menu-button-bottom-line{
    transition: all 0.25s ease-in;
  }
  
  #menu-button-top-line.active{
    transition: all 0.25s ease-in;
    transform: translate(0, 0.6em) rotate(45deg);
  }
  
  #menu-button-middle-line.active{
    transition: all 0.25s ease-in;
    transform: translate(50px,0);
    opacity: 0.0;
  }
  
  #menu-button-bottom-line.active{
    transition: all 0.25s ease-in;
    transform: translate(0, -0.5em) rotate(-45deg);
  }
  
  nav{
    position: fixed;
    top: 3.4em;
    left: -100%;
    width: 100%;
    height: 100vh;
    padding: 4em 1em 0 1em;
    transition: all 0.5s ease-in;
    
    z-index: 100;
  }
  
  nav.active{
    left: 0;
  }  
  
  nav ul{
    list-style-type: none;
    display: block;
    text-align: center;
    padding: 0;
    margin: 0 auto;
  }
  
  nav ul li{
    margin: 1em 0em;
    padding: 0.75em 0;
  }
  
  nav ul li a{
    text-decoration: none;
    color: #333333;
    font-size: 2em;
  }
  
  li > ul{
    display: none;
    position: relative;
  }

  li:hover .sub-menu-layer1{
    display: block;
    width: 100%;
    margin: 0em auto;

    padding: 1em 0;
    background-color: lightgrey;
  }
  
  .sub-menu-layer1 li:hover .sub-menu-layer2{
    display: block;

    width: 100%;
    margin: 0em auto;
    padding: 1em 0;
    background-color: darkgrey;
  }
  
  li > a:hover{
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #0B3954;
  }
  
  .sub-menu-layer li{
    display: block;
  }

  
  #hero{
    background-color: pink;
    height: 16em;
    width: calc(100% - 2em); 
    position: relative;
    margin: 1em;
    margin-top: 10em;
    overflow: hidden;
    border-radius: 0.25em;
  }
  
  #hero-inner{
    transition: all 0.25s ease-in;
    position: relative;
    left: 0;
    width: 100%;
  }
  
  .text{
    background-color: #D0021B;
    color: white;
    position: absolute;
    top: 0;
    padding: 1em;
    bottom: 0;
    right: -25%;
    width: 25%;
  }
  
  .text h4{
    padding: 0;
  }
  
  .text p{
    font-size: 0.9em;
  }
  
  #pic1{
    height: 16em;
    position: absolute;
    left: 0;
    width: 80%;
    background-image: url('images/sl-1_970_250.jpg');
    background-size: cover;
  }
  
  #pic2{
    height: 16em;
    position: absolute;
    left: 100%;
    width: 80%;
    background-image: url('images/sl-2_970_250.jpg');
    background-size: cover;
  }
  
  #pic3{
    height: 16em;
    position: absolute;
    left: 200%;
    width: 80%;
    background-image: url('images/sl-3_970_250.jpg');
    background-size: cover;
  }
  
  #pic4{
    height: 16em;
    position: absolute;
    left: 300%;
    width: 80%;
    background-image: url('images/sl-4_970_250.jpg');
    background-size: cover;
  }
  
  #pic5{
    height: 16em;
    position: absolute;
    left: 400%;
    width: 80%;
    background-image: url('images/sl-5_970_250.jpg');
    background-size: cover;
  }
  
  #pic6{
    height: 16em;
    position: absolute;
    left: 500%;
    width: 80%;
    background-image: url('images/sl-6_970_250.jpg');
    background-size: cover;
  }
  
  #pic7{
    height: 16em;
    position: absolute;
    left: 600%;
    width: 80%;
    background-image: url('images/sl-7_970_250.jpg');
    background-size: cover;
  }
  
  .buttons{
    position: absolute;
    border-radius: 0.5em;
    bottom: 1em;
    width: 1em;
    height: 1em;
    background-color: rgba(53, 53, 53, 0.80)
  }
  
  #button-1{
    left: 10%;
    background-color: rgba(166, 166, 166, 0.8)
  }
  
  #button-2{
    left: 20%;
  }
  
  #button-3{
    left: 30%;
  }
  
  #button-4{
    left: 40%;
  }
  
  #button-5{
    left: 50%;
  }
  
  #button-6{
    left: 60%;
  }
  
  #button-7{
    left: 70%;
  }

  
  .tag{
    margin-bottom: 1.5em;
  }
  
  .tag h4{
    display: inline;
    color: #FFFFFF;
    background-color: #DCAE1D;
    line-height: 1.414em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0em 0.25em;
    word-wrap: pre-wrap;
  }
  
  
  #main{
    padding: 1em;
    margin: 2em;
    margin-top: 8em;
  }
  
  .general{
    margin: 0;
    padding: 0.5em 1em;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: rgba(161, 161, 161, 0.25);
  }
  
  .general h4, h5{
    padding: 0.5em 0;
    margin: 0;
  }
  
  .secondary{
    float: left;
    width: 50%;
  }
  
  #end{
    clear: left;
  }
  
  footer{
    height: 10em;
    width: 100%;
  }
}

 /* Large and up */
@media screen and (min-width: 40em) {  /* 64em to 90em @ 16px = 1024px to 1440px */

  .menu-button{
    display: none;
  }

  nav{
    top: 3.1em;
    padding: 1em 1em 0 1em;
    left: 0;
    width: 100%;
    height: 3em;
  }  
  
  nav ul{
    
  }
  
  nav ul li{
    display: inline;
    margin: 0em;
    border-left-color: transparent;
    border-right-color: transparent;
    border-left-width: 2em;
    border-right-width: 2em;
    border-left-style: solid;
    border-right-style: solid;
  }
  
  nav ul li a{
    font-size: 1em;
  }
  
  li:hover .sub-menu-layer1{
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    margin: 0em auto;
    top: 3em;

    background-color: lightgrey;
  }
  
  .sub-menu-layer1 li:hover .sub-menu-layer2{
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    margin: 0em auto;
    top: 3em;

    background-color: darkgrey;
  }
  
  article .secondary{
    width: 50%;
  }

  
}
 /* Large and up */
@media screen and (min-width: 64em) {  /* 64em to 90em @ 16px = 1024px to 1440px */
		#header-logo{
      position: absolute;
      width: 8em;
      top: 0.5em;
      left: calc(50% - 4em);
    }
    
    #featured{
      display: grid;  
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 1em;
    }
    
    #lead{
      position: relative;
    }
    
    .follow{
      position: relative;
    }
    
    .tag {
      position: absolute;
      bottom: 0;
      left: 0;
    }
    
}
 /* Large and up */
@media screen and (min-width: 75em) {  /* 64em to 90em @ 16px = 1024px to 1440px */
    
    #featured{
      display: grid;  
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 1em;
    }
}
 /* Large and up */
@media screen and (min-width: 75em) {  /* 64em to 90em @ 16px = 1024px to 1440px */
	
}
