body,
p {
  font-family: "Cormorant Garamond", serif;
  color: #040404;
  background-color: #f5ebeb;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1.1;
}

p {
  font-weight: 500;
}

h1 {
  color: #6d0a0a;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #6d0a0a;
  margin-top: 10px;
}

h2,
h3 {
  color: #662020;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.25;
}

button {
  background-color: #f1eff6;
  color: #7359dd;
  border: 1.5px solid #000000;
  padding: 10px 13px;
  margin: 10px;
  border-radius: 8px;
  font-size: 22px;
  font-family: "Cormorant Garamond", serif;
  font-weight: bold;
}

button:hover {
  background-color: #e0d4f5;
  cursor: pointer;
  border: 2px solid #000000;
}

#prekvapeni {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
  padding: 16px;
  overflow: hidden;
  background: rgb(0 0 0 / 55%);
}

#prekvapeni.zobrazit {
  display: flex;
  animation: prekvapeni-zmizeni 180ms ease-out both;
}

.prekvapeni-content {
  background: #f1eff6;
  font-family: "Cormorant Garamond", serif;
  box-sizing: border-box;
  width: min(100%, 28rem);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(16px, 5vw, 24px);
  border-radius: 8px;
  text-align: center;
  animation: prekvapeni-otevreni 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.prekvapeni-content img {
  width: auto;
  max-width: 100%;
  max-height: min(64vh, 36rem);
  max-height: min(64dvh, 36rem);
  min-height: 50vh;
  flex-shrink: 1;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.prekvapeni-content p {
  font-size: 24px;
  font-weight: bold;
  color: #ff0000;
  margin: 20px 0;
}

@keyframes prekvapeni-zmizeni {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes prekvapeni-otevreni {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .prekvapeni-content img {
    max-height: min(28vh, 14rem);
    max-height: min(28dvh, 14rem);
  }

  .prekvapeni-content h2 {
    margin: 0 0 8px;
  }

  .prekvapeni-content p {
    margin: 8px 0;
  }

  .prekvapeni-content button {
    min-height: 44px;
    margin: 8px 0 0;
  }
}

@media (max-height: 500px) {
  .prekvapeni-content img {
    max-height: 22vh;
    max-height: 22dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  #prekvapeni.zobrazit,
  .prekvapeni-content {
    animation-duration: 0.01ms;
  }
}
