* {

  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  color: #333;
 
  overflow-x: hidden;
}

/* Header/Navbar */
.navbar1 > h2 {
  color: #b80606;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.navbar {
  background-color: #333;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  padding: 5px 10px;
  border-radius: 5px;
}

.navbar a:hover {
  background-color: #575757;
}

/* Sidebar for larger screens */
.sidebar {
  width: 20vw;
  max-width: 250px;
  height: calc(100vh - 60px); /* Adjust for the fixed navbar */
  position: fixed;
  top: 60px;
  left: 0;
  background-color: #111;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 10px;
  z-index: 900;
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
}

.sidebar a:hover {
  background-color: #575757;
}

.sidebar a svg {
  margin-right: 10px;
  fill: white;
}

/* Bottom Navbar for mobile */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px; /* Adjust as needed */
    background-color: #f8f9fa;
    display: flex;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 5px 0;
}

.bottom-navbar a {
  flex: 1; 
  text-decoration: none;
    color: #000000;
    text-align: center;
    font-size: 12px; /* Adjust font size for the name */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-navbar a svg {
  display: block;
  margin-bottom: 2px; /* Space between icon and text */
  fill: #333; /* Icon color */
  width: 24px; /* Adjust size as needed */
  height: 24px;
}

.bottom-navbar a:hover {
  color: #007bff; /* Hover color for text */
}

.bottom-navbar a:hover svg {
  fill: #007bff; /* Hover color for icons */
}

/* Content Area */
.content {
  margin-left: 250px;
  padding: 20px;
  max-width: 800px;
}

.container {
  max-width: 50vw;
  margin: 10px auto;
  padding-bottom: 30px;
}

.view-posts, .post {
  margin-bottom: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-posts, .post {
  margin-bottom: 20px;
}

.view-posts input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button[type="submit"] {
  background-color: #333;
  color: #fff;
  padding: 10px 10px;
  border-radius: 3px;
  cursor: pointer;
}


button[type="submit"] {
  background-color: #4caf50;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #40d92f;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .sidebar {
      display: none;
  }

  .navbar {
      flex-direction: column;
      text-align: center;
  }

  .bottom-navbar {
      display: flex;
  }

  .content {
      margin-left: 0;
      padding: 15px;
  }

  .container {
      max-width:90vw;
  }
}