body {
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background-color: #c8bfae;
  color: #222222;
  height: 100%;
}

/* TOP STAGE */
#stage {
  width: 95%;
  min-height: 95%;
  max-height: 95%;
  overflow: auto;
  background-color: #f2e9de;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  display: flex;
  flex-direction: column;
}

#top {
  padding: 32px;
  display: flex;
  border-bottom: 1px solid #c8bfae;
  flex-shrink: 0;
}

#menu nav,
#dialog nav {
  display: flex;
  flex-grow: 1;
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
}

ul.links {
  font-family: "Kanit", sans-serif;

  list-style: none;
  display: flex;
  justify-content: space-evenly;
  flex-grow: 1;
}

.links li a {
  color: rgba(34, 34, 34, 0.9);
  text-decoration: none;
  letter-spacing: -1;
  transition: background-color 0.2s ease-out 100ms;
}

.links li a:hover {
  background-color: rgba(34, 34, 34, 0.9);
  color: #f2e9de;
}

#follow button {
  background-color: #222;
  border: none;
  color: white;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0.5em 0 0.5em 0;
  padding: 0 1em;
  border-radius: 8px;
  width: 10em;
  height: 3.5em;
  cursor: pointer;
}

#follow button:hover {
  background-color: #ef9a0a;
}

#follow {
  color: white;
  text-decoration: none;
}

/* WELCOME STAGE */
#welcome {
  display: grid;
  border-bottom: 1px solid #c8bfae;
  justify-items: center;
}

/* SIMULATION STAGE */
#simulation {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
}

#animation {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 0;
}

#animation p {
  padding: 0.5em 1em;
  flex-shrink: 0;
  margin: 0;
}

/* Menu Model */
dialog[open] {
  opacity: 1;
  transform: scaleY(1);
}

dialog {
  padding: 2em 4em 4em 4em;
  border-radius: 1em 0 1em 0;
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out,
    overlay 0.4s ease-out allow-discrete, display 0.4s ease-out allow-discrete;
}

dialog::backdrop {
  background-color: rgb(2 2 2 / 0%);
  transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete,
    background-color 0.4s;
}

dialog[open]::backdrop {
  background-color: rgb(2 2 2 / 90%);
}

button.close {
  float: right;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#noSmallLandscape {
  display: none;
}

@media screen and (orientation: landscape) and (max-height: 799px) {
  #stage {
    display: none;
  }

  #noSmallLandscape {
    font-family: "Kanit", sans-serif;
    display: flex;
    font-size: 36px;
    text-align: center;
    width: 100vw;
    height: 100vh;
    margin: auto 0;
    justify-content: center;
    align-items: center;
  }
}

blockquote {
  border-left: 8px solid #f6a623;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  line-height: 1.2;
  box-sizing: border-box;
}

blockquote div {
  margin: 0;
}


@media (max-height: 950px) {
  #stage {
    max-height: 90%;
  }

  #top {
    padding: 15px;
  }
}