* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    cursor: pointer;
    padding: 1rem 0;
}
  
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #f39c12 50%, #0a0a0a 100%);
  background-size: 400% 400%; /* Increase size to reduce visible repeat line */
  animation: gradientAnimation 10s infinite ease-in-out;
  color: #fff;
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove extra padding */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow-x: hidden;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

  /* Ensure footer is at the bottom */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
  flex: 1; /* Pushes footer to the bottom */
}
  
/* Header and Navigation */
/* Sticky Header */
header {
  background: #0a0a0a;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensures it stays above other content */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f39c12;
}

  /* Main Content */
  .main {
    margin-top: 100px;
  }
  
  /* Hero Section */
  .hero {
    background: #f4f4f4;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* About Page */
  .about-content {
    max-width: 500px;
    text-align: left;
    margin: 0 auto;
    line-height: 1.8;
  }
  
  /* Footer */
  footer {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
  }

  footer a {
    color: #fff;
  }
  
  li {
    list-style-type: none;
  }

  @media (min-width: 769px) { 
    .nav-links {
      margin-left: auto;  /* Push the nav links to the right */
    }
  }
  
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 60px;
      left: 0;
      width: 100vw;
      height: auto;
      background: #0a0a0a;
      display: none; /* Ensure it's hidden by default */
      flex-direction: row; 
      justify-content: space-evenly; 
      align-items: center;
      padding: 1rem 0;
      box-sizing: border-box;
      overflow-x: hidden;
      flex-wrap: wrap;
    }
  
    .nav-links.nav-active {
      display: flex; /* Show only when active */
    }
  
    .nav-links li {
      flex: 1 1 auto;
      text-align: center;
      padding: 1rem 0;
    }
  
    /* Prevent horizontal scrolling */
    html, body {
      overflow-x: hidden;
    }
  
    /* Hamburger Menu */
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 25px;
      cursor: pointer;
      transition: transform 0.3s ease-in-out;
    }
  
    .hamburger span {
      height: 3px;
      width: 100%;
      background: white;
      border-radius: 5px;
      transition: all 0.3s ease-in-out;
    }
  
    /* When active, transform into an X */
    .hamburger.active span:nth-child(1) {
      transform: translateY(5px) rotate(45deg);
    }
  
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
  
    .hamburger.active span:nth-child(3) {
      transform: translateY(-15px) rotate(-45deg);
    }
  }
  
  @media (max-width: 768px) {
    /* Show nav-links when .nav-active is applied */
    .nav-links.nav-active {
      display: flex;
    }
    
    #blog-posts {
      width: 85%; /* Leaves space on both sides */
      max-width: 500px; /* Prevents stretching */
      padding: 20px;
    }

    .blog-post {
      width: 100%; /* Ensures content stays inside */
      max-width: 450px; /* Controls width */
      padding: 15px;
      margin: 10px auto; /* Centers and adds space */
    }

    #blog-posts img {
      max-width: 50px; /* Prevents loading gif overflow */
      display: block;
      margin: 20px auto; /* Centers it */
    }

    .blog-title {
      font-size: 1.2rem;
      font-weight: bold;
      color: #f39c12;
    }

    .blog-content p {
      font-size: 1rem;
      line-height: 1.4;
      color: #333;
    }
  }
  
  .contact-content form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  
  .contact-content form label {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .contact-content form input,
  .contact-content form textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .contact-content form button {
    margin-top: 1rem;
    padding: 0.7rem;
    font-size: 1rem;
    background: #0a0a0a;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
  }
  
  .contact-content form button:hover {
    background: #f39c12;
  }
  

/* Login & Signup Forms */
#auth-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

#auth-forms {
    display: flex;
    gap: 20px;
}

#login-form, #signup-form {
    padding: 20px;
    border: 1px solid #ccc;
    background: white;
    width: 250px;
}

/* Blog Post Section */
/* Fix TinyMCE editor pushing content up */
#new-post-container {
  margin-bottom: 50px; /* Adds spacing below the editor */
}

/* Ensure blog posts are properly spaced */
#blog-container {
  margin-top: 50px; /* Pushes recent blog posts down */
  margin-bottom: 50px;
}

#blog-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%; /* Leaves space on sides */
  max-width: 700px; /* Ensures it does not stretch too much */
  margin: 20px auto; /* Centers it */
  background: rgba(255, 255, 255, 0.1);
  padding: 30px; /* Adds inner spacing */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Individual Blog Posts */
.blog-post {
  width: 95%; /* Leaves space on sides */
  max-width: 600px; /* Prevents excessive stretching */
  background: white;
  padding: 15px;
  margin: 0 auto 0 auto; /* Centers each post */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f39c12;
}

.blog-content p {
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
}

#blog-posts img {
  max-width: 100%; /* Prevents image from being too large */
  display: block;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  margin-top: 5px;
  margin-bottom: 10px;
}

.welcome-message {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4b330c;
  text-align: center;
  margin: 20px auto -50px; /* Centers and adds spacing */
  padding: 15px; /* Ensures 10px space between text and border */
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  display: inline-block; /* Prevents stretching */
  max-width: fit-content; /* Keeps message width based on text */
}

#profile-container {
    max-width: 400px;
    margin: auto;
}

#profile-pic {
    object-fit: cover;
    border: 3px solid #ddd;
}

.hidden {
    display: none !important;
}

.blog-container input,
.blog-container textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Ensure the forms are displayed side by side */
#container {
  max-width: 900px;
  margin: auto;
  gap: 500px; /* Ensures spacing between forms */
  flex-wrap: wrap; /* Ensures responsiveness */
}

.d-flex {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 500px; /* Ensures spacing between forms */
    flex-wrap: wrap; /* Ensures responsiveness */
}

.card {
    border-radius: 10px;
    min-height: 380px; /* Ensures equal height for both forms */
    max-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ensure responsiveness */
@media (max-width: 768px) {
    .d-flex {
        flex-direction: column;
        align-items: center;
    }
}

/* Ensure TinyMCE does not mess with the page layout */
.mce-content-body {
    max-width: 100%; /* Prevents overflowing */
    font-size: 16px !important; /* Ensures text size stays normal */
}

.custom-editor {
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

footer {
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    margin-top: auto; /* Pushes footer to the bottom */
  }
  
  footer a {
    color: gray;
  }

  footer a:hover {
    color: #f39c12;
  }

/* Center the form inside modals */
.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Ensure form inputs and buttons align properly */
.modal-body form {
    width: 100%;
    max-width: 320px; /* Adjust width for better centering */
    text-align: center;
}

/* Adjust labels inside inputs */
.form-floating label {
  left: 12px;
}

/* Make buttons larger and add spacing */
.modal-body button {
  font-size: 1.1rem; /* Increase button size */
  padding: 12px 0; /* Add more padding */
  margin-top: 10px; /* Increase spacing */
}
  
#manage-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.recent {
    text-align: center;
}

#manage-profile-container,
#create-post-container {
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.modal-content {
  border-radius: 10px;
}

.modal-header {
  background-color: #f39c12;
  color: white;
}

.btn-close {
  background-color: white;
}

/* Increase button size and spacing in modals */
#open-login  {
  font-size: 1.2rem; /* Bigger buttons */
  padding: 14px 50px; /* Increase height */
  margin-top: 12px; /* Add more spacing between buttons */
}

#open-signup {
  font-size: 1.2rem; /* Bigger buttons */
  padding: 14px 50px; /* Increase height */
  margin-top: 12px; /* Add more spacing between buttons */
}