body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header .icon {
    width: 50px;
    height: 50px;
}

.header h1 {
    font-size: 2.5em;
    margin: 10px 0;
}

.user-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.user-actions .welcome-message {
    flex: 1;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.user-actions .action-buttons {
    display: flex;
    gap: 10px;
}

.messages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.message-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: calc(33.333% - 20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.message-header {
    font-weight: normal;
    margin-bottom: 10px;
}

.message-body {
    margin-bottom: 10px;
}

.message-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
    display: block;
}

.message-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.message-actions a {
    padding: 5px 10px;
    color: #fff;
    background-color: #d9534f;
    border-radius: 4px;
    text-decoration: none;
}

.message-actions a:hover {
    background-color: #c9302c;
}

.button {
    display: inline-block;
    width: 150px;
    text-align: center;
    padding: 10px 15px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.action-buttons a[href="logout.php"] {
    display: inline-block;
    width: 150px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    padding: 0;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-buttons a[href="logout.php"]:hover {
    background-color: #c82333;
}

.action-buttons a[href="post.php"] {
    display: inline-block;
    width: 150px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    padding: 0;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-buttons a[href="logout.php"]:hover {
    background-color: orange;
}

@media (max-width: 768px) {
    .message-box {
        width: calc(50% - 20px);
    }

    .user-actions {
        flex-direction: column;
        align-items: center;
    }

    .user-actions .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .message-box {
        width: 100%;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .user-actions .welcome-message {
        font-size: 1.2em;
    }

    .button {
        padding: 8px 10px;
    }
}