:root {
  --primary: #2f1847;

  --red: #eb9486;
  --yellow: #ffee85;
  --green: #23be65;
  --gray: #eeeeee;
  --darkishgray: #dedede;
  --darkgray: #aaaaaa;
  --verydarkgray: #555555;
}

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

body {
  padding: 30px;
  background-color: var(--primary);
  color: white;
}

div#logo {
  font-size: 30px;
  font-weight: bold;
  font-family: "Roboto", sans-serif;
}

div#center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

div#header {
  font-size: 80px;
  text-align: center;
}

span#flagged {
  font-weight: bold;
  color: var(--red);
}

div#description {
  margin-top: 10px;
  font-size: 25px;
  text-align: center;
}

div#button-group {
  margin: 50px 0px;
  text-align: center;
}

button {
  padding: 15px;
  width: 250px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px #666666;
  margin: 0px 2px;
}

button:hover,
button:focus {
  filter: brightness(0.8);
}

button:active {
  box-shadow: 0 3px #666666;
  transform: translateY(2px);
}

/* modal */

div.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px 50px;
  width: 700px;
  max-width: 90%;
  background-color: white;
  color: black;
  box-shadow: 0 0 0 100vmax rgba(34, 34, 34, 0.4);
  border: 2.5px solid black;
}

div.modal div.modal-title {
  font-size: 25px;
  font-weight: bold;
}

div.modal textarea {
  width: 100%;
  resize: none;
  padding: 10px;
  background-color: var(--gray);
  border-radius: 5px;
  border: 1px solid var(--darkgray);
  outline: none;
  margin-top: 10px;
}

div.modal textarea:focus {
  border-color: black;
  transition: 200ms;
}

div.modal span#letter-count {
  position: relative;
  float: right;
  margin-top: -25px;
  padding-right: 5px;
  font-weight: bold;
  font-size: 15px;
}

div.modal-text {
  font-size: 12px;
  font-style: italic;
  color: var(--darkgray);
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 20px;
}

div.modal-text.error {
  color: var(--red);
  font-style: normal;
}

div.modal-text.success {
  color: var(--green);
  font-style: normal;
}

div.modal-button-holder {
  text-align: center;
}

div.modal button {
  font-size: 15px;
  padding: 10px;
  width: 20%;
  background-color: var(--darkishgray);
}

div.modal button#send-button {
  background-color: var(--yellow);
  transition: filter 200ms;
}

div.modal button#send-button.grayed {
  pointer-events: none;
  background-color: var(--gray);
}

div.modal button:hover,
div.modal button:focus {
  filter: brightness(0.95);
}

/* grayed */

body.grayed {
  background-color: var(--verydarkgray);
}

body.grayed span#flagged {
  color: var(--yellow);
}