/* search.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.search-container {
    max-width: 800px;
    margin:40px auto 500px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.search-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.search-container form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-container input[type="text"] {
    width: 70%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-container button {
    width: 20%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #0056b3;
}

.results {
    margin-top: 20px;
}

.results h3 {
    margin-bottom: 10px;
}

.user-results, .post-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-result-box, .post-result-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.user-avatar {
    margin-right: 10px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-info, .post-info {
    flex: 1;
}

.user-info p, .post-info p {
    margin: 0;
}

.post-info strong {
    font-weight: bold;
}

.post-info p:last-child {
    margin-top: 5px;
}