/*
Theme Name: Week of Making
Author: Aaron Zufall
Version: 1.0
*/

html, body {
    background: #323a45;
}
body, p {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7em;
}
p.lead {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
}
h1 {
    font-size: 44px;
    line-height: 1.3em;
}
h2 {
    font-size: 34px;
    line-height: 1.3em;
}
h3 {
    font-size: 24px;
    line-height: 1.3em;
}
h4 {
    font-size: 19px;
    line-height: 1.3em;
}
h5 {
    font-size: 16px;
    line-height: 1.3em;
}
h6 {
    font-size: 13px;
    line-height: 1.3em;
    text-transform: uppercase;
}
a:hover, a:active, a:focus {
    outline: none;
    box-shadow: none;
    border: none;
}
.pull-right {
    float:right;
}
.pull-left {
    float:left;
}
.clearfix {
    clear:both;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}
header {
    background-color: #205493;
    background-image: url(assets/static/img/blueprint.svg);
    background-size: 100px 100px;
    background-position: center -17px;
    color: white;
    height: 100px;
}
header .title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 100px;
    float: left;
}
header .title a {
    color: white;
    text-decoration: none;
}
header .subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 34px;
    line-height: 100px;
    float: right;
}
.navigation {
    background: #112e51;
    height: 60px;
    width: 100%;
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 22px;
}
.navigation ul {
    margin: 0;
    width: auto;
    height: 100%;
    margin-left: -20px;
    float:left;
}
.navigation li {
    list-style-type: none;
    line-height: initial;
    display: inline-block;
    height: 100%;
    margin: 0;
}
.navigation li.current_page_item {
    background: #0071bc;
}
.navigation li.current_page_item a {
    color: white;
}
.navigation li:before {
    content: none;
    display: none;
}
.navigation li:after {
    content: none;
    display:none;
}
.navigation li a {
    display: block;
    height: 100%;
    line-height: 60px;
    padding: 0 20px;
    text-decoration: none;
}
.navigation .usa-search {
    max-width: 200px;
    float:right;
    padding: 13px 0;
}
a.navigation-toggle {
    display: none;
}

.jumbotron {
    position: relative;
    overflow: hidden;
}
.jumbotron-text {
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    z-index:998;
}
.jumbotron-text>div {
    position: absolute;
    bottom: 10%;
    background: rgba(255,255,255,0.8);
    display: inline-block;
    padding: 20px 30px;
    max-width: 49%;
}
.jumbotron-text>div p:first-child {
    margin: 0 0 0.5em 0;
    font-size: 16px;
}
.jumbotron h1:first-child {
    margin-top: 0;
}
img.cycle-slide {
    width: 100%;
}
.gss-container {
    margin-bottom:0;
}
.gss-info {
    position: absolute;
    z-index: 1000;
    right: 0;
    bottom: 0;
    font-size: 10px;
    background:rgba(0,0,0,0.5);
    font-family: 'Source Sans Pro', sans-serif;
}
.gss-info a {
    color: white;
    text-decoration:underline;
}
.gss-nav, .gss-pager {
    display:none;
}
.gss-captions {
    padding: 5px 10px;
}
.gslideshow_captions {
    padding:0;
}
@media (max-width: 860px) {
    header {
        height: auto;
        padding: 30px 0;
    }
    header .title {
        float:none;
        line-height: 1.3em;
    }
    header .subtitle {
        float: none;
        line-height: 1.3em;
    }
    .navigation {
        height: auto;
    }
    .navigation ul {
        float: none;
        height: auto;
        display: block;
        padding-top: 10px;
    }
    .navigation ul li a {
        line-height: 2em;
    }
    .navigation .usa-search {
        float: none;
    }
    .jumbotron {
        padding: 0;
    }
    .jumbotron-text {
        position: relative;
        padding: 0;
    }
    .jumbotron-text>div {
        position: relative;
        bottom: auto;
        max-width: 100%;
        width: 100%;
    }
    .gss-info {
        bottom: auto;
        top: 0;
    }
}

/* USDS grid collapse */
@media (max-width: 599px) {
    header .title {
        font-size: 34px;
    }
    header .subtitle {
        font-size: 24px;
    }
    .navigation ul {
        margin: 0 -30px;
    }
    .navigation ul li {
        display: block;
    }
    .navigation ul li a {
        padding 0 30px;
    }
    .navigation {
        display: none;
    }
    .navigation .usa-search {
        max-width: 100%;
    }
    a.navigation-toggle {
        display: block;
        border-radius: 0;
        margin: 0;
        width: auto;
    }
}
.content {
    overflow: auto;
    width: 100%;
    padding: 60px 0;
    background: white;
}
.content-color {
    background: #dce4ef
}
.content h1:first-child {
    margin-top: 0;
}
footer {
    background: none;
    padding: 60px 0;
}
footer .usa-width-one-third {
    text-align: right;
}
@media (max-width: 600px) {
    footer .usa-width-one-third {
        text-align: left;
    }
}
footer a.partner {
    display:inline-block;
    margin: 0 0.5em 0.5em;
}
footer a.partner img {
    height: auto;
    width: auto;
    max-height: 3em;
    max-width: 100%;
}

#wp-admin-bar-root-default {
    float: left;
}

form {
    max-width: 100%
}

/* submit events form */
#event-form #event-name {
    padding: 1rem 0.7em;
}
#event-form input {
    max-width: 100%;
}
#event-form p {
    margin-top: 0;
}
#event-form #event-name {
    width: 100%;
}
#em-location-data table.em-location-data td {
    vertical-align: middle;
    padding: 1rem 0 1rem 1rem;
}

#em-location-data table.em-location-data th {
    vertical-align: middle;
    text-align: right;
    padding: 0 1rem 1rem 1rem;
}
#em-location-data .em-location-map-container {
    width: 100%;
    height: auto;
}
#em-location-data .em-location-map-content {
    height: 300px;
}
#em-location-data i {
    display: none;
}
#em-location-search-tip {
    display: none;
}
.em-location-data-name td {
    line-height: 0;
}
#event-form div.event-form-name {
    font-size: 0;
    line-height: 0;
}
#em-map-404 {
    background-color: rgb(255, 241, 210);
    background-image: url("assets/usds/img/alerts/warning.png");
    background-image: url("assets/usds/img/alerts/warning.svg");
    background-position: 10px 20px;
    background-repeat: no-repeat;
    background-size: 52px;
    box-sizing: border-box;
    display: block;
    font-size: 17px;
    padding-bottom: 17px;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 17px;
}
#em-map-404 p {
    box-sizing: border-box;
    display: table-cell;
    font-size: 17px;
    padding-left: 50px;
    vertical-align: top;
    text-align: left;
}
#em-map-404 p em {
    box-sizing: border-box;
    clear: both;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    height: 26px;
    line-height: 26px;
    margin-bottom: 3px;
    margin-top: 3px;
    font-style: normal;
}
#em-map-404 p em:after {
    content: "We can't find your location on the map. Try double-checking the address.";
    font-family: 'Merriweather', serif;
    display: block;
    font-size: 17px;
    font-weight: 400;
    line-height: 25.5px;
}
textarea.wp-editor-area {
    max-width: 100%;
}
.mce-panel button:hover {
    background: none;
}
#event-form .em-date-range input, #event-form .em-time-range input {
    display: inline-block;
    max-width: 13rem;
    margin: 0 1rem;
}
@media (max-width: 800px) {
    #event-form .em-date-range input, #event-form .em-time-range input:not([type="checkbox"]) {
        display:block;
        margin:0;
        max-width: 100%;
        width: 100%;
    }
    #event-form .em-time-range #end-time {
        margin-bottom: 15px;
    }
}
#em-time-all-day {
    position: relative;
    left: auto;
    width: auto;
}
.em-location-data-region {
    display: none;
}
.em-time-range {
    margin-bottom: 0;
}
#event-date-explanation {
    display: none!important;
}
.event-listing img {
    margin-right: 1rem;
    float: left;
}
div.event-form-when.inside, div.event-form-where.inside {
    background: #f1f1f1;
    padding: 30px;
    border: 1px solid #5b616b;
}
#em-location-data table.em-location-data {
    margin-top: 0;
}
.em-warning-errors {
    background-color: #f9dede;
    background-image: url("assets/usds/img/alerts/error.png");
    background-image: url("assets/usds/img/alerts/error.svg");
    background-position: 10px 20px;
    background-repeat: no-repeat;
    background-size: 52px;
    box-sizing: border-box;
    display: block;
    font-size: 17px;
    padding-bottom: 17px;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 17px;
    border: none;
}
.em-warning-errors p {
    box-sizing: border-box;
    display: block;
    font-size: 17px;
    padding-left: 50px;
    vertical-align: top;
    text-align: left;
}
.em-warning-errors p:first-child {
    margin-top: 0!important;
}
.em-warning-confirms {
    background-color: #e7f4e4;
    background-image: url("assets/usds/img/alerts/success.png");
    background-image: url("assets/usds/img/alerts/success.svg");
    background-position: 10px 20px;
    background-repeat: no-repeat;
    background-size: 52px;
    box-sizing: border-box;
    display: block;
    font-size: 17px;
    padding-bottom: 17px;
    padding-left: 17px;
    padding-right: 17px;
    padding-top: 17px;
    border: none;
}
.em-warning-confirms {
    box-sizing: border-box;
    display: block;
    font-size: 17px;
    padding-left: 50px;
    vertical-align: top;
    text-align: left;
}
.em-warning-confirms p:first-child {
    margin-top: 0!important;
}
.em-warning-errors p:first-child:before {
    box-sizing: border-box;
    clear: both;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    height: 26px;
    line-height: 26px;
    margin-bottom: 10px;
    margin-top: 3px;
    font-style: normal;
    content: 'There was an error submitting your event:';
    display: block;
}
.wp-editor-tabs button {
    width: auto;
}
#qt_em-editor-content_toolbar input[type="button"] {
    display: inline-block;
    width: auto;
}
textarea.wp-editor-area, .mce-edit-area.mce-panel {
    border: 1px solid #5b616b!important;
}
.ui-datepicker .ui-datepicker-title select {
    padding: 0;
    display: inline-block;
    font-size: 12px;
}
.ui-datepicker .ui-datepicker-title select:first-child {
    margin-right: 15px;
}
div.time-picker ul {
    width: 100%;
}
div.time-picker li {
    display: block;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1em;
    height: auto;
    margin: 0;
}
div.time-picker li:before {
    content: none;
}
.mce-path .mce-divider {
    display: inline!important;
}
div.css-search input.em-search-text, div.css-search input.em-search-geo {
    display: inline-block;
}
div.css-search div.em-search-main .em-search-submit {
    margin: 0;
}

/* visual form builder overrides */
ul.vfb-section {
    list-style: none;
    margin:0;
    padding: 0;
}
ul.vfb-section li {
    margin-top: 0;
    margin-bottom: 0;
}
ul.vfb-section li:before {
    content: none;
    display: none;
}
ul.vfb-section li:after {
    content: none;
    display:none;
}
select {
    line-height: normal;
}
/* help text */
input+label, textarea+label, select+label, label+div span.vfb-span label {
    margin-top: 0;
    color: #757575;
}
textarea.vfb-small {
    height: 4em;
}
/* error */
input.vfb-error, select.vfb-error, textarea.vfb-error {
    border: 3px solid #cd2026;
}
label.vfb-error {
    color: #cd2026;
    font-weight: 700;
}
@media (min-width: 600px) {
    .vfb-left-half {
        width: 47.5%;
        margin-right:5%;
        float: left;
    }
    .vfb-right-half {
        width: 47.5%;
        float:left;
    }
    .vfb-left-two-thirds {
        width: 63.333333334%;
        margin-right:5%;
        float:left;
    }
    .vfb-right-third {
        width: 31.666666667%;
        float:left;
    }
}

.gm-style img { max-width: none!important; }
.gm-style, .gm-style p {
    line-height: normal;
}
.gm-style p {
    font-size: 9px;
    margin:0;
}
.em-map-balloon .em-map-balloon-content {
    padding-bottom: 0!important;
}
.em-search-advanced label {
    margin-top:0;
}
.em-search-advanced input, .em-search-advanced select {
    display:inline-block;
}
.em-events-search-country {
    min-width: 15rem;
}
.event-map {
    width: 100%;
    height: 200px;
}
.event-list-map {
    width: 100%;
    height: 300px;
}
.event-image {
    width: 100%;
    margin: 1em 0;
}
#policyCbx + label {
    max-width: none;
}
#policy {
    margin: 1.5rem 0.8rem 0;
}
