/* This thing is largely bashed together from SadGrl's layout template (at https://sadgrl.online/projects/layout-builder/) and https://www.w3schools.com/ and some StackOverflow threads */ 
/* Global layout for sticky footer */
html, body {
  height: 100%;        /* full height */
  margin: 0;           /* remove default margin */
  display: flex;       /* enable flexbox */
  flex-direction: column;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #000;  /* fixed typo (#00000 isn’t valid) */
  color: #000;
}

main {
  flex: 1;             /* grow to push footer down */
  padding: 20px 20px 20px 80px; /* keep your existing padding */
  text-align: justify;
}

footer {
  height: 40px;
  background-color: #433f5a;
  padding: 10px;
  text-align: center;
  margin-top: auto;   /* <-- ensures footer sits at bottom */
}

body {
  
      @import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');                  
  font-family: 'IBM Plex Sans',sans-serif;
                margin: 0;
                background-color: #00000;
                color: #000000;
            }

html, body {margin: 0}

            * {
                box-sizing: border-box;
              font-family: itim;
            }

            #container {
                max-width: 1070px;
                margin: 0 auto;
            }

            a {
                color: #5d66a2;
                font-weight: normal;
                text-decoration:none;
            }
            
            /* voices */
            .egg * {
                font-family: gochi hand;
            }

            .oxie * {
                font-family: impact;
            }

            .mimi * {
                font-family: magica;
                font-size: 20px;
            }

            .kyle * {
                font-family: yomogi;
            }

            .snow * {
                font-family: itim;
            }

             p {
                color: #332233;
            }

            h1 a, h2 a, h3 a, h4 a, h5 a {
                color: #000000;
                text-decoration:none;
            }

            a:hover {
                color: #75b3f1;
            }


            #header {
                width: 100%;
                background-repeat: no-repeat;
                background-size: auto 100%;
                background-position: center;
                background-color: #d4d4d4;
                height: 150px;
            }

            main {
                background-color: #f6f4f6;
                padding: 20px 20px 20px 80px;
                text-align: justify;
            }

            h1, h2 {
                text-align: left;
                border-bottom: 4px #bbb4ca dotted;
                width: 100%;
              font-family: fredoka one;
            }

            h4 {
                text-align: left;
                font-size: 19px;
                margin: 0px;
                width: 100%;
            }

            footer {
                background-color: #433f5a
;
                width: 100%;
                height: 40px;
                padding: 10px;
                text-align: center;
            }

         
            .imagehere {
                height: 150px;
                width: 150px;
                margin-left:auto;
                margin-right:auto;
                background-repeat: no-repeat;
                background-position: center;
                background-size: auto 100%;
            }

            .charactermain-image {
                height: 350px;
                width: 300px;
                margin-left:auto;
                background-repeat: no-repeat;
                background-size: auto 100%;
                background-position: center;
                border: 2px #433f5a solid;
              border-top-left-radius:40px;
            }

            .galleryimage {
              float: left;
              width: 170px;
              height: 170px;
              background-repeat: no-repeat;
              background-size: auto 100%;
              background-position: center;
              margin: 10px;
              border: 4px #bbb4ca none;
            }

            h1,
            h2,
            h3 {
                color: #5d66a2;
            }

            h1 {
                font-size: 40px;
            }

            h2 {
                font-size: 25px;
            }

            h4 {
                font-weight: 100;
            }


            /* Thanks to LetoLeGaosaure on Pillowfort for pointing this out! */
            h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover {
                color: inherit;
            } 
            /* -------- */

            .box {
                display: inline-block;
             background-color: #8d89b3;
             border: 0px solid;
             border-radius: 20px;
             padding: 10px;
            }

.box p, .box span {
  color: #f6f4f6;
  padding-right: 5px;
  padding-left: 5px;
}

.box a {
  color: #433f5a;
  border-bottom: 2px #5d66a2 dotted;
}

.box a:hover {
                color: #75b3f1;
            }

            .gallery {
                background-color: none;
                padding: 10px;
                overflow: hidden;
            }

            #toc {
                float: left;
                text-align:left;
                width: 200px;
                margin-right:auto;
                margin: 0px 40px 10px 0px;
                background-color: #E7E9EB;
                border: 1px solid #000000;
            }

            ol {
                padding-left: 8%;
                list-style-type: circle;
                }

            li {
                padding-bottom: 3px;
                }

            .characterprofile {
              float: right;
              width: 300px;
              margin-left:auto;
              margin: 0px 0px 30px 30px;
              background-color: #433f5a;
            }

            /* Clear floats after the columns */
            .row:after {
              content: "";
              display: table;
              clear: both;
            }


            table {
              border-collapse: collapse;
              width: 300px;
              background-color: #E7E9EB;
              border-top: 2px solid #433f5a;
              border-bottom: 2px solid #433f5a;
            }

            tbody {
              margin: 3px 10px;
            }

            td, th {
              text-align: left;
              padding: 3px 10px;
              border-right: 2px solid #433f5a;
              border-left: 2px solid #433f5a;
              color: #433f5a;
            }

            td:nth-child(odd) {
              font-weight: 600;
              font-family: NewYearNewDay;
                text-align: right;
            }

            tr:nth-child(odd) {
              background-color: #EEEEEE;
            }


            /* MEDIA QUERY */

            @media only screen and (max-width: 1350px) {
              main {
                float: left;
                width: 100%;
                margin-left: auto;
                margin-right: auto;
                margin: 10px 0px 0px 00px;
                padding: 0px;
              }
            }

            @media only screen and (max-width: 1100px) {
              table, .characterprofile {
                float: left;
                width: 100%;
                margin: 10px 0px 0px 00px;
              }
                
            .characterprofile {
                float: left;
                width: 100%;
                margin: 0px 0px 30px 0px;
              }
                
            main {
                padding: 20px;
            }
                
            .charactermain-image {
                width: 100%;
                margin: 0px 0px 10px 00px;
              }
            }