body {
  background: linear-gradient(#ff0055, #00ffff);
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  box-sizing: border-box;
}

h1 {
  text-align: center;
}

span {
  font-weight: bold;
}

#mainBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2em;
}

#box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%;
  max-width: 800px;
  margin-top: 2em;
  gap: 10px;
}

#inputBox,
#outputBox {
  flex: 1 1 100%;
  padding: 1em;
  margin-bottom: 2em;
  background-color: #f7f7f7b3;
  border-radius: 5px;
}

#buttonDiv {
  text-align: center;
  margin: auto;
}

#translateBtn {
  padding: 0.8em 2em;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 10px;
  background-color: #00fa00;
  transition: transform .3s;
}

#translateBtn:hover {
  cursor: pointer;
  background-color: #f7f7f7d3;
  transform: scale(1.1);
}

#inputText,
#outputText {
  padding: 1.5em;
  font-size: 1.5em;
  outline: none;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

#inputLanguage,
#outputLanguage {
  padding: 0.5em;
  font-size: 1.2em;
  outline: none;
  border: none;
  background-color: #f7f7f7b3;
}

@media screen and (min-width: 768px) {
  #box {
    flex-wrap: nowrap;
    margin-top: 0;
  }

  #inputBox {
    margin-right: 20px;
    margin-bottom: 0;
  }
}

#inputLanguage::-webkit-scrollbar,
#outputLanguage::-webkit-scrollbar {
  width: 10px;
}

#inputLanguage::-webkit-scrollbar-track,
#outputLanguage::-webkit-scrollbar-track {
  background: white;
}

#inputLanguage::-webkit-scrollbar-thumb,
#outputLanguage::-webkit-scrollbar-thumb {
  background: rgb(169, 168, 168);
}

#inputLanguage::-webkit-scrollbar-thumb:hover,
#outputLanguage::-webkit-scrollbar-thumb:hover {
  background: rgb(169, 168, 168);
}

@keyframes translate {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

#outputBox:not(.translated) #outputText {
  animation-name: translate;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  transform-origin: left;
  transform: scaleX(0);
}

#outputBox.translated #outputText {
  transform: scaleX(1);
}
