#main-landing {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 499;
  width: 100vw;
}

#landing-bg {
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  gap: 15px;
}
#opendor {
  z-index: 500;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "UnifrakturMaguntia", serif;
  font-size: 3.5em;
  text-shadow: 2px 2px 4px rgb(141 66 1 / 90%);
  color: #b90000;
  background-image: url("../static/scroll.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: none;
  background-color: transparent;
  filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.5));

  height: var(--scroll-h);
  width: var(--scroll-w);

  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 3em;

  transition: transform 3s ease;
}

#opendor mark {
  font-family: "ancient", serif;
  font-size: 0.5em;
}

.landing-content {
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  transition: all 2s ease;
}

#opendor.fade {
  transform: translate(-50%, calc(-100% - 50vh));
}

#opendor:hover {
  text-shadow: 1px 1px 4px #710000, 0 0 10px #710000;
}

#main-landing.loaded {
  z-index: 0;
}
#main-landing.loaded .landing-content {
  display: none;
}

#main-landing.loading #left-bricks {
  transform: translateX(-90%);
}

#main-landing.loading #right-bricks {
  transform: translateX(90%);
}

#team-reveal {
  display: none;
}

/*#landing-name {
  z-index: 10;
}*/
.submitted {
  opacity: 0;
  pointer-events: none;
}
.landing-modal {
  scale: 0;
  transition: scale 0.5s ease-in, opacity 2s ease;
  /*transition: all 0.2s ease-in;*/
  box-shadow: 0 0 2em 0.1em;
  padding: 2em;
  text-align: center;
  font-size: 1rem;
  max-width: 80vw;
}

/*#ask-name {
  scale: 0;
  transition: all 0.2s ease-in;
  box-shadow: 0 0 2em 0.1em;
  padding: 2em;
  text-align: center;
  font-size: 1rem;
  max-width: 80vw;
}*/

#banner {
  position: relative;
  display: flex;
  justify-content: space-around;
  margin: auto;
  width: 85%;
  max-height: 76px;
  padding-bottom: 1em;
}

#banner .shiny_shield {
  transform: scale(0.5) translateY(-75%);
}
@media screen and (max-width: 490px) {
  #banner .shiny_shield {
    position: absolute;
    margin: 0;
    transform: translateX(-25%) scale(0.5);
    top: -28%;
    left: 50%;
    transform-origin: 0 0;
  }
  #banner .knight_horse_blue.reverse-gifs {
    transform: scale(-0.7, 0.7);
  }
  #banner .knight_horse_blue {
    transform: scale(0.7);
  }
  #banner {
    width: 95%;
  }
}

#ask-name h3 {
  font-size: 3em;
  margin: 3%;
  font-family: "Chomsky", serif;
  letter-spacing: 0.1em;
  font-weight: normal;
}
#ask-name p {
  padding: 0 1em;
  font-family: "MedievalSharp", serif;
}
.rpg-form {
  display: none;
}

/* Message Erreur */
.rpg-form div[role="error"] {
  font-family: "MedievalSharp", serif;
  display: none;
  text-align: center;
  font-weight: bold;
  font-size: 1.3em;
  max-height: 2.6em;
  margin: 0;
  margin-top: 5vh;
  align-items: center;
  /*white-space: nowrap;*/
  justify-content: space-around;
}
.rpg-form[state="error"] div[role="error"] {
  display: flex;
}

.rpg-form div[role="error"] span {
  flex-grow: 1;
  margin: 0 10px;
  font-family: "ancient", serif;
}

.rpg-form div[role="error"].again span {
  animation: wiggle 0.2s ease-out 0s 3 alternate none;
}

/* Loading state */
.rpg-form[state="loading"] button[type="submit"] {
  pointer-events: none;
}
.medieval-select {
  position: relative;
}
.medieval-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.select-arrow {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  pointer-events: none;
}
.select-arrow img {
  width: 25px;
  height: auto;
}
.rpg-form input {
  background: rgba(250, 235, 215, 0.4);
  outline: none;
  border: none;
  border-bottom: 2px solid black;
  padding: 0.2em;
  font-size: 1.4em;
  color: rgba(0, 0, 0, 0.8);
  font-family: "MedievalSharp", serif;
  text-align: center;
  margin: 7% auto 2%;
  width: 75%;
}
.rpg-form select {
  display: block;
  width: 75%;
  background: none;
  outline: none;
  border: none;
  padding: 0.2em;
  font-size: 1.4em;
  color: rgba(0, 0, 0, 0.8);
  font-family: "MedievalSharp", serif;
  text-align: center;
  box-shadow: 0 0 0.2em 1px black;
  margin: 2% auto;
  border-radius: 0.4em;
}
.rpg-form select:hover {
  box-shadow: 0 0 0.2em 2px black;
}

#psw-submit, #name-submit {
  width: 75%;
  color: darkred;
  margin: 1em auto;
  font-size: 1.5em;
}

#name-taken {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1%;
  margin-top: 2%;
}

#name-taken p {
  margin: 0;
}

.choice-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 15%;
}

.choice-rpg {
  background-image: url("../static/parchment.jpg");
  background-attachment: scroll;
  background-position: center center;
  /*background-size: contain;*/
  padding: 10px 20px;
  border: none; /*1px solid #501500;*/
  font-size: 1.3em;
  filter: sepia(40%);
  font-family: "Chomsky", serif;
  color: #663300;
  margin: 0 1em;
  width: 30%;
}

#welcome {
  display: none;
  font-size: 1.2em;
  line-height: 1.5em;
}
#welcome > *:not(:first-child) {
  opacity: 0;
}
#welcome .username:first-child {
  font-weight: bold;
  font-size: 1.21em;
}
#welcome .password {
  font-family: "ancient", serif;
  text-shadow: 2px 2px 4px rgb(141 66 1 / 90%);
  color: #b90000;
  filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.5));
  font-size: 2em;
}

#psw-fail {
  display: none;
}
#psw-fail h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .choice-rpg {
    width: 80%;
  }
  .choice-container {
    flex-direction: column;
    gap: 1em;
  }

  .landing-modal {
    max-width: none;
  }
}
