/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Default body (no background image) */
body {
  font-family: Arial, sans-serif;
  background-color: black;
  overflow-x: hidden;
}



/* Homepage only */
body.index {
  background-image: url('../images/BrinestoneCommonAssets/HomepageBrinestone.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
}


/* --- Banner --- */


/* Default banner style (homepage fixed) */
.page-banner {
    width: 100%;
    height: 300px;
    background: url('../images/BrinestoneCommonAssets/banner.png') no-repeat center top;
    background-size: 100% auto;
    z-index: 0;
}


/* Homepage: fixed banner */
body.index .page-banner {
    position: fixed;
    top: 0;
    left: 0;
}
/* Banner for non-home pages */
body:not(.index) .page-banner {
    position: absolute;   /* floats at the top of the page */
    top: 0;               /* starts at very top */
    left: 0;
    width: 100%;
    height: 300px;        /* your banner height */
    background: url('../images/BrinestoneCommonAssets/banner.png') no-repeat center top;
    background-size: 100% auto;
    z-index: 0;
}


/* --- Header --- */


/* Default header (fixed) */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    background: transparent;
    padding-top: 20px;
    left: 50%;
    transform: translateX(-50%);
}


/* Homepage: fixed header */
body.index .header-container {
    position: fixed;
    top: 0;
}


/* Header floats on top of banner, not fixed */
body:not(.index) .header-container {
    position: absolute;   /* sits on top of banner */
    top: 0;               /* same as homepage */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;          /* above banner */
    background: transparent;  
    padding-top: 20px;    /* optional, tweak if needed */
}


/* Push main content below banner */
body:not(.index) main {
    margin-top: 300px;   /* exactly banner height */
}


/* Title image sizing */
.title-image {
    width: 600px;          /* adjust size as needed */
    max-width: 90%;        /* responsive */
    height: auto;          /* maintain aspect ratio */
    display: block;
    margin: 0 auto;        /* horizontal center */
     user-select: none;             /* prevents selection */
    pointer-events: none;           /* prevents interaction */
    -webkit-user-drag: none;          /* prevents dragging */
}




/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}




.nav-buttons a {
    font-family: "Georgia", serif;
    text-decoration: none;
    color: #f9c47f;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;

}




.nav-buttons a:hover {
      background: none; /* removes hover box */
  transform: scale(1.10); /* enlarge slightly */
  text-shadow: 0 0 6px #ffeacd, 0 0 12px rgb(255, 136, 0); /* glow */
  color: #ffe5c2;

}




/* Spacer for scrolling background */
.spacer {
    height: 3000px;          /* matches background image height */
}
.background-container {
    position: relative; /* needed for absolute positioning */
    width: 100%;
}




.drawing {
    display: block;
    width: 100%;
    height: auto; /* natural height from image */
}




.bottom-verse {
    position: absolute;
    bottom: 25px;        /* distance from bottom of drawing */
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(238, 204, 119, 0.8);
    font-size: 20px;
    font-family: serif;
    padding: 5px 10px;
    z-index: 10;
}




/* --- New page-specific rules --- */




/* Homepage (index.html) = transparent header, keep padding */
body.index .header-container {
    background: transparent;
    padding-top: 20px; /* match other pages */
}



/*scrollbar */
html {
  overflow-y: scroll;
}


.audio-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.audio-on {
  background-image: url("../images/BrinestoneCommonAssets/volumeUp.png");
}
.audio-off {
  background-image: url("../images/BrinestoneCommonAssets/VolumeOff.png");
}





/* Code for About Page here yayyyy */

/* About page wrapper to limit scrollable height */
body.about {
    background-image: url('../images/BrinestoneCommonAssets/Boringbackground.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;   /* width fits screen, height scales */
    
    height: 1800px;               /* exactly the height of your background */
    margin: 0;                     /* remove default margins */
    overflow-x: hidden;            /* prevent horizontal scroll */
}

body.about main {
    margin: 0;
    padding: 20px;               /* optional, keeps content spacing */
}

body.about {
  position: relative;
  min-height: 100vh;
}


body.about .GiraffeAuthor-art {
  position: absolute;
  bottom: 0;
  right: 150px;
  width: 598px;
  margin: 0;
  z-index: 1000;
       user-select: none;             /* prevents selection */
    -webkit-user-drag: none;       /* prevents dragging */
    pointer-events: auto;           /* prevents dragging */
}
html, body {
  margin: 0;
  padding: 0;
}


/* Paper layer on About page */
body.about .paper-layer {
    position: absolute;       /* sits on top of background */
    top: 150px;               /* adjust so it's below the banner (banner is 300px tall) */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%);
    width: 80%;               /* scale width as needed */
    z-index: 5;               /* under the banner (banner z-index = 10) */
}

/* Paper image */
body.about .paper-image {
    width: 100%;                  /* fills the container */
    height: auto;            /* maintain aspect ratio */
    display: block;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}
/* first Text box on 'about' paper */
body.about .paper-text1 {
    position: absolute;
    top: 80px;                /* distance from top of paper image */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%);
    width: 70%;               /* keeps text from going off edges of paper */
    text-align: center;       /* centers the text inside its box */
    color: rgb(0, 0, 0);
    font-family: "Merriweather", serif;
    font-size: 21px;
    border: 2px dashed rgba(0, 255, 0, 0);
}
body.about .paper-text1 h2 {
    margin-bottom: 05px !important;
}
/* Paragraph spacing */
body.about .paper-text1 p {
    margin-bottom: 10px; /* space between paragraphs */
}

/* Second text box on 'about' paper */
body.about .paper-text2 {
    position: absolute;
    top: 375px;              /* adjust until it sits below the first */
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    text-align: center;
    color: black;
    font-family: "Merriweather", serif;
    font-size: 21px;
    border: 2px dashed rgba(0, 255, 255, 0); /* temporary border to see placement */
}

body.about .paper-text2 h2 {
    margin-bottom: 5px !important;
}

/* Paragraph spacing */
body.about .paper-text2 p {
    margin-bottom: 10px; /* space between paragraphs */
}


body.about .paper-text3 {
    position: absolute;
    top: 610px;
    left: 15%;     /* distance from left edge */
    right: 50%;    /* distance from right edge */
    text-align: left;
    color: black;
    font-family: "Merriweather", serif;
    font-size: 21px;
    border: 2px dashed rgba(255, 0, 238, 0);  /* debug border */
}

/* Spacing under title */
body.about .paper-text3 h2 {
    text-align: center;
    margin-bottom: 5px;      /* space between title and body */
}

/* Paragraph spacing */
body.about .paper-text3 p {
    margin-bottom: 10px;      /* space between paragraphs if needed */
}

.contact-box {
    position: absolute;
    top: 950px;
    left: 14%;     /* distance from left edge */
    right: 50%;    /* distance from right edge */
    text-align: center;
    color: rgb(59, 5, 5);
    font-family: "Times New Roman", serif;
    font-size: 19.5px;
    border: 1px dashed rgba(204, 255, 0, 0);  /* debug border */
}

.contact-box a {
  color: #000000; /* adjust for visibility */
  text-decoration: none ;
  margin: 0 6px;
}

.contact-box a:hover {
  text-decoration: underline;
}









/* Archive page code here now */

body.Archive {
    background-image: url('../images/BrinestoneCommonAssets/BArchiveBookshelf.png');
    background-repeat: no-repeat;
    background-position: center 50px; 
    background-size: 100% auto;        /* fills entire screen */
    margin: 0;
    height: 2110px;               /* exactly the height of your background */
    min-height: 2110px;
    overflow-x: hidden;
    background-color: rgb(0, 0, 0);
}


main {
    color: white;
    padding: 20px;
    margin-top: 200px;             /* adjust for header height */
}

/* Archive Pilot book */
/* container for hover + tooltip */
.archive-book0 {
  position: absolute;
  top: 310px;
  left: 14%;
  width: 200px;
}

/* existing cover art */
.archive-cover0 {
  width: 100%;
  height: auto;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* enlarge slightly on hover */
.archive-book0:hover .archive-cover0 {
  transform: scale(1.05);
}

/* tooltip setup */
.book-tooltip0 {
  position: absolute;
  bottom: 110%;              /* move above book */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* show tooltip when hovered */
.archive-book0:hover .book-tooltip0 {
  opacity: 1;
}





/***************************************/
/*CHARACTERS PAGE CODE BELOW*/
.char-text {
  position: absolute;
  top: 200px;
  left: 560px;
  color: rgb(236, 218, 178);
  font-weight: lighter;
  font-style: italic;
  font-family: "merriweather", serif;
  font-size: 30px;
}

body.characters {
    background-image: url('../images/BrinestoneCommonAssets/Boringbackgroundbrighter.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;   /* width fits screen, height scales */
   
    height: 1800px;               /* exactly the height of your background */
    margin: 0;                     /* remove default margins */
    overflow-x: hidden;            /* prevent horizontal scroll */
}


.belphegor { grid-column: 1; grid-row: 1; }
.beelzebub { grid-column: 2; grid-row: 1; }
.milo { grid-column: 1; grid-row: 2; }
.leviathan { grid-column: 2; grid-row: 2; }


.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-auto-rows: auto;                  /* each row auto-sizes */
  gap: 0px;                             /* space between cards */
  width: 85%;
  margin: 160px auto 0;                  /* centers whole grid */
  justify-items: center;                 /* centers each card within its cell */
  z-index: 2;
}



.character-card {
  position: relative;
  width: 550px;
  height: 450px;
  overflow: hidden;
  cursor: pointer;
    margin-bottom: -40px; /* tighten vertical spacing between rows */
    transition: transform 0.3s ease;
}


.card-images {
  position: relative;
  width: 100%;
  height: 100%;
}


.card-bg,
.card-head {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.card-head {
  z-index: 2;
  width: 35%;
  height: auto;
  top: 49%;
  left: 7%;
  transform: translate(-7%, -50%);
}

/*zooming stuff idk*/
/* Hover zoom */
.character-card:hover {
  transform: scale(1.03);
  z-index: 3;
}



/* Characters-page popup only */
.char-modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(22, 0, 14, 0.915);
  z-index: 9999;

  display: flex;              /* THIS IS NECESSARY */
  justify-content: center;
  align-items: center;
}

.char-modal-box {
  position: relative;
  width: 800px;
  height: 500px;
  background-image: url('../images/BrinestoneCommonAssets/SpoilersPopup.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.char-popup-btn {
  position: absolute;
  width: 90px;
  height: 80px;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.char-popup-btn:hover {
  transform: scale(1.1);
}

.char-proceed {
  bottom: 105px;
  left: 57%;
  background-image: url('../images/BrinestoneCommonAssets/YESbutton.png');
}

.char-cancel {
  bottom: 105px;
  left: 32%;
  background-image: url('../images/BrinestoneCommonAssets/NObutton.png');
}




/* EXTRAS PAGE CODE HERE*/

.Extras-text {
  position: absolute;
  top: 210px;
  left: 650px;
  color: rgb(255, 214, 153);
  font-weight: lighter;
  font-family: "Bangers", serif;
  font-size: 40px;
  text-shadow: 0 0 10px rgb(0, 0, 0); /* soft black glow */
}


body.extras {
  background: linear-gradient(to bottom, #2d121c, rgb(0, 0, 0));
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical centering */
  align-items: center;
  height: 100vh;
  background-color: rgb(0, 0, 0);
}

/* Move images upward manually if needed */
.extras-sections {
  display: flex;
  justify-content: center;
  gap: 60px;
  transform: translateY(-40px); /* raise section upward */
      user-select: none;             /* prevents selection */
    -webkit-user-drag: none;          /* prevents dragging */
}

.extras-sections a {
  display: block;
  max-width: 400px;
  width: 100%;
}

.extras-sections img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.25s ease;
  display: block;
}

.extras-sections img:hover {
  transform: scale(1.05);
}






/* Mini Comics Archive Page */
body.MiniArchive {
  background-image: url('../images/BrinestoneCommonAssets/BMiniCBookshelf.png');
  background-repeat: no-repeat;
  background-position: center 50px;
  background-size: 100% auto;
  margin: 0;
  height: 2110px;
  min-height: 2110px;
  overflow-x: hidden;
  background-color: black;
}

/* Mini comic book positioning */
.mini-book0 {
  position: absolute;
  top: 310px;
  left: 14%;
  width: 200px;
}


/* existing cover art */
.mini-cover0 {
  width: 100%;
  height: auto;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.mini-book0:hover .mini-cover0 {
  transform: scale(1.05);
}

/* Tooltip */
.mini-tooltip0 {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mini-book0:hover .mini-tooltip0 {
  opacity: 1;
}





/* Documents Page Code Below */

.documents-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;  /* make it movable */
  top: -150px;          /* move the whole container UP */
}

body.documents {
  background: linear-gradient(to bottom, #2d121c, rgb(0, 0, 0));
  min-height: 100vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.documents-box {
  background-color: rgb(75, 36, 51); /* box behind title & grid */
  padding: 95px 30px 30px 30px;  /* extra top padding for “forehead” */
  border-radius: 0;
  border-width: 5px;
  border-style: solid;
  border-color: #000;
  max-width: 1150px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Keep title inside the box */
.documents-title {
  color: rgb(255, 229, 180);
  position: relative;
  top: 83px; /* pull it down onto the box */
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Share Tech Mono", monospace;
  font-weight: lighter;
  text-shadow: 0 0 10px black; /* soft black glow */
}

/* grid itself */
.documents-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* each item */
.documents-list li {
  text-align: center;
}

/* images */
.documents-list img {
  width: 100%;
  max-width: 170px;
  max-height: 240px; /* adjust as needed */
  object-fit: contain; /* keeps proportions */
  height: auto;
  border-radius: 0;
  transition: transform 0.3s ease;
}


.documents-list img:hover {
  transform: scale(1.05);
}

/* captions */
.caption {
  text-align: center;
  color: rgb(255, 239, 208);
  margin-top: 8px;
  font-size: 1 rem;
  font-family: "Merriweather", serif;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 5vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.658);
}

/* The enlarged image */
/* magnify-on-hover inside modal */
.modal-content {
  display: block;
  margin: auto;
  max-width: 96%;
  max-height: 96%;
  border-radius: 0;
  transition: transform 0.2s ease;
  cursor: zoom-in;
  transform-origin: center center;
}

.modal-content.zoomed {
  cursor: zoom-out;
  transform: scale(2.5); /* zoom level */
}

html.zoom-active,
body.zoom-active {
   overflow: hidden !important;
  position: fixed;
  width: 100%;
}


.modal-content.zoomed ~ .prev,
.modal-content.zoomed ~ .next {
  display: none;
}

body.zoom-active {
  overflow: hidden;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: rgb(255, 255, 255);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ffd592;
}

/* Navigation arrows */
.nav {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 10px;
}

.nav.prev { left: 300px; }
.nav.next { right: 300px; }

.nav:hover { color: #ffd592; }



/* ============================= */

/* SCIENCE YAY */

.science-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;  /* make it movable */
  top: -150px;          /* move the whole container UP */
}

body.science {
  background: linear-gradient(to bottom, rgb(45, 18, 28), rgb(0, 0, 0));
  min-height: 100vh;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.science-box {
  background-color: rgb(75, 36, 75); /* box behind title & grid */
  padding: 95px 30px 30px 30px;  /* extra top padding for “forehead” */
  border-radius: 0;
  border-width: 5px;
  border-style: solid;
  border-color: #000;
  max-width: 1150px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Keep title inside the box */
.science-title {
  color: rgb(255, 222, 161);
  position: relative;
  top: 90px; /* pull it down onto the box */
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  font-family: "Bangers", serif;
  font-weight: lighter;
  text-shadow: 0 0 10px black; /* soft black glow */
}

/* grid itself */
.science-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* each item */
.science-list li {
  text-align: center;
}

/* images */
.science-list img {
  width: 100%;
  max-width: 170px;
  max-height: 240px; /* adjust as needed */
  object-fit: contain; /* keeps proportions */
  height: auto;
  border-radius: 0;
  transition: transform 0.3s ease;
}


.science-list img:hover {
  transform: scale(1.05);
}

/* captions */
.caption {
  text-align: center;
  color: rgb(255, 239, 208);
  margin-top: 8px;
  font-size: 1 rem;
  font-family: "Merriweather", serif;
}



/* ============================= */











/* SUPPORT PAGE CODE BELOW */
/* Paper image */

/* Support page wrapper to limit scrollable height */
body.support {
  background-image: url('../images/BrinestoneCommonAssets/Boringbackground.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  height: 1800px;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

body.support .paper-layer {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 5;
}


body.support .paper-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

body.support .paper-text1,
body.support .paper-text2,
body.support .paper-text3 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  color: black;
  font-family: "Merriweather", serif;
  font-size: 21px;
  text-align: center;
}

/* fine-tune vertical offsets relative to image */
body.support .paper-text1 { top: 80px; }
body.support .paper-text2 { top: 290px; }
body.support .paper-text3 {top: 600px;}



/* Social media icons container */
body.support .social-icons {
  position: absolute;
  top: 200px;          /* adjust to sit under the first text box */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;           /* spacing between icons */
  justify-content: center;
  align-items: center;
  z-index: 10;
}

body.support .social-icons img {
  width: 68px;         /* change size as needed */
  height: 68px;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.2s ease;
}

body.support .social-icons img:hover {
  transform: scale(1.1);
}

body.support .support-icons {
  position: absolute;
  top: 410px;           /* adjust to sit below the second text box */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

body.support .support-icons img {
  width: 60px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

body.support .support-icons img:hover {
  transform: scale(1.1);
  opacity: 1;
}








/* ============================= */
/* --- Comic Page Specific Styles --- */
/* ============================= */


/* Comic reader wrapper */
#comic-reader-wrapper {
  text-align: center;
  width: 100%;
  padding-top: 20px;
}


/* Comic image scaling */
#comic-container img {
  max-width: 40%;   /* scales down comic size */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* Navigation buttons (Prev, Next, First, Last) */
.nav-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}


.Comic .nav-buttons-wrapper .comic-button {
  background: rgba(0, 0, 0, 0);
  color: #ffdda2;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}


.Comic .nav-buttons-wrapper .comic-button:hover {
  background: none; /* removes hover box */
  transform: scale(1.15); /* enlarge slightly */
  text-shadow: 0 0 8px #fff, 0 0 15px rgb(255, 136, 0); /* glow */
  color: #ffd752;
}




body.Comic {
  background-color: #000;
  background-image: url("../images/BrinestoneCommonAssets/ComicReaderBackground.png"); /* adjust path */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;


  margin: 0;
}


/* ============================= */
/* --- Comic Page Specific Styles --- */
/* ============================= */


/* Comic reader wrapper */
#comic-reader-wrapper {
  text-align: center;
  width: 100%;
  padding-top: 20px;
}


/* Comic image scaling */
#comic-container img {
  max-width: 40%;   /* adjust this number to resize comic */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* Navigation buttons (Prev, Next, First, Last) */
.nav-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}


.comic-nav-button {
  background: rgba(0,0,0,0.7);
  color: #ffde9b;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}


.comic-nav-button:hover {
  background: rgba(197, 43, 0, 0.2);
}


/* ============================= */
/* --- Sidebar (floats, doesn't push content) --- */
/* ============================= */


.sidebar {
  position: fixed;        /* stays in place */
  top: 20px;
  left: 20px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;     /* centers title and buttons horizontally */
  text-align: center;
  gap: 15px;
  z-index: 10;
  pointer-events: auto;
}


/* Title image */
.sidebar .title-image {
  max-width: 150%;        /* increase/decrease for size */
  height: auto;
  display: block;
  margin: 0 auto;
}


/* Navigation links (About, Archive, etc.) */
.sidebar .nav-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;     /* keeps buttons centered under title */
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}


.sidebar .nav-buttons a {
  background: rgba(9, 0, 0, 0.855);
  color: #f9c47f;
  padding: 0.4rem 0.8rem;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  width: 60%;              /* narrower buttons, centered */
  box-sizing: border-box;
  transition: 0.2s;
   transform: translateX(50px); /* smoother movement */
}


.sidebar .nav-buttons a:hover {
  background: rgba(141, 16, 0, 0.075);
}


/* ============================= */
/* --- Comic Area Centering --- */
/* ============================= */
.comic-content {
  text-align: center;
   padding: 20px 0;
}


#comic-container {
  display: flex;
  justify-content: center;
}


body.Comic {
  background-color: #000; /* black backdrop */
  margin: 0; /* no side shifting */
}




.comic-stage {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;                 /* controls how wide the black box is */
  height: 138%;
  background-color: rgba(0,0,0,0.9);
  z-index: 0;                 /* sits behind everything */
  border-radius: 20px;
}


.comic-content {
  position: relative;
  z-index: 1;                 /* make sure comic sits on top */
}






/* ============================= */
/* --- Popup Image with Button --- */
/* Popup container */
/* ============================= */
/* --- Bonus Files Popup (unique) --- */

.bonus-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: opacity 0.3s;
  opacity: 0;
}

.bonus-popup.show {
  display: block;
  opacity: 1;
  animation: popup-slide 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Container */
.bonus-popup-container {
  position: relative;
  display: inline-block;
}

/* Background */
.bonus-popup-bg {
  width: 300px;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Button */
.bonus-popup-btn {
  position: absolute;
  bottom: 45px;
  right: 90px;
  width: 120px;
  cursor: pointer;
  animation: btn-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bonus-popup-btn:hover {
  filter: drop-shadow(0 0 10px rgba(61, 0, 0, 0.396))
          drop-shadow(0 0 20px rgba(255, 0, 0, 0.751));
  transition: filter 0.3s ease;
}



@keyframes popup-slide {
  0% {
    transform: translateY(100%); /* start offscreen below */
    opacity: 0;
  }
  50% {
    transform: translateY(-10px); /* overshoot a little above final spot */
    opacity: 1;
  }
  80% {
    transform: translateY(3px); /* settle slightly below */
  }
  100% {
    transform: translateY(0); /* final resting place */
  }
}


@keyframes btn-bounce {
  0% { transform: translateY(50px); opacity: 0; }
  60% { transform: translateY(-5px); opacity: 1; }
  80% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}


