.message-container {
    width: 60%;
    margin: 20px auto;
}
.message {
    background-color: #00000051;
    border-radius: 7px;
    padding: 25px;
    margin-bottom: 15px;
}
.message-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}
.message-header span{
    font-size: 20px;
}
.message-content {
    color: white;
    font-size: 18px;
    margin-left: 10px;
    margin-top: 10px;
}
.welcome-message {
    text-align: center;
    color: white;
    margin-top: 20px;
}
.message-image {
    margin-top: 15px;
}

.message-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 5px;
}

.message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -5px;
    margin-bottom: 10px;
    padding-right: 5px;
}

.edit-btn, .delete-btn {
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.edit-btn {
    background-color: #0088ff;
}

.delete-btn {
    background-color: #ff3b30;
}

.edit-btn:hover {
    background-color: #0060c6;
    transform: scale(1.05);
}

.delete-btn:hover {
    background-color: #d9342b;
    transform: scale(1.05);
}

.message-title {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    padding-bottom: 5px;
}
 /* Modal styles */
 .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background-color: #333;
    border-radius: 10px;
    padding: 30px;
    width: 25%;
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.modal-container h3 {
    color: white;
    margin-top: 0;
    font-size: 22px;
}

.modal-container p {
    color: #ddd;
    margin-bottom: 25px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
}

.modal-cancel-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.modal-delete-btn {
    background-color: #ff3b30;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.modal-cancel-btn:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

.modal-delete-btn:hover {
    background-color: #d9342b;
    transform: scale(1.05);
}
@media screen and (max-width: 426px) {
    .message-container{
        width: 90%;
        
    }
    .modal-container{
        width: 80%;
    }
    .message-image{
        display: flex;
        justify-content: center;
    }
    .message-header > span{
        font-size: 17px;
    }
    .message-title{
        display: flex;
        justify-content: center;
    }
}