/* ------------------------
   BODY & BACKGROUND
------------------------ */
body {
  margin: 0;
  font-family: "Lato", sans-serif;
  text-align: center;
  min-height: 100vh;
  color: #ffffff;
  position: relative;

  /* Background image settings */
  background-image: url("images/baggrund-natur.jpg");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: top center; /* adjust visible area */
  background-size: cover; /* zoom out */
}

/* logo */
.logo {
  bottom: clamp(1rem, 2vh, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  top: clamp(1rem, 2vh, 2rem);
  width: clamp(8rem, 2vh, 10rem); /* adjust size as needed */
  height: clamp(8rem, 2vh, 10rem);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 4px rgba(72, 32, 1, 0.734));
}

/* Optional: responsive adjustments */
@media (max-width: 768px) {
  body {
    background-position: top center;
    background-size: cover;
  }
}

@media (max-width: 480px) {
  body {
    background-position: top center;
    background-size: cover;
  }
}

/* ------------------------
   TITLE & SUBTITLE
------------------------ */
h1.title {
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 5vw, 10rem);
  color: #f2f0f0;
  text-shadow: 0 0 8px #420424;
  margin-top: 4rem;
  margin-bottom: 0px;
}

h2.subtitle {
  font-family: "Tangerine", cursive;
  font-size: clamp(3rem, 5vw, 6rem);
  color: white;
  margin-top: clamp(0.8rem, 1vh, 4rem);
  margin-bottom: clamp(0.8rem, 4vh, 8rem);
  text-shadow: 0 0 4px #420424;
}

p.app {
  font-family: "raleway", sans-serif;
  font-size: clamp(0.3rem, 2vw, 0.6rem);
  color: white;
  margin-top: 0.2em;
  margin-bottom: 0.5em;
  font-style: italic;
  text-shadow: 0 0 4px #420424;
}

#promo-text {
  font-family: "Raleway", sans-serif;
  font-size: clamp(0.8rem, 2vw, 0.8rem);
  color: white;
  margin: 20px auto;
  max-width: 400px;
  text-align: center;
  display: none; /* hidden initially */
  text-shadow: 0 4px 5px rgba(0, 0, 0, 0.892); /* shadow below text */
}

#promo-text a {
  color: white;
  text-decoration: underline;
}

/* ------------------------
   BUTTON
------------------------ */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 7px #f2f1db, 0 0 30px rgb(66, 4, 36);
  }
  50% {
    box-shadow: 0 0 15px #fff, 0 0 80px rgb(66, 4, 36);
  }
  100% {
    box-shadow: 0 0 7px #f2f1db, 0 0 80px rgb(66, 4, 36);
  }
}

button.draw-btn {
  margin-top: clamp(0.3rem, 1vh, 5rem);
  margin-bottom: clamp(0.5rem, 3vh, 5rem);
  padding: clamp(1rem, 2vh, 2rem) clamp(1rem, 3vw, 2rem);
  border-radius: 12px;
  border: none;
  background-color: #420424;
  color: white;
  font-family: "lato", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 10px rgb(122, 8, 29), 0 0 100px rgba(66, 4, 36, 0.424);
  animation: pulseGlow 3s infinite ease-in-out;
}

button.draw-btn:hover {
  background-color: rgba(66, 4, 36, 0.152);
  transform: scale(1.3);
  box-shadow: 0 0 15px #fff, 0 0 30px #420424;
  animation-play-state: paused;
}

.thinking-word {
  display: inline-block;
  margin-top: clamp(0.8rem, 1vh, 8rem);
  margin-left: 0px;
  margin-right: 0;
}

.dots {
  display: inline-block;
  width: 0.6em;
  text-align: left;
  margin-left: 0;
  letter-spacing: 0;
  font-family: monospace;
}

@keyframes blinkDots {
  0%,
  20% {
    opacity: 0;
  }
  40%,
  60% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
  }
}

.dots span {
  opacity: 0;
  animation: blinkDots 1.5s infinite;
}

.dots span:nth-child(1) {
  animation-delay: 0s;
}
.dots span:nth-child(2) {
  animation-delay: 0.3s;
}
.dots span:nth-child(3) {
  animation-delay: 0.6s;
}

/* ------------------------ 
   Card Display Positioning
------------------------ */
#cardDisplay {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 10px auto;
  min-width: 250px;
  max-width: 350px;
  min-height: 320px;
  text-align: center;
}

/* ------------------------
   CARD STYLING
------------------------ */
.card-content {
  opacity: 0;
  transform: translateY(20px); /* start slightly lower */
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding-bottom: 10px;
}

.card-content.show {
  opacity: 1;
  transform: translateY(0);
}

.card-image {
  width: 200px;
  height: auto;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 0 20px #fff, 0 0 25px rgba(73, 4, 4, 0.393);
  animation: pulseGlowCard 3s infinite ease-in-out;
}

.card-meaning {
  background-color: #9a2f088b;
  padding: 15px;
  border-radius: 12px;
  margin: 20px 0 10px 0;
  box-shadow: inset 0 0 10px #fefce1;
  box-shadow: outset 0 0 25px #fefce1;
}

.card-meaning p {
  margin: 0;
  text-align: center;
  color: #f8f4f6;
  font-family: "lato", sans-serif;
  font-size: 1rem;
  line-height: 1.4em;
}

.card-name h2 {
  margin-bottom: 13px;
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  color: #ffffff;
  text-shadow: 0 0px 4px hsl(329, 89%, 14%);
}
