:root {
    --sideheader-main-color: #2A3647;
    --sideheader-hover-color: #2A3D59;
    --sideheader-active-color: #091931;
    --content-main-color: #F6F7F8;
    --sideheader-font-color: #CDCDCD;
    --button-hover-color: #29ABE2;
    --item-hover-color: #F8F8F8;
    --details-font-color: #007CEE;
}

html,
body {
    margin: 0;
    padding: 0;
}

.content {
    max-width: 1440px;
    display: flex;
    flex: 1;
    overflow: auto;
    padding: 0px !important;
}

.content::-webkit-scrollbar {
    display: none;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    width: 352px;
    height: fit-content;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 32px 24px 32px 24px;
}

.btn-image {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    gap: 16px;
    width: 300px;
    height: 50px;
    background-color: var(--sideheader-main-color);
}

.btn-image button {
    background: transparent;
    color: white;
    border: none;
    font-size: 21px;
    font-weight: 700;
    line-height: 25.2px;
    padding: 12px 0 12px 0;
    cursor: pointer;
}

.btn-image:hover {
    background-color: var(--button-hover-color);
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.2);
}

.btn-image img {
    width: 32px;
    height: 32px;
}

.contact-group {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.contactArea {
    width: 100%;
    flex-shrink: 0;
}

.contactArea::-webkit-scrollbar {
    width: 6px;
}

.contactArea::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}

.contactArea::-webkit-scrollbar-button {
    display: none;
}

.contactArea h2 {
    font-size: 20px;
    margin-left: 40px;
    margin-top: 20px;
    line-height: 24px;
    font-weight: 400;
    color: #000000;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    color: black;
}

.active2 {
    cursor: pointer;
    border-radius: 10px;
    color: black;
}

.contact-item:not(.active-contact):hover {
    border-radius: 10px;
    background-color: #F6F7F8;
    color: black;
}

.active-contact {
    background-color: var(--sideheader-main-color);
    color: white;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
}

.avatar span {
    color: white;
    border: 2px solid white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.contact-container-right {
    padding-top: 70px;
    padding-left: 40px;
    width: 100%;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-text h1 {
    font-size: 61px;
    font-weight: 700;
    line-height: 73.2px;
}

.contact-text p {
    font-size: 27px;
    font-weight: 400;
    line-height: 32.4px;
}

.contact-ellipse {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-top: 20px;
}

.contact-ellipse2 {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    font-size: 47px;
    line-height: 56.4px;
    color: white;
    text-align: center;
}

.contact-mini {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-mini h1 {
    font-size: 47px;
    line-height: 56.4px;
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 24px;
    color: #333;
}

.contact-info p {
    font-size: 16px;
    line-height: 19.2px;
    font-weight: 700;
    color: #000000;
    margin: 5px 0;
}

.CI-info {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
}

.editimage {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
}

.editimages, .editimages2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.editimages:hover {
    img {
        content: url("../img/edithover.png");
    }

    cursor: pointer;
    color: #29abe2;
}

.editimages2:hover {
    img {
        content: url("../img/deletehover.png");
    }

    cursor: pointer;
    color: #29abe2;
}

.contactDetails {
    overflow: hidden;
}

.contact-slide-in {
    height: 100%;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards ease;
}

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

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

@keyframes slideInMobile {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

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


.changemycolor {
    color: var(--details-font-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ContactEdit {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popupEdit {
    width: 1212px;
    height: 592px;
    background-color: white;
    display: flex;
    border-radius: 31px;
    animation: slideIn 0.5s forwards ease;
}

.popupEditLeft {
    width: 40%;
    height: 100%;
    min-height: 270px;
    background-color: #2A3647;
    display: flex;
    gap: 12px;
    flex-direction: column;
    justify-content: center;
    padding-left: 46px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.logoEdit img {
    width: 54px;
    height: 67px;
}

.popupEditLeft h2 {
    color: white;
    font-size: 61px;
}

.popupEditRight {
    display: flex;
    width: 60%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#contactFormEdit {
    margin-top: 50px;
    width: 422px;
    margin-left: 50px;
}

.closeBtnEdit {
    position: relative;
    top: -240px;
    right: -20px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.strichEdit {
    width: 90px;
}

.closeBtnEdit:hover {
    background-color: #CDCDCD;
    border-radius: 100%;
}

.EditInput {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 50px;
}

.EditInput input:focus {
    border: 1px solid #29ABE2;
}

.popup {
    display: flex;
    background: white;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s forwards ease-in-out;
    width: 1212px;
    min-height: 592px;
}

.maintestpopup {
    width: 100%;
    height: 100%;
    background-color: #D1D1D1;
}

.popup-test {
    width: 100%;
    height: 100%;
    color: white;
    padding: 66px 48px;
    cursor: pointer;
    flex-direction: column;
}

.mini-add-contact {
    position: fixed;
    bottom: 90px;
    right: 10px;
    width: 100%;
    height: 66px;
    background: url("../img/MenuContactoptions.png") no-repeat right;
    cursor: pointer;
    border: none;
}

.mini-personadd-contact {
    display: none;
    justify-content: end;
    border: none;
    background: none;
    padding-right: 50px;
    width: 100%;
    height: 60px;
    cursor: pointer;
    background: url("../img/miniaddperson.png") no-repeat center;
}

.editimage2 {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding-left: 10px;
    border-radius: 20px 20px 0px 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 116px;
    height: 100px;
    cursor: pointer;
    position: fixed;
    right: 0;
    bottom: 20%;
    gap: 10px;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 30px;
}

.popup-left {
    background-color: #2A3647;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 66px 48px 66px 48px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.popup-left .logo img {
    width: 55.6px;
    height: 66.48px;
}

.popup-left .underline-img {
    height: 4px;
    background-color: #29abe2;
    width: 90px;
    border-radius: 3px;
}

.popup-left h2 {
    font-size: 61px;
    font-weight: 700;
    line-height: 73.2px;
}

.popup-left p {
    font-weight: 400;
    font-size: 27px;
    line-height: 32.4px;
}

.popup-right {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 750px;
    position: relative;
}

.popup-right .close-btn {
    position: absolute;
    top: 48px;
    right: 30px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.popup-right .close-btn:hover {
    background: #eeeeee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: ease-in-out 2ms;
}

.popup-right .form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.popup-right .form-group .input-images {
    width: 24px;
    height: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-container {
    position: relative;
}

.input {
    padding: 13px 21px;
    width: 100%;
    height: 50px;
    font-size: 15px;
    border: 1px solid #D1D1D1;
    border-radius: 10px;
}

.failinput {
    padding: 13px 21px;
    width: 100%;
    height: 50px;
    border: 1px solid red;
    border-radius: 10px;
}

.fail {
    width: 100%;
    font-size: 14px;
    color: rgba(249, 25, 25, 0.5);
}

.input-container input:focus {
    outline: none;
    border: 1px solid #29ABE2;
}

.input-container:nth-child(1) input {
    background: url('../img/person.png');
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: 96%;
}

.input-container:nth-child(2) input {
    background: url('../img/mail.png');
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: 96%;
}

.input-container:nth-child(3) input {
    background: url('../img/call.png');
    background-repeat: no-repeat;
    background-position: center;
    background-position-x: 96%;
}

input::placeholder {
    color: #D1D1D1;
}


.popup-actions {
    display: flex;
    gap: 20px;
}

.cancelbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sideheader-main-color);
    background: none;
    border-radius: 10px;
    width: 126px;
    height: 56px;
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    color: var(--sideheader-main-color);
    cursor: pointer;
}

.deleteBtnEditContact {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sideheader-main-color);
    background: none;
    border-radius: 10px;
    width: 126px;
    height: 56px;
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    color: var(--sideheader-main-color);
    cursor: pointer;
}

.deleteBtnEditContact:hover {
    border: 1px solid var(--button-hover-color);
    color: var(--button-hover-color);
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.2);
}

.cancel-icon {
    display: flex;
    gap: 4px;
    width: 24px;
    height: 24px;
    background-image: url('../img/SecondaryVector.png');
    background-repeat: no-repeat;
    display: inline-block;
}

.cancelbutton:hover {
    border: 1px solid var(--button-hover-color);
    color: var(--button-hover-color);
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.2);
}

.cancelbutton:hover .cancel-icon {
    background-image: url('../img/ScndryVectHvr.png');
}

.popup-actions .createbuttoncontact {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    font-size: 21px;
    font-weight: 700;
    line-height: 25.2px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.popup-actions .createbuttoncontact {
    background: #2A3647;
    color: white;
}

.popup-actions .createbuttoncontact:hover {
    background-color: var(--button-hover-color);
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.2);
}

.overlay.show {
    display: flex;
}

.activeContact {
    content: url("../img/IconsContact.png");
}

.userImgEdit {
    border-radius: 50%;
}

.profle-pic {
    width: 100%;
    max-width: 132px;
    height: 100%;
    max-height: 132px;
    object-fit: cover;
    border-radius: 50%;
}


.camera {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    background-color: #ffffff;

    img {
        position: absolute;
        top: 15%;
        left: 18%;
    }
}

.camera:hover {
    cursor: pointer;
    background-color: #29abe2;

    img {
        content: url('../img/camera-white.png');
    }
}

@media (max-width: 460px) {

    .camera {
        width: 28px;
        height: 28px;

        img {
            top: 15%;
            left: 15%;
            height: 75%;
            width: 75%;
        }
    }

}

@media (max-height: 780px) {
    .contact-container-right {
        overflow: auto;
    }
}

    @media (max-height: 670px) {
        .mini-personadd-contact {
            top: 68% !important;
        }
    }
    
    @media (max-height: 460px) {
        .mini-personadd-contact {
            top: 50% !important;
        }
    }
