@import url("https://fonts.googleapis.com/css2?family=Poppins: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&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}
body {
  font-family: "poppins", sans-serif;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
} /* Fullscreen background video */
video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.container {
  width: 700px;
  height: 500px;
  background: rgba(176, 196, 222, 0.508);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 2px 2px 10px;
  border-radius: 10px;
  border: none;
}
.Text {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* margin-bottom: 10px; */
}
#fromText {
  width: 100%;
  height: 280px;
  margin-left: 7px;
  color: black;
  background-color: #ffff;
  font-size: 18px;
  padding: 20px;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
}
#toText {
  width: 100%;
  height: 280px;
  margin-right: 7px;
  color: black;
  background-color: #ffff;
  font-size: 18px;
  padding: 20px;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
}
.selectArea {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.493);
  margin-top: 20px;
  border: 1px solid white;
  border: none;
  margin-right: 5px;
  margin-left: 5px;
  border-radius: 5px;
}
.select1 {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-right: 5px solid #007da7d2;
  border-radius: 5px; /* margin-right: 20px; */
}
.select2 {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-right: 5px solid #0000;
  border-radius: 5px; /* margin-right: 30px; */
}
#fselect {
  padding: 10px 30px 10px 30px;
  box-sizing: border-box;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#sselect {
  padding: 10px 30px 10px 30px;
  box-sizing: border-box;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#transfer {
  width: 300px;
  height: 50px;
  background-color: black;
  margin-top: 50px;
  color: #ffff;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#transfer:hover {
  background-color: #00171f86;
}
.speaker {
  cursor: pointer;
  transition: 0.3s all;
}
.speaker:hover {
  transform: scale(130%);
}
.copy {
  cursor: pointer;
  transition: 0.3s all;
}
.copy:hover {
  transform: scale(130%);
}

@media (max-width: 768px) {
  body {
    height: auto;
    justify-content: flex-start;
    padding: 10px;
  }

  .container {
    width: 94%;
    height: auto;
    padding: 15px;
    margin-top: 100px;
  }

  .Text {
    flex-direction: column;
    height: auto;
  }

  #fromText,
  #toText {
    width: 100%;
    height: 150px;
    font-size: 16px;
  }

  .selectArea {
    flex-direction: column;
    height: auto;
    gap: 15px;
    padding: 10px;
  }

  .select1,
  .select2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
  }

  .select1 img,
  .select2 img {
    width: 22px;
    height: 22px;
  }

  #fselect,
  #sselect {
    flex: none;
    width: 60%;
    font-size: 14px;
    padding: 10px;
  }

  #transfer {
    width: 100%;
    height: 45px;
    font-size: 16px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  #fromText,
  #toText {
    height: 120px;
    font-size: 14px;
  }

  #fselect,
  #sselect {
    width: 70%;
  }

  #transfer {
    font-size: 14px;
    height: 40px;
  }
}
