@import url("https://fonts.googleapis.com/css2?family=Marcellus+SC&display=swap");

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #2b1055, #12061f 70%);
  font-family: "Marcellus SC", serif;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Floral Border */
.floral-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
}

/* Main container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Crystal Ball */
.crystal-ball {
  position: relative;
  width: 50vw;
  max-width: 400px;
  aspect-ratio: 1 / 1; /* keeps it circular */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 200, 255, 0.5);
}

.crystal-ball h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 10px;
  text-shadow:
    0 0 15px #e0baff,
    0 0 25px #ff7de9;
}

.crystal-ball p {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  opacity: 0.9;
  margin: 0;
}

/* Storm clouds */
.storm {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.8));
  animation: swirl 5s ease-in-out forwards;
  z-index: 2;
}

@keyframes swirl {
  0% {
    opacity: 1;
    transform: scale(1.2) rotate(0deg);
  }
  70% {
    opacity: 0.8;
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(2) rotate(360deg);
  }
}
/*
.reveal-text {
  opacity: 0;
  z-index: 1;
  transition: opacity 5s ease-in-out 3s infinite;
}
*/

.reveal-text {
  opacity: 0.3;
  z-index: 1;
  animation: breathe 5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}



.crystal-ball .storm ~ .reveal-text {
  opacity: 1;
}

/* Stars */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.2;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Horse & Cats */
.horse {
  position: absolute;
  bottom: 8vh;
  left: 8vw;
  width: 15vw;
  max-width: 140px;
  opacity: 0.9;
}

.cat {
  position: absolute;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Medium cat on horse */
.cat-horse {
  bottom: 20vh;
  left: 12vw;
  width: 6vw;
  max-width: 50px;
}

/* Big napping cat */
.cat-bignap {
  bottom: 6vh;
  right: 10vw;
  width: 70px;
}

/* Small napping cat */
.cat-smallnap {
  bottom: 8vh;
  right: 22vw;
  width: 40px;
}

/* Sneaky mischievous cat */
.cat-sneaky {
  bottom: 14vh;
  right: 27vw;
  width: 35px;
  animation: sneak 3s infinite alternate;
}

@keyframes sneak {
  from {
    transform: translateX(0) scale(1);
  }
  to {
    transform: translateX(-8px) scale(1.05);
  }
}

/* Globe Base */
.globe-base {
  width: 50vw;
  max-width: 500px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
  border-radius: 0 0 50% 50%;
  margin-top: -20px;
  box-shadow: 0 -5px 15px rgba(255,255,255,0.3) inset;
}
