/* reset */
* {
    margin: 0;
    padding: 0;
}

/* render html5 elements as block */
header, footer, section, nav, article {
    display: block;
}

.responsive-size-wrapper,
.responsive-size { width: 336px; height: 280px; margin: auto; }
.responsive-leaderboard-wrapper,
.responsive-leaderboard-size { margin: 0 auto; }
.google-auto-placed { margin-top: 25px; margin-bottom: 15px; }

@media screen and (max-width: 360px) {
    #wrapper { width: 350px; }
    nav { width: 350px; }
    #main { width: 350px; background: #fff; }
    #content { width: 336px; margin-left: 7px; margin-right: 7px; }
    footer { width: 350px; }
    nav .menu { font-size: 14px; }
    nav .menu ul { padding: 17px 0 0 7px; }
    nav .menu a { padding: 0px 10px; }
    header { height: 140px; }
    .form { width: 150px; font-size: 16px; }
    .rTableCellRight { max-width: 160px; }
    .footer-segment { width: 130px; }
    li { padding: 0 0 20px 0; }
    .responsive-size-wrapper,
    .responsive-size { margin-top: 25px; margin-bottom: 25px; }
    .responsive-leaderboard-wrapper,
    .responsive-leaderboard-size { width: 320px; height: 50px; }
    input[type=submit] { float: left; margin-bottom: 30px; }
    .formstyling { margin: 0 0 50px; }
}

@media screen and (min-width: 375px) and (max-width: 376px) {
    #wrapper { width: 365px; }
    nav { width: 365px; }
    #main { width: 365px; background: #fff; }
    #content { width: 351px; margin-left: 7px; margin-right: 7px; }
    footer { width: 365px; }
    nav .menu { font-size: 14px; }
    nav .menu ul { padding: 17px 0 0 7px; }
    nav .menu a { padding: 0px 10px; }
    header { height: 100px; }
    .form { font-size: 16px; }
    .rTableCellRight { max-width: 160px; }
    .footer-segment { width: 130px; }
    li { padding: 0 0 20px 0; }
    .responsive-size-wrapper,
    .responsive-size { margin-top: 25px; margin-bottom: 25px; }
    .responsive-leaderboard-wrapper,
    .responsive-leaderboard-size { width: 320px; height: 50px; }
    input[type=submit] { float: left; margin-bottom: 30px; }
    .formstyling { margin: 0 0 50px; }
}

@media screen and (min-width: 376px) and (max-width: 480px) {
    #wrapper { width: 460px; }
    nav { width: 460px; }
    #main { width: 460px; background: #fff; }
    #content { width: 445px; margin-left: 10px; }
    footer { width: 460px; }
    nav .menu { font-size: 14px; }
    nav .menu ul { padding: 17px 0 0 10px; }
    nav .menu a { padding: 0px 15px; }
    header { height: 100px; }
    .form { width: 180px; font-size: 16px; }
    .rTableCellRight { max-width: 220px; }
    .footer-segment { width: 170px; }
    li { padding: 0px 5px 20px 0px; }
    .responsive-size-wrapper,
    .responsive-size { margin-top: 25px; margin-bottom: 25px; }
    .responsive-leaderboard-wrapper,
    .responsive-leaderboard-size { width: 320px; height: 50px; }
    input[type=submit] { float: left; margin-bottom: 30px; }
    .formstyling { margin: 0 0 50px; }
}

@media screen and (max-width: 600px) {
    .col-25, .col-75 { width: 75%; margin-top: 0; }
    input[type=text] { width: 98%; }
    input[type=submit] { width: 98%; float: left; }
    .formstyling { margin: 0 0 50px;}
    .responsive-table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr { display: block; }
    .responsive-table thead tr { display: none; }
    .responsive-table tr { margin-bottom: 15px; }
    .responsive-table td { display: block; text-align: right; border: none; position: relative; padding-left: 50%; text-align: left; }
}

@media screen and (min-width: 481px) and (max-width: 1279px) {
    #wrapper { width: 640px; }
    nav { width: 640px; }
    #main { width: 640px; }
    #content { width: 620px; margin-left: 10px; }
    footer { width: 640px; }
    nav .menu { font-size: 16px; font-weight: bold; }
    nav .menu ul { padding: 17px 0 0 20px; }
    nav .menu a { padding: 0px 20px; }
    header { height: 120px; }
    .form { width: 200px; font-size: 14px;}
    .rTableCellRight { max-width: 300px; }
    .footer-segment { width: 170px; }
    li { padding-left: 5px; }
    .responsive-size-wrapper,
    .responsive-size { margin-top: 25px; margin-bottom: 25px; }
    .responsive-leaderboard-wrapper,
    .responsive-leaderboard-size { width: 468px; height: 60px; }
}

@media screen and (min-width: 1280px) {
    #wrapper { width: 940px; }
    nav { width: 940px; }
    #main { width: 940px; }
    #content { width: 860px; margin-left: 40px; }
    footer { width: 940px; }
    nav .menu { font-size: 16px; font-weight: bold; }
    nav .menu ul { padding: 17px 0 0 20px; }
    nav .menu a { padding: 0px 20px; }
    header { height: 140px; }
    .form { width: 200px; font-size: 14px; }
    .rTableCellRight { max-width: 500px; }
    .footer-segment { width: 190px; }
    li { padding-left: 5px; }
    .responsive-size-wrapper,
    .responsive-size { float:right; margin-left:25px; margin-bottom:25px; }
    .responsive-leaderboard-wrapper,
    .responsive-leaderboard-size { width: 728px; height: 90px; }
    input[type=text] { width: 30%; }
}

/* layout */
#wrapper { margin: 0 auto; margin-top: 20px; margin-bottom: 20px; background: #fff; }
body { line-height: 1; background: #D1D0CE; font-family: Arial, Helvetica, sans-serif; color: #555; font-size: 16px; }
nav { margin: 0 auto; background: #2B3856; height: 50px; }
#main { margin: 0 auto; padding-top: 30px; overflow: hidden; }
#content { float: left; position: relative; }
footer { margin: 0 auto; clear: both; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; clear: both; color: #2B3856; }
a:link, a:visited { color: #2B3856; }
a:hover, a:active { color: #C3A26B; }
p { margin-bottom: 18px; }
nav .menu ul { margin: 0; list-style: none; line-height: normal; }
nav .menu li { display: block; float: left; }
nav .menu a { display: block; float: left; text-decoration: none; color: #FFF; }
nav .menu a:hover { text-decoration: underline; color: #C3A26B; }
header { display: inline-block; padding: 10px 0 10px 0; margin: auto; width: 100%; overflow: hidden; }
header img { border: none; float: left; width: 257px; height: 55px; }
article h1 { font-size: 24px; display: inline; }
article img { border: none; margin-top: 5px; margin-bottom: 5px; }
article ul { list-style: square; color: #555; margin: -15px 0 15px 25px; }
article ol { color: #000; margin: -15px 0 15px 25px; }
.rTable { display: table; }
.rTableRow { display: table-row; }
.rTableCellLeft { display: table-cell; width: 160px; vertical-align: top; padding: 1px 0px 1px 0px; font-weight: bold; font-size: 15px; }
.TableLeft { vertical-align: top; font-weight: bold; width: 150px;  }
.rTableCellRight { display: table-cell; vertical-align: top; word-wrap: break-word; }
.rTableCellRight img { margin: 0; margin-left: 3px; vertical-align: bottom; }
#content p, ul, ol, hr { margin-bottom: 24px; }
#content ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
#content h1, h2, h3, h4, h5, h6 { color: #2B3856; margin: 0 0 20px 0; line-height: 1.5em; }
.alignleft, img.alignleft { display: inline; float: left; margin-right: 10px; margin-bottom: 10px; }
.alignright, img.alignright { display: inline; float: right; margin-left: 10px; }
.aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 5px; margin-top: 5px; width: 80%; }
img { margin-bottom: 2px; height: auto; max-width: 100%; }
.img-description { font-size: 12px; color: #999; text-align: center;}
aside h3 { font-size: 18px; text-shadow: 0px 2px 3px #ddd; }
aside ul { list-style: square; color: #bbb; margin: -15px 0 15px 25px; }
#bottom-links { background-color: transparent; color: #2B3856; font-size: 14px; padding: 10px 0; overflow: hidden; float: right; }
#footer-area { background: #2B3856; color: #FFF; font-size: 14px; padding: 18px 0; overflow: hidden; }
.footer-segment { float: left; margin-right: 20px; margin-left: 20px; margin-top: 15px; }
footer aside h4 { color: #ffffff; font-size: 16px; line-height: 1.5em; }
footer ul { list-style: none; margin: -15px 0; }
footer a:link, footer a:visited { color: #fff; }
footer a:hover { text-decoration: underline; color: #C3A26B; }
footer p { margin-top: -15px; color: #ffffff; }
#map { height: 200px; width: 100% }
input[type=text] { padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; resize: vertical; }
textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; resize: vertical; }
label { padding: 12px 12px 12px 0; display: inline-block; }
input[type=submit] { background-color: #2B3856; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; margin-top: 10px;}
.col-25 { float: left; width: 25%; margin-top: 6px; }
.col-75 { float: left; width: 75%; margin-top: 6px; }
.row:after { content: ""; display: table; clear: both; }
.google_map { background-position: 50% 50%; text-align: center; margin: auto; }
.alttable { width:100%; border-collapse:collapse; }
.alttable td,th { padding:7px; border:#F0F0F0 1px solid; border-right:none; border-left:none; vertical-align: top; word-wrap: break-word; }
.alttable tr { background: #fff; }
.alttable th { text-align:left; }
.alttable img { margin: 0; margin-left: 3px; vertical-align: bottom; }
.alttable tr:nth-child(odd) { background: #fff; }
.alttable tr:nth-child(even) { background: #F5F5F5; }
.alert { padding: 20px; margin-bottom: 15px; color: rgb(0, 0, 0); border-width: 5px; border-style: solid; border-color: #f44336; background-color: rgba(0, 0, 0, 0); }
.checked { color: orange; }
.responsive-table { width: 100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: 8px; text-align: left; vertical-align: top; }
.responsive-table th { background-color: #f2f2f2; }

/* console */
.console { font-family: monospace; font-size: 14px; box-sizing: border-box; margin: auto; }
.console header { border-top-left-radius: 15px; border-top-right-radius: 15px; background-color: #555; height: 45px; line-height: 45px; text-align: center; color: #DDD; }
.console .consolebody { border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; box-sizing: border-box; padding: 20px; height: calc(100% - 40px); overflow: scroll; background-color: #000; color: #FFF; }
.console .consolebody p { line-height: 1.5rem; }
