 body {
    
    color: #222222;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    background: radial-gradient(circle at 20% 30%, #1a2a4f, #020617 80%);
    overflow-x: hidden;
}

header, main, footer {
  position: relative;
  z-index: 1;
}

header {
    border-bottom: 2px solid #D1E4FF;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
}

/* LOGO WRAPPER */
.logo-container {
  position: relative;
  width: 220px; /* adjust to your header size */
  height: 200px; /* adjust to your header size */
}

/* Logo Styling */
#logo {
  height: 100%;
  width: auto;
  object-fit: contain; /* keeps proportions */
  display: block;
  border-radius: 6px;
}



.water-overlay {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: 35%;
  height: 60%;

  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 80%
  );

  background-size: 200% 100%;
  animation: waterFlow 6s linear infinite;

  pointer-events: none;

  mix-blend-mode: overlay;
  opacity: 0.7;
  filter: blur(2px);
}

/* second layer = realism */
.water-overlay.slow {
  animation-duration: 10s;
  opacity: 0.3;
}

/* Nav styling */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li  {
  text-decoration: none;
  color: #3A6EA5; /* your blue from Snippet 1 */
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li:hover,
nav ul li:focus {
  background-color: #D1E4FF;
  color: #1FB6FF;
}

a {
  color: inherit;           /* keeps your text color */
  text-decoration: none;    /* removes underline */
}

/* visited links */
a:visited {
  color: inherit;
}

/* hover */
a:hover {
  color: inherit;
  text-decoration: none;
}

/* active (when clicking) */
a:active {
  color: inherit;
}

/* focus (keyboard/tab) */
a:focus {
  outline: none;
}

h1 {
    color: #3A6EA5;
    margin-top: 0;
    text-align: center;
}

h2, h3 {
    color: #1FB6FF;
    font-weight: normal;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
}

p {
    color: #555555;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

/* Our Quote */
.quote {
  font-weight: bold;
  color: #3A6EA5; /* your blue highlight color */
  font-size: 1.2em;
  margin-top: 20px;
  padding-left: 12px;
  font-style: italic;
}

.footer-container {
  padding-top: 40px;
}

.sections {
  display: flex;
  justify-content: space-around;
  margin-top: 100px;
}

/* SECTION */
.section {
  text-align: center;
  width: 500px;
  perspective: 800px; /* enables 3D */
}

/* HEADER */
.section h2 {
  color: #00ccff;
  cursor: pointer;
  margin-bottom: 10px;
}

/* SCROLL CONTAINER */
.scroll {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  opacity: 1;
  max-height: 20px; /* closed state */
  overflow: hidden;
  width: 80%;
  margin: 0 auto;
  background:
  url('https://www.transparenttextures.com/patterns/aged-paper.png'),
  linear-gradient(
    to bottom,
    #fdf6e3,
    #f5e6c8
  );
  transform-origin: top;
  transform: translateY(-5px) rotateX(5deg);

  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* PAPER */
.content {
  position: relative;
  overflow: hidden;
  display: block;              /* 🔥 force proper layout */
  min-height: 50px;            /* 🔥 ensures visible area */
  background:
  radial-gradient(circle at 15% 25%, rgba(120,90,40,0.2), transparent 40%),
  radial-gradient(circle at 85% 75%, rgba(120,90,40,0.18), transparent 40%),
  linear-gradient(
    to bottom,
    #fdf6e3 0%,
    #f2e2c2 50%,
    #e6cc96 100%
  );
  color: #3a2f1a;
  text-shadow: 0.3px 0.3px 0 rgba(0,0,0,0.15);
  margin: 0;    
  padding: 15px;
  border-left: 4px solid #d2b48c;
  border-right: 4px solid #d2b48c;
  width: 100%;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.25),
    inset 0 0 10px rgba(0,0,0,0.2),
    0 6px 12px rgba(0,0,0,0.25);
  font-size: 14px;
  line-height: 1.5;
  transform-origin: top;
  transform: none;
  opacity: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  filter: sepia(0.2) contrast(0.95) brightness(1.02);
  font-family: 'Marck Script', cursive;
  font-size: 25px;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

.content:hover {
  transform: scale(1.02);
  box-shadow:
    inset 0 0 15px rgba(0,0,0,0.2),
    0 10px 20px rgba(0,0,0,0.4);
}

/* ROLL ENDS */
.roll {
  position: relative;
  height: 18px;
  width: 100%;
  margin: 0 auto;
  opacity: 1;

  border-radius: 50px;

  /* 🔥 Cylindrical shading */
  background: linear-gradient(
    to bottom,
    #f5deb3 0%,
    #e6cfa3 25%,
    #c2a76d 50%,
    #e6cfa3 75%,
    #f5deb3 100%
  );

  /* 🔥 Depth */
  box-shadow:
    inset 0 4px 6px rgba(0,0,0,0.35),
    inset 0 -3px 5px rgba(255,255,255,0.2),
    0 4px 6px rgba(0,0,0,0.3);
  transform: scaleY(0.9);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.roll::before {
  content: "";
  position: absolute;

  left: 15%;
  right: 15%;
  top: 50%;
  height: 4px;

  transform: translateY(-50%);
  border-radius: 50%;

  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.5),
    transparent 70%
  );
}

.roll::after {
  content: "";
  position: absolute;

  left: 5%;
  right: 5%;
  top: 3px;
  bottom: 3px;

  border-radius: 50px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.25),
    transparent 40%,
    rgba(0,0,0,0.25)
  );
}



/* OPEN */
/* SHOW ON HOVER */
.section.active .scroll {
  max-height: 600px; /* or whatever you need */
  opacity: 1;
  transform: scaleY(1) rotateX(0deg);
}

/* Show rolls after scroll opens */
.section.active .roll {
  transition-delay: 0.15s;
  transform: scaleY(1);
}

.section.active .content {
  opacity: 1;
  animation: scrollBounce 0.5s ease;
  animation-delay: 0.1s;
  transform: scaleY(1) rotate(0.1deg);
}

/* TOP ROLL */
.roll.top {
  margin-bottom: -6px;
  border-bottom: 2px solid #b89b5e;
  transform: perspective(200px) rotateX(20deg);
}

.roll.bottom {
  margin-top: -6px;
  border-top: 2px solid #b89b5e;
  transform: perspective(200px) rotateX(-20deg);

  /* Slight shadow flip for realism */
  box-shadow:
    inset 0 -4px 6px rgba(0,0,0,0.35),
    inset 0 3px 5px rgba(255,255,255,0.2),
    0 4px 6px rgba(0,0,0,0.3);
}

/* Prevent stretching issues */
.roll.top,
.roll.bottom {
  flex-shrink: 0;
}

.content::before {
  content: "";
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  height: 12px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    transparent
  );

  pointer-events: none;
  opacity: 0.4;
}

.content::after {
  content: "";
  position: absolute;
  inset: 0;

  background: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  mix-blend-mode: multiply;
  opacity: 0.6; /* stronger */
  pointer-events: none;
}

.content::before,
.content::after {
  opacity: 0.5;
}

.section h2:hover {
  text-shadow: 0 0 10px #00ccff;
}

.section:hover h2 {
  text-shadow: 0 0 15px #00ccff, 0 0 30px #00ccff;
}

/* FORM CONTAINER */
.form-container {
  position: relative;
  z-index: 1;

  max-width: 400px;
  margin: 120px auto;
  padding: 35px;

  border-radius: 20px;

  background: linear-gradient(
    to bottom,
    rgba(20, 40, 80, 0.6),
    rgba(10, 20, 40, 0.8)
  );

  backdrop-filter: blur(14px);

  border: 1px solid rgba(0, 204, 255, 0.2);

  /* 🔥 COMBINED SHADOW (this is the fix) */
  box-shadow:
    0 0 40px rgba(0, 204, 255, 0.25),   /* glow */
    0 20px 60px rgba(0,0,0,0.6),        /* depth */
    inset 0 0 20px rgba(255,255,255,0.05);

  overflow: hidden;
}

.form-container:hover {
  box-shadow:
    0 0 60px rgba(0, 204, 255, 0.5),
    0 25px 70px rgba(0,0,0,0.7),
    inset 0 0 25px rgba(255,255,255,0.08);
}

/* INPUTS */
.form-container input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 204, 255, 0.2);

  color: white;
}

.form-container input {
  width: 100%;
  margin: 12px 0;
  padding: 14px;

  border-radius: 10px;

  border: 1px solid rgba(0, 204, 255, 0.2);

  background: rgba(0, 0, 0, 0.5);
  color: white;

  transition: 0.3s;
}

.form-container input:focus {
  border-color: #00ccff;
  box-shadow: 0 0 10px #00ccff;
}

.form-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  
  min-height: 80vh; /* 🔥 gives it space */
}



.form-container::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(0, 204, 255, 0.2),
    transparent 80%
  );

  opacity: 0.4;
  animation: shimmer 6s linear infinite;
}

/* BUTTON */
.form-container button {
  width: 100%;
  padding: 14px;
  margin-top: 15px;

  border-radius: 12px;

  border: none;

  background: linear-gradient(
    to right,
    #00ccff,
    #0099cc
  );

  color: black;
  font-weight: bold;

  box-shadow: 0 0 20px rgba(0, 204, 255, 0.5);

  cursor: pointer;
  transition: 0.3s;
}

.form-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 204, 255, 0.8);
}

/* ERROR MESSAGE */
.error {
  color: #ff4d4d;
  margin-bottom: 10px;
}

/* SWITCH LINK */
.switch {
  margin-top: 15px;
  font-size: 14px;
}

/* Login Page */
.login-form {
  position: absolute;

  top: 60%;  /* tweak this */
  left: 50%;
  transform: translate(-50%, -50%);

  width: 280px;
  padding: 20px;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);

  border-radius: 12px;

  z-index: 2;
}

.login-form input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;

  border: none;
  border-radius: 8px;

  background: rgba(255,255,255,0.1);
  color: white;
}

.login-form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;

  border: none;
  border-radius: 8px;

  background: #00ccff;
  color: black;
  font-weight: bold;

  box-shadow: 0 0 15px #00ccff;
  cursor: pointer;
}

.success-message {
  color: #00cc66;
  text-align: center;
  margin-bottom: 15px;
}

/* Register Page */
.username-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.username-group input {
  flex: 1;
}

.username-group button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  width: 100%;

  background: #00ccff;
  color: black;
  font-weight: bold;

  cursor: pointer;
  transition: 0.3s;
}

.username-group button:hover {
  background: #00aacc;
}

#username:placeholder-shown {
  opacity: 0.7;
}

#username.valid {
  border-color: #00ff99;
  box-shadow: 0 0 10px #00ff99;
}

#username.invalid {
  border-color: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
}

#username.available {
  border-color: #00ff99;
  box-shadow: 0 0 10px #00ff99;
}

#username.taken {
  border-color: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
}

/* BOUNCE ANIMATION */
@keyframes scrollBounce {
  0%   { transform: scaleY(0.9); }
  60%  { transform: scaleY(1.05); }
  100% { transform: scaleY(1); }
}

/* SWAY ANIMATION */
@keyframes sway {
  0%   { transform: translateY(5px) rotate(0deg); }
  50%  { transform: translateY(5px) rotate(0.5deg); }
  100% { transform: translateY(5px) rotate(0deg); }
}

@keyframes waterFlow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes flow {
  0% { transform: translateX(-50%) translateY(-10px); }
  100% { transform: translateX(-50%) translateY(10px); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}