* {
  box-sizing: border-box;
  --scroll-w: 395px;
  --scroll-h: 506px;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  cursor: none;
  /*scroll-behavior: smooth;*/
}

@font-face {
  font-family: "ancient";
  src: url("../static/fonts/CloisterBlack.ttf");
}

@font-face {
  font-family: "fraktur";
  src: url("../static/fonts/FrakturMonospace.otf");
}

body {
  margin: 0;
  padding: 0;
  font-family: "ancient", serif;
  font-size: 1.1em;
  min-height: 100vh;
  background-image: url("../static/wall.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: scroll;
}

h1,
h2,
h3,
h4 {
  font-family: "UnifrakturMaguntia", serif;
  color: #b90000;
}

#oyez {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.main-title {
  /*position: absolute;*/
  width: 100%;
  margin-top: -9em;
  /*top: 2vh;
  left: 0;*/
  display: flex;
  justify-content: center;
  height: calc(2vh + 134px);
  align-items: end;
}

.main-title a {
  font-size: 6.5vw;
  font-family: "UnifrakturMaguntia", serif;
  color: #b90000;
  animation: glow 1s ease-in-out infinite alternate;
  height: fit-content;
}

@media screen and (max-width: 490px) {
  section {
    width: 80%;
  }
  h1 {
    font-size: 7vh;
  }
  h2 {
    font-size: 4vh;
  }
}

@media screen and (max-width: 768px) {
  section {
    width: 80%;
  }
  .main-title a {
    text-align: center;
    font-size: 12vw;
  }
  h1 {
    font-size: 7vh;
  }
  h2 {
    font-size: 4vh;
  }
}

@media screen and (min-width: 768px) {
  section {
    width: 40%;
  }
  h1 {
    font-size: 10vh;
  }
  h2 {
    font-size: 7vh;
  }
}

section {
  margin: 5em auto;
  padding: 1.5em;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

main {
  display: none;
  padding: 5vh 2vw;
  margin: 0 7vw;
}

main * {
  position: relative;
}

.main-banner {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  overflow: visible;
}

.banner-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
}

.banner-center {
  /*width: 50%;*/
  text-align: center;
}

.torch > *:first-child {
  opacity: 0;
}
.torch.on > *:first-child {
  opacity: 1;
}

.page.hidden {
  display: none;
}

.false-link {
  text-decoration: none;
  color: inherit;
}

ul {
  text-align: left;
  list-style-type: none;
}

li::before {
  content: "❧"; /*"🙚";*/
  margin-right: 0.5em;
  margin-left: -1.5em;
}

hr {
  /*background-image: url("../static/gif/hr.gif");*/
  background-image: url("../static/gif/sword/sword5.gif");
  width: 75%;
  background-repeat: no-repeat;
  background-size: contain;
  background-attachment: scroll;
  background-position: center center;
  display: block;
  height: 4vh;
  border: 0;
  margin: 5% auto;
}

mark {
  background-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    color: rgb(101, 26, 0);
  }
  to {
    color: rgb(183, 46, 0);
  }
}

.parchment {
  background-position: center;
  background-image: url("../static/seamless-parchment.jpg");
}

@font-face {
  font-family: Chomsky; /* Name the font family */
  src: url("../static/fonts/Chomsky.otf") format("opentype"); /* Path to the font */
}

.reverse-gifs {
  transform: scaleX(-1);
}

.thinking::after {
  content: ".";
  position: absolute;
  animation: 3s thinking ease forwards;
}

/* Wiggle animation */
@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes thinking {
  0% {
    content: "";
  }
  15% {
    content: ".";
  }
  30% {
    content: "..";
  }
  45% {
    content: "...";
  }
  60% {
    content: "....";
  }
  75% {
    content: ".....";
  }
  100% {
    content: "......";
  }
}

.collapsed + [role="collapse-content"] {
  display: none;
  max-height: 0;
  overflow: hidden;
}
[role="collapse-content"] {
  transition: max-height 0.25s ease-in-out;
}

button.invisible {
  border: none;
  outline: none;
  background: none;
}

body[state="locked"] {
  overflow-y: hidden;
  height: 100vh;
}

.popup {
  display: none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 800;
  align-items: center;
  justify-content: center;
  background-color: #24242496;
}

.popup-content {
  display: flex;
  align-items: center;
  padding: 10% 0;
  box-shadow: 0 0 15px 5px black;
  width: 90vw;
  justify-content: space-around;
  font-size: 1.5em;
}

.popup[role="error"] {
  color: red;
}

.popup[role="warning"] {
  color: orangered;
}

.clickable {
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
.clickable:hover {
  transform: translateY(3px);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.center {
  width: 90%;
  text-align: center;
  margin: auto;
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#isComing-ui {
  font-size: 2em;
  color: rgb(203, 37, 0);
  font-family: "UnifrakturMaguntia", serif;
  animation: glow 1s ease-in-out infinite alternate;
}

#isComing-input {
  accent-color: goldenrod;
  width: 2em;
  height: 2em;
}

#rsvp {
  --inlay-bg: rgba(246, 236, 196, 0.2) !important;
  padding: 7% 15% 10%;
  font-family: "ancient", serif;
  font-size: 1.5em;
  color: rgb(131, 30, 0);
}

@media screen and (max-width: 768px) {
  #isComing-ui {
    font-size: 1.5em;
  }
  #rsvp {
    padding: 7% 15% 12%;
    font-size: 1.1em;
    margin: 5% auto 10%;
  }
}
