.detail-background {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.8);
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 60px 10px 10px;
    z-index: 5;
    opacity: 0;
    transition: .5s opacity .5s;
}

.detail-background.active {
    opacity: 1;
    transition: .5s opacity;
}

.detail {
    width: 100%;
    height: auto;
    max-height: 100%;
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 16px;
    position: relative;
    z-index: 6;
    transform: translateY(600px);
    transition: .5s transform 0s ease-in-out;
}

.detail-background.active .detail {
    transform: translateY(0px);
    transition: .5s transform .3s ease-in-out;
}

.detail::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    border-radius: 16px;
    pointer-events: none;
}

.detail-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.detail .buttons {
    position: absolute;
    top: 0px;
    right: 0px;
    max-width: 100%;
}

:host ::ng-deep .detail .buttons .neu-button {
    display: inline-block;
}

.detail .buttons neu-button {
    margin-left: 10px;
}

.detail h2 {
    font-weight: 500;
    margin: 10px 0 0;
    font-size: 22px;
}

.detail h3 {
    font-weight: 400;
    font-size: 18px;
    margin: 10px 0 20px;
}

.status-chips {
    display: block;
    margin-bottom: 20px;
}

.users {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
}

.coach {
    display: flex;
    align-items: center;
    width: 50%;
}

.coach img {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 100%;
    flex-shrink: 0;
    box-shadow: 1px 1px 10px -1px rgba(36, 65, 93, 0.3);
}

.users {
    margin-bottom: 20px;
}

.users .athletes {
    width: 50%;
}

.users .athletes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.users .athletes p {
    text-align: right;
}

.users .athletes ul {
    display: flex;
    flex-grow:1;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.users .athletes ul li {
    margin-right: -10px;
}

.users .athletes ul li:last-child {
    margin-right: 0px;
}

.users .athletes img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 100%;
    box-shadow: 1px 1px 10px -1px rgba(36, 65, 93, 0.3);
    margin-bottom: 5px;
}

.users .athletes .more {
    width: 100%;
    text-align: right;
}

.workout,
.capacity {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.workout i,
.capacity i,
.credits i {
    margin-right: 15px;
    font-size: 20px;
    color: #8B278F;
}

.credits {
    display: block;
    width: 100%;
}

:host ::ng-deep .save-button .neu-button {
    margin-top: 20px;
}

:host ::ng-deep .workout-edit .neu-autocomplete {
    width: 100%;
}

:host ::ng-deep .workout-edit .neu-option neu-chip {
    margin-left: 10px;
}


@media screen and (min-width: 992px) {
    .detail-background,
    .detial-background.active {
        background-color: unset;
        position: static;
        width: auto;
        height: auto;
        transition: unset;
        padding: 0;
    }

    .detail,
    .detail-background.active .detail {
        position: absolute;
        z-index: 10;
        transition: unset;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    
    .detail h2 {
        margin-top: unset;
        font-size: 20px;
    }

    .detail h3 {
        font-size: 16px;
    }
    
    .detail,
    .detail-background.active .detail,
    .detail-content {
        width: 500px;
        height: 300px;
        max-width: 500px;
        max-height: 300px;
    }
}