/*Character Template*/

html, body {margin: 0}

            * {
                box-sizing: border-box;
            }

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


            .imagehere {
                height: 150px;
                width: 150px;
                margin-left:auto;
                margin-right:auto;
                background-repeat: no-repeat;
                background-position: center;
                background-size: auto 100%;
                 border-radius: 25px;
            }

            .charactermain-image {
                height: 350px;
                width: 300px;
                margin-left:auto;
                background-repeat: no-repeat;
                background-size: auto 100%;
                background-position: center;
                border-radius: 25px;
                background-color: transparent;
                border-radius: 25px 25px 0px 0px;
            }

            .galleryimage {
              float: left;
              width: 150px;
              height: 150px;
              background-repeat: no-repeat;
              background-size: auto 100%;
              background-position: center;
              margin: 5px;
              border-radius: 25px;
               
            }
            .charbox {
                background-color: #E7E9EB;
                border: 1px solid #000000;
                padding: 10px;
            }

            .chargallery {

                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;
            }
 .characterprofile {
              float: right;
              width: 300px;
              margin-left:auto;
              margin: 0px 0px 10px 10px;
              background-color: transparent;
            }

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


            table {
              border-collapse: collapse;
              width: 300px;
              background-color: grey;
              border-radius:25px;
            }

            tbody {
              margin: 3px 10px;
            }

            td, th {
              text-align: left;
              padding: 3px 10px;
            }

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

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


            /* MEDIA QUERY */

            @media only screen and (max-width: 1350px) {
              main {
                float: left;
                width: 100%;
                margin-left: auto;
                margin-right: auto;

              }
            }

            @media only screen and (max-width: 800px) {
              table, .characterprofile {
                float: left;
                width: 100%;
                margin: 0px 0px 0px 00px;
              }
                
            .characterprofile {
                float: left;
                width: 100%;
                margin: 0px 0px 0px 0px;
              }
                
            .charactermain-image {
                width: 100%;
                margin: 0px 0px 0px 00px;
              }

            }
            
