.contact {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../images/Farmak3.jpg") no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 45px;
}
.contact h1 {
  font-weight: bold;
  color: white;
  font-size: 35px;
  margin-top: 125px;
  text-align: center;
}
.contact h3 {
  color: rgb(251, 6, 6);
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 17px;
  text-decoration: underline;
  text-align: center;
  padding: 2px 10px;
}

.contact button{
  text-align: center;
  background-color: red;
  color:white;
  font-size: 18px;
  padding: 10px 5px;
  width: 250px;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 2px 3px 2px rgb(161, 160, 160);
  display: block;
  margin: 10px auto;
}

.contact button:hover {
  transition: 1s;
  background-color: blue;
  box-shadow: none;
}

.contact .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  flex-direction: row;
 
}

.contact .row .form-container {
  width: 450px;

}

.contact .row .form-container input {
  height: 4rem;
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 2rem 1.2rem;
  margin: 1rem 0;
  color: black;
  font-size: 1.9rem;
  transition: 0.2s linear;
  border: 3px solid black;

}


.contact .row .form-container input[type="submit"] {
  width: 100%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 2.2rem;
  transition: 1.1s;
  border: 3px solid black;
  margin-bottom: 25px;
  padding-top: 0px;
  font-weight: bold;
}

.contact .row .form-container input[type="submit"]:hover {
  background: red;
  border: 0.2rem solid var(--red);
  
}

.contact .icons {
  padding: 0.5rem 0;
  text-align: center;
  
}
  
.contact .icons a{
  padding-left: 10px;
 
}

.contact .icons img{
  max-width: 50px;
  border-radius: 50%;
  padding-left: 8px;
}

.contact .icons img:hover 
{transition: transform 0.5s;
transform: scale(1.1);}


@media (max-width: 1300px) {
  
  .contact .row {
    flex-direction: column;
    width: 550px;
  }
  .contact .row .form-container {
    width: 80%;
    padding-top: 0;
    padding-right: 0;
  }

  .contact .title  {
    margin-bottom: 0;
  }

  .contact .row .image img:hover{
      transition: transform 1s;
      transform: scale(1);
    }
    .contact .icons img:hover 
    {transition: transform 0.5s;
    transform: scale(1);}

    .contact .row .image{
         
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 0;
      padding-top: 0;
      
    }
  .contact .row .image img {
          height: 300px;
          width: 300px;
          margin-top: 0;
          margin-right: 0;
          margin-bottom: 10px;
        }
  }

  @media (max-width: 950px) { 
        
      
        .contact .icons {
          padding: 12px;
        }
        .contact .icons a {
          padding: 5px;
        }
          
  }

  @media (max-width: 575px){

    .contact .row {
     
      width: 100%}

  }

  @media (max-width: 370px) { 
    .contact .row .image img{
      height: 240px;
      width: 240px;
    } 
    .contact .icons img{
      width: 49px;
    }
    .contact h1{
      font-size: 25px;
    }

    .contact button{
      width: 230px;
      font-size: 15px;
    }
}



.valid {
  color: greenyellow;
  text-align: center;
}

.invalid {
  color: red;
  text-align: center;
}

@keyframes fromTop{
0%{
  opacity: 0;
  transform: translateY(-50px);
}

100%{
  opacity: 1;
  transform: translateY(0px);
}
}

@keyframes fromLeft{
0%{
  opacity: 0;
  transform: translateX(-50px);
}

100%{
  opacity: 1;
  transform: translateX(0px);
}
}