*
html{
    font-size: 14px;
}

   /*Font for h1, h2 and h3 is set to Monserrat */

@font-face {
    font-family: montserrat;
    src: url(assets/fonts/Montserrat/Montserrat-Regular.ttf);
}
p,
h1,
h2,
h3,
.nav-menu li a,
label{
    font-family:'montserrat', sans-serif;

}
h1{
    font-size: 2rem;
    margin-bottom: 0;
    padding-top: 2rem;
    text-align: center;
    padding-bottom: 2rem;
}
h2{
    font-size: 1.2rem;
}
h3{
    font-size: 1rem;
    padding: 1px;
}
p{
    font-size: .8rem;
    line-height: 1.5;
    display: inline-block;
}


header{
    
    background-image:url(assets/img/ivan-diaz-_ts3NfjvaXo-unsplash.jpg) ;
    background-size: contain ;
    background-repeat: no-repeat;
    display: block;
    box-sizing: border-box;
    background-attachment: fixed;    /*set to fixed so that the picture does not scroll with the page*/
     justify-content: center;
     margin-bottom: 3rem; /*to get space between the header and the header div*/
     margin: 0 auto;
     height: 20vh;
        left: 2.5vw;
        right: 2.5vw;
     
 }
 
header>div{
        display: flex;
        flex-direction: column;
        bottom: -2rem;
        left: 2.5vw;
        right: 2.5vw;
        text-align: center;
        margin: 0 auto;
        max-width: 95vw;
        margin: 0 auto;
        box-sizing: border-box;
     /* background-color: #ffffffaf;*/
     
}

header a{
    align-self: center;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    place-items: start end;
    align-items: center;
    padding-left: 0;
    flex-direction: row;
    list-style:none;
    padding-top: 3rem;
    
    margin: 0 auto;


}
.nav-menu li{
    background-color:rgb(111, 199, 145);
    border-radius: 1rem;
   
}
.nav-menu li, .nav-menu li a:hover {
    padding: 0 10px 0 10px;
    
}

.nav-menu li a {
    color: black;
    text-decoration:none;
    text-align: center;
    padding:0.5rem 0.5rem;
    
    font-size:15px;
    font-weight: bolder;
    
    
    
}
.nav-menu li a:hover{
    font-size: 30px;
}


.nav-menu li:hover .nav-menu li:focus{
    font-size: 50px;
}

main{
    background-color: rgb(170, 231, 178);
    text-align: center;
    margin: 0 auto; 
    margin-bottom: 1rem;
}

footer{
    display: flex;
    justify-content: center;
    border-style: solid;
    border-width: 3px;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-color: rgb(154, 231, 183);
    margin: 0 auto;
    padding-top: 1rem;
     
     
}

iframe{
    height: 110px;
    width: 300px;
}


.contact, iframe{
     grid-template-columns: 1fr 1fr;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 1rem;
    margin: 0 auto;
}

.contact p{
    display: block;
}
.contact>div img{
    display: block;
    width: 140px; 
    height:50px;
    padding-bottom: .5rem;
    
}


a:link{
    color: black;
}



.game-grid-container, .grid-container{
    padding: 1rem;
    display: grid;
    grid-gap: 1rem;
}

.grid-container{
    
    grid-template-rows: 2fr ;
    margin-bottom: 1rem;
}



.onebox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-gap: 1rem;
  }
  .onebox-grid > div, .threebox-grid, #game-img{
    background: rgb(231, 247, 234);
  }
  .onebox-grid > div {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  .onebox-grid img{
    width: 100%;
    height: fit-content;
  }

  .twobox-grid{
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    
  }

  .twobox-grid img{
    width: 100%;
    height: fit-content;
    
  }
  .threebox-grid{
    display: grid;
    grid-gap: 1rem;
    
    padding: 1.5rem;
    border-radius: 1rem;
  }
  .threebox-grid :last-child{
      font-weight: bold;
  }

  #game-img{
      display: block;
      padding: 1rem;
      
    border-radius: 1rem;
    margin: 1rem;
  }

  #game-img img{
      width: 65vw;
      margin: 0 auto;
  }

  body {
    
    margin: 2rem;
  
    background-color: rgb(231, 247, 234);
  }

  
  fieldset{
      background-color: rgb(170, 231, 178);
      width: 50vw;
      margin: 0 auto;
      padding-bottom: 2rem;
      text-align: center;
      font-size: 14px;
      border: solid 1px rgb(151, 201, 158); 
      border-radius: 6px;
      margin-bottom: 1rem;
      

  }
 textarea, input{
     font-family: 'montserrat', sans-serif;
 }
  label{
      display: block;
      margin-top: 1em;
  }
  .checks label{
      margin-top: 0;
  }
  label :first-of-type{
      margin-top: 0;
  }
  input[type="text"]{
      padding: .5em;
      width: 80%;
      
  }

  .checks{
      margin-bottom: 1em;
      
  }
  .checks p{
    margin-bottom: 1em;
}
input[type="checkbox"]+label{
    display: inline-block;
    
}

input[type="submit"]{
    padding: .5em 1em;
    border-radius: 6px;
    background-color: rgb(255, 255, 255);
    font-size: .8em;
    margin: 1rem;
}
textarea{
    width: 170px;
    height: 10rem;
}
  

#print-button {
	display: none;
}
#game-img button{
    background-color:rgb(178, 223, 241);
    border: solid rgb(49, 162, 190);
    display: block;
    margin: 0 auto;
    font-size: 15px;
    font-weight: bold;
}

 
@media only screen and (min-width:960px){

    html{
        font-size: 18px;
    }

    header{
        height: 40vh;
    }
    .header>div{
        padding: 5rem;
    }
    .nav-menu{
        padding-top: 7rem;
    }

    main, footer, header{
    max-width: 130vh;
    }

    .nav-menu li {
        padding: 0 30px 0 30px;
        border-radius: 24px;
    }
    
    .nav-menu li a {
        font-size:24px;
    }
    .contact{
        display: grid;
       grid-template-columns: 1fr 1fr;
        }
       iframe{
            height: 200px;
            width: 400px;
        }

        .game-grid-container{
            grid-template-columns:1fr 2fr;
             
        }
        .grid-container{
    
            grid-template-columns: 2fr 1fr;
        }
        
        #game-img img{
            width: 60vw;
        }

        textarea{
    min-width: 20rem;
    min-height: 10rem;
}
  
        
}
