/*Functions*/

/*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;
  color: #fff;
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
}

.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;
}

/*Main Section*/
.page_container{
  margin: auto;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form_container{
  background: #f4f4f4;
  box-shadow: 5px 5px 15px #000;
  width: 100%;
  border-radius: 4px;
  text-align: center;
  margin-top: 2rem;
}

.form_container h2{
  margin-top: 2rem;
  font-size: 2rem;
  border-bottom: 1px solid #333;
  display: inline-block;
}

.info{
  display: flex;
  justify-content: space-around;
  padding: 2rem 4rem;
}

.form_container form{
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 2rem;
}

.form input,
.form button{
  display: block;
  margin-bottom: 20px;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #333;
  width: 100%;
}

.form button:hover{
  cursor: pointer;
  color: #f4f4f4;
  background: grey;
}

.form button:focus{
  outline: none;
}

/*Validation classes*/

.form .form_msg{
  visibility: hidden;
}

.form-control.error input{
  border-color: red;
}

/*Error Messages styling*/
.form-control{
  position: relative;
}


.form-control small {
  position: absolute;
  top: 35px;
  left: 0;
  color: red;
  visibility: hidden;
}

.form-control.error small{
  visibility: visible;
}

/*My infomration styling*/
.my_info{
  display: flex;
  flex-direction: column;
}

.email{
  color: #000;
  margin-bottom: 1rem;
}

.my_info h4{
  font-size: 1.2rem;
  border-bottom: 1px solid #111;
}

.socials{
  margin-top: 1rem;
  font-size: 1.5rem;
  transition: all 0.5s ease;
}

.icon-facebook-squared{
  color: #4867aa;
}
.icon-twitter{
  color: #00a2f3;
}
.icon-instagram{
  color: red;
}

.socials a:hover{
  cursor: pointer;
  color: grey;
  transform: scale(1.2);
}

/*Footer*/

footer{
  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;
  }

  .nav-container ul {
    margin-top: 1rem;
  }
  .page_container{
    padding: 0 1rem;
    width: 80%;
  }

  .form_container h2{
    margin-bottom: 1rem;
  }

  .info{
    flex-direction: column;
    padding: 0;
  }

  .my_info a{
    padding-bottom: 0;
  }

  .my_info h4:nth-of-type(2){
    display: none;
  }

  .my_info p:nth-of-type(1){
    display: none;
  }

  .socials{
    padding-bottom: 1rem;
  }
}

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

  .page_container{
    padding: 0 1rem;
    width: 80%;

  }

}
