/* BASE PAGE STYLING */
body {
  background-color: #E6E6FA;
  color: #4b0150;
  font-family: Georgia, serif;
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  line-height: 2;
}

/* IMAGE OVERLAY */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("media/purpleflowers.jpeg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* LINKS */
a {
  color: #3F000F;
  text-decoration: underline;
}
a:hover {
  color: #E6E6FA;
  background-color: #3F000F;
  padding: 0 3px;
}

.frame a {
  display: block;
  margin-bottom: 4px;
}

/* framed sections (early web boxes) */
.frame {
  border: 1px solid #9dc209;
  padding: 12px;
  margin: 20px 0;
  background-color: rgba(230, 230, 250, 0.8);
}

.date {
  font-size: 14px;
  font-weight: normal;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* first frame buttons display */

.pager button {
  background: none;
  border: 1px solid #9dc209;
  padding: 4px 8px;
  margin-right: 5px;
  cursor: pointer;
  font-family: inherit;
  color: #3F000F;
}

.pager button {
  background: none;
  border: 1px solid #9dc209;
  padding: 4px 8px;
  margin-right: 5px;
  cursor: pointer;
  font-family: inherit;
}

/* floating note (like a sticky thought) */
.note {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 160px;
  padding: 10px;
  font-size: 14px;
  border: 1px dashed #9dc209;
  background-color: rgba(230, 230, 250, 0.9);
}
.note:hover {
  background-color: rgba(75, 1, 80, 0.1);
}

/* side caption (quiet context text) */
.side {
  position: fixed;
  top: 120px;
  left: 20px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  opacity: 0.7;
}

/* video controls */
video {
  width: 100%;
  max-width: 300px;
  display: block;
}

.studio {
  text-align: center;
}
.studio video {
  display: block;
  margin: 10px auto;
}

/* secret page text formatting */

.memory {
  text-align: center;
}


/* floating cursor */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: rgba(75, 1, 80, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* soft dreamy glow */
#cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(
    circle,
    rgba(230, 230, 250, 0.6),
    rgba(75, 1, 80, 0.15),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  filter: blur(1px);
  transition: transform 0.15s ease-out;
}

.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;

  width: 10px;
  height: 10px;

  background: rgba(230, 230, 250, 0.9);

  clip-path: polygon(
    50% 0%,
    65% 35%,
    100% 50%,
    65% 65%,
    50% 100%,
    35% 65%,
    0% 50%,
    35% 35%
  );

  box-shadow: 0 0 10px rgba(230, 230, 250, 0.6);

  animation: fadeSpin 1s ease-out forwards;
}

@keyframes fadeSpin {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
  }
}

