body {
    display: flex;
    justify-content: center;
    padding: 100px 0;
    margin: 0;
}

.all-messages {
    width: 90%;
    max-width: 600px;
    padding-top: 100px;
}

.message {
    background-color: var(--bg-color);
    border: 1px solid var(--seconde-text-color);
    border-radius: 20px;
    margin-bottom: 50px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

.user-message {
    display: flex;
    align-items: center;
}

.user-message img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
}

.username {
    font-weight: bold;

}

.text {
    margin-top: 20px;
    color: var(--text-color);
}

.text img {
    display: block;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin: 20px auto;
}

.bottom-section {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-delete {
    display: flex;
    gap: 15px;
}

.delete svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.like-btn {
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.heart {
    fill: white;
}

.liked .heart {
    fill: var(--seconde-text-color);
}

.date {
    font-size: 12px;
}
@media (max-width: 600px) {
    .all-messages {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .message {
        padding: 12px;
        margin-bottom: 30px;
    }

    .user-message img {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .text img {
        max-width: 100%;
        margin: 10px auto;
    }

    .bottom-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}