body {
  background: url("/images/RainbowCloud.png");
  background-repeat: repeat;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.framebody {
  background: transparent;
  margin: 0;
  padding: 0;
}

/* Overall layout */
#sitewrap {
  width: 1320px;
  margin: 20px auto;
  overflow: hidden;
}

/* Main table */
#wrapper {
  width: 1000px;
  float: left;
  background: #e4dcf4;
  padding: 15px;
  border: 10px solid #B3A0D8;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Header inside table */
#header {
  background: #a999c9;
  height: 160px;
  border-top: 3px dashed #ffffff;
  border-bottom: 3px dashed #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#header img {
  max-width: 100%;
  max-height: 100%;
}

/* Top bar */
#topbar {
  background: #6f5aa2;
  padding: 8px;
  overflow: hidden;
}

#socials {
  float: left;
}

#socials img {
  width: 24px;
  margin-right: 10px;
}

/* Main content area */
#contentwrap {
  background: #e4dcf4;
  padding: 20px 0 0 0;
}

#mainframe {
  width: 100%;
  height: 500px;
  border: none;
  background: #e9e3f7; /* your new light purple */
  display: block;
  box-shadow: inset 0 0 6px #c8b9ea;
}

.pageheader {
  text-align: center;
  margin: 0;
  padding: 0;
}

.pageheader img {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 5px auto;
}

.maincontent p {
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Navigation outside on the right */
#outernav {
  width: 290px;
  float: right;
}

#navframe {
  width: 100%;
  height: 850px;
  border: none;
  background: transparent;
  display: block;
}

/* Navigation bubble above box */
.navwrap {
  position: relative;
  padding-top: 28px;
}

.navtitle {
  position: absolute;
  top: 0;
  left: 12px;
  width: 195px;
  height: 48px;              /* Force bubble height */
  line-height: 48px;         /* Vertical centering trick */
  text-align: center;
  background: #5F519E;
  border-radius: 25px 25px 15px 15px;
  border: 2px solid #fff;
  box-shadow: inset 0px 0px 4px #ddd, 0px 0px 4px #bbb, 0px 5px 1px rgba(0,0,0,0.2);
  z-index: 2;
  padding: 0;
}

.navtitle img {
  vertical-align: middle;
  height: 35px;
  width: auto;
}

/* Sidebar panel */
.sidebox {
  background: #B3A0D8;
  border-radius: 5px;
  border: 2px solid #fff;
  box-shadow: inset 0px 0px 4px #ddd, 0px 2px 2px #bbb;
  padding: 20px 15px;
  color: #fff;
  margin-top: 12px;
}

/* Nav links */
.sidebox a {
  display: block;
  position: relative;
  margin-left: 18px;
  color: #4b3b8f;
  font-family: 'Squada One', cursive;
  font-size: 14px;
  line-height: 24px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: 0.2s;
}

.sidebox a::before {
  content: "★";
  position: absolute;
  left: -18px;
  color: #ffd6f5;
}

.sidebox a:hover {
  color: #ffffff; 
  text-decoration: underline;
  transform: translateX(3px);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5), 0 0 4px #ffffff;
  transition: 0.2s;
}

.navwrap {
  position: relative;
  padding-top: 28px;
  margin-bottom: 25px;
}

/* Home page content inside iframe */
.maincontent {
  padding: 20px;
  background: #e4dcf4;
  box-sizing: border-box;
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #dcd2f0; /* very light purple track */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #6f5aa2; /* dark purple bar */
  border-radius: 10px;
  border: 2px solid #dcd2f0;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e79b7; /* lighter purple on hover */
}

.pageintro {
  margin-bottom: 20px;
}

.product-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: #dcd2f0;
  border: 2px solid #ffffff;
  border-radius: 12px;
  box-shadow: inset 0 0 4px #c8b9ea;
}

.product-img {
  width: 160px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  font-family: 'Patrick Hand', cursive;
  font-size: 18px;
  color: #333;
}

.product-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.product-info a {
  color: #4b3b8f;
  font-family: 'Squada One', cursive;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 1px;
}

.product-info a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5), 0 0 4px #ffffff;
}

.socials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-btn {
  width: 220px;
  height: 70px;
  background: #cbb6e6;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #3a2d5c;
  font-family: 'Indie Flower', cursive;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
  transition: 0.2s;
}

.social-btn img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.social-btn:hover {
  transform: scale(1.05);
  background: #b79edc;
}

.social-btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.about-section {
  margin-bottom: 25px;
  overflow: hidden;
}

.about-img {
  width: 240px;
  height: auto;
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

.about-img.left {
  float: left;
  margin-right: 15px;
}

.about-img.right {
  float: right;
  margin-left: 15px;
}

.about-subtitle {
  font-family: 'Squada One', cursive;
  font-size: 24px;
  color: #6f5aa2;
  margin-top: 15px;
  margin-bottom: 8px;
}

.about-list {
  margin: 0 0 15px 20px;
  padding: 0;
}

.about-list li {
  margin-bottom: 6px;
}

.signoff {
  text-align: center;
  margin-top: 20px;
}
.mod-category {
  background: #e6dcf5;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.mod-title {
  font-family: 'Squada One', cursive;
  font-size: 26px;
  color: #6f5aa2;
  margin-bottom: 8px;
}

.mod-category ul {
  margin: 0;
  padding-left: 20px;
}

.mod-category li {
  margin-bottom: 5px;
}

.mod-category a {
  color: #4a3b7a;
  text-decoration: none;
}

.mod-category a:hover {
  text-decoration: underline;
}
.chaptertext {
  background: #e9e3f7;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.7;
  margin-top: 10px;
}

.chapternav {
  text-align: center;
  margin-top: 20px;
  font-family: 'Squada One', cursive;
}

.chapternav a {
  margin: 0 15px;
  color: #5F519E;
  text-decoration: none;
  font-size: 18px;
}

.chapternav a:hover {
  text-decoration: underline;
}

.story-section {
  font-family: 'Squada One', cursive;
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
}

.story-section span {
  border-bottom: 2px solid #ffd6f5; /* pink underline */
  padding-bottom: 2px;
}

.story-title {
  font-family: 'Patrick Hand', cursive;
  font-size: 17px;
  color: #ffffff;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 4px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
  position: relative;
}

.story-title::before,
.story-title::after {
  content: "--";
  color: #ffd6f5;
  margin: 0 8px;
}

.story-sublink {
  display: block;
  position: relative;
  margin-left: 60px;
  color: #4b3b8f;
  font-family: 'Squada One', cursive;
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.story-sublink::before {
  content: "★";
  position: absolute;
  left: -16px;
  color: #ffd6f5;
}

.story-sublink:hover {
  color: #ffffff;
  text-decoration: underline;
  transform: translateX(3px);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5), 0 0 4px #ffffff;
}

.story-block {
  margin-bottom: 8px;
}


/* Footer */
#footer {
  background: #6f5aa2;
  color: white;
  text-align: center;
  padding: 8px;
  margin-top: 10px;
  clear: both;
  font-size: 10px;
  letter-spacing: 1px;
}