* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  font-family: "Georgia", "Times New Roman", serif;
  color: #6f6f6f;
}

/* background */
body {
  background: url("profilebackground.jpg") center / cover fixed;
}

/* page layout */
.page {
  min-height: 100vh;
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

/* ───────── TOP BOX ───────── */
.top-box {
  position: relative;
  width: 480px;
  height: 190px;
  margin-bottom: -260px; 

  background: url("https://www.dropbox.com/scl/fi/ngsndkwoweabdk6idend1/squarepinklace.png?dl=1")
              center / contain no-repeat;

  transform: translateX(200px) rotate(-0.6deg);
  z-index: 3; 
}

/* transparent text area */
.top-content {
  position: absolute;
  inset: 30px;
  background: transparent;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

/* ───────── MAIN BOX ───────── */
.main-box {
  position: relative;
  width: 900px;
  height: 900px;
  z-index: 1;
}

/* lace image layer */
.main-box::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("https://www.dropbox.com/scl/fi/5vhzw0ae860yhnli1ndi8/largecirclelace.png?dl=1")
              center / contain no-repeat;

  opacity: 0.55; /* ← adjust this */
  pointer-events: none;
}

/* scrollable text */
.main-content {
  position: absolute;
  top: 270px;
  left: 50%;
  transform: translateX(-50%);

  width: 60%;
  max-height: 320px;

  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;

  padding: 10px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}

.main-content::-webkit-scrollbar {
  display: none;
}

.main-content {
  scrollbar-width: none;   
  -ms-overflow-style: none; 
}

/* headings */
.main-content h2 {
  font-weight: normal;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 15px;
}

/* ───────── STICKERS ───────── */
.sticker {
  position: absolute; 
  pointer-events: none;
  opacity: 0.95;
  z-index: 10; 
}

/* placements */
.sticker-top-left {
  width: 600px;
  top: 80px;
  left: -400px;
}

.sticker-bottom-left {
  width: 160px;
  bottom: 40px;
  left: 600px;
  top: 500px;
}

/* ───────── ANIMATIONS ───────── */
@keyframes floaty {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-10px) rotate(0.8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.float {
  animation: floaty 6s ease-in-out infinite;
}

.float.slow {
  animation-duration: 9s;
}

/* Info buttons */
.info-button {
  position: absolute;
  width: 80px;
  cursor: pointer;
  z-index: 11; /* above stickers and lace */
  transition: transform 0.2s;
}
.info-button:hover {
  transform: scale(1.1);
}

/* Popups */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: flex-end;
  background: rgba(0,0,0,0.15); /* soft overlay */
  z-index: 20;
}

/* Popup content box */
.popup-content {
  background: rgba(255,255,255,0.95);
  width: 320px;
  max-height: 400px;
  margin: 40px;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,0,0,0.1);
  font-size: 14px;
  color: #6f6f6f;
}

/* Transparent scrollable text inside */
.popup-text {
  background: transparent;
}

/* Close button */
.popup .close {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background 0.2s;
}
.popup .close:hover {
  background: rgba(0,0,0,0.05);
}

.popup-content::-webkit-scrollbar {
  display: none;
}
.popup-content {
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.popup-content {
  cursor: grab;
}

.popup-content:active {
  cursor: grabbing;
}

