#task-slide, #edit-task-slide {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 55;
}

.task-slide-overlay {
    display: none;
    position: fixed;
    z-index: 54;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

.edit-task-slide-in {
    animation: float-up 0.3s ease-in-out forwards;
}

.edit-task-slide-out {
    animation: float-down 0.3s ease-in-out forwards;
}

@keyframes float-up {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes float-down {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

/*********************************/
.slide-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 528px;
    max-width: 528px;
    height: 95%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task-slide-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-height: 95%;
    padding: 48px 40px;
    gap: 24px;
    border-radius: 30px;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}

.task-slide-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.task-slide-headline-left {
    box-sizing: border-box;
    display: flex;
    padding: 4px 24px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    background: #FF7A00;
}

.task-slide-category {
    color: #FFF;
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.task-slide-headline-right {
    display: flex;
    align-items: center;
}

.task-slide-headline-right img {
    display: flex;
    align-items: flex-start;
    width: 24px;
    height: 24px;
    gap: 10px;
}

.task-slide-headline-right:hover {
    content: url('../img/close_subtask_hover.png');
    cursor: pointer;
}

.scroll-slide-container {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.task-slide-title {
    align-self: stretch;
    color: #000;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.task-slide-description {
    align-self: stretch;
    color: #000;
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.task-slide-due-date-container {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    align-self: stretch;
}

.task-slide-due-date {
    color: #42526E;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.task-slide-due-date-date {
    color: #000;
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.task-slide-prio-container {
    display: flex;
    align-items: center;
    gap: 25px;
    align-self: stretch;
}

.task-slide-prio-text {
    color: #42526E;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.task-slide-prio-text-img {
    display: flex;
    padding: 4px 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}

.task-slide-assigned-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    align-self: stretch;
}

.task-slide-assigned-test {
    align-self: stretch;
    color: #42526E;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.task-slide-assigned-user-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    align-self: stretch;
}

.task-slide-assigned-user-contact {
    display: flex;
    flex-direction: column;
    padding: 7px 16px;
    justify-content: space-between;
    align-self: stretch;
}

.task-slide-btn {
    visibility: hidden;
}

.task-slide-subtasks-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    align-self: stretch;
}

.task-slide-subtasks-text {
    align-self: stretch;
    color: #42526E;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.task-slide-subtasks-tasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: stretch;
    cursor: pointer;
}

.task-slide-delete-edit-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.task-slide-delete {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.task-slide-delete-edit-img {
    width: 24px;
    height: 24px;
}

.task-slide-delete-text {
    color: #2A3647;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.task-slide-delete:hover .task-slide-delete-edit-img {
    content: url('../img/delete_hover.png');
}

.task-slide-delete:hover .task-slide-delete-text {
    color: #005DFF;
    font-weight: 700;
}

.task-slide-placeholder {
    width: 0px;
    height: 24px;
    border: 1px solid #D1D1D1;
}

.task-slide-edit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}


/*********************************/
.task-slide-subtask {
    display: flex;
    height: 32px;
    padding: 6px 16px;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.task-slide-subtask:hover {
    background: #D2E3FF;
    border-radius: 10px;
}

label {
    cursor: pointer;
}

.task-slide-subtask-btn {
    box-sizing: border-box;
    display: flex;
    width: 24px;
    height: 24px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
}

.task-slide-subtask-text {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.task-slide-assigned-user {
    display: flex;
    margin-bottom: 4px;
    align-items: center;
    gap: 16px;
}


@media(max-width: 768px) {
    .slide-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
    }

    .task-slide-container {
        padding: 40px 24px;
    }

    .task-slide-title {
        font-size: 31px;
    }

    .task-slide-category,
    .task-slide-description,
    .task-slide-due-date,
    .task-slide-due-date-date,
    .task-slide-prio-text,
    .task-slide-due-date-date,
    .task-slide-assigned-test,
    .task-slide-assigned-user-name,
    .task-slide-subtasks-text  {
        font-size: 16px;
    }

    .task-slide-headline-left {
        padding: 4px 16px;
    }
}