body {
  margin: 0;
  background-color: #F8F4E3;
  /*color: #FFDAC6;*/
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 0;
  padding: .5rem 0;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, .7);
  background-color: #595358;
}

h1, .tab {
  font-family: 'Montserrat', sans-serif;
  color: #FFDAC6;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

h2 {
  text-align: center;
  margin-top: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#tabs {
  /*flex: 1;*/
  width: 75%;
  min-width: 100px;
  display: flex;
  justify-content: space-between;
  margin: 1rem auto 0 auto;
  color: #FFDAC6;
}

.tab {
  margin: 0 auto;
  border-radius: 20px;
  padding: .5em 1em;
  background-color: #595358;
  box-shadow: 0 3px #666;
}

/*.tab:active {*/
/*}*/

/*#tab_encode {*/
/*}*/

/*#tab_decode {*/
  
/*}*/

.container {
  width: 100%;
  flex: 8;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin: 1em auto;
  border-radius: 25px;
  background-color: #595358;
  box-shadow: inset 0 0 8px 0 rgba(0, 0, 0, .5),
  0 0 8px 0 rgba(0, 0, 0, .7);
}

textarea {
  display: block;
  width: 90%;
  margin: 1em auto;
  border-radius: 25px;
  padding: 1em;
  background-color: #313628;
  color: #14EE00;
  font-family: 'Share Tech Mono', monospace;
  /* removing default styles*/
  border: none;
  overflow: auto;
  outline: none;
  resize: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: inset 0 0 8px 0 rgba(255, 255, 255, .4),
      0 0 5px 0 rgba(0, 0, 0, .5);
}

textarea {

}

#message, #morse {
  margin: 1em auto;
  flex-grow: 1;
}

#encoded, #decoded {
  flex-grow: 2;
}

.submit_button {
  min-width: 113px;
  margin: 0 auto;
  border-radius: 20px;
  padding: .5em 1em;
  text-align: center;
  font-weight: bold;
  color: #595358;
  background-color: #FFDAC6;
  box-shadow: 0 2px #333;
}

.submit_button:active {
  background-color: #e6c5b3;
  box-shadow: 0 1px #666;
  transform: translateY(1px);
}

footer{
  text-align: center;
  margin-bottom: 0;
  padding: .5rem 0;
  background-color: #595358;
  color: #393338;
}

.hidden{
  display: none;
}

.pressed {
  background-color: #393338;
  box-shadow: 0 2px #666;
  transform: translateY(1px);
}


@media (min-width: 700px) {
  body {
    padding: 0 1rem;
  }
  .container {
    width: 75%;
  }
  #tabs {
    max-width: 300px;
  }
}
