/*
Theme Name: VFD Theme
Description: A Theme Built for the Volunteer Fire Departments of Indiana
Requires at least: 6.3.0
Requires PHP: 7.4
Version: 1.3.7
Author: Scheidler Web Solutions
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vfd-theme
Website: https://vfdwebsites.com
*/


/* These styles apply site-wide */
.wp-site-blocks p:empty {
    /* Remove empty p tags due to block binding home boxes to a paragraph  */
    display: none;
}

.wp-block-post-content, 
.home .content-section {
    padding: var(--wp--preset--spacing--50);
}
.home .wp-block-post-content {
    padding: 0.5rem 0;
}


/* Page Titles */
.wp-block-post-title,
.wp-block-query-title {
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--xxx-large);
    padding: var(--wp--preset--spacing--80) 0;
}

body.title-style-curve .wp-block-post-title,
body.title-style-curve .wp-block-query-title {
    clip-path: ellipse(56% 75% at 50% 25%);
}

body.title-style-angle .wp-block-post-title,
body.title-style-angle .wp-block-query-title {
    clip-path: polygon(0% 0%, 0% 70%, 50% 100%, 100% 70%, 100% 0%);
}


/* Contact Form 7 */
.wpcf7 {
    width: fit-content;
    margin: 2rem auto;
}

.wpcf7-not-valid-tip {
    padding: 5px 0;
}

.wpcf7-text, .wpcf7-textarea {
    min-height: 20px;
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
    font-family: var(--wp--preset--font-family--body-regular);
    width: calc(100% - 24px);
}

.gform-theme--foundation form[action^="/volunteer/"] .gform_fields, 
.gform-theme--foundation form[action^="/contact-us/"] .gform_fields {
    grid-template-columns: 1fr 1fr 1fr 0px 0px 0px;
}

.gf_progressbar_percentage {
    background-color: var(--wp--preset--color--primary)!important;
}

.wp-block-post-content:has(.gform_wrapper) {
    width: fit-content;
}


/* Button Style for Forms and Events */
input[type="submit"], 
.gform_wrapper input[type="submit"],
.view-event a,
.wp-block-button a {
    display: block!important;
    text-transform: uppercase!important;
    text-align: center!important;
    border: none!important;
	border-radius: 0;
    background-color: var(--wp--preset--color--primary)!important;
    color: var(--wp--preset--color--white)!important;
	font-family: var(--wp--preset--font-family--body-regular)!important;
    font-weight: bold!important;
    font-size: large!important;
    padding: 15px 20px!important;
    cursor: pointer!important;
}
body.button-bg-primary .view-event a,
body.button-bg-primary .wp-block-button a,
body.button-bg-primary input[type="submit"],
body.button-bg-primary .gform_wrapper input[type="submit"] {background-color: var(--wp--preset--color--primary)!important;}
body.button-bg-secondary .view-event a, 
body.button-bg-secondary .wp-block-button a, 
body.button-bg-secondary input[type="submit"], 
body.button-bg-secondary .gform_wrapper input[type="submit"] {background-color: var(--wp--preset--color--secondary)!important;}
body.button-bg-tertiary .view-event a, 
body.button-bg-tertiary .wp-block-button a, 
body.button-bg-tertiary input[type="submit"],
body.button-bg-tertiary .gform_wrapper input[type="submit"] {background-color: var(--wp--preset--color--tertiary)!important;}
body.button-bg-black .view-event a, 
body.button-bg-black .wp-block-button a,
body.button-bg-black input[type="submit"],
body.button-bg-black .gform_wrapper input[type="submit"] {background-color: var(--wp--preset--color--black)!important;}
body.button-bg-white .view-event a, 
body.button-bg-white .wp-block-button a, 
body.button-bg-white input[type="submit"], 
body.button-bg-white .gform_wrapper input[type="submit"] {background-color: var(--wp--preset--color--white)!important;}

body.button-hover-bg-primary .view-event a:hover, 
body.button-hover-bg-primary .wp-block-button a:hover, 
body.button-hover-bg-primary input[type="submit"]:hover, 
body.button-hover-bg-primary .gform_wrapper input[type="submit"]:hover {background-color: var(--wp--preset--color--primary)!important;}
body.button-hover-bg-secondary .view-event a:hover, 
body.button-hover-bg-secondary .wp-block-button a:hover, 
body.button-hover-bg-secondary input[type="submit"]:hover, 
body.button-hover-bg-secondary .gform_wrapper input[type="submit"]:hover {background-color: var(--wp--preset--color--secondary)!important;}
body.button-hover-bg-tertiary .view-event a:hover, 
body.button-hover-bg-tertiary .wp-block-button a:hover, 
body.button-hover-bg-tertiary input[type="submit"]:hover, 
body.button-hover-bg-tertiary .gform_wrapper input[type="submit"]:hover {background-color: var(--wp--preset--color--tertiary)!important;}
body.button-hover-bg-black .view-event a:hover, 
body.button-hover-bg-black .wp-block-button a:hover, 
body.button-hover-bg-black input[type="submit"]:hover, 
body.button-hover-bg-black .gform_wrapper input[type="submit"]:hover {background-color: var(--wp--preset--color--black)!important;}
body.button-hover-bg-white .view-event a:hover, 
body.button-hover-bg-white .wp-block-button a:hover, 
body.button-hover-bg-white input[type="submit"]:hover, 
body.button-hover-bg-white .gform_wrapper input[type="submit"]:hover {background-color: var(--wp--preset--color--white)!important;}

body.button-text-black .view-event a, 
body.button-text-black .wp-block-button a, 
body.button-text-black input[type="submit"], 
body.button-text-black .gform_wrapper input[type="submit"] {color: var(--wp--preset--color--black)!important;}
body.button-text-white .view-event a, 
body.button-text-white .wp-block-button a, 
body.button-text-white input[type="submit"], 
body.button-text-white .gform_wrapper input[type="submit"] {color: var(--wp--preset--color--white)!important;}

body.button-hover-text-black .view-event a:hover, 
body.button-hover-text-black .wp-block-button a:hover, 
body.button-hover-text-black input[type="submit"]:hover, 
body.button-hover-text-black .gform_wrapper input[type="submit"]:hover {color: var(--wp--preset--color--black)!important;}
body.button-hover-text-white .view-event a:hover, 
body.button-hover-text-white .wp-block-button a:hover, 
body.button-hover-text-white input[type="submit"]:hover, 
body.button-hover-text-white .gform_wrapper input[type="submit"]:hover {color: var(--wp--preset--color--white)!important;}

/* 404 Page */

.error404 :not(header):not(footer) > .wp-block-group-is-layout-flow {
    max-width: 1320px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#wpadminbar #adminbarsearch .adminbar-button {
    display: none!important;
}