.footer-container {
    width: 100%;
    display: flex;
}

.footer {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.footer:before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--custom-secondary);
    opacity: 0.9;
    z-index: 0;
}

.footer-background-image {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    top: 0;
    z-index: -1;
    overflow: hidden;
}

.footer-content {
    z-index: 1;
    color: var(--custom-light);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    color: var(--custom-light);
    width: 100%;
    padding: 1rem var(--padding-small);
}

.footer-content-links a {
    text-decoration: none;
    color: var(--custom-light);

    &:hover {
        text-decoration: underline;
    }
}

.footer-content > div {
    z-index: 99;
    width: auto;
    min-width: 15%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.footer-content-top {
    display: flex;
}

.footer-content img {
    max-width: 10rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-content h3 {
    font-size: var(--font-size-lg);
}

.footer-content p {
    font-size: var(--font-size-sm);
    line-height: 1.4rem;
    margin-bottom: 1rem;
}

.footer-policy {
    font-size: var(--font-size-4xl);
    display: block;
    text-align: left;
    align-self: start;
}

.footer-bottom-container {
    background-color: var(--custom-purple);
}

.footer-bottom {
    background-color: var(--custom-purple);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--padding-small);

    & p {
        font-size: var(--font-size-sm);
        margin: 0;
    }
}

.footer-policy {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-policy img {
    max-height: 2rem;
    margin-left: 0.5rem;
}

.footer-conditions-wrapper {
    display: flex;
    flex-direction: column;

    .footer-conditions {
        display: block;
        text-align: left;
        align-self: start;
    }

    a {
        color: var(--custom-light);
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.next-event-countdown-container {
    width: 100%;
    padding: 0 var(--padding-large);
    display: flex;
    justify-content: center;
}

.next-event-countdown {
    background-color: var(--custom-primary);
    position: relative;
    bottom: -3.5rem;
    z-index: 2;
    max-width: 850px;
}

.next-event-countdown-content {
    width: 100%;
    color: var(--custom-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1.5rem 3.5rem;
}

.next-event-countdown-title {
    display: flex;
    justify-content: space-between;
}

.next-event-countdown-title-event {
    font-weight: 400;
    text-align: end;
}

.next-event-countdown-time-buy {
    color: var(--custom-dark);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.next-event-countdown-time {
    display: flex;
    gap: 1rem;
}

.next-event-countdown-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--custom-light);
    width: 4rem;
    padding: .5rem;
    border-radius: .2rem;
}

.next-event-countdown-time-unit-label {
    font-size: .55rem;
    font-weight: 400;
}

.next-event-countdown-buy-button {
    flex: 1;
    padding: .2rem;
    background-color: var(--custom-yellow);
    color: var(--custom-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .25rem;
    border: 2px solid var(--custom-yellow);
    font-size: var(--font-size-lg);
    font-weight: 700;
    transition: ease-in-out;
    transition-duration: .2s;
    text-decoration: none;

    &:hover {
        background-color: transparent;
        color: var(--custom-light);
    }
}

.next-event-countdown-info {
    font-weight: 400;
    display: flex;
    gap: 1rem;
}

@media (max-width: 1400px) {
    .next-event-countdown-container {
        padding: 0 var(--padding-medium);
    }
}

@media (max-width: 992px) {
    .next-event-countdown-container {
        padding: 0 var(--padding-small);
    }

    .navbar-toggler .fas {
        color: var(--custom-light);
        font-size: var(--font-size-xl);
    }

    .footer {
        padding: 5rem var(--padding-mobile) 2rem;
    }

    .footer-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 0;

        & h3 {
            font-size: var(--font-size-md);
        }

        & p {
            font-size: var(--font-size-sm);
        }
    }

    .footer-policy {
        font-size: var(--font-size-sm);
        padding: 1rem 0;
    }

    .footer-bottom {
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem var(--padding-mobile);
        width: 100%;

        & p {
            font-size: .7rem;
            margin: 0;
        }

        .footer-policy {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0;

            & img {
                max-height: 2rem;
                margin-left: 0.5rem;
            }
        }
    }

    .next-event-countdown-content {
        width: 100%;
        bottom: -2rem;
        padding: 1.25rem 2rem;
    }
}

@media (max-width: 768px) {
    .next-event-countdown-container {
        padding: 0 var(--padding-mobile);
    }

    .footer-content {
        padding: 0;
    }

    .footer-content {
        .footer-content-top {
            width: 100%;
            min-width: 100%;
        }

        .footer-content-links {
            max-width: 33%;
        }
    }

    .footer-bottom p {
        font-size: .6rem;
    }

    .next-event-countdown-time-buy {
        flex-direction: column;
    }

    .next-event-countdown-time {
        gap: 1rem;
        justify-content: center;
    }

    .next-event-countdown-buy {
        font-size: 1.25rem;
    }

    .next-event-countdown-title {
        font-size: .9rem;
    }
}

@media (max-width: 575px) {
    .next-event-countdown-buy-button {
        font-size: 1rem;
    }

    .footer {
        padding: 5rem var(--padding-xsmall) 1rem;
    }

    .footer-bottom {
        padding: 1rem var(--padding-xsmall);

        .footer-policy {
            text-align: center;
        }
    }
}

@media (max-width: 480px) {
    .next-event-countdown-time {
        gap: .5rem;
        justify-content: space-between;
    }

    .next-event-countdown-time-unit {
        width: 25%;
        padding: .3rem .2rem;
        font-size: .8rem;
    }

    .next-event-countdown-time-unit-label {
        font-size: .5rem;
        font-weight: 400;
    }

    .next-event-countdown-container {
        padding: 0 var(--padding-xsmall);
    }

    .next-event-countdown-title {
        font-size: .8rem;
    }

    .next-event-countdown-buy {
        font-size: .8rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: start;
    }

    .next-event-countdown-content {
        width: 100%;
        bottom: -2rem;
        padding: 1rem;
    }

    .next-event-countdown-buy-button {
        font-size: .8rem;
    }

    .next-event-countdown-info {
        font-weight: 400;
        display: flex;
        flex-direction: column;
        gap: .25rem;
    }

    .footer-content {
        .footer-content-top,
        .footer-content-links {
            width: 100%;
            max-width: 100%;
        }
    }
}

@media (min-width: 1300px) {
    .footer-content,
    .footer-bottom {
        padding-left: 0;
        padding-right: 0;
    }
}