/*
 * Custom CSS for Squawkfox.com
 */


/* Hide the "Blob" page-style heading for archives */
.archive-title, .archive-description {
    display: none;
}


/*
 * GravityForms Customizations 
 */

.gform_wrapper {
    border: 1px solid #333;
    background-color: #ffcc01;
    padding: 20px;
}

.gform_description {
    xfont-family: "Source Sans Pro","Helvetica Neue",sans-serif;
    font-family: "Raleway","Helvetica Neue",sans-serif;
    font-weight: bold !important;
    xfont-style: italic;
    font-size: 1.16em;
}

.gfield_html {
    font-style: italic;
    color: #333 !important;
    font-size: 0.8em;
    text-align: center;
}

.gform_wrapper .top_label .gfield_label {
    display: none !important; 
}

.gform_wrapper input[type=text] 
.gform_wrapper input[type=email] {
    color: #333;
}

.gform_wrapper .ginput_container_text {
    background: white url("icons/icon-name.png") no-repeat 7px center;
    padding-left: 32px;
    border: 1px solid #ccc;
}

.gform_wrapper .ginput_container_email {
    background: white url("icons/icon-email.png") no-repeat 7px center;
    padding-left: 32px;
    border: 1px solid #ccc;
}

.ginput_container_text input, .ginput_container_email input {
    border: none;
}

.gform_wrapper input[type=submit] {
    font-size: 1.1em !important;
    font-weight: bold !important;
    background-color: #0095e6;
    color: black;
    display: block !important;
    width: 100% !important;
}

.gform_wrapper input[type=submit]:active {
    background-color: #eee;
    color: black;
}

/*
 * Mobile Menu Updates
 */

@media only screen and (max-width: 940px) {
    /* Hide big site header image */
    header.site-header {
        display: none;
    }

    /* Move hamburger menu to right */
    .menu-toggle span {
        left: auto;
        right: 15px;
    }

    /* Logo for background of menu */
    .menu-toggle, .menu-toggle:hover {
        background: url(/wp-content/uploads/2016/10/squawkfox-logo-text.png) no-repeat center left ;
        background-size: auto 80%;
    }
}


/* 
 * Search box - wide screen 
 */
@media only screen and (min-width: 940px)  {
    .bop-nav-search label {
        float: left;
    }

    .bop-nav-search input.search-field {
        margin-top: -5px;
    }

    .bop-nav-search input.search-submit {
        margin-left: 10px;
    }
}

/*
 * Search box in mobile menu
 */
@media only screen and (max-width: 940px) {
    .bop-nav-search label {
        display: inline; 
    }

    .bop-nav-search input.search-field {
        width: 75%;
        margin: 5px 0;
    }

    .bop-nav-search input.search-submit {
        display: inline;
    }
}


/*
 * Theme Overrides 
 */
h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
}

.comment-meta time {
    display: none;
}


/*
 * Mobile Overrides
 */
@media only screen and (max-width: 440px) {

    /* Hide sidebar */
    #genesis-sidebar-primary {
        display: none;
    }

    /*
     * Extra styling for blog archives
     * Needs css support for sibling selector to do this in a way that only affects archives.
     */
    .archive-description ~ article footer {
        display: none;
    }

    .archive-description ~ article img {
        width: 100%;
    }

    .archive-description ~ article .entry-content {
        width: 40%;
        float: right;
    }

    .archive-description ~ article header {
        width: 55%;
        margin-left: 10px;
        float: right;
    }

    .archive-description ~ article p {
        display: none;
    }

    .archive-description ~ article h2 {
        font-size: 1em;
        font-weight: regular !important;
    }

    .archive-description ~ article {
        border-bottom: 1px solid #ccc;
    }
}


/*
 * Calculators 
 */

.calculator table {
    width: 100%;
}

.calculator th {
    text-align: left;
    padding-right: 20px;
}

.calculator td {
    padding: 5px 0;
}

.calculator input, .calculator select {
    color: #444;
}


/*
 * Front Page Overrides 
 */

.squawkfox-about-body h1.entry-title {
    display: none;
}

.squawkfox-about-body img.header-image {
    width: 100%;
    height: auto;
}

.squawkfox-about-body .header-container {
    position: relative;
    width: 100%;
}

.squawkfox-about-body .header-text {
    position: absolute;
    width: 100%;
    bottom: 0.75em;
    left: 1em;
}

.squawkfox-about-body h1 {
    font-size: 2em; font-size: 4.5vw; /* 1vw = 1% of viewport width */
    color: #ccc;
    margin-bottom: 0;
    padding: 0;
    font-weight: normal;
    text-transform: uppercase !important;
}

.squawkfox-about-body h2 {
    margin-top: 0;
    padding: 0;
    font-size: 0.5em; font-size: 1.6vw; /* 1vw = 1% of viewport width */
    font-weight: normal;
    color: #ccc;
    text-transform: uppercase !important;
}

.links_sc {
    /* Mobile overrides below as well */
    width: 300px; 
    float: left; 
    text-align: center; 
    padding: 1em 2em; 
    margin-top: 1em;
}

/* Front page - mobile only */
@media only screen and (max-width: 940px) {
    .links_sc {
        border-bottom: 1px solid #ccc;
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}
