/* 9-23-25: Changed "trivia" to "media," just so the link would fit better. Now, if only I could make media2 'nsfw.' Oh well. */

:root {
    --bgcolor: #aaa;
    --spoilerbgcolor: rgba(0, 0, 0, 0.2);
    --accentcolor: #999;  /*THIS IS THE NAME IN THE DOSSIER and the infotable background.*/
    --lightcolor: #FFF;
    --darkcolor: #000;
    --subcolor: #666;/* Buttons, Infotable NAME, and background for icon on left.*/
    --spoilercolor: #888; /* Originally 777. This is stuff like Basic, Trvia, etc. Also, the box for History, etc.*/  
    --mainfont: book antiqua, monospace;
    --headerfont: georgia;
    --symbolbgsize: 40pt;
    
    --infoboxbg: #fff; /* Let's see... Not doing anything.*/
}
/* More sticky/absolute attempt for a header? <main class="main-container">. Not currently using.*/

.main-header{
  top:0;  
 /* position: -webkit-sticky; */
  position: fixed;}

* {
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;

}

*::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bgcolor);
    font-family: var(--mainfont);
    margin: 0;
    overflow: hidden;
}

a {
    color: var(--lightcolor);
    transition: 0.2s;
    text-decoration: none;
}

a:hover {
    color: var(--hoveraccentcolor);
}

/* Took away details p here, because I don't like the indent. */
.scrollbox p,.scrollboxbig p {
    text-indent: 20px;
}

summary {
    cursor: pointer;
}

ul {
    padding-left: 25px;
    list-style-type: square;
}

h1, h2, h3, h4 {
    font-family: var(--headerfont);
}

h1 {
    clear: both;
    margin: 10px 0;
    font-variant: small-caps;
    background-color: var(--subcolor);
    padding: 10px;
    border-radius: 10px;
}


h3 {
    margin: 0;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/* Changed padding from 3 to 0. Border-bottom changes the px of the horizontal line */
h4 {
    margin: 15px 5px;
    padding: 1px 0;
    font-size: 12px;
    color: var(--lightcolor);
    font-weight: normal;
    font-variant: small-caps;
    text-align: center;
    border-bottom: 2px solid var(--accentcolor);
}

hr {
    border-width: 0 0 5px 0;
    border-style: solid;
    border-color: var(--subcolor);
    margin: 5px;
}

#container {
    display: flex;
    height: 100vh;
}

.alignvertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

mark
{
	color:rgba(0,0,0,0.6);
	background-color: #ff9;
}


del
{
	background-color: #000; /* Censored text */
	text-decoration:none;
}

/* Who am I to tell authors not to use non-standard tags? */

center
{
	text-align:center;
	margin: 0 auto;
	width: 100%;
}


/* Min-width changes size (had it at 175, then increased it to 200). Sidebar being open initially isn't here. It's on the HTML, surprisingly. Change the -175 to 0.*/
/* I also had to change the dossier.js file to match the width here (but negative). Keep that in mind if you change it to something else.*/
/* Changed padding from 10px 10px to 5px53px */
#dossier {
    background-color: var(--darkcolor);
    height: 100vh;
    width: 225px;
    min-width: 225px;
    padding: 5px 5px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: 0.2s;
    animation-timing-function: ease-in-out;
}
/* Lis here. CHANGES ICONS IN DOSSIER. Originally 150 max-width/height. Margin 10px.*/
#dossier div {
    position: relative;
    background-color: var(--subcolor);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    max-width: 150px;
    width: 100%;
    height: 150px;
    border-radius: 80px;
    transition: 0.4s;
    text-align: center;
    margin: 5px auto;
    overflow: hidden;
}
/* Text for the name on sidebar*/
#dossier h1 {
    background-color: var(--accentcolor);
    margin: 15px 5px;
    padding: 3px;
    font-size: 20px;
    font-weight: bold;
    font-variant: small-caps;
    text-align: center;
}
/* Text on the sidebar. Changed font-size from 14 to 15. Changed Padding from 5px to 2px*/
#dossier h2 {
    background-color: var(--spoilercolor);
    color: var(--darkcolor);
    font-family: var(--headerfont);
    font-weight: normal;
    font-variant: small-caps;
    font-size: 17px;
    text-align: center;
    letter-spacing: 1px;
    background-color: var(--subcolor);
    padding: 2px;
    margin: 0 5px 10px 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

#dossier h2 b {
    color: var(--lightcolor);
    background-color: var(--darkcolor);
}

#dossier h2:hover {
    background-color: var(--spoilercolor);
    color: var(--lightcolor);
}

#dossier details {
    font-family: var(--headerfont);
    font-weight: normal;
    font-size: 14px;
    font-variant: small-caps;
    letter-spacing: 1px;
    background-color: var(--subcolor);
    padding: 5px;
    border-radius: 5px;
    margin: 0 5px 10px 5px;
}
/* Details was spoilercolor */
#dossier details h2 {
    text-align: right;
    background-color: var(--spoilercolor);
    color: var(--darkcolor);
    margin: 3px;
}

#dossier details h2:hover {
    background-color: var(--darkcolor);
    color: var(--lightcolor);
}



/* Changed cabinet to dossier */
#dossier div i {
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accentcolor);
    font-size: var(--symbolbgsize);
    transition: 0.4s;
}
/* Changed cabinet to dossier. Changed padding from 5px to 2px. Changed height from 100% to 50% */
#dossier span {
    position: absolute;
    top: 0;
    left: 0;
    height: 50%;
    width: 100%;
    padding: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--headerfont);
    font-variant: small-caps;
    color: var(--lightcolor);
    font-size: 14px;
    text-shadow: 1px 1px 3px var(--darkcolor), -1px -1px 3px var(--darkcolor), 1px -1px 3px var(--darkcolor), -1px 1px 3px var(--darkcolor);
}

/* Changed cabinet to dossier */
#dossier div:hover {
    transform: scale(1.1);
}

/* Changed cabinet to dossier */
#dossier div:hover i {
    color: var(--lightcolor);
}

/* close button, NOT the character buttons. Buttons are the same on dossier and cabinet. */

#buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    margin-right: -25px;
    z-index: 9;
}

/* Lis here. These are added myself, for my character butotns in the sidebar. IT WORKED BY ADDING CONTAINER. ...Sadly, it seems to affect the close butotn too, though. */
/* Border-radius smooths the edges. 0px = box */
/* Display-flex needed to align the text vertically center */
/* Changed it to dossier button instead of container button so it wouldn't affect the Relationship buttons */

#dossier button {
    color: #ddd;
    background-color: #444;
    border-radius: 25px;
     border-style: solid;
    margin: 5px 0;  
    display: flex;
    width: 100%;
     align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    padding: 1px;
    font-variant: small-caps;
}

    
/* Hover please. */
#dossier button:hover {
    color: var(--darkcolor);
    background-color: var(--accentcolor);
        transform: scale(1.05);
         transition: 0.3s;
}
/* My addition end.*/

/* My addition img to try to add some padding. ...Padding made them smaller, since it's padding everything. I see. */
#container img {
    padding: 2px;
}


/* My addition end */

/* Changed Margin from 5px to 2px */
#buttons button {
    color: var(--accentcolor);
    background-color: var(--darkcolor);
    width: 100%;
    border: none;
    border-radius: 0 10px 10px 0;
    margin: 2px 0;
    padding: 15px 10px 15px 5px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}
/* This can make the open/close button grow when hovered. Not character buttons. */
#buttons button:hover {
    color: var(--darkcolor);
    background-color: var(--accentcolor);

         transition: 0.3s;
}

#close i {
    transition: 0.3s;
    transform: rotate(0deg);
    animation-timing-function: ease-in-out;
}

/* main display window */

main {
    overflow-y: auto;
    flex-grow: 1;
    -ms-overflow-style: auto !important;
    scrollbar-width: thin !important;
}

main::-webkit-scrollbar {
    display: auto !important;
}

/* THESE ARE THE TAGS. ...Which I am not using anymore. Now using for Video headers. IT WORKS VERTACALLY FOR SOME REASON, WHEN H1 DOENS'T. Need Flex, though. */
main h2 {
    font-size: 20px;
    padding: 5px;
    border-radius: 10px;
    color: var(--lightcolor);
     background-color: #2B2B2B;
    margin: 2px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
   
}


/* article tabs and their coding. ORIGINALLY CENTER. CHANGE TO START. Max-width originally 800. Changed to Auto. Martgin was 0 auto before. Padding was 30px.*/

main article {
    margin: 0 start;
    max-width: auto;
    padding: 28px;
    display: none;
}
/* margin was 15px 0.*/
main p {
    margin: 15px;
}

main img {
    max-width: 100%;
}

/* Added Font Size in.This if for Details box. Changed it from Spoilercolor to subcolor. ...Then changed to bgcolor.*/
main details {
    background-color: var(--bgcolor);
    border-radius: 10px;
      font-size: 20px;
   /* padding: 15px;  */
    transition: 0.3s;
    margin-bottom: 10px;
}


main summary {
   background-color: var(--subcolor);
    font-family: var(--headerfont);
    font-weight: bold;
    cursor: pointer;
    /* Added this to hopefully round it */
    border-radius: 10px;
      font-size: 30px;
    padding: 15px;
    transition: 0.3s;

}
/* Added so I could make the image summary colors different */
.summaryimg{
   background-color: var(--spoilercolor);
   padding: 10px;
   font-size: 20px;
}

/* Infotable */
/*infotable. Changed Flat-right to float-left. Didn't do anything. */
/* Backgroun was originally var(--infoboxbg). Changed to accentcolor*/
/* Border was var(--borders). */
.infotable {
  float:left;
  margin-left:5px;
  background:var(--accentcolor);
  border-left:2px solid var(--borders);
  border:5px solid var(--spoilercolor);
  width:100%;
  font-size: 14px;
  color: var(--infotext);
  padding: 2px;
  
}
.infotable img{
  max-width: 100%;
    padding: 2px;
  margin: auto;
}
/* Changes the category text of the Infotables.. */
.infotable th {
  text-align:left;
  font-size: 18px;
}
/* Added this entirely */
.infotable td{
    padding: 2px;
  color: black;
  font-size: 17px;
}

.infotable th{
    padding: 2px;
  color: black;
}
.infotable ul{
  list-style: none;
  padding: 0px;
  margin: 2px;
}
#centertext{
  text-align: center;
  background: var(--centertext);
}
/*clear float after infobox*/
#clear::after {
  content: "";
  clear: both;
  display: table;
}
/*responsiveness*/


/*narrow*/
@media(max-width: 900px) {
  .infotable{
    width: 30%;
  }
    .wrapper{
    width: 100%;
  }
      .chapters{
    width: 50%;
  }
  .reveal{
    width: 60%;
  }
  }  
/*medium*/
@media(max-width: 1250px) {
  .infotable{
    width: 35%;
  }
   .contents{
    width: 40%;
  }
  }  

/* Added myself to center text vertically. Use <div class="center"> */
.center {
  display: flex;
/*  justify-content: center; */
  align-items: center;
  height: 100%;
}
/* Added myself. Sticky. WHY WON'T YOU VERTICALLY ALIGN?*/
.sticky {
  position: sticky;
  top: 0;
  /* display: flex; */
  align-items:  center;

  height: 100%;
}  

/* I'm not sure if the top:80px actually does anything.*/
.sticky2 {
  position: sticky;
  top: 63px;
}


/* Not currently using, but here just in case */
.absolute {
  position: absolute;
  top: 0px;
  right: 50;
  align-items: center;
}


/* Tag Font size*/
.taglist b, .taglist i {
    font-family: var(--mainfont);
    font-size: 15px;
    padding: 3px 10px;
    margin: 5px 2px;
    border-radius: 5px;
}

.taglist i {
    color: var(--darkcolor);
    background-color: var(--spoilercolor);
    font-style: normal;
    font-weight: normal;
}

.taglist b {
    color: var(--accentcolor);
    background-color: var(--darkcolor);
}

/* INFO TEXT. 250x400, 210 Infobox size. Gap 10.Changed to 50 to give more breathing room between Infotable and Basics/Trivia/etc. */
/* Grid columns: minmax(250px, 300px) minmax(210px, auto);*/
.infobox {
    display: grid;
    grid-template-columns: minmax(250px, 350px) minmax(210px, auto);
    gap: 40px;
    font-size: 18px;
}
/* I added boxbox. */
.autobox, .evenbox, boxbox, .bigsmallbox, autobox3 {
    display: grid;
    gap: 10px;
}


/* Added mediabox, and want the gap to be smaller than the others. */
.mediabox {
   display: grid;
    gap: 5px; 
   padding: 10px; 
    justify-content: flex-start;
   background-color: var(--spoilercolor);

     
    grid-template-columns: auto auto;
}

.mediabox h2 {
   padding: 10px; 
   border-radius: 20px;
    font-size: 30px;
  
}

/* Added because without it, I can't <h2 class="align left"> ... That said, it's funky, so I'm currently not using it.*/
.alignleft {
    justify-content: flex-start;
    width: 100%;
}

/* Not currently using, but keeping around, since it could be useful later. (Orignially for Sapphire Deimos, which was too long, but I instead just <br>'d it. */
.halfwidth {
  width: 50%;
}

/* Added boxbox. */
.boxbox {
     font-size: 18px;
}

/* Added myself. Scrollbox but no scroll. Want a border. */
.borderbox, main details p {
    background-color: var(--accentcolor);
    border-color: var(--bgcolor);
    font-size: 18px;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: auto;
    margin: 5px;
 
    
 border-left:2px solid var(--borders);
  border:5px solid var(--spoilercolor);
}

/* fr = box amount 1fr 1fr is even botxes. 1fr 2fr 1fr is with the middle doublet he size of the others. */
.evenbox {
    grid-template-columns: 1fr 1fr;
}

.autobox {
    grid-template-columns: auto auto;
}

/* I added so I could have three columns. */
.autobox3 {
       display: grid;
    grid-template-columns: auto auto auto;
  /*  display: flex; */
    gap: 5px;
    /*margin: 5px 0; */
   padding: 10px; 
    justify-content: flex-start;

}

.calendarbox {
     grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr ;
    display: flex;
    gap: 5px;
}
/* I added so I could have bigger column. NEED TO ADD display: grid; TOO. Put it above, with the others.*/
.bigsmallbox {
    grid-template-columns: 2fr 1fr;

}

.flexbox div {
    flex: 1 1 0;
}
/*Text for 'lIKES" AND "DISLIKES." Size was 1em. This only changes the literal "LIKES" and "DISLIKES" text */
.flexbox h1, .autobox h1, .evenbox h1, .bigsmallbox h1 {
    margin: 0;
    font-size: 1.3em;
    padding: 5px 10px;
    background-color: transparent;
}
/* Text for "Basics", "History", etc. HEADERS. Originally 16. ORIGINALLY SPOILERCOLOR*/
.infobox h1, .prefbox h1 {
    background-color: var(--spoilercolor);
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1px;
    text-align: center;
    padding: 5px;
    margin: 0 0 5px 0;
}
/* h1 was bgcolor. Changed to subcolor */
details h1 {
    background-color: var(--subcolor);
    font-size: 6px;
    padding: 5px 10px;
}

/* Main Image. Originally 100%, 250 px height. I'd like to make the image take up less space, but I must change that container (or something) elsewhere. "Cover" stretches the image to fill the full amount. */
/* Background-size originally cover. Changing */
.mainimg {
    width: 100%;
    min-height: 550px; 
    vertical-align: top;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 10px;
    
}
/* Lis here. Min-width is important for making the image always at least something */
.sideimg {
    background-position: center center;
    background-size: cover;
    height: 100%;
    min-height: 300px;
    min-width: 350px;
    max-height: 500px;
    border-radius: 10px;
/*    background-position: bottom;  */
}

/* Added this for bottom background position */
.bottomimg {
    background-position: center center;
    background-size: cover;
    height: 100%;
    min-height: 300px;
    min-width: 300px;
    max-height: 500px;
    border-radius: 10px;
    background-position: bottom;  
}

/* Added scrollboxbig. Going to share everything but the max-height. */
.scrollbox, .scrollboxbig {
    background-color: var(--accentcolor);
    border-color: var(--bgcolor);
    font-size: 16px;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    
 border-left:2px solid var(--borders);
  border:5px solid var(--spoilercolor);
}

.scrollbox {
    max-height: 600px;
}


/* Added a big version simply so I can have a larger height scrollbox. Apparently, I can't do that in html. */
.scrollboxbig {
    max-height: 650px;

}

.scrollbox::-webkit-scrollbar {
    display: none;
}

.scrollbox p {
    margin: 0 0 15px 0;
}

.scrollbox p:last-child {
    margin: 0;
}

/* Not sure if I can put scrollboxbig on the above, so doing them separate */
.scrollbobigx::-webkit-scrollbar {
    display: none;
}

.scrollboxbig p {
    margin: 0 0 15px 0;
}

.scrollboxbig p:last-child {
    margin: 0;
}

.media {
    background-color: var(--spoilercolor);
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.media p {
    margin: 0 0 10px 0;
}

.media:last-child, .media p:last-child {
    margin: 0;
}
/* SiZe originally 0.8em. Width originally 100%. Removed position: relative to get it BELOW THE QUICK LINKS.*/
.quotebox {
    position: relative; 

    flex-direction: row;
    display: flex;
    font-size: 1.5em;
    text-align: center;
    margin: 10px 0;
    width: fit-content;
}

/* Removed position: relative to get it BELOW THE QUICK LINKS.*/
.textbox {
   position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--darkcolor);
    color: var(--lightcolor);
    letter-spacing: 1px;
    border-radius: 10px;
    padding: 15px;
    margin-left: 20px;
    flex-grow: 1;
    min-height: 67px;
    width: 100%;
}

.textbox::after {
    content: "";
    position: absolute;
    top: 19px;
    left: -25px;
    margin-left: -3px;
    border-width: 15px;
    border-style: solid;
    border-color: transparent var(--darkcolor) transparent transparent;
}

/* Added a class that can make the textbox smaller width-wise. This was solely for Zane's Space RP History box. */

.smallertextbox {width: 550px; }

.quotebox p {
    margin: 0 0 10px 0;
}

.quotebox p:last-child {
    margin-bottom: 0;
}
/* The width/height are for the quote icon, not the one on the dossier. Also not for Relationships. Changed height/width to 100. Not sure what min-height/width does.*/
.charicon {
    background-repeat: no-repeat;
    background-color: var(--darkcolor);
    background-position: center center;
    background-size: cover;
    border: 2px solid var(--darkcolor);
    border-radius: 50px;
    min-height: 50px;
    min-width: 50px;
    height: 50px;
    width: 50px;
    margin-top: 10px;
}

h3 img, main summary img {
    vertical-align: middle;
}


@media all and (max-width: 710px) {
  
    main article {
      padding-bottom: 100px;
    }

    #dossier {
        padding: 10px 10px 100px 10px;
    }

    .relationship {
        flex-direction: column;
    }

    .chardialogue, .statdiv {
    width: 100%;
    }

    .statdiv {
        max-width: unset;
        height: 75px;
        padding: 5px;
    }

    .stat {
        flex-direction: row-reverse;
        height: 20px;
        min-width: 150px;
        max-width: 150px;
    }

    .stat div {
        min-height: 100%;
        min-width: unset;
    }

    .autobox, .infobox {
        grid-template-columns: auto;
    }

    .infobox {
        text-align: center;
    }

    .autobox ul, .infobox ul {
        list-style: none;
        padding: 0;
        margin: 5px 0;
    }

    .flexbox, main section {
        flex-direction: column;
    }

    .flexbox div {
        padding: 5px 0;
    }

    .sideimg {
        min-height: 150px;
    }

    .scrollbox, .scrollboxbig {
        min-width: unset;
        max-height: unset;
        overflow: none;
    }

    main section div {
        padding: 0;
    }

  }