@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
#contact-me {
  width: 100vw;
  height: 100vh;
  overflow: hidden !important;
}
#contact-me > #section-h > h1 {
  transform: translateY(100%);
  opacity: 0;
}
#contact-me > #section-h > h2 {
  transform: translate(-400%, 0%);
  opacity: 0;
}
#contact-me > #section-h > p {
  transform: translate(52vw, 0%);
  opacity: 0;
}
#form-container {
  width: 100%;
  height: 70%;
  position: relative;
}
#con-sucess-mes {
  text-align: center;
  color: var(--green-color);
  font-size: 1.5rem;
  padding-bottom: 1rem;
  height: 10%;
  font-family: "Roboto", sans-serif;
}
#con-sucess-mes > i {
  font-size: 2rem;
  padding-left: 2rem;
}
#form {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: flex-start;
  min-height: 90%;
  gap: 2rem;
}
#form label {
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
#form label > span {
  color: red;
  padding: 0 2rem;
  text-align: center;
  display: inline-block;
  width: 80%;
  font-size: 20px;
}
#input {
  display: flex;
  flex-direction: column;
  width: 33%;
  flex-shrink: 0;
  flex-grow: 0;
  flex-wrap: wrap;
}
#input > input {
  padding: 30px;
  outline: none;
  border: none;
  border-radius: 9px;
  background: transparent;
  box-shadow: var(--box-shadow);
  color: var(--primerary-color);
  font-size: 18px;
  width: 0%;
  margin: 0 auto;
}
#text-area {
  width: 30%;
  height: 55.5%;
  box-sizing: border-box;
}
#text-area > textarea {
  padding: 1rem 2rem;
  width: 0%;
  height: 0%;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: var(--box-shadow);
  color: var(--primerary-color);
  resize: none;
  border-radius: 9px;
  box-sizing: border-box;
}
#submit > i {
  margin-left: 0.5rem;
}
#submit {
  border: none;
  outline: none;
  position: absolute;
  bottom: 18%;
  left: 44%;
  width: 15rem;
  padding: 0.8rem;
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: 500;
  background: var(--red-color);
  color: #fff;
  border-radius: 9px;
  font-family: "Kanit", sans-serif;
  cursor: pointer;
  transition: all 1s ease-in-out;
  box-shadow: var(--box-shadow-red-color) 4px 4px 15px;
  transform: translateY(100%);
}
#submit:hover {
  box-shadow: var(--box-shadow-red-color) 8px 8px 15px;
  transform: translate(-10px, -10px) !important;
  transition: all 1.5s ease-in-out;
}

/* add meadia query. */

@media screen and (max-width: 1621px) {
  #contact-me > #section-h > h2 {
    transform: translate(-330%, 0%);
  }
  #contact-me > #section-h > h1 {
    font-size: 2.5rem;
  }
  #input > input,
  #text-area > textarea {
    padding: 1.6rem;
    font-size: 1rem;
  }
  #form label {
    height: 2.5rem;
  }
  #form label > span {
    font-size: 1rem;
  }
  #submit {
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
    width: 12rem;
    bottom: 10%;
    left: 44.4%;
  }
  #con-sucess-mes {
    font-size: 1.2rem;
  }
}

/* adding meadia queary in 1440px mix-width.. */
@media screen and (max-width: 1440px) {
  #contact-me {
    box-sizing: border-box;
  }
  #contact-me > #section-h > h2 {
    transform: translateX(-50vw);
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1s ease-in-out !important;
    font-size: 2.2rem;
  }
  #contact-me > #section-h > h1 {
    font-size: 2.5rem;
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 1.5s ease-in-out, transform 1s ease-in-out !important;
  }

  #submit {
    left: 43.5%;
    bottom: 20%;
  }
}

/* adding meadia quary for mobile screen min-width = 300px & max-width = 500px */

@media (min-width: 320px) and (max-width: 480px) {
  #contact-me > #section-h {
    height: 15vh;
  }
  #contact-me > #section-h > h1 {
    font-size: 2rem;
  }
  #contact-me > #section-h > p {
    width: 30vw;
    padding: 0.1rem;
  }
  #form {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0rem;
  }
  #input {
    width: 80%;
  }
  #input > input, #text-area > textarea{
    font-size: 1rem;
    font-size: 1.2rem;
  }
  #submit {
    position: static;
    font-size: 1.5rem;
    width: 15rem;
    padding: 1rem;
    margin-top: 8rem;
  }
  #submit:hover {
    box-shadow: var(--box-shadow-red-color) 8px 8px 15px;
    transform: translate(0) !important;
  }
}
