/* 🌸 Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Trebuchet MS', sans-serif;
  background-color: #fdf6f9; /* Layout background preserved */
  overflow: hidden;
  position: relative;
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://sugarscale.neocities.org/gold-scale.png') repeat;
  background-size: auto;
  z-index: -2;
  pointer-events: none;
}


html::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 165, 194, 0.4);
  z-index: -1;
  pointer-events: none;
}



/* 🧁 Container */
.container {
  width: 768px;
  height: 900px;
  margin: 0 auto;
  position: relative;
  background-color: transparent;
  overflow: hidden;
}

/* 🐉 Floating Header and Footer */
.header,
.footer {
  width: 768px;
  position: absolute;
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.header {
  top: 0;
  height: 284px;
}

.footer {
  bottom: 0;
  height: 240px;
}

/* 📜 Content Wrapper */
.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 768px;
  height: 900px;
  box-sizing: border-box;
  background-color: #fff0f5;
  z-index: 1;
  overflow: visible;
}

/* 🌥️ Vertical Wrapper */
.content-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 🌈 Spacer to push nav and main below header */
.spacer-top {
  width: 100%;
  height: 200px;
}

/* 🍬 Horizontal Layout for Nav and Main */
.nav-and-main {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  height: 0;
}

/* 🍬 Navigation Panel */
.nav {
  width: 180px;
  background-color: #fff0f5;
  padding: 20px;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin-bottom: 15px;
}

.nav a {
  text-decoration: none;
  color: #d66fa3;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffb6c1;
}

/* 📖 Main Content */
.main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow: visible;
}

/* 🧵 Scrollable Inner Area */
.scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
  position: relative;
  z-index: 2;
  height: 100%;
}

/* 🌈 Spacer to prevent footer overlap */
.spacer-bottom {
  height: 150px;
}

/* 🎀 Custom Scrollbar */
.scroll-area::-webkit-scrollbar {
  width: 8px;
}

.scroll-area::-webkit-scrollbar-track {
  background: #ffe4ec;
  border-radius: 4px;
}

.scroll-area::-webkit-scrollbar-thumb {
  background-color: #d66fa3;
  border-radius: 4px;
  border: 2px solid #ffe4ec;
}

/* 🌸 Thematic Text Styling */
a {
  color: #d66fa3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #ffb6c1;
  text-decoration: underline;
}

strong {
  color: #c94f8d;
  font-weight: bold;
}

em {
  color: #b57aa6;
  font-style: italic;
}

u {
  color: #d66fa3;
  text-decoration: underline;
  text-decoration-color: #f8a5c2;
}

/* 🌟 Thematic Headers */
h1, h2, h3 {
  font-family: 'Trebuchet MS', sans-serif;
  color: #c94f8d;
  text-shadow: 1px 1px 2px #ffe4ec;
  margin-top: 0;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2em;
  border-bottom: 2px dashed #f8a5c2;
  padding-bottom: 10px;
}

h2 {
  font-size: 1.6em;
  color: #b57aa6;
}

h3 {
  font-size: 1.3em;
  color: #d66fa3;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 🐾 Pet Card Layout — Preserved as requested */
.pet-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background-color: #fff0f5;
  border: 0;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 12px;
}

.pet-images {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
}

.pet-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.pet-info {
  flex-grow: 1;
  margin-left: 10px;
  font-size: 0.65em;
  color: #c94f8d;
  text-align: left;
}

.pet-info strong {
  color: #b57aa6;
}

.pet-name {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #d66fa3;
  text-shadow: 1px 1px 2px #ffe4ec;
}

/* 🌸 Desktop Layout-Aligned Buttons */
.to-top-floating,
.to-bottom-floating {
  position: fixed;
  left: calc(50% + 384px + 10px);
  background-color: #fff0f5;
  color: #d66fa3;
  border: 2px dashed #f8a5c2;
  border-radius: 50%;
  padding: 10px 14px;
  font-size: 1.2em;
  text-decoration: none;
  box-shadow: 0 0 6px rgba(214, 111, 163, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 999;
  touch-action: manipulation;
  cursor: pointer;
}

.to-top-floating {
  bottom: 260px;
}

.to-bottom-floating {
  bottom: 80px;
}

.to-top-floating:hover,
.to-bottom-floating:hover {
  background-color: #ffe4ec;
  transform: scale(1.1);
}

/* 📱 Mobile Responsive Adjustments */
@media (max-width: 600px) {
  .to-top-floating,
  .to-bottom-floating {
    left: auto;
    right: 16px;
    padding: 8px 12px;
    font-size: 1em;
  }

  .to-top-floating {
    bottom: 80px;
  }

  .to-bottom-floating {
    bottom: 100px;
  }
}

/* 📊 Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #f8a5c2, #d66fa3);
  width: 0%;
  z-index: 1000;
}
