.edit_message_container {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    width: 50%;
    height: 70%;
    max-width: 800px;
    height: 50vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--base-color);
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--text-color);
    padding: 5%;

}

.edit_message_container input {
    border: 1px solid var(--text-color);
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 1rem;
    font-family: "Abel", serif;
    border-radius: 10px;
    color: var(--text-color);
    box-sizing: border-box;
}

.edit_message_container textarea {
    border: 1px solid var(--text-color);
    width: 100%;
    height: 100%;
    padding: 10px;
    font-size: 1rem;
    font-family: "Abel", serif;
    border-radius: 10px;
    color: var(--text-color);
    box-sizing: border-box;
}

.edit_message_container label {
    font-size: 1.2rem;
    font-family: "Allerta Stencil", serif;
    color: var(--text-color);
    margin: 20px 0;

}
.edit_message_container div:nth-of-type(2){
    width: 100%;
    margin: 20px 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.edit_message_container button {
    font-family: "Abel", serif;
    font-size: 1.2rem;
    width: 120px;
  
    padding: 5px 10px;
    border: 1px solid var(--text-color);
    background-color: var(--base-color);
    border-radius: 10px;
    cursor: pointer;
    /* position: absolute;
    bottom: 30px; */
    /* right: 5%; */
}

.edit_message_container .edit_photo_container {
    width: 30%;
    height: 60%;
    margin: 0 auto;
    border: 1px solid var(--text-color);
    border-radius: 10px;
}

.edit_message_container .edit_photo_container label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.edit_message_container .edit_photo_container label svg {
    width: 70%;
    height: 70%;
    fill: none;
    stroke: var(--text-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.edit_message_container .edit_photo_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;

}



footer {
    width: 100%;
    height: 70px;
    background-color: var(--second-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.footer-in {
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-in p {
    font-size: 1rem;
}

.footer-in p,
.footer-in svg {
    color: var(--base-color);
    fill: var(--base-color);
}

footer svg {
    stroke: none;
}

.new-message {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--base-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid var(--text-color);
    padding: 10px;
    position: fixed;
    bottom: 50px;
    right: 5%;
}

.new-message svg {
    fill: none;
    width: 100%;
    height: 100%;
    stroke: var(--text-color);
}

section {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    top: 0;
}

section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--time-zone-color);
    opacity: 0.7;
    z-index: -1;
}

section .new-message-container {
    position: relative;
    /* height: 80%; */
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    background-color: var(--base-color);
    border: 2px solid var(--text-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 50px;
    align-items: center;
    transition: height 1s ease-in-out;
}


section .new-message-container form {

    height: 100%;
    display: flex;
    flex-direction: column;
    width: 80%;

}

section .new-message-container form #image-preview {
    max-width: 100%;
    max-height: 30vh;


}

section .new-message-container form .image-preview-container {
    margin: 0 auto;
    max-width: 100%;
    max-height: 20%;

    position: relative;
}

section .new-message-container form .image-preview-container .delete-btn {

    /* Unicode "X" for better design */
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: var(--text-color);
    mix-blend-mode: difference;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

section .new-message-container form input,
section .new-message-container form textarea {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid var(--text-color);
    box-sizing: border-box;
    color: var(--text-color);
    font-family: "Allerta Stencil", serif;
    background-color: transparent;
}

section .new-message-container form textarea {
    min-height: 250px;
    font-family: "Abel", serif;
}

section .new-message-container form label {
    font-size: 1.2rem;
    font-family: "Abel", serif;
    color: var(--text-color);
    margin: 10px;
}



section .new-message-container form button {
    width: 100px;
    margin: 20px auto 0 auto;
    border: none;
    background-color: var(--text-color);
    color: var(--base-color);
    width: 180px;
    height: 40px;

    font-size: 1.5rem;
    cursor: pointer;
    font-family: "Abel", serif;
    border-radius: 20px;
    transition: 0.25s;
}

section .new-message-container .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    /* border: 1px solid var(--text-color); */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

}

section .new-message-container .close-btn svg {
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
    fill: var(--text-color);
    stroke: var(--text-color);
}

section .new-message-container .upload-media {
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 50%;

    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

section .new-message-container .upload-media svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--text-color);
}

@media screen and (max-width: 768px) {
    footer svg {
        display: none;
    }
}