header {
    width: 100%;
    height: 240px;
    max-height: 240px;
    display: block;
    float: left;
    position: relative;
}

header img, footer img {
    margin-top: 15px;
    margin-left: 15px;
}

header span {
    position: absolute;
    top: 50%;
    margin: 0;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

footer {
    width: 100%;
    display: block;
    height: 100px;
    font-family: "Nerko One", Arial, Arial, Helvetica, sans-serif;
    color: #ffffff;
    font-size: 1.5em;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    padding-left: 4px;
    padding-right: 4px;
}

footer a img {
    max-height: 45px;
}

.footerleft, .fblogo {
    margin-left: 20px;
}

.fblogo img {
    vertical-align: text-bottom;
}

.HeaderText {
    font-family: "Nerko One", Arial, Arial, Helvetica, sans-serif;
    color: #ffffff;
    font-size: 5em;
    margin-left: 10%;
}

.animate {
    -webkt-animation:animate_bg 10s;
    animation:animate_bg 10s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

@keyframes animate_bg {
    0% {background-color: #2c7295;}
    50% {background-color: #3e9718;}
    100% {background-color: #2c7295;}
}

body {
    margin-top: 20px;
    background: url('../images/AliceChessboard.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    width: 100%;
    margin: auto;
}

#wrapper {
    width: 80%;
    margin: auto;
}

.pagebody {
    width: 100%;
    -webkt-animation:animate_backcolor 5s forwards;
    animation:animate_backcolor 5s forwards;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

@keyframes animate_backcolor {
    0% {background-color: rgba(255,255,255,0);}
    50% {background-color: rgba(255,255,255,0.5);}
    100% {background-color: rgba(255,255,255,0.9);}
}

nav {
    width: 100%;
    height: 66px;
    -webkt-animation:animate_bg 10s;
    animation:animate_bg 10s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

nav ul {
    list-style-type: none;
    margin-block: 0;
    padding-inline-start: 0;
    margin-left: 5%;
}

nav ul li {
    float: left;
    display: block;
    padding: 1% 2%;
    font-family: "Nerko One", Arial, Helvetica, sans-serif;
    font-size: 1.7em;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    padding-left: 4px;
    padding-right: 4px;
}

.NavHome a:hover, .DiscussionPage a:hover, .FavoriteGames a:hover, .NavMyGames a:hover, .NavContact a:hover, .footerleft a:hover {
    background-color: #1f475a;
    height: 66px;
}

.dropdown-content {
    display: inline;
    width: 58%;
    z-index: 1;
}

.dropdown-content a {
    display: inline;
    z-index: 1;
}

.VerticalNav {
    display: none;
}

#logindiv a {
    float: right;
    display: block;
    padding: 1% 2%;
    font-family: "Nerko One", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    color: #ffffff;
    position: relative;
    text-decoration: none;
    text-shadow: 2px 2px #000000;
}

.Banner {
    display: block;
    width: 100%;
}

.Bannerimg {
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    max-height: 200px;
}

.Banner img {
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    max-height: 200px;
}

.RogerHome {
    display: block;
    width: 90%;
    margin-left: 2%;
    margin-right: 2%;
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    background-color: rgba(255,255,255,0.8);
    padding: 4px;
}

.RogerPhoto img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.resume img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.RogerBio {
    float: left;
    width: 60%;
    margin-left: 2%;
    margin-right: 2%;
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    background-color: rgba(255,255,255,0.8);
    padding: 4px;
}

.MyGame {
    float: left;
    width: 60%;
    margin-left: 20%;
    margin-right: 2%;
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    background-color: rgba(255,255,255,0.8);
    padding: 4px;
}

.MyGame li {
    list-style: inside;
    list-style-type: decimal;
}

.MyGame ol {
    margin:0 0 0 10px;
}

.LoginPage {
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    margin-left: 2%;
    font-size: 1.5em;
    line-height: 1.5em;
}

.LondonOpeningPic {
    float: left;
    width: 24%;
    padding-top: 8px;
    margin-left: 2%;
}

.LondonOpeningPic img {
    width: 100%;
    max-height: 500px;
    max-width: 500px;
}

/* .RogerBio::first-letter {
    font-size: 3em;
    font-weight: bold;
} */

.WinningChessPic {
    float: left;
    width: 24%;
    margin-left: 2%;
}

.WinningChessPic img {
    width: 100%;
}

.BotezPic {
    float: left;
    width: 24%;
    margin-left: 2%;
}

.BotezPic img {
    width: 100%;
    max-height: 250px;
    max-width: 340px;
}

.chessdiv {
    float:left;
    width: 100%;
}

.CivVPic {
    margin-left: 25%;
    margin-right: 25%;
}

.CivVPic img {
    width: 100%;
    max-height: 400px;
    max-width: 700px;
}

.GameboardPic {
    margin-left: 20%;
    margin-right: 5%;
}

.GameboardPic img {
    width: 100%;
    max-height: 800px;
    max-width: 800px;
}

.SteamText {
    /* float: left; */
    /* width: 40%; */
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 0;
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    background-color: rgba(255,255,255,0.8);
    padding: 4px;
    text-align: justify;
}

/* .SteamText::first-letter {
    font-size: 3em;
    font-weight: bold;
} */

.SteamPic1 {
    float: right;
    width: 45%;
    margin-left: 2%;
    margin-right: 2%;
}

.SteamPic2 {
    float: left;
    width: 45%;
    margin-left: 2%;
    margin-right: 2%;
}

.SteamPic1 img, .SteamPic2 img {
    width: 100%;
}

.TreasurelistPic {
    margin-left: 20%;
    margin-right: 20%;
    background-color: rgba(255,255,255,0.6);
}

.TreasurelistPic img {
    width: 100%;
    max-height: 800px;
    max-width: 800px;
}

.memberRow {
    width: 100%;
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    display: inline-block;
    margin-left: 2%;;
}

.memberID {
    width: 2%;
    margin: 2px;
    display: inline-block;
    vertical-align: top;
}

.memberFirst {
    width: 11%;
    margin: 2px;
    display: inline-block;
}

.memberLast {
    width: 11%;
    margin: 2px;
    display: inline-block;
}

.memberEmail {
    width: 20%;
    margin: 2px;
    display: inline-block;
}

.memberUser {
    width: 11%;
    margin: 2px;
    display: inline-block;
    vertical-align: top;
}

.memberDiscussion {
    width: 35%;
    margin: 2px;
    display: inline-block;
}


.memberDiscussion2 {
    width: 35%;
    margin: 2px 2px 2px 20px;
    display: inline-block;
    vertical-align: top;
}

.titlebold {
    font-weight: bold;
}

.memberRole {
    width: 4%;
    margin: 2px;
    display: inline-block;
}

.memberActions {
    width: 10%;
    margin: 2px;
    display: inline-block;
}


.memberImage {
    width: 30%;
    margin: 2px;
    display: inline-block;
}

.discussionimage {
    max-width: 100%;
}

.RogerHome.regpage {
    display: inline-block;
}

.RogerHome.regpage label {
    width: 13%;
    display: inline-block;
}

.RogerHome.regpage input {
    width: 20%;
    display: inline-block;
}

.LoginPage label {
    width: 11%;
    display: inline-block;
    margin-right: 15px;
}

.LoginPage input {
    width: 25%;
    display: inline-block;
}

.LoginPage input.postentry {
    width: 50%;
    height: 200px;
    display: inline-block;
}

.LoginPage input[type='checkbox'] {
    width: auto;
    margin-left: 0;
}

.searchlabel {
    margin-left: 2%;
    font-family: "Patrick Hand", Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    line-height: 1.5em;
}

.logoclass {
    width: 19%;
    display: inline-block;
}

.headerclass {
    width: 81%;
}

@media screen and (max-width: 1550px) {
    nav ul li {
        font-size: 1.4em;
    }
    footer {
        height: 125px;
    }
}

@media screen and (max-width: 1250px) {
    nav ul li {
        font-size: 1em;
    }
}

@media screen and (max-width: 992px) {
    nav {
        display: none;
    }

    .VerticalNav {
        display: block;
        width: 25%;
        float: left;
        -webkt-animation:animate_bg 10s;
        animation:animate_bg 10s;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
        overflow: hidden;
        list-style-type: none;
        margin-block: 0;
        padding-inline-start: 5px;
    }

    .VerticalNav li {
        font-family: "Nerko One", Arial, Helvetica, sans-serif;
        font-size: 1.9em;
    }

    .VerticalNav li a {
        text-decoration: none;
        color: #ffffff;
    }

    .Banner {
        width: 55%;
        float: left;
    }

    .HeaderText {
        margin-left: 10%;
        font-size: 4em;
    }

    header {
        height: 180px;
    }
    
    .RogerBio, .SteamText, .MyGame, .RogerHome {
        font-size: 3em;
    }

    .LoginPage label {
        width: 20%;
    }
    
    .BannerDiv {
        height: 220px;
        min-height: 220px;;
    }

    footer {
        font-size: 1.3em;
    }

    .resume img {
        width: 100%;
    }
}

@media screen and (max-width: 735px) {
    .VerticalNav li {
        font-size: 1.4em;
    }
        
    .BannerDiv {
        height: 304px;
        min-height: 304px;;
    }
    
    header {
        height: 150px;
    }
        
    .HeaderText {
        font-size: 3em;
    }
}
@media screen and (max-width: 600px) {
    .VerticalNav li {
        font-size: 1.3em;
    }

    .HeaderText {
        margin-left: 5%;
    }
    
    .RogerBio {
        font-size: 4.5em;
    }
        
    
    header {
        height: 130px;
    }
        
    .HeaderText {
        font-size: 3em;
    }
    
    footer {
        font-size: 1em;
    }

}

@media screen and (max-width: 480px) {
    .HeaderText {
        width: 100%;
        margin-left: 25%;
        font-size: 6em;
        float: left;
    }

    header {
        height: 120px;
    }

    .RogerPhoto img {
        width: 80%;
    }

    .VerticalNav {
        width: 27%;
    }
}