/* Originally bgcolor #666 consolas font*/

/*Change height with --viewerheight.*/
:root {
    --bgcolor: #9E98B5;
    --accentcolor: #C4B8DE;
    --lightcolor: #FFF;
    --darkcolor: #000;
    --mainfont: book antiqua, monospace;
    --headerfont: georgia;

    --viewerheight: 710px;

}

* {
    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;
}

a {
  color: var(--lightcolor);
}

/* I added this from Dossier.*/
.scrollbox p, details p {
    text-indent: 20px;
}

/*clear float after infobox*/
#clear::after {
  content: "";
  clear: both;
  display: table;
}

/* INFO TEXT. 250x400, 210 Infobox size. Gap 10.Changed to 50 to give more breathing room between Infotable and Basics/Trivia/etc. */
.infobox {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(210px, auto);
    gap: 50px;
    font-size: 18px;
}

.autobox, .evenbox {
    display: grid;
    gap: 10px;
}
/* Added. Surely won't work. IT WORKED? Wow... */
.boxbox {
    display: grid;
    gap: 10px;
     font-size: 18px;
}

.evenbox {
    grid-template-columns: 1fr 1fr;
}

.autobox {
    grid-template-columns: auto auto;
}

.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 {
    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;
}


   .autobox, .infobox {
        grid-template-columns: auto;
    }

    .sideimg {
        min-height: 150px;
    }



/* Addition end (except for two more scrollbox things later.*/
#container {
    display: flex;
}

main, #reel {
    padding: 10px;
}

main {
    height: 100vh;
    background-color: var(--mainbgcolor);
    flex-grow: 1;
    overflow-y: auto;
}

/* Originally 100px */
#reel {
    background-color: var(--darkcolor);
    height: 100vh;
    width: 200px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
/* This changes the size of the images on the reel, but the reel stays the same size? Yeah, making Width 100% doesn't change it. background-position is center center. Let's change it*/
#reel div {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100px;
    width: 100%;
    border-radius: 5px;
    transition: 0.4s;
    font-size: 0px;
    margin-bottom: 5px;
    border: 1px solid var(--accentcolor);
    overflow: hidden;
    cursor: pointer;
}

#reel div:last-child {
    margin-bottom: 0;
}

#reel div img {
    display: none;
}


 /*-- STICKY. STAY SOMEWHERE. It's saying no div, so I removed div.sticky and just did sticky. */        
       
sticky {
  position: sticky;
  top: 0;
  padding: 5px;
  font-size: 20px;
}  
 absolute {
  position: absolute;
  top: 40px;
  right: 0;
  width: 1400px;
  height: 1000px;

}

/* STICKY END */


#reel>article {
    display: none;
    flex-direction: column;
}

.cw>section {
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 17px;
    width: 100%;
    height: 100%;
    color: var(--lightcolor);
    text-align: center;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* I made this myself. Took cw code and lightened it.*/
.txt>section {
    background-color: rgba(0, 0, 0, 0.4);
    font-size: 17px;
    width: 100%;
    height: 100%;
    color: var(--lightcolor);
    text-align: center;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#reel div:hover {
    filter: drop-shadow(0 0 5px var(--accentcolor));
    transform: scale(1.1);
}

.focus {
    filter: drop-shadow(0 0 5px white);
    transform: scale(1.1);
} 
/* Originally 100vh, 25 px. THIS IS THE TAB BUTTONS AND HEIGHT. IF YOU MAKE IT SMALLER, IT CUTS OFF. 9-29-25: I changed min-width from 25 to 100 and that might've fixed it cutting off when the text goes far?*/
#cat {
    height: 100vh;
    min-width: 100px;
    overflow-y: auto;
}
/* -This is the "Tab" width. 25px normal. writing-mode: vertical text-orientation: Sideway. Padding originally 15, 5, 15, 0s*/
#cat button {
    display: block;
    background-color: var(--darkcolor);
    width: 100px;
    border: none;
    border-radius: 0 10px 10px 0;
    margin: 5px 0;
    padding: 10px 5px 10px 0;
    font-family: var(--headerfont);
    font-weight: bold;
 /*   writing-mode: vertical-lr; */
/*    text-orientation: sideways; */
    letter-spacing: 1px;
    font-variant: small-caps;
    color: var(--accentcolor);
    cursor: pointer;
    transition: 0.4s;
}

#cat button:focus {
    background-color: var(--accentcolor);
    color: var(--darkcolor);
}
/*Padding originaly 50. Padding DOES affect the text, but even super padded, the bars will still cut off if the text WOULD hit it, unpadded. Weird.  Width 100%. Didn't do anything. background-position was center center. Now left. */
#viewer {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 100%;
    height: var(--viewerheight);
    display: flex;
    align-items: center;
    justify-content: top;
    flex-direction: column;
    text-align: left;
    color: var(--asidebgcolor);
    padding: 50px;
    cursor: auto;
}
/*text align was center. Now left. */
#imgtitle {
    font-family: var(--headerfont);
    text-align: left;
    font-variant: small-caps;
    color: var(--lightcolor);
    margin: 5px 0;
}
/*text align was center. Now left. */
#imgdate {
    text-align: left;
    margin: 0 0 15px 0;
    font-size: 1rem;
}
/*text align was center. Now left. ADDING BACKGROUND COLOR WORKED. ...except I need to make it smaller. Changed width from my original 1200px to fit-content. Still a box on the homepage, but that's better*/
#imgdesc {
    text-align: left;
  background-color: #C4B8DE; /* box color */
   border: 2px solid #000; /*  border. Sadly, if I add this, the border appears in the splash page too. */
padding:5px; /* Padding also messes it up. :( Inner spacing */
 width: fit-content; 
}
/*Added myself to try to make it GO AWAY WHEN EMPTY. IT WORKED YESESYEYSYESYE. */
#imgdesc:empty {
  display: none;
}


#cred {
    font-size: 10px;
}

/*Scrollbox stuff from Dossier. And Autobox. Added Eventbox too since it was in between to autoboxes*/

.autobox, .evenbox {
    display: grid;
    gap: 10px;
}

.evenbox {
    grid-template-columns: 1fr 1fr;
}

.autobox {
    grid-template-columns: auto auto;
}

/*Text for 'lIKES" AND "DISLIKES." Size was 1em. This only changes the literal "LIKES" and "DISLIKES" text */
.flexbox h1, .autobox h1, .evenbox h1 {
    margin: 0;
    font-size: 1.3em;
    padding: 5px 10px;
    background-color: transparent;
}

    .autobox, .infobox {
        grid-template-columns: auto;
    }

    .infobox {
        text-align: center;
    }

    .autobox ul, .infobox ul {
        list-style: none;
        padding: 0;
        margin: 5px 0;
    }

.scrollbox {
    background-color: var(--spoilercolor);
    font-size: 16px;
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
}

.scrollbox::-webkit-scrollbar {
    display: none;
}

.scrollbox p {
    margin: 0 0 15px 0;
}

.scrollbox p:last-child {
    margin: 0;
}
/* Addition end.*/



#enlarge {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    padding: 20px;
    z-index: 99;
    display: none;
}

#enlarge img {
    margin: auto;
    display: block;
    filter: drop-shadow(0 0 5px var(--grey));
    cursor: pointer;
    max-width: 100%;
    cursor: zoom-out;
}

#cred {
    z-index: 10;
    font-size: 10px;
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--lightcolor);
    border: none;
    border-radius: 50px 0 0 0;
    padding: 10px 5px 5px 10px;
    transition: 0.3s;
    cursor: pointer;
}

#cred:hover {
    background-color: var(--darkcolor);
    color: var(--accentcolor);
}

@media all and (max-width: 600px) {
  
    #container {
      flex-direction: column;
    }
/*Let's see what this does. Was 100x100. Also don't know.*/
    #reel {
        height: 100px;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
    }
/*Let's see what this does. Was 80x80. Don't know.*/
    #reel div {
        height: 80px;
        width: 80px;
        margin-right: 5px;
        margin-bottom: 0;
    }

    #reel div:last-child {
        margin-right: 0;
    }

    #reel>article {
        display: none;
        flex-direction: row;
    }

    .cw>section {
        font-size: 9px;
    }
    /* Added myself, off of cw. */
    
     .txt>section {
        font-size: 9px;
    }

    #cat {
        height: auto;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
    }
  /*Testing this. Was originally 25. ...Don't know what that did.*/
    #cat button {
        width: auto;
        height: 25px;
        vertical-align: top;
        display: inline;
        writing-mode: horizontal-tb;
        text-orientation: upright;
        margin: 0 3px 0 3px;
        padding: 5px 10px;
        border-radius: 0 0 10px 10px;
    }

    #enlarge img {
        max-width: unset;
    }
  }