:root {
  --w: 300px;
  --h: 400px;
  --duration: 2s;
  --card-bg: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  perspective: 10000px;
  transform-style: preserve-3d;
  color: #333;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
}

html {
  background: #eee;
}

@media (prefers-color-scheme: dark) {
  * {
    color: #eee;
  }
  html {
    background: #222;
  }
  :root {
    --card-bg: #333;
  }
}
#root {
  display: flex;
  justify-content: center;
  align-items: center;
}

.paper {
  --segments: 5;
  width: var(--w);
  height: var(--h);
  position: relative;
}

.paper > .segment {
  height: calc(1 / var(--segments) * 100%);
}

.segment {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  position: absolute;
  border-bottom: none;
  border-top: none;
  top: calc(var(--segments-up) / var(--segments) * 100%);
}
.segment > .segment[data-direction=up] {
  top: unset;
  bottom: 100%;
  transform-origin: bottom;
}
.segment > .segment[data-direction=down] {
  top: 100%;
  transform-origin: top;
}
.segment .content-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}
.segment .content-wrapper > .content {
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: calc((var(--index)) * -100%);
}

article {
  padding: 20px;
}
article h1 {
  margin-bottom: 20px;
}
article p {
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 16px;
  text-align: justify;
  -moz-text-align-last: left;
       text-align-last: left;
  word-break: break-word;
}
article a {
  color: #138D75;
  margin: 0px 5px;
}
article code {
  background: rgba(100, 100, 100, 0.1);
  padding: 2px 4px;
  border-radius: 2px;
  color: #138D75;
  font-family: monospace;
  margin: 0px 5px;
}

.paper {
  animation: enter var(--duration) ease forwards;
}
@keyframes enter {
  0% {
    transform: translateZ(4000px) rotateY(0deg) rotateX(0deg);
  }
  100% {
    transform: translateZ(0px) rotateY(0deg) rotateX(0deg);
  }
}

.move-in {
  animation: moveIn var(--duration) ease forwards;
}
@keyframes moveIn {
  0% {
    transform: translateX(0vw) translateY(10vh) rotateX(20deg) rotateY(-40deg) rotateZ(-80deg);
  }
  100% {
    transform: translateX(0vw) translateY(0vh) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
}

.replay-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: #138D75;
  color: #fff;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.replay-btn:active {
  box-shadow: 0px 0px 0px 2px rgba(19, 141, 117, 0.1882352941);
}
.replay-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.replay-btn:hover::after {
  opacity: 0.1;
}/*# sourceMappingURL=style.css.map */