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

header {
    background-color: #4267B2;
    color: #fff;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

header #logo {
    width: 50px;
    height: 50px;
    vertical-align: middle;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a, nav button {
    color: #fff;
    background-color: #1877F2;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
}

nav a:hover, nav button:hover {
    background-color: #165eab;
}

main {
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

#post-form {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#post-form h2 {
    margin-top: 0;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 100px;
}

#submit-post {
    background-color: #1877F2;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
}

#submit-post:hover {
    background-color: #165eab;
}

#posts {
    margin-top: 2rem;
}

#post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    position: relative;
}

.post .author {
    font-weight: bold;
    color: #1877F2;
    margin-bottom: 0.5rem;
}

.post .content {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post .actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post .share-btn, .post .edit-btn, .post .delete-btn {
    background-color: #ddd;
    color: #333;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.post .share-btn {
    background-color: #42b72a;
}

.post .edit-btn {
    background-color: #ffcc00;
}

.post .delete-btn {
    background-color: #f44336;
}

.post .share-btn:hover, .post .edit-btn:hover, .post .delete-btn:hover {
    opacity: 0.8;
}

.post .fa {
    margin-right: 0.5rem;
}
#auth-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.auth-button {
    font-size: 1.2rem;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin: 0.5rem; /* Space between buttons */
    width: 200px; /* Fixed width */
}

#sign-in {
    background-color: #007bff; /* Blue color */
  margin-top:5px;
    padding:15px;

}

#sign-in:hover {
    background-color: #0056b3; /* Darker blue for hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#sign-up {
    background-color: #28a745; /* Green color */
  margin-top:5px;
    padding:15px;

}

#sign-up:hover {
    background-color: #218838; /* Darker green for hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.auth-button:focus {
    outline: none;
}

.auth-button:active {
    background-color: #004085; /* Slightly darker color when clicked */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Additional styling */
h1 {
    margin: 0;
    font-size: 2rem;
}
#sign-out
{
  margin-top:5px;
    padding:15px;
background-color:brown;
  
}
#view-posts
{
  margin-top:5px;
    padding:15px;
background-color:white;
  
}
