/* stuff for phone opt*/

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




/* Page background */


body {
  font-size: 1.3em;
  font-family: Optima, sans-serif;
  line-height: 1.2;

  background-image: url('KidPix4.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;   /* ADD THIS */

  margin: 0;
  padding: 0;
}

/* Header image */
.page-header {
  text-align: center;
  margin-top: 10px;
}

.page-header .header-image {
  width: 80%;
  max-width: 900px;
  display: inline-block;
}


/* Navigation container */
.navtop {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Each nav link */
.navtop a {
  display: flex;
  flex-direction: column;    /* image above text */
  align-items: center;
  text-decoration: none;
  color: black;
  font-family: monospace;
  transition: transform 0.3s ease;
}

/* Nav icons */
.nav-icon {
  height: 60px;
  width: auto;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

/* Hover animation */
.navtop a:hover .nav-icon {
  transform: rotate(10deg);
}

/* Nav text */
.navtop a span {
  font-size: 16px;
  text-align: center;
}




/* Geocities box */
.geobox {
  background-image: url('KidPix5.jpg');

  background-size: 100% auto;   /* fit width */
  background-repeat: repeat-y;  /* repeat vertically */
  background-position: top center;

  border: 5px solid black;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  overflow: auto;
}


  
  
/* Grid layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Desktop: make left column narrower, right column wider (restores old proportions) */
@media screen and (min-width: 801px) {
  .grid-2 {
    grid-template-columns: minmax(360px, 460px) 1fr;
  }
}

/* Retro boxes only for Updates and Blaster */
.updates-box,
.blaster-box {
  background: rgba(255,255,255,0.85);
  padding: 10px;
  border: 2px solid black;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Welcome and Figurine boxes are plain */
.welcome-box,
.figurine-box {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Welcome box image and overlay */
.image-container1 {
  position: relative;
}

.image-container1 img {
  opacity: 0.8;
}

.heading-text1 {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 300px;
  transform: rotate(0deg);
}

.overlay-text1 {
  position: absolute;
  top: 30%;
  left: 4%;
  color: #000;
  width: 350px;
}

/* Updates scroll box */
.updates {
  max-height: 200px;
  overflow-y: scroll;
  padding-right: 5px;
}

/* Headings */
h2, h3 {
  color: purple;
  font-family: monospace;
}

/* Links */
a {
  color: red;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  font-style: italic;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 20px;
}

/* HR rainbow line */
hr {
  display: block;
  border: 0px;
  height: 50px;
  background-image: url('rainbow.gif');
  background-repeat: round;
}

/* Responsive */
/* ========================= */
/* Mobile Improvements */
/* ========================= */

@media screen and (max-width: 800px) {

  /* Remove fixed background on mobile (prevents lag) */
  body {
    background-attachment: scroll;
  }

  /* Stack grid */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Header scaling */
 .page-header .header-image {
  width: 95%;
  max-width: 700px;
}

  /* Make nav icons slightly smaller */
  .nav-icon {
    height: 45px;
  }

  /* Welcome overlay adjustments */
  .heading-text1 {
    width: 70%;
    top: 5%;
    left: 8%;
  }

  .overlay-text1 {
    width: 75%;
    top: 35%;
    left: 8%;
    font-size: 0.9em;
  }

  /* Improve text readability */
  body {
    font-size: 1.1em;
    line-height: 1.4;
  }

  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }
  
  /* Force nav to stay on one line on mobile */
.navtop {
  flex-wrap: nowrap;
  gap: 10px;
}

.nav-icon {
  height: 40px;
}

.navtop a span {
  font-size: 14px;
}

}


/* Border only for Welcome box image */
.welcome-box img {
  border: 5px solid black;      /* classic Geocities-style */
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3); /* optional retro shadow */
  border-radius: 0px;           /* keep sharp edges, or use 10px for slightly rounded */
}





.highlight {
  background-color: white;   /* color of the highlighter */
  padding: 0 4px;             /* horizontal padding to make it look like real highlight */
  display: inline;            /* keeps it inline with text */
}



/* Center headings in Updates and Blaster boxes */
.updates-box h3,
.blaster-box h3 {
  text-align: center;
  margin: 0 0 10px 0; /* optional spacing below the heading */
}


.small-image {
  width: 600px;   /* set exact width */
  height: auto;   /* keeps proportions correct */
}



/* Chapter list styling */
.chapter-list {
  list-style-type: square;
  padding-left: 20px;
}

.chapter-list li {
  margin-bottom: 8px;
}

/* Right side comic image */
.comic-image-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.comic-image-box img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border: 4px solid black;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}


/* Blaster cover personality effect */
.comic-image-box img {
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.comic-image-box img:hover {
  transform: rotate(0deg) scale(1.05);
}



/* Return to home link */
.return-home {
  margin-bottom: 15px;
  font-family: monospace;
}

.return-home a {
  font-size: 18px;
}

.return-home a:hover {
  text-decoration: underline;
}

.return-home a {
  background: white;
  padding: 4px 8px;
  border: 2px solid black;
}