* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.8s ease-in-out;
}

body {
  font-family: 'Daytona Light', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size:0.9rem;
  height: 100vh;
  background: linear-gradient(45deg, rgba(250,250,0,0.9) 0%,rgba(150,250,50,0.8) 20%, rgba(100,100,250,0.8) 40%, rgba(200,100,200,0.8) 60%, rgba(250,50,50,0.8) 80%, rgba(255,150,0,0.8) 100%);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

header {
  width: 96vw;
  height: 15vh;
  margin: 2vh;
  background-color: #fff3;
  color: #333;
  border-radius: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: solid 1px #fff6;
  border-top: solid 1px #fff6;
  box-shadow: 3px 3px 5px #0004;
}

main {
  width: 96vw;
  height: 85vh;
  margin: 0 2vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

main div p {
  margin: 0 5px;
  text-align: center;
}

.codeBox {
  width: 49%;
  height: 80vh;
  border-radius: 0.7rem;
  background-color: #fff3;
  padding: 10px;
  border-left: solid 1px #fff6;
  border-top: solid 1px #fff6;
  box-shadow: 3px 3px 5px #0004;
}

textarea {
  font-family:'Consolas', 'Lucida Console';
  font-size: 1rem;
  width: 100%;
  height: 33vh;
  background-color: #fff6;
  padding: 5px;
  border: none;
  border-radius: 0.3rem;
  border-left: solid 1px #fffa;
  border-top: solid 1px #fffa;
  box-shadow: 3px 3px 5px #0004;
}

div.buttons {
  width: 100%;
  height: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1vh 0;
}

button {
  padding: 8px;
  background-color: #fff9;
  border: none;
  border-radius: 0.4rem;
  border-left: solid 2px #fff6;
  border-top: solid 2px #fff6;
  box-shadow: 3px 3px 5px #0004;
}

button:active {
  border:none;
  border-right: solid 2px #fff6;
  border-bottom: solid 2px #fff6;
}

div.resultOutput {
  font-family:'Consolas', 'Lucida Console';
  font-size: 1rem;
  width: 100%;
  height: 33vh;
  background-color: #fff3;
  padding: 5px;
  overflow-y: scroll;
  border: none;
  border-radius: 0.3rem;
  border-left: solid 1px #fff6;
  border-top: solid 1px #fff6;
  box-shadow: 3px 3px 5px #0004;
}

div#encodedDiv {
  font-family:'Consolas', 'Lucida Console';
  font-size: 1rem;

  word-break: break-all;
  word-wrap: break-word;
}

div#decodedDiv {
  font-family:'Consolas', 'Lucida Console';
  font-size: 1rem;

  word-wrap: normal;
  word-break: keep-all;
}

p#dummy {
  display: none;
}

@media screen and (orientation: portrait) {
  body {
    min-height: fit-content;
  }

  header {
    width: 94vw;
  }

  main {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 164vh;

  }

  .codeBox {
    width: 98%;
    margin-bottom: 2vh;
  }

  textarea,
  #resultOutput {
    height: 30vh;
  }
}

@media screen and (max-width: 550px) {
  body {
    overflow-x: hidden;
  }
  h1 {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 320px) {
  h1 {
    font-size: 0.7rem;
  }
}