/* 
Theme Name: Anthony Stefanski for Common Pleas Custom Theme
Theme URI: 
Description: This is a child theme of Hello Elementor
Author: Schuylkill Strategies
Author URI: https://schuylkillstrategies.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child-stefanski
*/

/* Variable Declarations */
:root {
    --primary: #ffffff;
    --cube-side: 2.75rem;
    --cube-side-half: calc(var(--cube-side) / 2);


    box-sizing: border-box;
}

.row-gap-0 {
    gap: 0;
}

.row-gap-1 {
    gap: 1px;
}

.row-gap-2 {
    gap: 2px;
}

.row-gap-5 {
    gap: 5px;
}

.row-gap-10 {
    gap: 10px;
}

/* Buttons */
.elementor-button,
.elementor-button:visited {
    border-style: solid;
    border-width: 2px;
    border-radius: 0;
    padding: 1rem;
}

/* Home Contribution Bar */
.home-contrib-bar {
    background-color: var(--clr-base) !important;
    padding-left: 3rem;
    padding-right: 3rem;
    border: 0 solid var(--clr-primary) !important;
    border-bottom-width: 1rem !important;
    border-top-width: 1rem !important;
}

.donation-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.abx-button {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: block;

    .elementor-button {
        background-color: var(--clr-primary);
        color: white;

        box-shadow: 3px 3px 0px 0px var(--clr-secondary);
        padding: 1rem 2rem 1rem 2rem;
        border: solid 3px var(--clr-primary);

        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        font-weight: 900;
        text-decoration: none;
    }

    .elementor-button:visited {
        background-color: var(--clr-primary);
    }
}

.abx-button-wrapper {
    padding: 0;
    padding-left: 10x;
    padding-right: 10px;
    padding-bottom: 10px;
    width: 100%;
}

.abx-button:hover {
    .elementor-button {
        background-color: white;
        color: var(--clr-base);
    }
}

.abx-disclaimer {
    grid-area: 3 / 1 / 4 / 4;

    div {
        padding: 0;
    }

    p {
        font-size: 1rem;
        font-family: var(--font-family-paragraph);
        font-weight: 400;
        color: var(--clr-white);
        text-align: center;
        padding: .5rem;
        padding-bottom: 0;
        margin-block-end: 0;
    }
}

/* Icons */
.elementor-icon.elementor-social-icon {
    font-size: 3rem !important;
}

.elementor-social-icon {
    background-color: #ffffff00 !important;
}

.elementor-social-icon:hover svg {
    fill: var(--clr-primary) !important;
}

/* Header + Footer */
.header,
.footer {

    background-color: var(--clr-base);
    padding: 0;
    padding-right: 3rem;
    padding-left: 3rem;
    min-height: 7vh;

    #paid-for-by {
        width: auto;
        align-self: center;

        margin: auto;

        padding: 8px 8px 8px 8px;
        border-style: solid;
        border-width: 1px 1px 1px 1px;
        border-color: white;

        color: white;
        
        text-align: center;

        font-size: 0.875rem;
        line-height: var(--lh-paragraph);
        letter-spacing: var(--ls-paragraph);
    }

    #paid-for-by * {
        font-size: inherit;
        font-weight: inherit;
    }

    img {
        max-height: 7vh;
        width: auto;
    }
}

.footer {
    min-height: 5vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    /* Fade in from full transparency */
    to {
        opacity: 1;
    }

    /* To full visibility */
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    /* From full visibility */
    to {
        opacity: 0;
    }

    /* To full transparency */
}

.header-burger-menu {

    /* Burger Menu in Header */
    .burger-4 input[type="checkbox"]:checked~.fullscreen-div {
        display: block;
        /* Ensure it's visible after checked */
        opacity: 1;
        /* Fade in the div */
        visibility: visible;
        /* Make it visible */
        pointer-events: auto;
    }

    .burger-4 input[type="checkbox"]:not(:checked)~.fullscreen-div {
        opacity: 0;
        /* Fade out the div */
    }

    .burger-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 6vh;
        width: 7vh;
    }

    .burger-4 input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        display: none;
        visibility: hidden;
    }

    .burger-4 .bar {
        display: block;
        position: relative;
        cursor: pointer;
        width: 40px;
        height: 40px;
    }

    .burger-4 .bar span {
        position: absolute;
        width: 40px;
        height: 6.5px;
        background: var(--primary);
        border-radius: 100px;
        display: inline-block;
        transition: 0.3s ease;
        left: 0;
    }

    .burger-4 .bar span.top {
        top: 0px;
    }

    .burger-4 .bar span.middle {
        top: 15px;
    }

    .burger-4 .bar span.bottom {
        bottom: 4px;
    }

    .burger-4 input[type="checkbox"]:checked~.bar span.top {
        transform: rotate(45deg);
        transform-origin: top left;
        width: 48px;
        left: 5px;
    }

    .burger-4 input[type="checkbox"]:checked~.bar span.bottom {
        transform: rotate(-45deg);
        transform-origin: top left;
        width: 48px;
        bottom: -1px;
    }

    .burger-4 input[type="checkbox"]:checked~.bar span.middle {
        transform: translateX(-20px);
        opacity: 0;
    }

    .bar {
        z-index: 3;
    }

    /* Full Screen Menu Bar */
    .fullscreen-div {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2;
        background-color: #88ace0;
        align-content: center;
        opacity: 0;
        /* Start with no visibility */
        transition: opacity .5s ease-in-out;
        /* Smooth transition */
        pointer-events: none
    }

    .popup-content {
        justify-content: space-around;
    }

    .popup-header {
        display: flex;
        justify-content: space-around;
        /* Centers the content horizontally */
        align-items: center;
        /* Vertically centers the content if needed, though not strictly necessary here */
        width: 100%;
        height: 10vh;
        margin-top: 3vh;
        padding-bottom: 3vh;
    }

    .popup-menu {
        position: relative;
        /* Changes from absolute to relative */
        width: 100%;
        height: auto;
        text-align: center;
        align-content: center;
    }

    .popup-menu ul {
        padding-left: 0;
    }

    .popup-menu ul:not(:last-child) {
        padding-bottom: 20px;
    }

    .popup-menu ul li {
        list-style-type: none;
    }


    .popup-menu ul li a { /*h2*/
        font-family: var(--font-family-heading);
        font-size: clamp(2.5rem, 2.2073rem + 1.4634vw, 3.25rem); 
        font-weight: 700;
        line-height: var(--lh-heading);
        letter-spacing: var(--ls-heading);
        text-transform: capitalize;

        color: var(--clr-base);
        fill: var(--clr-base);

        justify-content: center;
        transition: .4s;

        font-style: var(--global-typography-hero-font-style);
        text-decoration: var(--global-typography-hero-text-decoration);
    }

    .popup-menu ul li a:hover,
    .popup-menu ul li a:focus {
        font-family: var(--font-family-heading);
        font-size: clamp(2.5rem, 2.2073rem + 1.4634vw, 3.25rem); 
        font-weight: 700;
        line-height: var(--lh-heading);
        letter-spacing: var(--ls-heading);
        text-transform: capitalize;

        color: var(--clr-secondary);
        fill: var(--clr-secondary);

        justify-content: center;

        font-style: var(--global-typography-hero-font-style);
        text-decoration: var(--global-typography-hero-text-decoration);
    }


    
    /* Media queries */
    @media only screen and (max-width: 1139px) {
        .at-row.EmailAddress {
            grid-template-columns: 58.5fr 39.5fr !important;
        }
    }

    @media only screen and (max-width: 768px) {

        .at-row.FirstName,
        .at-row.PostalCode {
            width: 100% !important;
            padding: 0 !important;
            margin-bottom: 10px !important;
        }

        .at-row.EmailAddress {
            width: 100% !important;
            float: none !important;
            display: block !important;
        }

        .at-row.EmailAddress input[type="email"] {
            width: 100% !important;
            float: none !important;
            max-width: 100% !important;
        }

        .at-form-submit {
            width: 100% !important;
            float: none !important;
            padding: 0 !important;
        }

        .at-form-submit input {
            width: 100% !important;
            float: none !important;
            box-sizing: border-box !important;
        }
    }
}

/* About */
.bottom-right-border img {
    border-bottom-right-radius: 200px;
    border-radius: 0px 0px 220px 0px;
    box-shadow: -25px -25px 0px 0px var(--clr-secondary);
    margin-top: -30px;
}

@media (max-width: 1024px) {
    .bottom-right-border img {
        border-radius: 80px 0px 0px 0px;
    }
}

.top-left-border img {
    border-top-left-radius: 200px;
    border-radius: 220px 0px 0px 0px;
    box-shadow: -25px -25px 0px 0px var(---clr-secondaryw);
}

/* Endorsements */
.elementor-headline-dynamic-text {
    color: inherit;
    font-size: 5rem;
}

.elementor-headline--style-highlight svg path {
    stroke: var(--clr-primary);
}

.org-endorsement h1,
.individual-endorsement h1 {
    font-size: 1.5rem;
}

.org-endorsement {
    font-size: var(--global-typography-h3-font-size);
    font-weight: var(--global-typography-h3-font-weight);
    text-transform: capitalize;
    line-height: calc(var(--global-typography-h3-line-height)-.2rem);
    text-align: center;

    * {
        font-size: inherit;
        font-weight: inherit;
    }

    img {
        transition-duration: 0.5s;
        transform: scale(1.1);
        display: inline-block;
        vertical-align: middle;
    }
}

.individual-endorsement {
    font-size: var(--global-typography-h4-font-size);
    font-weight: var(--global-typography-h4-font-weight);
    text-transform: uppercase;
    line-height: calc(var(--global-typography-h4-line-height)-.2rem);
    text-align: center;

    * {
        font-size: inherit;
        font-weight: inherit;
    }

    img {
        width: 90%;
        transition-duration: 0.5s;
        display: inline-block;
        vertical-align: middle;
    }

    img:hover {
        transform: scale(1.1);
    }
}

.endorsement-grid {}

/* Media Queries */
@media (max-width: 1024px) {
    .header {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    .elementor-button {
        font-size: 1.75rem;
        padding: 1rem;
    }

    .elementor-icon.elementor-social-icon {
        font-size: 2.5rem !important;
    }

    .elementor-headline-dynamic-text {
        color: inherit;
        font-size: 2.5rem;
    }

    .org-endorsement h1,
    .individual-endorsement h1 {
        font-size: 1.5rem;
    }


}

@media (max-width: 767px) {
    .header {
        padding: 1rem;
    }

    .elementor-button {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .elementor-icon.elementor-social-icon {
        font-size: 2rem !important;
    }

    .elementor-headline-dynamic-text {
        color: inherit;
        font-size: 2rem;
    }

    .org-endorsement h1,
    .individual-endorsement h1 {
        font-size: 1.1rem;
    }

    .home-contrib-bar {
        padding-left: 0;
        padding-right: 0;
    }
}