html, body {
    background: #ffffff;
    font-family: Raleway;
    font-size: 16px;
    font-color: #121212;
    line-height: 1.6em;
    text-align: center;
}

body {
    margin-bottom: 0;
}

h1, h2, h3 {
    color: #010333;
}

h1 {
    margin: 20px 0px 40px;
    text-align: center; 
    font-size: 40px;
    line-height: 40px;
    font-family: 'Open Sans';
    letter-spacing: -0.03em;
    font-weight: 600;
}

a {
    color:#0c556d;
}

a:hover{
    color:#33ccff;
    text-decoration:underline;
}

h2 { 
    text-align: left; 
    font-size: 30px;
    line-height: 36px;
    font-family: 'Open Sans';
    letter-spacing: -0.03em;
    font-weight: 600;
    padding-left: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 { 
    text-align: left; 
    font-size: 24px;
    line-height: 1.2em;
    font-family: 'Open Sans';
    letter-spacing: -0.03em;
    font-weight: 600;
    padding-left: 10px;
    margin: 10px 0px;
}

select {
    font-family: Raleway;
    font-size: 16px;
    font-color: #121212;
    line-height: 1.6em;
    margin-left: 10px;
    padding: 0px 10px;
}

span.num {
    font-size: 19px;
    font-weight: 600;
}

table {
    border-collapse: collapse;
}

table tr th {
    border-bottom: 1px #121212 solid;
    font-weight: 700;
    font-family: Raleway;
}

table tr td {
    border-bottom: 1px #cdcdcd solid;
    font-weight: 400;
}

table tr th.left,td.left {
    text-align: left;
}

table tr th.right,td.right {
    text-align: right;
}

table tr td.left {
    font-family: Raleway;
}

table tr td.right {
    font-family: 'Ubuntu Mono', monospace;
}

table.even tr.perc td, table.even tr.data td, table.even tr th {
    width:12.5%;
}

.container {
    margin: 0 5%;
    text-align: center;
    display: grid;    
    grid-template-columns: repeat(9, 1fr);
    grid-gap: 5px;
    grid-template-areas:
        "h h h h h h h h h"
        "c c c c c c c c c"
        "p p p i i i i i i"
        "p p p s s s s s s"
        "x x x x x x x x x"
        "r r r g g g a a a"
        "f f f f f f f f f";
}

#header {
    grid-area: h;
    overflow: hidden;
    border-bottom: 1px #010333 solid;
    vertical-align: bottom;
}

#header a {
    float: left;
    display: block;
    text-align: center;
    vertical-align: bottom;
    padding: 30px 25px 0px;
    text-decoration: none;
    font-size: 16px;
    color: #153e5c;
    font-weight: 600;
}

#header a.home {
    padding-top: 15px;
    padding-right: 125px;
    padding-left: 5px;
}

#header a.logo {
    float: right;
    padding: 25px 15px 0px;
}

#header a:hover {
    color: #153e5c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#header a.home:hover {
    text-decoration: none;
}

#header .icon {
  display: none;
}

.content {
    margin: 10px 0px 0px;
    padding: 0 10px;
    grid-area: c;
}

#photo {
    grid-area: p;
}

#info {
    grid-area: i;
    text-align: left;
}

#info p.txt {
    margin:0 auto 5px;
}

#stats {
    grid-area: s;
}

#stats .row .third p {
    margin: 15px auto;
}

#race {
    grid-area: r;
    border-right: 1px #cdcdcd solid;
}

#gender {
    grid-area: g;
    border-right: 1px #cdcdcd solid;
}

#age {
    grid-area: a;
}

#countyresults {
    grid-area: x;
    margin-top: 25px;
    text-align:left;
    margin-bottom: 20px;
}

#countyresults table.tabled {
    width: 97%;
    margin-top: 20px;
    margin-left: 10px;
}

#countyresults table tr th.left {
    width: 22%;
    font-size: 14px;
}

#countyresults table tr th.right {
    width: 13%;
    font-size:14px;
}

#countyresults table tr.data td {
    padding: 12px 1px 8px;
    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
    border: none;
}

#countyresults table tr.data {
    border-bottom: 1px #cdcdcd solid;
}

#countyresults table tr.perc td {
    padding: 10px 1px 10px;
    font-family: 'Ubuntu Mono', monospace;
    text-align: right;
    font-size: 15px;
    line-height: 15px;
    border-bottom: none;
}

#countyresults table tr.perc td.left {
    font-family: Raleway;
    text-align: left;
}


.threeup {
    margin-top: 20px;
}

p.txt {
    padding: 5px 10px;
    text-align: left;
    font-size: 16px;
}

.threeup p.txt {
    padding-left: 20px;
}

.distlist {
    margin: 60px auto;
    width: 650px;
}

.desktop {
    display: inline;
}

.deskimg {
    display: block;
}

.mobile {
    display: none;
}

.mobimg {
    display: none;
}

.distlist table {
    margin: 10px auto;
}

.distlist table tr th,td {
    padding: 10px 0px;
}

.distlist table tr th.left {
    font-family: Raleway;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    width: 120px;
}

.distlist table tr th.right {
    font-family: Raleway;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
    width: 110px;
}

.distlist table td.left {
    font-family: Raleway;
    font-size: 15px;
    text-align: left;
    width: 120px;
}

.distlist table td.right {
    font-family: 'Ubunto Mono', monospace;
    font-size: 15px;
    text-align: right;
    width: 110px;
} 


.row {
    padding: 0px 10px;
}

.third {
    position: relative;
    width: 31%;
    float: left;
    text-align: left;
}

.third p {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
}

.right p {
    text-align: right;
}

.half {
    position: relative;
    width: 50%;
    float: left;
}

.half img {
    width: 350px;
}

.half p {
    text-align: center;
    padding-bottom: 50px;
}

.quarter {
    position: relative;
    width: 25%;
    float: left;
}

.quarter img {
    width: 200px;
    padding-bottom: 50px;
}

.type p {
    font-family: Raleway;
    font-size: 16px;
    line-height: 24px;
}

.third p.title {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 700;
    margin: 15px 0px 10px;
}

.top {
    border-bottom: 1px #cdcdcd solid;
    font-family: Raleway;
}

.spacer {
    margin-top: 20px;
}



.login {
    width: 400px;
    background-color: #ffffff;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 75px auto 0px;
}
.login h1 {
    text-align: center;
    color: #5b6574;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}
.login form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}
.login form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #3274d6;
    color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"] {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}
.login form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #3274d6;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}



.footer {
    margin-top: 100px;
    padding-top: 30px;
    border-top: #010333 1px solid;
    background: #010333;
    color: #dcdcdc;
    height: 200px;
    grid-area: f;
}

.footer .third {
    width: 33%;
}

.footer .fleft {
    font-size: 14px;
    line-height: 30px;
}

.footer .fleft a, .footer .fleft a:hover {
    padding-left: 60px;
    color: #dcdcdc;
    text-decoration: none;
}

.footer .fcenter {
    text-align: center;
}

.footer .fright {
    text-align: right;
}

.footer .fright a, .footer .fright a:hover {
    padding-right: 60px;
    text-decoration: none;
}

.footer .fright a img {
    margin-bottom: 15px;
    width: 100px;
}


@media screen and (max-width: 1200px) {
    .container {
        margin: 0 3%;
        grid-template-areas:
            "h h h h h h h h h"
            "c c c c c c c c c"
            "i i i i i i i i i"
            "p p p p s s s s s"
            "x x x x x x x x x"
            "r r r g g g a a a"
            "f f f f f f f f f";
    }

    #header a.home {
        padding-right: 100px;
    }

    .quarter a img {
        width: 170px;
    }

}

@media screen and (max-width: 900px) {
    .container {
        margin: 0 3%;
        grid-template-areas:
            "h h h h h h h h h"
            "c c c c c c c c c"
            "i i i i i i i i i"
            "p p p p p p p p p"
            "s s s s s s s s s"
            "x x x x x x x x x"
            "r r r r r r r r r"
            "g g g g g g g g g"
            "a a a a a a a a a"
            "f f f f f f f f f";
    }

    #header a.home {
        padding-right: 35px;
    }

    .third p {
        font-size: 15px;
        line-height: 20px;
    }

    .quarter a img {
        width: 150px;
    }

    #race {
        border-right: none;
    }

    #gender {
        border-right: none;
    }

}

@media screen and (max-width: 799px) {
    html, body {
        font-size: 14px;
        line-height: 20px;
    }

    .container {
        margin: 0 3%;
        grid-template-areas:
            "h h h h h h h h h"
            "c c c c c c c c c"
            "i i i i i i i i i"
            "p p p p p p p p p"
            "s s s s s s s s s"
            "x x x x x x x x x"
            "r r r r r r r r r"
            "g g g g g g g g g"
            "a a a a a a a a a"
            "f f f f f f f f f";
    }

    h1 {
        font-size: 34px;
    }

    h2, h3 {
        padding-left: 0px;
    }

    .threeup h3 {
        padding-left: 10px;
    }

    span.num {
        font-size: 16px;
    }

    #header a:not(:first-child) {display: none;}
    #header a.icon {
        float: right;
        display: block;
    }

    #header.responsive {position: relative;}
    #header.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    #header.responsive a {
        float: none;
        display: block;
        text-align: left;
    }

    #header a {
        padding: 20px 25px;
    }

    #header a.home {
        padding: 5px 10px;
    }

    #header a.logo {
        padding: 20px 25px;
    }

    #stats {
        margin:0 10px;
    }

    #info p.txt {
        margin:0px 0px 5px;
    }

    #countyresults {
        margin: 0 10px;
    }

    #countyresults table.mobile {
        margin-top: 20px;
        display: table;
        width: 93%;
    }

    #countyresults table tr.data td {
        font-size: 14px;
        line-height: 14px;
        padding-top: 25px;
    }

    .third p {
        font-size: 16px;
    }

    .half img {
        width: 175px;
    }

    .mobimg .half img {
        width: 135px;
    }

    .tabled {
        display: none; 
    }

    .mobile {
        display: table;
    }

    .mobimg {
        display: inline;
    }

    .desktop {
        display: none;
    }

    .deskimg {
        display: none;
    }

    .bumper img {
        padding-bottom: 50px;
    }

    .distlist table {
        width: 90%;
    }

    .distlist table tr th.left {
        font-size: 16px;
    }

    .distlist table tr th.right {
        font-size: 16px;
    }

    .distlist table tr td.left {
        font-size: 14px;
    }

    .distlist table tr td.right {
        font-size: 14px;
    }
}

@media screen and (max-width: 500px) {

    h1 {
        margin: 10px 0px;
    }

    h2 {
        font-size: 24px;
        padding-left: 0px;
    }

    h3, .threeup h3 {
        font-size: 20px;
        padding-left: 0px;
    }

    p {
        padding-left: 0px;
    }

    p.txt {
       padding: 5px 10px;
       font-size: 14px;
    }

    span.num {
        font-size: 16px;
    }

    .container {
        margin: 0;
    }

    .content {
        margin: 10px 0px 0px;
    }

    .thirder img {
        width: 80px;
        padding-bottom: 40px;
    }

    .threeup {
        margin-top: 20px;
    }

    .third {
        width: 33%;
    }

    .third p {
        font-size: 16px;
        line-height: 20px;
    }

    #race, #gender, #age {
        padding: 0px 10px;
    }

    .row {
        padding: 0px;
    }

    .distlist {
        width: 350px;
    }

    .mobile {
        display: inline;
    }

    #countyresults h3 {
        margin: 20px auto;
    }

    #countyresults table.mobile {
        width: 100%;
    }

    .footer {
        margin-top: 50px;
    }

    .footer .fleft a, .footer .fleft a:hover {
        padding-left: 25px;
    }

    .footer .fright a, .footer .fright a:hover {
        padding-right: 25px;
    }

    .footer .fright a img {
        width: 60px;
    }  

}