/* Layout */
.challanges {
    padding: 4rem 0;
}

.challanges__list {
    display: grid;
    gap: 2rem;

    @media (min-width: 979px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1440px) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.challenge-card {
    background: var(--aok-sand);
    padding: 1.25rem;
    color: var(--aok-green);
    transition: box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.challange-card--selftest {
    background: var(--aok-light-blue);
}

.challange-card__content {
    height: auto;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.challange-card__footer {
    margin-top: auto;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
}

.challange-card__footer .alert {
    width: 100%;
    padding: 12px 18px;
}

.challange-teaser {
    display: grid;
    gap: 2rem;
    z-index: 2;
    position: relative;

    @media (min-width: 979px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.challange-states {
    padding: 2.5rem;
    background: var(--aok-green);
}

/**
* Movement
 */

.movement-confirmation {
    background: var(--aok-pastel-green);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.movement-confirmation__icon {
    margin: 0 auto 2rem;
}

.movement-history {
    background: var(--aok-sand);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.movement-history .uploads__item {
    position: relative;
    border: 1px solid var(--aok-grey-1);
    display: inline-block;
}

.movement-history .uploads img {
    aspect-ratio: 3 / 2;
    object-fit: contain;
    display: inline-block;
    max-height: 200px;
}

.movement-history .delete-image {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--aok-white);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glide--uploads .glide__slides {
    justify-content: flex-start;
}


.glide--uploads.glide {
    background: transparent;
}

.glide--uploads .glide__track {
    width: 100%;
}

.glide--uploads {
    position: relative;
}

.glide--uploads .glide__bullets {
    padding-bottom: 0;
    position: absolute;
    left: 0;
    width: 100%;
    top: 100%;
}


/**
* Modal
 */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal__content {
    background: var(--aok-white);
    padding: 2rem;
    max-width: 400px;
    text-align: center;
}

.modal__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.uploads {
    display: grid;
    grid-gap: 2rem;

    @media (min-width: 979px) {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.uploads__item:is(:only-child) {
    grid-column: 2;
}

.compare-item {
    padding-left: 2.5rem;
    position: relative;
}


.compare-item .badge {
    position: absolute;
    left: 0;
    top: 0;
}
