body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e7e7e7;
}

h2 {
    font-family: 'Georgia', serif;
    font-size: 28px;
    margin: 10px;
    color: #3a3b3b;
    text-align: center;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}
.header-nav {
    display: none; 
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header-nav ul li a:hover {
    background-color: #555;
}

.navrail {
    position: fixed;
    top: 49px;
    left: 0;
    width: 25%;
    max-width: 300px;
    height: calc(100% - 49px);
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border-top: #fff 1px;
}

.navrail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navrail ul li {
    margin: 10px 20px 0 0;
}

.navrail ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navrail ul li a:hover {
    background-color: #555;
}

.main-content {
    margin-left: 220px; 
    padding: 80px 20px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 15px;
}

.search-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.search-input {
    width: 80%;
    max-width: 700px;
    font-size: 1rem; 
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.search-button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #0056b3;
}

main {
    padding: 5px;
}

.posts h2{
    text-align: center;
}

.post {
    background-color: #fff;
    padding: 10px;
    margin: 20px auto ;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
}

.post img {
    max-width: 100%;
}

.post-header, .post-detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.post-header img {
    border-radius: 50%;
    margin-right: 10px;
}

.post-header img {
    width: 40px;
    height: 40px;
}

.post-header small {
    margin-left: 10px;
    color: #686868;
}

.post-profile-user-link {
    text-decoration: none;
    color: #000; 
}

.post-profile-user-link span:hover {
    color: #007bff;
}

.post-actions {
    margin-top: 10px;
}

.post-actions button {
    margin: auto 5px;
}

.like-button, .comment-button {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.like-button.liked {
    background-color: rgb(255, 0, 98);
    color: #fff;
    border: 1px solid rgb(255, 0, 98);
}

.delete-button {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.comments {
    margin: auto;
    max-width: 1000px;
}

.comment {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.comment-form {
    margin:  50px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.comment-form textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
    font-size: 14px;
}

.comment-form button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.comment-form button:hover {
    background-color: #0056b3;
}
.view-more {
    text-align: center;
}
.view-more-comments {
    color: #007BFF;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 auto;
}

.view-more-comments:hover {
    color: #0056b3;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: auto;
}

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: auto;
}

.form-card h2 {
    text-align: center;
}

.form-card label {
    display: block;
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}

.form-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.form-card textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.form-card input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-card button {
    display: block;
    width: 100%;
    margin-top: 35px;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.form-card button:hover {
    background-color: #0056b3;
}

.form-card img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}
.errorlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.errorlist li{
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 5px;
}

.conf-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.conf-option:hover{
    background-color: #f0f0f0;
}

.messages {
    margin: 20px auto;
    max-width: 600px;
    padding: 10px;
    border-radius: 5px;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #fff;
    text-align: center;
}

.message-success {
    background-color: #28a745; 
    border: 1px solid #218838;
}

.message-error {
    background-color: #dc3545; 
    border: 1px solid #c82333;
}

.message-warning {
    background-color: #ffc107; 
    border: 1px solid #e0a800;
    color: #212529;
}

.message-info {
    background-color: #17a2b8; 
    border: 1px solid #117a8b;
}

.profile-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-card {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

.profile-username {
    font-size: 24px;
    color: #007bff;
    margin: 0;
}

.profile-fullname {
    font-size: 18px;
    color: #555;
    margin: 5px 0;
}

.profile-bio {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.profile-actions {
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.follow-btn {
    background-color: #007bff;
    color: #fff;
}

.unfollow-btn {
    background-color: #dc3545;
    color: #fff;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 18px;
    color: #555;
}

.stat p {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.create-publication {
    text-align: center;
    margin-top: 20px;
}

.create-btn {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.create-btn:hover {
    background-color: #218838;
}

.pagination {
    text-align: center;
}

.pagination button{
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.notifications-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notifications-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #75acff5b;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-item.unread {
    background-color: #f0f8ff;
    font-weight: bold;
}

.notification-content p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.notification-content small {
    color: #888;
    font-size: 12px;
}

.notif-indicator{
    display:none;
    color: red;
    font-size: 1.2rem;
    margin-left: 5px;
}

@media (max-width: 1660px) {
    .header-nav {
        display: flex;
    }

    .navrail {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 20px;
    }
}