html{
  height: 100%;
  margin:0px;
  width: 100%;
}
.brand p{
  margin-top: 40px;
  margin-bottom: 40px;

  font-family: 'Yellowtail', cursive;
  font-size: 80px;
  text-shadow: 0 1.5px 3px rgba(26, 186, 208, 0.5);
  text-align: center;
  color: rgba(255,255,255,0.9);

}
.text{

   background: rgba(0, 80, 77, 0.78);
  color: white;
  cell-spacing:20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
border-radius: 0px 0px 20px 20px;
}
.text p{
  margin-top: 0px;
  padding: 20px;
  font-size: 26px;
  color: white;
}
.text h2{
  margin-top: 0px;
  line-height: 150%;
  font-size: 42px;
}
.text a{
  color:rgba(37, 93, 37, 0.9  );
}
body{

  border: 0px;
  margin: 0px;
  background:url(17.jpg) no-repeat fixed center center ;
   -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  
  font-family: 'Lora', serif;

}
header{
  margin: 0;
  width: 100%;
  padding: 40px 0;
  background: #00795F;
  color: white;
  text-align: center;

}
.container{
  height: auto;
  margin-left: auto;
  margin-right: auto;
  width: 100%;

}
h1{

  margin: 0px;
  font-size: 250%;
  font-family: sans-serif;
}
h2{
  font-family: sans-serif;
  color: darkgreen;
  margin: 0px;
}
nav ul{
  margin: 0;
  overflow: hidden;
  background: #43a286;
  color: white;
  padding: 0;
  text-align: center;
  -webkit-transition: max-height 0.4s;
  -ms-transition: max-height 0.4s;
  -mz-transition: max-height 0.4s;
  -o-transition: max-height 0.4s;
  transition: max-height 0.4s;
}
nav ul li {
  padding: 20px;
  display: inline-block;
}
nav ul li a{
  color: inherit;
  text-decoration: none;
}
nav ul li:hover {
background:#399077;
}
.active{
  background-color: #399077;
}

#handle{
  width: 100%;
  background: #005c48;
  text-align: left;
  display:none;
  margin: 0px;
  box-sizing: border-box;
  padding:10px;
  color: white;

}
#handle i{
 display: block;
 float: right;
 margin: 0;
 padding: 0.5%;
 color: white;
}
      .grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: 5%;
  margin-right: 5%;

}
.grid img{

    border-radius: 50%;
  border: 2px solid #CCC;
  height: 170px;
  width: 170px;
  padding: 0px;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;


 
}

.grid a {
  cursor: default;
  
  display: inline-block;
  margin-bottom: 15px;
  width: calc(50% - 4px);
  margin-right: 8px;
  text-decoration: none;
  color: black;
  border-radius: 30px;

  text-align: center;
}

.grid a:nth-of-type(2n) {
  margin-right: 0;
}

@media screen and (min-width: 50em) {
  .grid a {
    width: calc(25% - 6px);
  }
  
  .grid a:nth-of-type(2n) {
    margin-right: 8px;
  }
  
 .grid a:nth-of-type(4n) {
    margin-right: 0;
  }
}


figure {
  margin: 0;
  text-align: center;
  overflow: hidden;
  text-align: center;
}

figcaption {
  cursor: pointer;
  width: auto;
  box-sizing: border-box;
   background-color: rgba(0,0,0,0.6); 
   max-width: 65%;
   margin-left:auto;
   margin-right: auto;
 
  margin-top: 15px;
  color: white;
  text-align: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.grid img{
  display: block;
}





/* MEDIA QUERYYYYY-----------------------------------*/
@media screen and (max-width: 700px){
  .grid img {

  border: none;
  width: 150px;
  height: 150px;

  
  background: #ccc;
  transition: transform .2s ease-in-out;
}
  header{
    margin-top: 0px;
    width: 100%;
  }

nav ul{
  max-height: 0;

}
.shown {
  max-height: 20em;
}
  nav ul li{
    border-bottom: 1px solid #CCC;
    text-align: center;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;

  }
  #handle{
    display:block;
  }



}
