/* Reset & basic body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', sans-serif;
  background: url('http://dl8.glitter-graphics.net/pub/3765/3765978zevghf3iyq.gif') repeat;
  color: #333;
  padding: 20px;
  line-height: 1.6;
}

/* Header */
.header {
  grid-column: 1 / -1;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 110, 196, 0.12),
    rgba(120, 115, 245, 0.12),
    rgba(79, 172, 254, 0.12)
  );
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(127, 115, 245, 0.4),
              inset 0 0 20px rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.header img {
  width: 600px;     /* ← adjust this number */
  height: auto;     /* keeps it from stretching */
  max-width: 100%;  /* prevents overflow */
  display: block;
  margin: 0 auto;   /* centers it */
}
.header img {
  height: auto;
  display: block;
  margin: 0 auto 10px;
  position: relative;
  z-index: 1;
  max-width: 100%;
}
.header-bounce {
  width: 600px;
  filter: drop-shadow(0 0 12px rgba(127, 115, 245, 0.8));
  animation: header-bounce 4s ease-in-out infinite;
}
.header-static {
  width: 400px;     
  animation: none;
  filter: none;      /* optional */
}

.header::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.25) 10%, transparent 11%),
    radial-gradient(circle, rgba(255,255,255,0.15) 10%, transparent 11%);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  animation: sparkle 3.5s ease-in-out infinite;
  pointer-events: none;
}

.header h1 {
  color: #fff;
  font-size: 22px;
  text-shadow: 0 0 10px rgba(255,110,196,1),
               0 0 20px rgba(120,115,245,0.8),
               0 0 30px rgba(79,172,254,0.6);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
  animation: textGlow 2s ease-in-out infinite alternate;
}

/* Animations */
@keyframes sparkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes header-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 8px rgba(255,110,196,0.9),
                 0 0 16px rgba(120,115,245,0.7);
  }
  100% {
    text-shadow: 0 0 16px rgba(255,110,196,1),
                 0 0 32px rgba(120,115,245,0.9);
  }
}

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

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

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 20px;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(135deg, rgba(255,110,196,0.1),
                              rgba(120,115,245,0.1),
                              rgba(79,172,254,0.1));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 8px 32px rgba(127,115,245,0.3),
              inset 0 0 20px rgba(255,255,255,0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar h3 {
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  position: relative;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  padding: 5px 0;
  padding-left: 15px;
  position: relative;
}

.sidebar li:before {
  content: "✦ ";
  position: absolute;
  left: 0;
  background: linear-gradient(90deg, #ff6ec4, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar a {
  color: #7873f5;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar a:hover {
  color: #ff6ec4;
  text-shadow: 0 0 10px rgba(255,110,196,0.5);
}
.sidebar-image {
  text-align: center;
  margin: 15px 0;
}

.sidebar-image img {
  max-width: 200px;   /* controls size – adjust to taste */
  width: 100%;
  height: auto;

  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;

  padding: 6px;
  background: rgba(255, 255, 255, 0.15);

  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.25),
    inset 0 0 6px rgba(255, 255, 255, 0.2);
}


/* Main Content */
.main-content {
  background: linear-gradient(135deg, rgba(255,110,196,0.1),
                              rgba(120,115,245,0.1),
                              rgba(79,172,254,0.1));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(127,115,245,0.3),
              inset 0 0 20px rgba(255,255,255,0.1);
  min-height: 500px;
}

.main-content h2 {
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  font-size: 20px;
  position: relative;
  padding-left: 30px;
}

.main-content p {
  margin-bottom: 15px;
  color: #555;
}

.float-right {
  float: right;        /* puts the image on the right side */
  width: 150px;        /* adjust to desired size */
  height: auto;        /* maintains aspect ratio */
  margin: 0 5px 15px 15px; /* top-right-bottom-left spacing; text won't touch it */
  border-radius: 8px;      /* optional slight rounding */
}


/* Blog posts */
.blog-post {
  background: linear-gradient(135deg, rgba(255,110,196,0.1),
                              rgba(120,115,245,0.1));
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(127,115,245,0.2);
  position: relative;
}

.blog-post::before {
  content: '✧';
  position: absolute;
  top: 10px;
  right: 15px;
  background: linear-gradient(90deg, #ff6ec4, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
}

.blog-post h3 {
  background: linear-gradient(90deg, #ff6ec4, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.blog-date {
  font-size: 12px;
  color: #999;
  font-family: 'Courier New', monospace;
  margin-bottom: 10px;
}

.blog-date::before {
  content: '⭐️ ';
  background: linear-gradient(90deg, #ff6ec4, #7873f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*Junimos */
.junimo {
  display: block;   /* removes inline image baseline spacing */
  max-width: 80px;
  height: auto;
}
.junimo-row {
  display: flex;
  justify-content: center;
  gap: 0px 0px; /* horizontal | vertical */
  margin-top: 20px; /* was 35px – tighter */
  flex-wrap: wrap;
}


.junimo {
  max-width: 175px;
  height: auto;
}


/* Widgets */
.widget {
  background: linear-gradient(135deg, rgba(255,110,196,0.1),
                              rgba(120,115,245,0.1));
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  text-align: center;
}

.widget img {
  max-width: 100%;
  height: auto;
}


/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ff6ec4, #7873f5); border-radius: 5px; }

/* Responsive */
@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; }
  .sidebar { position: relative; }
  .floating-chatbox { bottom: 10px; right: 10px; }
  .chatbox-container { max-width: 280px; }
}

/* RESPONSIVE LAYOUT */

/* MOBILE-FIRST: stack everything vertically */
@media screen and (max-width: 767px) {
  .container {
    display: grid;
    grid-template-columns: 1fr; /* everything full-width stacked */
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .sidebar,
  .main-content {
    width: 100%; /* ensure full-width stacking */
  }

  /* Header images scale nicely */
  .header img {
    width: 100%;
    height: auto;
  }

  /* Float images inside content stack nicely */
  .float-right {
    float: none; /* remove right float */
    display: block;
    margin: 0 auto 10px; /* center with spacing */
  }

  /* Text sizing tweaks for mobile */
  .header h1 {
    font-size: 18px;
  }

  .sidebar h3,
  .sidebar p,
  .main-content h2,
  .main-content p {
    font-size: 14px;
  }
}

/* TABLET AND UP: sidebars sit next to main content */
@media screen and (min-width: 768px) {
  .container {
    display: grid;
    grid-template-columns: 200px 1fr 200px; /* left sidebar / main / right sidebar */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .sidebar {
    max-width: 200px;
  }

  .main-content {
    max-width: 800px;
  }

  /* Restore floated images */
  .float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
  }

  /* Restore header font size */
  .header h1 {
    font-size: 22px;
  }

  .sidebar h3,
  .sidebar p,
  .main-content h2,
  .main-content p {
    font-size: 16px;
  }
}

/* Ensure all images are responsive everywhere */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .junimo {
    max-width: 60px;
  }
}


