
/*Base styling*/
*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body{
  font-family: "dosis", sans-serif;
  background: #333;
}

a{
  text-decoration: none;
  color: #fff;
}

ul{
  list-style: none;
}

/*NavBar*/
.nav-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 7rem 0;
  color: #fff;
  width: 100%;
  height: 4rem;
  position: sticky;
  top: 0;
}

.nav-container h1{
  font-size: 3rem;
}

.nav-container ul{
  display: flex;
}

.nav-container a{
  margin: 0 1rem;
  padding: 0.5rem;
  color: #fff;
}

.nav-container a:hover{
  border-bottom: 2px solid #fff;
}

.current{
  border-bottom: 2px solid white;
}

/*Hero Section*/
.hero{
  background: url("../img/main.jpg") no-repeat center center/cover;
  height: 100vh;
  width: 100%;
  position: relative;
  color: #fff;
}

/*Section*/
.section-container{
  display: flex;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(135,135,135,1) 0%, rgba(171,171,171,1) 47%, rgba(96,97,97,1) 100%);
  text-align: center
}

.section-content{
  width: 33.3%;
}

.section-content img{
  width: 60%;
  border-radius: 50%;
  margin-left: 6rem;
}

.section-icons{
  display: flex;
  flex-direction: column;
  align-items: baseline;
  margin-left: 2rem;
}

.section-icons a {
  padding: 1rem;
  font-size: 2rem;
  transition: ease 0.5s;
}

.section-icons a:hover{
  cursor: pointer;
  transform: scale(1.2);
}

.icon-facebook-squared{
  color: #4867aa;
}

.icon-instagram{
  color: red;
}

.icon-twitter{
  color: #00a2f3;
}

/*Gallery Layout*/

.gallery{
  padding: 0 4rem;
  margin-top: 3em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 3rem;
  grid-gap: 20px;
}

.gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 3px -3px 10px rgba(0,0,0,0.5);
}

.gallery h2 a{
  padding: 50px;
}

/*Gallery Overlay*/

.img{
  position: relative;
  width: 100%;
}

.overlay-1,
.overlay-2,
.overlay-3{
  position: absolute;
  background: rgba(0,0,0,0.3);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: all 1s ease;
  opacity: 0;
}

.img-3{
  grid-column: 1 / span 2;
  position: relative;
  width: 100%;
}

.overlay-1:hover,
.overlay-2:hover,
.overlay-3:hover{
  opacity: 1;
  font-size: 1.5rem;
}

/*Footer*/
footer{
  position: relative;
  bottom: 0;
  background: #333;
  height: 80px;
  width: 100%;
  text-align: center;
  color: #fff;
  padding-top: 1.5rem;
}


/*Mobile*/
@media(max-width : 767px){
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-container ul{
    margin-top: 1rem;
  }

/*home page*/
  .section-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .section-content{
    width: 100%;
  }

  .section-container img{
    width: 150px;
    margin: 0;
  }

  .section-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
  }

  .section-icons{
    flex-direction: row;
    justify-content: center;
    padding-top: 1rem;
    font-size: 0.5rem;
  }

/*Gallery Page*/

  .gallery{
    padding: 1rem;
    display: flex;
    flex-direction: column;

  }

  .hero{
    height: 60vh;
  }

  .main-footer{
    padding-top: 0.5rem;
  }
}

/*Tablet*/
@media only screen and (min-width : 768px) and (max-width : 1200px) {

  .gallery{
    display: flex;
    flex-direction: column;
  }

  .section-container{
    display: flex;
    text-align: center;
    padding: 1rem;
  }

  .section-container img{
    width: 150px;
    margin: 1rem;
  }

}
