/* Anchor traits */

a:link {
 color: blue;
 text-decoration: underline;
}

a:visited {
 color: purple;
 text-decoration: underline;
}

a:hover {
 color: magenta;
 text-decoration: underline;
}

a:active {
 color: white;
 text-decoration: underline;
}

/* Index Page */

body {
  background-image: url('images/DV%20Wide.jpg');
  background-size: auto 75%;
  background-position: center;
  font-family: Georgia;
}

.author {
  font-style: italic;
  text-align: center;
  font-size: 20px;
}

.title {
  font-family: Impact;
  font-size: 100px;
  text-align: center;
  background: url('images/DV%20Wide.jpg');
  background-size: auto 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
  margin-bottom: 0px;
}

.mainsection {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
}  

@media(max-width: 864px) {
 .mainsection {
   width: 97vw;
   background-color: rgba(225,225,232,0.75);
   margin-left: auto;
   margin-right: auto;
   padding: 20px;
   max-width: 100vw;
   min-width: 80vw;
  }  
}

h2 {
text-align: center;
font-size: 35px;
}

.jijiyawn {
width: auto;
height: 400px;
float: left;
margin-left: 60px;
}

.RJlounge {
width: auto;
height: 400px;
float: right;
margin-right: 20px;
}

.jtitle {
font-size: 40px;
text-align: left;
margin-left: 175px;
margin-bottom: -20px;
}

.rjtitle {
font-size: 40px;
text-align: right;
margin-right: 110px;
margin-top: 100px;
margin-bottom: -20px;
}

.jaka {
font-size: 20px;
font-style: italic;
text-align: left;

}

.rjaka {
font-size: 20px;
font-style: italic;
text-align: right;
margin-right: 50px;
margin-bottom: 40px;
}

.jaws {
text-align: right;
font-size: 30px;
margin-right: 40px;
margin-top: 100px;
margin-bottom: 50px;
}

.jul {
text-align: right;
direction: rtl;
font-size: 20px;
margin-left: 20px;
margin-right: 50px;
}

.jul li {
margin-bottom: 20px;
}

.rjaws {
text-align: left;
font-size: 30px;
margin-right: 40px;
margin-top: 100px;
}

.rjul {
text-align: left;
direction: ltl;
font-size: 20px;
margin-left: 20px;
margin-bottom: 150px;
}

.rjul li {
margin-bottom: 20px;
}


.MPCandA {
  float: right;
  width: 300px;
  margin-top: 10px;
  margin-right: 120px;
  border: 4px solid grey;
}

.nuance1 {
text-align: left;
max-width: 600px;
font-size: 30px;
margin-top: 60px;
margin-bottom: 200;
margin-left: 25px;
}

h6 {
text-align: center;
font-size: 15;
}

.navlinks {
justify-content: center;
display: flex;
gap: 40px;
margin-top: 35;
}

/*The Adventures of Core and Avarice Page*/

.ACAmainsection {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
}  

.ACAtitle {
  font-family: Impact;
  font-size: 75px;
  text-align: center;
  background: url('images/DV%20Wide.jpg');
  background-size: auto 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
  margin-bottom: 50px;
}

.ACAstories {
  font-size: 40px;
  text-align: left;
  margin-left: 50px;
  margin-top: 50px;
  margin-bottom: 100px;
}

.ACAstorylist {
  font-size: 22px;
  text-align: left;
  margin-left: 60px;
  margin-bottom: 120px;
}

.ACAstorylist li {
  margin-bottom: 30px;
}

.CandA {
  float: right;
  width: 400px;
  margin-top: 50px;
  margin-right: 50px;
  border: 4px solid grey;
}


/*The Nautican Gambit Pages*/


.NGtitle {
  font-family: Impact;
  font-size: 75px;
  text-align: center;
  background: url('images/DV%20Wide.jpg');
  background-size: auto 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
  margin-bottom: 50px;
}

.NGmainp1 {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
 } 

.NGmainp2 {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
} 

.NGmainp3 {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
} 

.NGmainp4 {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
} 

.NGmainp5 {
  width: 65%;
  background-color: rgba(225,225,232,0.75);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  padding: 20px;
  max-width: 1150px;
  min-width: 880px;
} 

.storystart {
 margin-top: 60%;
}

.NGpages {
  position: relative;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  box-sizing: border-box;
  padding: 1in .75in 1in .75in; 
  width: 794px;
  height: 1123px;
  border: 4px solid black;
}


.NGpages p {
  text-indent: 2em;
  text-align: justify;
}

.sectionbreak {
 text-align: center;
}

.dogear {
width: 12.5%;
position: absolute;
bottom: 0;
right: 0;
}

.pgn {
font-family: Georgia;
font-size: 15px;
position: absolute;
left: 50%;
bottom: 20px;
transform: translate(-50%, -0%);
}

.NGheader {
font-family: Georgia;
font-size: 18px;
position: absolute;
left: 50%;
top: 20px;
transform: translate(-50%, -0%);
}

.chapterlogo {
position: absolute;
top: 200px;
left: 50%;
transform: translate(-50%, -0%);
width: 25%;
}

.nextchapterblurb {
 font-size: 18px;
 margin-top: 40px;
}

.nextchapterblig {
 font-size: 40px;
 text-align: center;
}


/* pop up definitions */

/* <p>The word <span class="tooltip">quantum<span class="tooltiptext">A unit of energy in quantum mechanics</span></span> is often misunderstood.</p>
*/

.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 2px solid #999;
}


.tooltiptext {
  text-indent: 0;
  visibility: hidden;
  background-color: #222;
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;

  /* Layout control */
  display: block;                /* force block layout */
  max-width: 400px;              /* allow a wider box */
  width: max-content;            /* fit to content width until max-width is hit */
  white-space: normal;           /* allow wrapping */
  overflow-wrap: break-word;     /* break long words */
  word-break: break-word;        /* fallback */
  box-sizing: border-box;        /* padding doesn’t increase width */

  /* Optional: remove this if it's constraining you */
  max-height: unset;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip.show-tooltip .tooltiptext {
  visibility: visible;
  opacity: 1;
  pointer-events: auto; /* allow interaction */
}

.tooltip-img-wide {
  width: 380px;
  margin-right: 10px;
  margin-bottom: 4px;
  border-radius: 4px; 
}

.tooltip-img-tall {
  display: block;
  height: 500;
  width: auto;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  margin-bottom: 4px;
  margin-top: 8px;
  border-radius: 4px; 
}

@media (max-width: 830px) {
  .tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
}

/* Interactivity */

.inputbox {
 width: 90px
}

.resultText {
  color: red;
  display: inline-block;
  margin-left: 30px;
  text-align: left;
}

.deadchapter {
  margin-top: 200px;
 }

.anothershot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -0%);
  margin-top: 60px;
  font-family: Impact;
  font-size: 25px;
 }


.tryagain {
  height: 195px;
  width: 100%;
  background-color: rgba(58,245,49,0.75);
  margin-top: 50px;
  border: 2px solid darkslategrey;
  display: flex;           /* make children sit side-by-side */
  align-items: center;     /* vertical center */
 }

.fullbutton {
  width: 375px;
  border: 4px solid grey;
  margin-right: 10px; /* space between image and text */
 }

.text-wrapTR {
  display: flex;
  flex-direction: column;  /* stack lines */
  justify-content: center;
  line-height: 2;
}

.TimeRewindBlink {
  font-family: 'Orbitron', sans-serif; 
  font-size: 27px;
  color: rgba(107,142,35,0.90);
  animation: blinker 1s step-start infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.theend {
  font-size: 40px;
  text-align: center;
}

#smoke-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: url('images/gas.png') center center / cover no-repeat;
  opacity: 0;
  animation: fadeInSmoke 8s forwards;
  z-index: 9999;
}

/* Fade in animation to max 40% opacity */
@keyframes fadeInSmoke {
  to {
    opacity: 0.8;
  }
}

#vignette-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  background: url('images/passout2.png') center center / cover no-repeat;
  opacity: 0;
  transform: scale(3);  /* Start big */
  animation: closeVignette 15s forwards;
  z-index: 9999;
}

@keyframes closeVignette {
  0% {
    opacity: 0;
    transform: scale(3);  /* Large, mostly transparent hole */
  }
  100% {
    opacity: 1;
    transform: scale(1);  /* Smaller hole, darkness closes in */
  }
}

