/* general reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-align: center;

  overflow: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: rgb(41, 163, 41);
}

/* flexbox */
body,
#message-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* general styles */
#message-container {
  flex-direction: column;
  align-self: center;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 1em;
  padding: 1em;
  background-color: rgb(11, 166, 209);
}

#message-container #title {
  width: 100%;
  padding: 0.5em 0.5em;

  font-size: 1.8em;
  font-weight: 700;
}

#messageForm > label,
#messageDisplay {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8em;
}

#messageForm {
  display: grid;
  grid-template-rows: repeat(1fr);
  width: 100%;
  height: 230px;
}

#messageForm > label {
  padding-top: 0.8em;
  padding-bottom: 0.6em;

  font-size: 1.5em;
}

#message {
  width: 100%;
  max-width: 550px;
  height: 90px;
  margin: auto;

  outline: none;
  border: none;
  border-radius: 0.6em;

  cursor: text;
}
  #message:hover,
  #message:focus {
    border: 0.3em solid rgb(41, 163, 41);
  }

#submit {
  width: 50%;
  max-width: 150px;
  margin: auto;
  padding: 0.6em;
  border: none;
  border-radius: 1.8em;
  background-color: black;

  font-size: 1.4em;
  font-weight: 400;
  color: white;

  cursor: pointer;
}
  #submit:hover {
    background-color: rgb(41, 163, 41);
  }

#messageDisplay {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 300px;
  margin-top: 0.8em;
  padding: 0.3em;

  font-size: 2.2em;
}
