/***                   ***/
/*** BASE THEME COLORS ***/
/***                   ***/
header {
    background-color: #0071B7;
}

.star-bar {
    background-color: #EA2127;
    background-image: url(/assets/img/bg.png);
    height: 29px;
    background-repeat: repeat-x;
}

.bg-primary {
    /*background-color: #336699 !important;*/
    /* light blue */
    background-color: #190059 !important;
    /* dark blue  */
    background-color: #3427C6 !important;
    /* mid blue  */
    /* for the bg-wrapper */
    background: linear-gradient(to bottom right, #2671C0, #3427C6);
    border-bottom: solid 1px #777;
}

.text-primary {
    color: #ae3d2b !important;
    /* dark red */
    color: #D83F39 !important;
}

.btn-primary {
    background-color: #ae3d2b;
    /* dark red */
    border-color: #ae3d2b;
    /* dark red */
    background-color: #D83F39;
    border-color: #D83F39;
}

/***                   ***/
/*** BASE ELEMENTS     ***/
/***                   ***/
h1 {
    /*color: #190059;*/
    /*color: #3427C6;*/
}

body {
    background-color: #fff;
}

/***                    ***/
/***  LAYOUT CONTAINERS ***/
/***                    ***/
.content {
    margin: 4%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-wrapper {
    margin-top: -60px;
    background-color: #fff;
    border: solid 1px #999;
    border: solid 1px #777;
}

.bg-wrapper {
    padding-bottom: 80px;
    padding-top: 40px;
}

.container {
    padding-left: 0;
    padding-right: 0;
}

/***                   ***/
/*** SHARED ELEMENTS   ***/
/***                   ***/
img.logo {
    width: 75%;
    max-width: 200px;
    margin: 5px;
}

.shadow {
    -webkit-box-shadow: 5px 10px 5px 6px rgba(0, 0, 0, 0.1);
    /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    -moz-box-shadow: 5px 10px 5px 6px rgba(0, 0, 0, 0.1);
    /* Firefox 3.5 - 3.6 */
    box-shadow: 5px 10px 5px 6px rgba(0, 0, 0, 0.1);
    /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}

/***                   ***/
/*** CUSTOM CONTROLS   ***/
/***                   ***/
.custom-control.custom-radio,
label.btn,
button[type="submit"] {
    cursor: pointer;
}

label.custom-control.custom-radio {
    display: block;
    padding-left: 2.75rem;
    min-height: 2.5rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-top: 10px;
}

label.custom-control.custom-radio .custom-control-indicator {
    height: 2em;
    width: 2em;
}

label.custom-control.custom-radio .custom-control-description {
    font-size: 1.5em;
}

.custom-radio .custom-control-input:checked~.custom-control-indicator {
    background-image: none;
    background-color: #AE3D2B;
    background-color: #D83F39;
}

/***                      ***/
/*** QUESTIONS & ANSWERS  ***/
/***                      ***/
.answers {
    margin: 0 20px;
}

.question {
    border-bottom: solid 1px #ccc;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.question h2 {
    margin-bottom: 20px;
}

/***                      ***/
/*** CANDIDATE MATCH      ***/
/***                      ***/
.media.candidate {
    border-bottom: solid 1px #ccc;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.media.candidate img.candidate {
    width: 150px;
    border: solid 1px transparent;
}

.media.candidate img.party,
.candidate-profile img.party,
.candidate-col img.party {
    width: 40px;
}

.media.candidate.border-best {
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.candidate-question {
    width: 90px;
    margin: 5px;
}

.candidate-question img {
    height: 100%;
    width: auto;
    max-width: none;
}

.candidate-question img.candidate-question-img-wrapper {
    height: 90px;
    overflow: hidden;
    width: 90px;
}

.text-match {
    border-bottom: 1px dotted;
}

.results-actions {
    margin-top: 40px;
    /*padding-bottom: 20px;*/
}

.results-actions .btn.btn-primary {
    width: 140px;
    margin-right: 10px;
}

footer {
    padding-top: 40px;
    padding-bottom: 10px;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #3427C6;
    border-color: #3427C6;
}

.btn-outline-info {
    color: #3427C6;
    border-color: #3427C6;
}

/***                      ***/
/*** HERO & HOME          ***/
/***                      ***/
.hero h1 {
    /*margin-bottom: 20px;*/
}

.hero p.lead {
    margin-bottom: 20px;
}

.hero form {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.hero form select {
    text-align-last: center;
}

#by-map {
    margin-top: 30px;
}

#by-map .btn-primary,
#by-map .btn-info {
    margin: 0 auto;
    margin-bottom: 1em;
}

#by-map .btn-primary {
    margin-top: 1em;
}

@media (min-width: 560px) {
    #by-map .btn-primary {
        margin: 1em 0.5em 1em 0em;
    }

    #by-map .btn-info {
        margin: 1em 0.5em 1em 0em;
    }
}

#map {
    width: 100%;
    height: 430px;
    background-color: #efefef;
}

#map #description {
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
}

#map #infowindow-content .title {
    font-weight: bold;
}

#map #infowindow-content {
    display: none;
}

#map #map #infowindow-content {
    display: inline;
}

#map .pac-card {
    margin: 10px 10px 0 0;
    border-radius: 2px 0 0 2px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    font-family: Roboto;
}

#map #pac-container {
    padding-bottom: 12px;
    margin-right: 12px;
}

#map .pac-controls {
    display: inline-block;
    padding: 5px 11px;
}

#map .pac-controls label {
    font-family: Roboto;
    font-size: 13px;
    font-weight: 300;
}

#map #pac-input {
    background-color: #fff;
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    /*margin: 11px;*/
    /*padding: 4px 11px 3px 13px;*/
    /*text-overflow: ellipsis;*/
    /*width: 400px;*/
}

@media(max-width:600px) {
    #map #pac-input {
        /*margin: 50px 11px 11px -105px;*/
        /*width: 250px;*/
    }
}

#map #pac-input:focus {
    border-color: #4d90fe;
}

#map #title {
    color: #fff;
    background-color: #4d90fe;
    font-size: 25px;
    font-weight: 500;
    padding: 6px 12px;
}

#map #target {
    width: 345px;
}

#by-map .input-group {
    transition-property: opacity;
    transition-duration: 0.5s;
    opacity: 0.2;
}
#by-map .card-header {
    background-image: url("/assets/img/ajax-loader.gif");
    background-repeat: no-repeat;
    background-size: 6%;
    background-position: center;
}

#map-overlay-controls {
    transition-property: opacity;
    transition-duration: 0.5s;
    opacity: 0.2;
    background-image: url("/assets/img/ajax-loader.gif");
    background-repeat: no-repeat;
    background-size: 14%;
    background-position: center;
}

#results-pane {
    /* modal backdrop coloring */
    background-color: rgba(0, 113, 183, 0.6);
}

#poll-locations {
    display: none;
}

/* #results-pane {
    display: none;
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 999;
    top:17%;
}
@media(min-width:450px) {
    #results-pane {
        margin: 0 10%;
        width: 80%;
    }
}
@media(min-width:1000px) {
    #results-pane {
        margin: 0 20%;
        width: 60%;
    }
} */

#na-message {
    display: none;
    background-color: rgba(255,255,255,0.1);
}

#results {
    margin: 2em 0 0;
}

#results img {
    width: 50%;
    margin: 0 auto;
    padding: 0;
    display: block;
    margin-bottom: 1em;
}

#results .card {
    margin-bottom: 2em;
}

#results .card address {
    font-size: 0.9em;
    text-align: center;
}

#results .blue-party {
    color: #2e649a;
}

#results .red-party {
    color: #880002;
}

#results .default-party {
    color: #666;
}

#results h2 {
    color: #2e649a;
}

#address-form .btn {
    margin: 1em 0.5em 1em 0;
}

.hide-map {
    opacity: 0.1 !important;

    transition-property: opacity;
    transition-duration: 0.5s;
}

.hide-map input {
    display: none;
}

#your-address, #districts {
    text-align: center;
}

#your-address {
    font-size: 1.2rem;
    /* border-top: 1px solid #ccc; */
    padding: 1em 0 0;
}

#districts {
    background: #efefef;
    padding: 1em 0;
    margin: 1em 0;
}

#close-results {
    /* margin-top: 1em; */
}

.btn-center {
    margin: 0 auto;
    display: block;
    position: absolute;
    top: 20%;
    margin: 0 auto;
    left: 33%;
    text-align: center;
    z-index: 9999999;
}

@media (max-width: 992px) {
    .btn-center {
        left: 25%;
    }
}

@media (max-width: 768px) {
    .btn-center {
        left: 15%;
    }
}

@media (max-width: 576px) {
    .btn-center {
        left: 12%;
        font-size: 0.9em;
    }

    .btn-center h2 {
        font-size: 1.6rem !important;
    }

    .btn-center h4 {
        font-size: 1rem !important;
    }

}

@media (max-width: 450px) {
    .btn-center {
        left: 5%;
        right: 5%;
    }

    #by-map .btn-primary {
        margin-top: 0;
    }
}

@media (max-width: 350px) {
    .btn-center {
        top: 10%;
    }
}

.btn-wrapper {
    margin: 1em 0 0;
}

@media (max-width: 550px) {
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/*** Candiate Profile - Results ***/
.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before {
    background-color: #EB6864;
}

.custom-control-input:disabled~.custom-control-label {
    color: #222;
}

.candidate-additional-comments {
    margin: 10px;
}

.badge.district-badge {
    min-height: 32px;
    font-size: 1.5em;
    text-align: center;
}

.badge.district-badge img {
    width: 30px;
}

.custom-control-label {
    cursor: pointer;
}

.custom-control {
    margin-bottom: 10px;
}

#your_districts {
    /*max-width: 800px;*/
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    /*background-color: #eee;*/
    border-top: solid 1px #ccc;
    border-bottom: solid 1px #ccc;
}

#your_districts .badge {
    font-size: 2em;
}

#your_districts .row {
    margin-top: 20px;
}

.question-links {
    margin-top: -10px;
}

.question-importance {
    margin-left: 20px;
}

.learn-modal .modal-body a {
    text-decoration: none;
}

.learn-modal img.link-embed-img {
    max-width: 100%;
    margin-bottom: 10px;
}

.learn-modal .links-more-resources {
    border-top: solid 1px #ccc;
    margin-top: 20px;
    padding: 0px;
    padding-top: 20px;
}

.candidates-list {
    display: none;
}

.candidate-profile {
    border-bottom: solid 1px #ccc;
    margin-bottom: 40px;
}

.candidate-profile img.candidate-profile-img {
    margin-bottom: 20px;
    width: 100%;
}

.candidate-col {
    border: solid 1px;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.candidate-col h3 {
    margin-top: 10px;
}

.candidate-col img.candidate {
    width: 100%;
}

.candidate-col .candidate-col-btn-wrapper {
    margin-top: 20px;
}

.candidate-col .candidate-col-row-wrapper {
    /*min-height: 440px;*/
}

small.type-name {
    opacity: 0.7;
}

.result-learn-wrapper {
    margin-top: -10px;
}

.vote-menu .navbar-top {
    border-top: 0;
}

.vote-menu .navbar-bottom {
    border: 0;
}

.vote-menu .navbar-bottom ul.navbar-nav {
    width: 100%;
}

.vote-menu .navbar .navbar-nav a {
    color: #0071b7;
    font-weight: normal;
    padding-left: 20px;
    padding-right: 20px;
}

.vote-menu .navbar .navbar-nav .active a {
    border-bottom: solid 2px #0071b7;
}

.vote-menu .navbar ul li {
    text-align: right;
}

a.navbar-brand.btn.btn-primary {
    color: #fff;
}

#by-map.card {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#by-map .card-header {
    padding: 10px;
}

#by-map .card-header .fa-map-marker {
    font-size: 1.5em;
}

#by-map .card-body {
    padding: 0px;
}

#districts h4 {
    font-size: 1.25rem;
}

#quizLink.btn,
#candidateView.btn, #candidateViewDemocrats, #candidateViewRepublicans {
    /* width: 46%; */
    margin:3px;
}

.card-map-overlay {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.card-map-overlay .card-header {
    background-color: #eeeeee;
}

.card-map-overlay .card-body {
    padding-bottom: 0;
}

.card-map-overlay form .form-check label,
.card-map-overlay form .form-check label input[type="checkbox"] {
    cursor: pointer;
}

h3.candidate-name a,
h5.candidate-name a {
    color: #000;
    text-decoration: none;
}

#quiz_start_form .card,
#quiz_form .card {
    background-color: #eee;
}
