:root {
    --header-height: 90px;
    --header-height-mobile: 50px;
}
.header {
    height: auto;
}
.main-container {
    padding: var(--header-height) 15px 15px 15px;
    max-width: 920px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-family: "Roboto", sans-serif;
}
.main-container-title-charity h2 {
    font-size: 1.6rem;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}
.charity-title-icon {
    vertical-align: middle;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    margin-bottom: 5px;
}
.charity-title {
    padding-top: 25px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}
.charity-payment-slip {
    margin: 15px 0;
}
.charity-payment-slip img {
    width: 100%;
    border-radius: 15px;
    border: 5px solid #eee;
}
.charity-total-donations {
    margin: 30px 0 35px;
    width: 100%;
    text-align: center;
    background: linear-gradient(
        to right,
        var(--main-color),
        var(--main-color-secondary)
    );
    color: #fff;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    border-radius: 15px;
    animation-name: glowBoxAnimation;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    position: relative;
    overflow: hidden;
}
.charity-background-gift {
    position: absolute;
    left: 0;
    opacity: 0.3;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.charity-total-donations h2,
.charity-total-donations span {
    position: relative;
    z-index: 10;
}
@keyframes giftFallingAnimation1 {
    0% {
        transform: translateY(0) rotate(-45deg) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(250px) rotate(45deg) scale(1.1);
        opacity: 0;
    }
}
@keyframes giftFallingAnimation2 {
    0% {
        transform: translateY(0) rotate(45deg) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translateY(250px) rotate(-45deg) scale(0.8);
        opacity: 0;
    }
}
@keyframes glowBoxAnimation {
    0% {
        box-shadow: 0 0 30px var(--glow-color-low-opacity);
    }
    40% {
        box-shadow: 0 0 30px var(--main-color-secondary);
    }
    60% {
        box-shadow: 0 0 30px var(--main-color-secondary);
    }
    100% {
        box-shadow: 0 0 30px var(--glow-color-low-opacity);
    }
}
.charity-total-donations h2 {
    font-size: 1.3rem;
    padding-bottom: 5px;
}
.charity-total-donations span {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
}
.charity-quantox-logo {
    height: 160px;
    padding: 15px 0;
}
.charity-summer-logo {
    height: 200px;
    padding: 15px 0;
}
.charity-quantox-logo img,
.charity-summer-logo img {
    height: 100%;
}
.charity-range-sliders {
    width: 100%;
}
.charity-range-sliders-item {
    padding: 10px 0;
}
.charity-range-sliders-item h3 {
    text-align: left;
    padding-bottom: 10px;
    padding-left: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
}
.range-slider {
    width: 100%;
    border-radius: 20px;
    height: 30px;
    background-color: #eee;
    overflow: hidden;
}
.range-slider-inner,
.range-slider-inner-orange {
    color: #fff;
    text-align: right;
    line-height: 30px;
    padding: 0 15px;
    font-weight: 500;
    font-size: 1.3rem;
    border-radius: 20px;
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    transition-duration: 2000ms;
    transition-timing-function: ease-out;
}
.charity-range-sliders-item:nth-child(1) .range-slider-inner {
    background: linear-gradient(to right, #122577, #273ea3);
}
.charity-range-sliders-item:nth-child(2) .range-slider-inner {
    background: linear-gradient(to right, #037171, #0c9696);
}
.charity-range-sliders-past-seasons .range-slider-inner {
    background: linear-gradient(
        to right,
        var(--main-color),
        var(--main-color-secondary)
    ) !important;
}
.charity-range-sliders-item .range-slider-inner-orange {
    background: linear-gradient(
        to right,
        var(--orange-color),
        var(--orange-color-secondary)
    );
}
.range-slider-inner-gifts {
    background: linear-gradient(
        to right,
        var(--main-color),
        var(--main-color-secondary)
    ) !important;
}
.new-year-gifts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 45px 5px 20px;
}
.nyg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
}
.nyg-item-val {
    background-color: #f2f2f2;
    box-shadow: 0 0 7px #00000025;
    border-radius: 5px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    font-size: 2.5rem;
    color: var(--main-color-secondary);
    overflow: hidden;
    position: relative;
}
.nyg-item-val span {
    z-index: 2;
    font-weight: 600;
}
.nyg-gift-icon {
    position: absolute;
    z-index: 1;
    color: #e9e9e9;
    width: auto;
    height: 130px;
    transform: rotate(8deg) translateY(-5px);
}
.gifts-calendar {
    background-color: #f3f3f3;
    border-radius: 15px;
    width: 100%;
    padding: 5px 20px 15px 20px;
    margin-top: 15px;
    font-family: "Roboto", sans-serif;
    box-shadow: 0 0 8px #ddd;
}
.gifts-calendar .gifts-calendar-date {
    font-weight: 500;
    padding-top: 15px;
    padding-bottom: 5px;
}
.gifts-calendar p:not(.gifts-calendar-date) {
    padding: 4px 0;
}
#range-slider-gifts-val {
    position: absolute;
    text-align: center;
    z-index: 5;
    color: #fff;
    left: 50%;
    transform: translateX(-50%);
    line-height: 30px;
    font-size: 1.3rem;
    font-weight: 500;
}
.summer-league-bags,
.summer-league-logos-other {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
}
.summer-league-bags {
    flex-wrap: wrap;
    max-width: 600px;
}
.summer-league-bags svg {
    width: 120px;
    height: 120px;
    color: #333;
}
.summer-league-logos-other a {
    flex: 1;
    max-width: 150px;
}
.summer-league-logos-other img {
    width: 100%;
}
.charity-news {
    width: 100%;
    padding: 20px 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.charity-news-item-img {
    display: block;
    aspect-ratio: 16/9;
    position: relative;
}
.charity-news-item-img img {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.charity-news-item-img span {
    position: absolute;
    background-color: #fff;
    color: #000;
    top: 0;
    left: 0;
    border-bottom-right-radius: 8px;
    padding: 5px 5px 5px 0;
    font-weight: 500;
    font-size: 14px;
}
.charity-news-item p {
    padding: 5px 0;
    font-size: 14px;
    font-weight: 500;
}
.charity-audio {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 20px;
}
.charity-audio h3 {
    padding-bottom: 10px;
}
.charity-allstar-total-sum-wrap {
    padding: 15px 30px;
    margin: 20px 0 30px;
    background-color: #f2f2f2;
    border-radius: 15px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 7px #00000025;
}
.charity-allstar-total-sum-wrap span {
    font-size: 2.8rem;
    color: var(--main-color);
    font-weight: bold;
}
.charity-allstar-prev-year {
    background-color: #f2f2f2;
    box-shadow: 0 0 7px #00000025;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.charity-allstar-prev-year p {
    font-weight: 600;
}
.charity-allstar-prev-year span {
    color: var(--main-color);
    font-weight: bold;
    font-size: 18px;
}
.charity-gift-by-locations {
    padding-top: 15px;
}
.charity-gift-by-locations div span {
    background-color: #f2f2f2;
    box-shadow: 0 0 5px #00000025;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    gap: 6px;
    white-space: nowrap;
}
.charity-gift-by-locations div {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 12px;
}
.charity-gift-by-locations div span b {
    font-size: 26px;
    color: var(--main-color);
}
.charity-gift-by-locations svg {
    width: 22px;
    height: 22px;
    color: var(--main-color);
}

/* */
.charity-adding-boxes {
    display: flex;
    flex-direction: row;
    gap: 15px;
    text-align: center;
    padding: 10px 0 30px;
    line-height: 18px;
}
.charity-adding-boxes > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    justify-content: center;
    align-items: center;
}
.charity-adding-boxes > div > div:first-child {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}
.charity-adding-boxes-sign {
    color: var(--main-color);
    font-size: 48px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}
.charity-adding-boxes-num {
    background-color: #f2f2f2;
    box-shadow: 0 0 5px #00000025;
    color: var(--main-color);
    font-size: 32px;
    font-weight: bold;
    border-radius: 10px;
    white-space: nowrap;
    height: 60px;
    width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* */
#main-carousel {
    height: 600px;
    margin: 15px 0;
}
#thumbnail-carousel {
    width: 100%;
}
#thumbnail-carousel .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
#main-carousel .splide__slide {
    height: 600px;
    display: flex;
    justify-content: center;
}
#main-carousel .splide__slide img {
    object-fit: contain;
    border-radius: 15px;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}
.splide__track--nav > .splide__list > .splide__slide.is-active {
    border-radius: 5px;
    border: 2px solid var(--main-color);
}
@media only screen and (max-width: 780px) {
    .charity-adding-boxes {
        flex-direction: column;
        gap: 0;
    }
}
@media only screen and (max-width: 720px) {
    .new-year-gifts {
        gap: 20px;
        flex-wrap: wrap;
    }
    .charity-adding-boxes-sign {
        height: 60px;
        margin-bottom: 10px;
    }
    .charity-adding-boxes-invis {
        display: none;
        height: 0 !important;
    }
    .charity-adding-boxes > div > div:first-child {
        height: auto !important;
    }
    .main-container-title-charity h2 {
        font-size: 1.2rem;
        line-height: 1.6rem;
    }
    .main-container-title-charity svg {
        vertical-align: middle;
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }
    .gifts-calendar {
        padding: 5px 15px 10px 15px;
    }
    .charity-title {
        font-size: 1.1rem;
    }
    .header {
        height: var(--header-height-mobile);
    }
    .main-container {
        padding-top: var(--header-height-mobile);
    }
    .charity-quantox-logo {
        width: 90%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
        aspect-ratio: 3/1;
    }
    .charity-quantox-logo img {
        width: 100%;
        height: auto;
    }
    .charity-range-sliders-item {
        padding: 7px 0;
    }
    .charity-range-sliders-item h3 {
        font-size: 1rem;
        padding-bottom: 4px;
    }
    .charity-total-donations {
        margin: 25px 0 20px;
        height: 100px;
    }
    .charity-total-donations h2 {
        font-size: 1rem;
    }
    .charity-total-donations span,
    .charity-allstar-total-sum-wrap span {
        font-size: 2rem;
    }
    .nyg-item-val {
        height: 80px;
        font-size: 1.8rem;
    }
    .nyg-gift-icon {
        height: 120px;
    }
    .new-year-gifts {
        padding: 35px 5px 10px;
    }
    .range-slider {
        height: 25px;
    }
    .range-slider > div {
        font-size: 1.1rem;
        line-height: 25px;
    }
    .charity-gift-by-locations div {
        justify-content: space-between;
    }
    .charity-gift-by-locations div span b {
        font-size: 20px;
    }
    .charity-gift-by-locations svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    #range-slider-gifts-val {
        line-height: 25px;
    }
    #main-carousel {
        margin-bottom: 10px;
    }
    #main-carousel, #main-carousel .splide__slide, #main-carousel .splide__slide img {
        height: 280px;
    }
}
@media only screen and (max-width: 500px) {
    .nyg-item {
        flex: 1;
        min-width: 80px;
        max-width: 100px;
    }
    .nyg-item-val {
        font-size: 1.5rem;
    }
    .nyg-item-val {
        height: 60px;
    }
    .nyg-gift-icon {
        height: 80px;
    }
    .summer-league-bags {
        gap: 10px;
        padding: 20px 0;
    }
    .summer-league-bags svg {
        width: 33%;
        height: auto;
    }
}
