.all-content {
    display: flex;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 16px;
    width: 456px;
    height: calc(100% - 167px);
    flex-shrink: 0;
    margin: 97px 0 70px 234px;
    position: fixed;
}

.container-contact-all {
    overflow-y: auto;
    height: 100%;
    padding-right: 24px;
}

.container-contact-all::-webkit-scrollbar {
    width: 6px;
}

.container-contact-all::-webkit-scrollbar-track {
    border-radius: 30px;
    background: #f1f1f1;
}

.container-contact-all::-webkit-scrollbar-thumb {
    background: #4589FF;
}

.container-contact-all::-webkit-scrollbar-thumb:hover {
    background: #005DFF;
}

.letter-title-underline {
    border-top: 1px solid #D1D1D1;
    width: 100%;
    height: 0;
}

.add-person-button {
    display: flex;
    width: 332px;
    height: 56px;
    padding: 16px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: var(--version-2-main-color, #4589FF);
    border: none;
    color: var(--white, #FFF);
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.initials-underline {
    border: #000;
}

.add-person-button:hover {
    background: #005DFF;
}

.add-person-button:active {
    background-color: #FFFFFF;
    color: var(--bg-color, #4589FF);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.add-person-button:active .button-icon {
    content: url('../img/person_add_active.png');
}

.container-letter-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.letter-title {
    color: #000;
    padding: 17px 36px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.contact {
    display: flex;
    cursor: pointer;
    width: 352px;
    padding: 15px 24px;
    align-items: center;
    gap: 35px;
    border-radius: 10px;
    background: #FFF;
    cursor: pointer;
}

.contact:hover {
    background: #D2E3FF;
}

.contact:hover {
    background-color: #4589ff57;
}

.contact-selected {
    background-color: #4589FF;
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.contact-selected .name,
.contact-selected .email {
    color: #FFFFFF;
}

.contact-selected:hover {
    background-color: #4589FF;
}

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

.email {
    color: var(--version-2-main-color, #4589FF);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.modal {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 60;
}

.edit-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 60;
}

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

.modal-content {
    border-radius: 30px 0px 30px 30px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}

.edit-content {
    border-radius: 0px 30px 30px 30px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
}

.modal-content, .edit-content {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 584px;
    max-width: 584px;
    gap: 52px;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
}

.modal-content-top {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    padding: 91px 46px;
    border-radius: 30px 0px 0px 0px;
    flex-direction: column;
    align-items: center;
    background: var(--ligth-blue, #005DFF);
}

.edit-content-top {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    padding: 108px 46px;
    border-radius: 0px 30px 0px 0px;
    flex-direction: column;
    align-items: center;
    background: var(--ligth-blue, #005DFF);
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.close:hover {
    content: url('../img/close_edit_hover.png');
}

.initial {
    box-sizing: border-box;
    display: flex;
    width: 42px;
    height: 42px;
    padding: 10px 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 45px;
    border: 1px solid #FFF;
    color: white;
}

.container-name-email {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#contact-details {
    position: fixed;
    top: 200px;
    left: 800px;
    overflow: hidden;
}

.contact-detailed-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
}

.contact-detailed-edit-delete {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detailed-text {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.slide-in {
    animation: slide-in .2s ease-in-out;
}

@keyframes slide-in {
    0% {
        transform: translateX(100%);
    }

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

.modal-slide-in {
    animation: modalSlideIn .2s ease-in-out forwards;
}

.modal-slide-out {
    animation: modalSlideOut .2s ease-in-out forwards;
}

@keyframes modalSlideIn {
    0% {
        transform: translateX(100%);
    }

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

@keyframes modalSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(1000px);
        display: none;
    }
}

.editModal-slide-in {
    animation: editModalSlideIn .2s ease-in-out forwards;
}

.editModal-slide-out {
    animation: editModalSlideOut .2s ease-in-out forwards;
}

@keyframes editModalSlideIn {
    0% {
        transform: translateX(-100%);
    }

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

@keyframes editModalSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1000px);
        display: none;
    }
}