/* 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 */ 

@font-face {
    font-family: PixelHam;
    src: url('fonts/PixelHam.ttf');
    font-weight: normal;
}

@font-face {
    font-family: PixelHam;
    src: url('fonts/PixelHamBold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: InkyThinPixels;
    src: url('fonts/Inky Thin Pixels.ttf');
    font-weight: bold;
}

html, body {margin: 0} {
    box-sizing: border-box;
}

body {
        font-family: 'PixelHam', 'Times New Roman';
        margin: 0;
        background-image: url('img/char_background.png');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: 100% 100%;
        image-rendering: pixelated;
    }

a {
    font-weight: bold;
    text-decoration: none;
}

.linkNormal {
    color: #F7AE29;
}

.linkCharacter {
    color: #E600AC;
}

::selection {
    background-color: black;
}

main {
    padding: 10px 20px 20px 80px;
    text-align: justify;
    font-size: 24px;
    color: white;
    text-shadow:  0px 2px 0px black, 
                  2px 2px 0px black, 
                  2px 0px 0px black, 
                  -2px 0px 0px black, 
                  0px -2px 0px black, 
                  -2px -2px 0px black, 
                  -2px 2px 0px black, 
                  2px -2px 0px black;
}

h1, h2, h3 {
    color: #E600AC;
}

h1 {
    border-bottom: 4px black dashed;
    font-size: 80px;
    font-family: InkyThinPixels;
    text-align: center;
    text-shadow:  0px 3px 0px black, 
                  3px 3px 0px black, 
                  3px 0px 0px black, 
                  -3px 0px 0px black, 
                  0px -3px 0px black, 
                  -3px -3px 0px black, 
                  -3px 3px 0px black, 
                  3px -3px 0px black;
}

h2 {
    border-bottom: 2px black solid;
    font-size: 50px;
    font-family: PixelHam;
    text-shadow:  0px 2px 0px black, 
                  2px 2px 0px black, 
                  2px 0px 0px black, 
                  -2px 0px 0px black, 
                  0px -2px 0px black, 
                  -2px -2px 0px black, 
                  -2px 2px 0px black, 
                  2px -2px 0px black;
            }

            h4 {
                font-weight: 100;
            }

h1, h2 {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0px;
}

h4 {
    text-align: left;
    font-size: 19px;
    margin: 0px;
    width: 100%;
}

            footer {
                background-color: #E7E9EB;
                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: 1px black solid;
            }

            .galleryimage {
              float: left;
              width: 170px;
              height: 170px;
              background-repeat: no-repeat;
              background-size: auto 100%;
              background-position: center;
              margin: 10px;
              border: 1px black solid;
            }

            .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 20px 0px 0px;
                padding: 0px 0px 0px 10px;
                background-image: url('img/toc_background.png');
                background-size: 100% 100%;
            }

            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: #5D5D5D;
              border: 1px black solid;

            }

            tbody {
              margin: 3px 10px;
            }

            td {
              text-align: right;
              padding: 3px 10px;
            }

            th {
              text-align: center;
              padding: 3px 10px;
              background-color: #000;
            }

            td:nth-child(odd) {
              font-weight: 600;
                text-align: left;
            }

            tr:nth-child(odd) {
              background-color: #484848;
            }


#container {
    max-width: 1070px;
    margin: 0 auto;
}


            /* 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;
                border-radius: 15px;
              }
                
            main {
                padding: 20px;
            }
                
            .charactermain-image {
                width: 100%;
                margin: 0px 0px 10px 00px;
              }

            }