:root {
  /*colors*/
  --dark: #373d3f;
  --light: #f2f3f4;
  --light-1: #eaebec;
  --light-2: #d7d8d9;

  --background-primary: #2b2f31;
  --accent: #1a1c1f;
  --highlight: #121415;
  --title-text: #3d474b;

  --dark-text-1: #e0e2e3;
  --dark-text-2: #c7c9cb;
  --dark-text-3: #afb2b5;
  --dark-text-4: #979b9f;
  --dark-text-5: #808487;

  --button: #2b2f31;
  --button-txt: #646c71;

  --hover-txt: #2f3b3e;
  --hover-background: #3d474b;

  --poetryblock-txt: #4b585d;
}

body {
  height: 100dvh;
  background-color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Cormorant Infant", serif;
  overflow-x: hidden;
  overflow-y: hidden;
}

.container {
  background-color: var(--highlight);
  position: relative;
  max-width: 90dvw;
  width: 320px;
  max-height: 90dvh;
  height: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 8px 40px rgba(0, 0, 0, 0.15);
  margin: auto;
}

.margin {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: auto;
  align-items: center;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slides-container {
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  width: 270px;
  height: 240px;
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.3);
}

h1 {
  text-align: center;
  font-weight: 300;
  font-size: 4rem;
  margin: 0;
  color: var(--title-text);
}

.bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  position: relative;
  margin-top: 1rem;
}

.button {
  background-color: var(--button);
  font-size: 1.5rem;
  padding: 0.2rem 1rem 0.2rem 1rem;
  border-radius: 0.375rem;
  text-align: center;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

a {
  color: var(--button-txt);
  text-decoration: none;
  margin-bottom: 2rem;
  width: 100%;
}

.button:focus,
.button:hover {
  color: var(--hover-txt);
  background-color: var(--hover-background);
}

.poetry-block {
  color: var(--poetryblock-txt);
  text-align: justify;
  width: 90%;
  position: relative;
  margin: 0;
}

p {
  font-size: 1.4rem;
  margin: 0;
}

span {
  display: inline;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.fragment-1:nth-child(1) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 0s, 5.5s;
}
.fragment-1:nth-child(3) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 0.5s, 5.5s;
}
.fragment-1:nth-child(4) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 1s, 5.5s;
}
.fragment-1:nth-child(6) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 1.5s, 5.5s;
}
.fragment-1:nth-child(8) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 2s, 5.5s;
}
.fragment-1:nth-child(11) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 2.5s, 5.5s;
}
.fragment-1:nth-child(13) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 3s, 5.5s;
}
.fragment-1:nth-child(15) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 3.5s, 5.5s;
}
.fragment-1:nth-child(16) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 4s, 5.5s;
}

.fragment-2:nth-child(2) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 6s, 9.5s;
}
.fragment-2:nth-child(7) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 6.5s, 9.5s;
}
.fragment-2:nth-child(12) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 7s, 9.5s;
}
.fragment-2:nth-child(14) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 8s, 9.5s;
}
.fragment-2:nth-child(17) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 8.5s, 9.5s;
}
.fragment-2:nth-child(18) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 2s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 9s, 10.5s;
}

.fragment-4:nth-child(5) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 3s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 10.5s, 13.5s;
}
.fragment-4:nth-child(9) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 3s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 11s, 14.5s;
}
.fragment-4:nth-child(19) {
  animation-name: fadeIn, fadeOut;
  animation-duration: 3s, 2s;
  animation-fill-mode: forwards;
  animation-delay: 11.5s, 15.5s;
}

.fragment-5 {
  color: #8b1c2f !important;
  text-align: center;
  position: absolute;
  top: 33%;
  left: 33%;
  animation: heartbeat 0.9s ease-in-out infinite;
  animation-delay: 17.5s;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
