@import url('https://fonts.googleapis.com/css2?family=Emilys+Candy&family=Ewert&family=Sancreek&display=swap');

body {
  margin: 0;
  font-family: "Georgia", serif;
   background: linear-gradient(
    180deg,
    #e8d8f3 0%,
    #caa4d8 40%,
    #8e4a8e 100%
  );
  min-height: 100vh;
}

/* subtle floating gif layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/sparkle.gif");
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

h3 {
  font-family: "Emilys Candy", system-ui;
  color: pink;
}

/* floating image */
.top-image-group {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 3px;
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 5;
}

.image-stack {
  position: relative;
  display: inline-block;
  z-index: 5;
}

.base-image {
  width: 260px;
  display: block;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2));
}

.title-image {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px; /* bigger than base */
  pointer-events: none;
  
  filter: drop-shadow(0 0 12px rgba(255, 220, 255, 0.8))
          drop-shadow(0 0 25px rgba(255, 180, 255, 0.6));
}

.heart-divider {
  font-size: 14px;
  letter-spacing: 10px;
  color: lightpink;
  opacity: 0.9;
  padding: 10px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* layout */
.wrapper {
  width: 700px;
  margin: 0 auto 20px auto;
  display: flex;
  gap: 20px;
  position: relative; /* important */
  z-index: 5;
}

/* sidebar */
.sidebar {
  width: 180px;

  background-image: url("../images/galaxywow.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 20px;
  font-size: 14px;

  border: 1px solid #e7c4ec;
  box-shadow: 0 0 15px rgba(255,255,255,0.4);

  position: relative;
  z-index: 1;
}

.sidebar-links {
  margin-top: 15px;
  padding: 15px;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid #e7c4ec;
}

.sidebar a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #7c4a8c;
  transition: 0.2s ease;
}

.sidebar a:hover {
  letter-spacing: 1px;
  opacity: 0.7;
}

/* main panel */
.main {
  flex: 1;

  background-image: url("../images/galaxywow.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  z-index: 1;

  border: 1px solid #f0c9f5;
  padding: 30px;
  text-align: center;

  box-shadow:
    0 0 25px rgba(255,255,255,0.5),
    inset 0 0 20px rgba(255,255,255,0.3);
}

/* scroll box */
.scroll-box {
  max-height: 240px;
  overflow-y: auto;
  padding: 15px;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid #e7c4ec;
  margin-bottom: 20px;
}

/* inner framed detail */
.inner {
  border: 1px dashed #e7c4ec;
  padding: 20px;
}

/* subtle scrollbar */
.scroll-box::-webkit-scrollbar {
  width: 6px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background: #d9a7e8;
  border-radius: 10px;
}

/* buttons */
.buttons img {
  height: 31px;
  margin: 4px;
  opacity: 0.9;
  transition: 0.3s ease;
}

.buttons img:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.background-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;   /* KEY CHANGE */
}

.petals-overlay {
  position: absolute;
  top: 0;
  left: 0;      /* FIX: you forgot px earlier */
  width: 100vw;
  height: 100vh;
  opacity: 0.6;
  transform: scaleX(-1);
}

.petals-overlay {
  position: absolute;
  top: 0;
  left: 0;      /* FIX: you forgot px earlier */
  width: 100vw;
  height: 100vh;
  opacity: 0.8;
  transform: scaleX(-1);
}

.second-overlay {
  position: absolute;
  top: 0;
  left: 0;      /* FIX: you forgot px earlier */
  width: 100vw;
  height: 100vh;
  opacity: 0.3;
}

.decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999; /* stays on top */
}

.bottom-divider {
  text-align: center;
  margin: 10px 0 30px 0;
  position: relative;
  z-index: 5; /* keeps it above background overlays */
}

.bottom-divider img {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
}

