@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url("lang.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 690px;
  background: #fff;
  border-radius: 7px;
  padding: 30px;
}

.container h1 {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 24px;
}

.wrapper {
  border-radius: 5px;
  border: 1px solid #bbb;
}

.wrapper .text-input {
  display: flex;
  border-bottom: 1px solid #bbb;
}

.text-input .to-text {
  border-left: 1px solid #bbb;
  border-radius: 0px;
}

.text-input textarea {
  height: 250px;
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 18px;
  border-radius: 5px;
  padding: 10px 15px;
  resize: none;
}

.controls,
li,
.icons,
.icons i {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls {
  list-style: none;
  padding: 12px 15px;
}

.controls .row.from .icons {
  border-right: 1px solid #bbb;
  padding-right: 15px;
}

.controls .row.to .icons {
  border-left: 1px solid #bbb;
  padding-left: 15px;
}

.controls .icons {
  width: 38%;
}

.controls .icons i {
  color: #9f9f9f;
  font-size: 14px;
  cursor: pointer;
  width: 50px;
  justify-content: center;
}

.controls .row select {
  border: none;
  outline: none;
  background: none;
  font-size: 18px;
}

.controls .exchange {
  color: #9f9f9f;
  font-size: 16px;
  cursor: pointer;
}

.container button {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: none;
  outline: none;
  background: #e4d446;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  font-weight: bold;
  font-size: 17px;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.container button:hover {
  background: #30e8bf;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .container h1 {
    font-size: 20px;
  }

  .text-input textarea {
    height: 200px;
    font-size: 16px;
  }

  .controls .row select {
    font-size: 16px;
  }

  .controls .icons i {
    font-size: 12px;
    width: 40px;
  }

  .container button {
    font-size: 15px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .container h1 {
    font-size: 18px;
  }

  .text-input textarea {
    height: 150px;
    font-size: 14px;
  }

  .controls .row select {
    font-size: 14px;
  }

  .controls .icons i {
    font-size: 10px;
    width: 30px;
  }

  .container button {
    font-size: 14px;
    padding: 10px;
  }

  .wrapper .text-input {
    flex-direction: column;
  }

  .text-input .to-text {
    border-left: none;
    border-top: 1px solid #bbb;
  }

  .controls .row {
    flex-direction: column;
    align-items: stretch;
  }

  .controls .row.from .icons,
  .controls .row.to .icons {
    border: none;
    padding: 10px 0;
  }

  .controls .icons {
    width: 100%;
    justify-content: space-around;
  }

  .controls .exchange {
    margin: 10px 0;
  }
}
#from-speak.listening {
    background-color: #ff4444;
    color: white;
}
