/* 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 */ 

body {
                font-family: 'IBM Plex Sans',sans-serif;
                margin: 0;
                background-color: #fff;
                color: var(--color);
            }

html, body {margin: 0}

            * {
                box-sizing: border-box;
            }

            #skip a {
              position: absolute;
              display: inline-block;
              left: 0px;
              top: -1000px;
              overflow: hidden;
              transition: top 0.5s ease;
              background: var(--background);
              color: var(--link);
              z-index: 1000;
              padding: 5px;
            }

            #skip a:focus {
              top: 0;
              transition: top 0.5s ease;
            }

            #container {
                max-width: 1020px;
                margin: 0 auto;
                
            }

            a {
                color: #0066cc;
                font-weight: normal;
                text-decoration:none;
            }

            h1 a, h2 a, h3 a, h4 a, h5 a {
                color: #000000;
                text-decoration:none;
            }

            a:hover {
                color: #75b3f1;
            }


            #header {
              display: none;
            }

            main {
                max-width: 100%;
                padding: 20px 20px 20px 80px;
                /* text-align: justify; */
            }

            main h1, h2 {
                text-align: left;
                border-bottom: 1px black solid;
                width: 100%;
            }

            main h4 {
                text-align: left;
                font-size: 19px;
                margin: 0px;
                width: 100%;
            }

            main img{
              width: 100%;
              display: block;
            }

            main blockquote{
              margin: 0.5em;
              padding: 0 1em;
              border-left: 2px solid #d4d4d4;
            }

            main ul {
              margin: 0.5em;
              padding: 0.25em 1em;
              }

              main ul li {
                  line-height: 1.5;
              }

            time{
              font-weight: bold;
            }

            main hr{
              border: 1px solid black;
            }

            footer {
                background-color: #D0D0DB;
                width: 100%;
                height: 40px;
                padding: 10px;
                text-align: center;
                display: block;
            }

            .banner{
              width: 100%;
              margin: 2em auto;
            }

            .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: 1px black solid;
            }

            .spoilers{
              background-color: #fff9e7;
              border: 2px dashed #ea426d80;
              margin: 1em 0.5em;
              padding: 0.75em;
            }

            .spoilers summary{
              color: #ea426d;
              font-weight: bold;
            }

            /* .galleryimage {
              float: left;
              width: 170px;
              height: 170px;
              background-repeat: no-repeat;
              background-size: auto 100%;
              background-position: center;
              margin: 10px;
              border: 1px black solid;
            } */

            h1,
            h2,
            h3 {
                color: #000000;
            }

            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 {
                background-color: #E7E9EB;
                border: 1px solid #000000;
                padding: 10px;
            }

            /* .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: #E7E9EB;
            }

            /* Clear floats after the columns */
            .row:after {
              content: "";
              display: table;
              clear: both;
            }


            table {
              border-collapse: collapse;
              width: 300px;
              background-color: #E7E9EB;
              border-top: 1px solid black;
              border-bottom: 1px solid black;
            }

            tbody {
              margin: 3px 10px;
            }

            td, th {
              text-align: left;
              padding: 3px 10px;
              border-right: 1px solid black;
              border-left: 1px solid black;
            }

            td:nth-child(odd) {
              font-weight: 600;
                text-align: right;
            }

            tr:nth-child(odd) {
              background-color: #e0e2e4;
            }

            /* TABS (source: https://kalechips.net/projects/snippets/tabs) */
              .tabwrap section {
                display: none;
              }

              .tabwrap section:target {
                display:block;
              }

            /* GALLERY (source: https://kalechips.net/projects/snippets/grid) */
            .gallery {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                grid-gap: 5px;
              }

              .galleryitem {
                max-width:100%;
                border: 1px black solid;
              }

              .galleryitem img {
                max-width:100%;
                display: block;
              }

              .galleryitem figcaption {
                background-color: #d4d4d4;
                text-align: center;
                padding: 0.25em;
              }

            /* 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;
              }

              #header {
                width: 100%;
                background-repeat: no-repeat;
                background-size: cover;
                background-position: center;
                background-color: #d4d4d4;
                height: 150px;
            }
            }

            @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: 1.5em;
            }
                
            .charactermain-image {
                width: 100%;
                margin: 0px 0px 10px 00px;
              }

              .gallery{
                display: block;
              }

              /* .galleryitem{
                margin: 1.5em;
              } */

            }