* {
  box-sizing: border-box;
  margin: 0;
  border: 0;
}

html {
  font-family: Arapey;
  font-size: calc(14px + max(1vw, 1vh));
  overflow: hidden;
}

body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;

  background: url("/bg.png");
  background-position: center;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #471b5c;
}

h1 {
  font-family: "Great Vibes";
  font-weight: normal;
  font-size: 2rem;
}

.corner {
  position: absolute;
  width: min(40dvw, 40dvh);
}

.corner.a {
  transform: scaleX(-100%);
  top: 0;
  left: 0;
}
.corner.b {
  top: 0;
  right: 0;
}
.corner.c {
  rotate: 180deg;
  bottom: 0;
  left: 0;
}
.corner.d {
  rotate: 180deg;
  transform: scaleX(-100%);
  bottom: 0;
  right: 0;
}

#container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 0.5rem;
  height: 80dvh;
}

#container .bg {
  position: absolute;
  inset: 0;
  background-color: white;
  z-index: -1;
  border: 1px solid #aaaaaa33;
  border-top: none;
  border-bottom: none;

  box-shadow: 1px 10px 10px #33333355;
}

#container .left {
  position: absolute;
  color: #471b5c;
  transform-origin: top left;
  top: 0;
  bottom: -1px;
  left: 0;
  right: 20%;
  background-color: white;
  z-index: 1;
  box-shadow: 1px 10px 10px #33333355;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Great Vibes";
}

#container .right {
  position: absolute;
  transform-origin: top right;
  top: 0;
  left: 0;
  bottom: -1px;
  right: 1px;
  background-color: white;
  z-index: 0;
  box-shadow: -10px 10px 10px #33333355;
}

@keyframes left {
  0% {
    color: #471b5c;
  }
  45% {
    color: transparent;
  }
  50% {
    transform: rotateY(170deg) skew(0deg, -7deg);
    color: transparent;
    box-shadow: 10px 10px 10px #33333355;
  }
  100% {
    transform-origin: 0%;
    transform: rotateY(170deg) skew(0deg, -7deg);
    color: transparent;
    box-shadow: 10px 10px 10px #33333355;
    z-index: -1;
  }
}

@keyframes right {
  50% {
    transform: rotateY(180deg) skew(0deg, 7deg);
    color: white;
    box-shadow: -10px 10px 10px #33333355;
  }
  100% {
    transform: rotateY(180deg) skew(0deg, 7deg);
    color: white;
    box-shadow: -10px 10px 10px #33333355;
    z-index: -1;
  }
}

#container.open .left {
  animation: 2s left ease-out forwards;
}
#container.open .right {
  animation: 2s right ease-out forwards 1s;
}

p.sub {
  font-weight: bold;
  font-size: 0.8rem;
  margin-block: 0.3rem;
}

div.row {
  display: flex;
  border: 0.1rem solid #471b5c;
  border-left: none;
  border-right: none;
  margin-top: 0.3rem;
}

p.info {
  padding: 2px 6px;
}
p.info:first-of-type {
  border-right: 0.1rem solid #471b5c;
}

a {
  display: flex;
  width: 14rem;
  justify-content: left;
  gap: 0.2rem;
  margin-top: 0.8rem;
  padding: 0.2rem;
  text-decoration: none;
  border-radius: 8px;
  background-color: #703a7d;
  color: #fff;
  transition: background 200ms;
}

a:hover {
  cursor: pointer;
  background-color: #471b5c;
}

a span {
  width: 100%;
  text-align: center;
}

a img {
  background-color: #fff;
  border-radius: 0.6rem;
  padding: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
}

p.info2 {
  font-size: 0.7rem;
  margin-top: 0.8rem;
}
