@import url('https://fonts.googleapis.com/css?family=Pacifico&display=swap');

.funnel-container {
    font-family: 'tempo', 'Tempo Std';
    position: relative;
    display: grid;
    display: -ms-grid;
    max-width: 240px;
    grid-template-areas:
        "title "
        "subtitle"
        "goal"
        "funnel"
        "spacing"
        "cta";
    /*grid-gap: 10px;*/
    font-size: 21px;
    text-align: center;
    background-color: #daebfb;
    max-width: 246px;
    max-height: 600px;
}

.funnel-container-top {
    padding: 2%;
}

.red {
    color: #dc1125;
}

.blue {
    color: #07539c;
}

.funnel-title {
    font-size: 1.4em;
    display: inline-block;
    grid-area: title;
    padding: 15px 5px 5px 5px;
    -ms-grid-row: 1;
}

.funnel-subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 1em;
    font-weight: 500;
    line-height: 1em;
    padding: 0px 5px 15px 5px;
    grid-area: subtitle;
    margin: 0px 0px 15px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    -ms-grid-row: 2;
}

.funnel-subtitle>span {
    margin: 0 15px;
}

.funnel-subtitle::before,
.funnel-subtitle::after {
    background: black;
    height: 1px;
    display: flex;
    flex: 1;
    content: '';
    padding: 0 5px;
}

.funnel-new-goal {
    font-size: 1.1em;
    grid-area: goal;
    -ms-grid-row: 3;
    padding: 5px;
}

.funnel-meter {
    display: flex;
    margin: 10px;
    justify-self: center;
    -ms-grid-row: 4;
}

.funnel-donation-amount-container {
    display: flex;
    font-size: 0.9em;
    position: absolute;
    line-height: 1em;
    color: #dc1125;
    z-index: 2;
    padding-left: 2%;
}

.funnel-donation-amount-container::after {
    content: "";
    width: 40px;
    position: absolute;
    border-bottom: 1px solid #dc1125;
    top: 19%;
    left: 97%;
}

#funnel-donation-goal {
    font-size: 1.6em;
}

#funnel-donation-goal::before {
    content: "$";
    font-size: .7em;
    vertical-align: super;
    top: 4px;
    position: relative;
}

#funnel-donation-amount {
    font-size: 1.5em;
    font-weight: 700;
}

.funnel-meters-container {
    display: flex;
    grid-area: funnel;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    min-height: 170px;
}

.funnel-meters-container img {
    max-width: 100%;
    max-height: 100%;
}

.funnel-white,
.funnel-red {
    -webkit-filter: drop-shadow(2px 2px 5px #a8a3a3);
    filter: drop-shadow(2px 2px 5px #a8a3a3);
}

.funnel-white {
    background: url("/../~/media/CCLUS/Images/StJude/funnel-white.svg") no-repeat;
    background-size: contain;
    width: 225px;
    height: 170px;
    display: flex;
    align-items: flex-end;
}

.funnel-red {
    z-index: 2;
    position: relative;
    display: flex;
    bottom: 0;
    left: 0;
    color: white;
    font-size: 0.7em;
}

#funnel-red-img {
    background: url("/../~/media/CCLUS/Images/StJude/funnel-red-outline.svg") no-repeat;
    background-size: contain;
    position: relative;
    display: flex;
    justify-content: center;
    align-self: flex-start;
}

.funnel-red-inner-text {
    position: relative;
    line-height: 1.1em;
    align-self: center;
    padding-top: 10%;
}

.funnel-spacing {
    height: 15px;
    background-color: #ffffff;
    grid-area: spacing;
    -ms-grid-row: 5;
    display: flex;
    align-self: flex-end;
}

.funnel-cta-container {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-color: #efefef;
    -ms-grid-row: 6;
}

.funnel-cta-container>img {
    padding-top: 5%;
    max-width: 212px;
}

.funnel-container>img {
    margin: 10px 0;
}

.funnel-cta {
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #00549d;
    height: 63px;
    width: 212px;
    margin: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.funnel-cta>span::after {
    border-style: solid;
    display: inline-block;
    height: 0;
    width: 0;
    content: "";
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #fff;
    position: relative;
    right: -7px;
    top: 0;
}

/*Internet Explorer specific rules 
    /*Internet Explorer PORTRAIT */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) and (max-width: 500px) {

    .funnel-cta-container {
        width: 246px;
    }

    .funnel-red {
        font-size: .7em;
    }
}

/*Internet Explorer LANDSCAPE */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) and (min-width: 501px) and (max-width: 800px) and (max-height: 420px) {

    .funnel-donation-amount-container::after {
        width: 25px;
    }

    .funnel-red {
        font-size: .7em;
    }

}

/* MOBILE VIEW PORTRAIT */
@media only screen and (orientation: portrait) and (min-width: 320px) and (max-width: 480px) {
    .funnel-container {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .funnel-title {
        padding: 15px 5px 10px 5px;
    }

    .funnel-donation-amount-container {
        font-size: 1em;
    }

    .funnel-red {
        font-size: 0.8em;
    }

    .funnel-white {
        width: 278px;
        height: 210.383px;
        max-width: 78vw;
        max-height: 59vw;
    }

}

/* MOBILE VIEW LANDSCAPE */
@media only screen and (orientation: landscape) and (min-width: 481px) and (max-width: 823px) and (max-height: 420px) {
    .funnel-container {
        grid-template-columns: 1fr 1fr;
        -ms-grid-columns: 1fr 1fr;
        grid-template-areas:
            "title title"
            "subtitle subtitle"
            "goal cta"
            "funnel cta"
            "spacing spacing";
        grid-gap: none;
        max-width: none;
    }

    .funnel-title {
        padding: 15px 5px 10px 5px;
    }

    .funnel-donation-amount-container {
        font-size: 1em;
    }

    .funnel-title {
        padding-top: 10px;
        -ms-grid-column-span: 2;
    }

    .funnel-white {
        width: 278px;
        height: 210.383px;
    }

    .funnel-red {
        font-size: 0.8em;
    }

    .funnel-subtitle {
        padding-bottom: 0;
        -ms-grid-column-span: 2;
    }

    .funnel-meter {
        padding: 2%;
    }

    .funnel-cta-container {
        background-color: #daebfb;
        -ms-grid-column: 2;
        -ms-grid-row: 4;
        margin-right: 10px;
    }

    .funnel-cta-container::before {
        display: none;
    }


    .funnel-spacing {
        display: none;
    }

}