/*!
Theme Name: Recount
Theme URI: https://tylerjohnsondesign.com
Author: Tyler Johnson
Author URI: https://tylerjohnsondesign.com
Description: A custom theme for RecountTheVote.com.
Version: 1.0.0
Tested up to: 5.4
*/

/**
Global.
**/
body {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    color: #666;
}

body.page, h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.1;
}

h1 {
    font-size: clamp(40px, 5vw, 60px);
}

h2 {
    font-size: clamp(30px, 5vw, 50px);
}

h3 {
    font-size: clamp(20px, 5vw, 40px);
}

h4 {
    font-size: clamp(18px, 5vw, 30px);
}

h5 {
    font-size: clamp(16px, 5vw, 24px);
}

h6 {
    font-size: clamp(16px, 5vw, 20px);
}

a, a:visited, input[type=submit] {
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
}

input, button {
    outline: none;
}

input:focus {
    border-color: #d61920;
}

/**
Colors.
**/
.color-red, a, a:visited {
    color: #D61920;
}

.color-blue {
    color: #0430B8;
}

.color-l-blue {
    color: #0C55C6;
}

.color-white {
    color: #fff;
}

.color-black {
    color: #000;
}

.bg-red {
    background: #D61920;
}

.bg-blue {
    background: #0430B8;
}

.bg-l-blue {
    background: #0C55C6;
}

.bg-white {
    background: #fff;
}

.bg-grey {
    background: #f5f5f5;
}

/**
Paddings.
**/
.p-t-15 {
    padding-top: 15px;
}

.p-t-30 {
    padding-top: 30px;
}

.p-t-45 {
    padding-top: 45px;
}

.p-t-60 {
    padding-top: 60px;
}

.p-t-90 {
    padding-top: 90px;
}

.p-t-120 {
    padding-top: 120px;
}

.p-b-15 {
    padding-bottom: 15px;
}

.p-b-30 {
    padding-bottom: 30px;
}

.p-b-45 {
    padding-bottom: 45px;
}

.p-b-60 {
    padding-bottom: 60px;
}

.p-b-90 {
    padding-bottom: 90px;
}

.p-b-120 {
    padding-bottom: 120px;
}

/**
Header.
**/
.site-branding {
    text-align: center;
}

.site-branding svg {
    max-width: 80%;
}

/**
Hero.
**/
div#home-hero {
    height: 100vh;
    background-size: cover !important;
    background-position: 25% !important;
    background-attachment: fixed !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.page-template-template-thanks div#home-hero {
    max-height: 50vh;
}

.hero-button {
    text-align: center;
}

a.recount-button {
    position: relative;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: normal;
    border: 2px solid #fff;
    padding: 5px 15px;
    min-width: 150px;
    margin-top: 20px;
    display: inline-block;
    text-align: center;
}

a.recount-button:after {
    content: "";
    height: 100%;
    width: 0;
    display: block;
    background: white;
    position: absolute;
    left: 0;
    top: 0;
    z-index:1;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
}

a.recount-button:hover:after {
    width: 100%;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
}

a.recount-button:hover span {
    color: #d61920;
}

a.recount-button span {
    position: relative;
    z-index: 2;
}

a.learn-button {
    font-weight: normal;
    color: #fff;
    margin-left: 30px;
}

/**
Quote.
**/
.recount-quote-out {
    display: flex;
}

.recount-quote-out > .fa-quote-left {
    font-size: 35px;
    margin-right: 15px;
}

p.recount-quote .fa-quote-right {
    font-size: 8px;
    position: relative;
    top: -10px;
}

p.recount-quote .fa-quote-right.small, p.recount-quote .fa-quote-left.small {
    font-size: 8px;
    position: relative;
    top: -7px;
}

p.recount-quote .fa-quote-right.small {
    margin-left: 2px;
}

p.recount-quote .fa-quote-left.small {
    margin-right: 2px;
}

.recount-section-quote {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/**
Form.
**/
.gform_heading {
    display: none;
}

.ginput_container input {
    border-radius: 0;
}

input#input_1_1 {
    width: 100%;
}

input.gform_button {
    background: #d61920;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    font-weight: normal;
    border: 2px solid #fff;
    padding: 12px 15px;
    min-width: 100%;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

input.gform_button:hover {
    background: #0430B8;
}

p.note {
    font-size: 12px;
}

input#input_1_2 {
    width: 100%;
}

.gform_wrapper ul.gform_fields li.gfield {
    padding-right: 0 !important;
}

ul#gform_fields_1 {
    display: flex;
    align-items: flex-start;
}

li#field_1_1, li#field_1_2 {
    flex: 1;
}

li#field_1_2 {
    margin-top: 18px;
    margin-left: 12px !important;
}

/**
Thanks.
**/
.hero-thanks {
    font-size: 20px;
    font-weight: bold;
}

.hero-thanks.color-white.p-t-15 {
    text-align: center;
}

/**
Underline.
**/
.underline:after {
    content: "";
    width: 100%;
    left: 0;
    height: 5px;
    background: #fff;
    position: absolute;
    bottom: 3px;
}

.recount-form .underline:after {
    background: #d61920;
}

.underline {
    position: relative;
}

/**
Footer.
**/
.site-info {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.5;
}

/**
Media queries.
**/
@media screen and (max-width:768px) {

    div#home-hero, .recount-section-quote {
        background-attachment: scroll !important;
    }

    ul#gform_fields_1 {
        display: flex;
        align-items: flex-start;
    }

}
