/* 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 */ 

html, body {margin: 0}

            * {
                box-sizing: border-box;
            }

            #container {
                max-width: 1070px;
                margin: 0 auto;
            }

            a {
                color: #ff0000;
                font-weight: normal;
                text-decoration:none;
            }

            h1 a, h2 a, h3 a, h4 a, h5 a {
                color: white;
                font-weight: bold;
                text-decoration:none;
            }

            a:hover {
              
                color: #ff8787;
            }
            
           .spoil { 
           box-shadow: inset 0 0 0 0 red; 
           -webkit-transition: all ease 0.5s; 
           -moz-transition: all ease 0.5s; transition: all ease 0.5s;
           color: black;
           background-color: black;
           }
  
           .spoil:hover { 
           box-shadow: inset 0 50px 0 0 #700000; 
           color: white;
           }
            
            
            .link {
            position: relative;
            transition: clip-path 275ms ease;
             }
            .link:hover span::before, .link:focus span::before {
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            color: #ff8787;
            }
            .link span {
            position: relative;
            display: inline-block;
            }
            .link span::before {
            position: absolute;
            content: attr(data-content);
            text-decoration: underline;
            clip-path: polygon(0 0, 0 0, 0% 100%, 0 100%);
            transition: clip-path 275ms ease;
            }


            #header {
                width: 100%;
                background-repeat: no-repeat;
                background-size: auto 100%;
                background-position: center;
                background-color: #0d0d0d;
                height: 150px;
            }

            main {
                padding: 20px 20px 20px 80px;
                text-align: justify;
                font-family: Roboto, monospace;
                color: #cccccc;
            }
            
            .homepage {
              background-image: url("https://p3llerax4ce.neocities.org/misc/indexbg2.jpg");
            }
            .cipherpage {
              background-image: url("https://p3llerax4ce.neocities.org/misc/cipher1.gif");
            }
            .chesterpage {
              background-image: url("https://p3llerax4ce.neocities.org/misc/chester1.gif");
            }
            .cathpage {
              background-image: url("https://p3llerax4ce.neocities.org/misc/catty1.jpg");
            }

            h1, h2 {
                text-align: left;
                border-bottom: 1px black solid;
                width: 100%;
            }

            h4 {
                text-align: left;
                font-size: 19px;
                margin: 0px;
                width: 100%;
            }

            footer {
                background-color: #0d0d0d;
                width: 100%;
                height: 40px;
                padding: .5px;
                padding-right: 120px;
                text-align: right;
                font-family: Roboto, monospace;
                color: white;
                font-size: 13px;
            }

            .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 grey solid;
            }

            .galleryimage {
              float: left;
              width: 170px;
              height: 170px;
              background-repeat: no-repeat;
              background-size: cover;
              background-position: center;
              margin: 10px;
              border: 1px grey solid;
            }

            h1,
            h2,
            h3 {
                color: white;
            }

            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: #0d0d0d;
                border: 1px solid grey;
                padding: 10px;
            }

            .gallery {
                padding: 10px;
                overflow: hidden;
            }
            
            .gallery2 {
                height: 2100px;
                display: flex;
                flex-wrap: wrap;
                flex-direction: column;
                align-content: space-between;
            }
            .gallery2 img {
                pointer-events: none;
                width: 250px;
                border: 1px solid grey;
                margin: 10px;}

            #toc {
                float: left;
                text-align:left;
                width: 200px;
                margin-right:auto;
                margin: 0px 40px 10px 0px;
                background-color: #0d0d0d;
                border: 1px solid grey;
            }

            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: #212121;
            }

            /* Clear floats after the columns */
            .row:after {
              content: "";
              display: table;
              clear: both;
            }


            table {
              border-collapse: collapse;
              width: 300px;
              background-color: #171717;
              border-top: 1px solid grey;
              border-bottom: 1px solid grey;
            }

            tbody {
              margin: 3px 10px;
            }

            td, th {
              text-align: left;
              padding: 3px 10px;
              border-right: 1px solid grey;
              border-left: 1px solid grey;
            }

            td:nth-child(odd) {
              font-weight: 600;
                text-align: right;
            }

            tr:nth-child(odd) {
              background-color: #0d0d0d;
            }


            /* 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;
              }

            }
