 /* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f4f6f8;
    color: #333;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.navbar h2 {
    font-size: 1.5rem;
    color: #2563eb;
}

.navbar a {
    text-decoration: none;
    color: white;
}

.navbar button {
    padding: 6px 14px;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.navbar button:hover {
    background: #1e4fcc;
}

/* Posts Container */
#allpostsshow {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Post Card */
/* Post Card */
.post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.post:hover {
    box-shadow: 0px 1px 16px 5px #a3a2a2;
    transform: translateY(-5px);
}


.post img {
    width: 100%;
    height: 300px;
    
    object-fit: cover;
}

.post-content {
    padding: 12px;
    flex: 1;
    background-color: white; 
    width: 100%; 
    height: auto;
}

.post-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 6px;
    word-wrap: break-word; 
}

.post-description {
    font-size: 0.9rem;
    color: #555;
    background-color: transparent; 
    width: 100%;
    height: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; 
}
.post-meta {
    margin-top: auto;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #777;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    background: #fafafa;
}


.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-avatar {
    width: 26px;
    height: 26px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #06274b;
}

   /* Container */
.login-container {
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease-in-out;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: xx-large;
    color: #2563eb;
}


/* Button */
.login-container #loginForm button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.login-container #loginForm button:hover {
    background: #1e40af;
}

/* Sign Up Link */
.link {
    text-align: center;
    margin-top: 12px;
  }
  
  .link p {
    /* background-color: #007BFF; */
    margin-bottom: 6px;
    font-size: 20px;
}

.link a {
    color: #2563eb;
    text-decoration: none;
}

.link a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
    .signup-container {
       background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease-in-out;
    }

   

    .signup-container h2 {
     text-align: center;
    margin-bottom: 20px;
    font-size: xx-large;
    color: #2563eb;
    }

    .signup-container #signupForm button {
        width: 100%;
        padding: 12px;
        background: #2563eb;
        color: white;
        border: none;
        font-weight: 600;
        border-radius: 6px;
        font-size: 18px;
        cursor: pointer;
        transition: 0.3s;
    }

    .signup-container #signupForm button:hover {
        background: #1e40af;
    }

    input {
      width: 100%;
      padding: 12px 15px;
      margin: 10px 0;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
    }

    input:focus {
      outline: none;
      border-color: #4CAF50;
      box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }

    .author-avatar {
    width: 26px;
    height: 26px;
    background: #2563eb;
    color: white;
    display: flex;

    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
}




    @media (max-width: 480px) {
      .signup-container {
        padding: 25px;
      }
    }
