/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100%;
}

/* Navbar Styles */
.navbar {
  width: 250px;
  min-width: 250px; /* Prevent shrinking */
  max-width: 250px; /* Prevent expanding */
  flex-shrink: 0; /* Prevent shrinking when using flexbox */
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar.hidden {
  display: none;
}

.profile {
  text-align: center;
  margin-bottom: 20px;
}

.profile p {
  color: #ecf0f1;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  width: 100%;
}

.nav-links li {
  margin: 10px 0;
}

.nav-links button {
  width: 100%;
  padding: 10px;
  background-color: #34495e;
  border: none;
  color: #ecf0f1;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.nav-links button:hover {
  background-color: #1abc9c;
}

.post-pic {
  max-width: 100%; /* Ensures image doesn't overflow its container */
  height: auto;    /* Maintains aspect ratio */
  display: block;  /* Removes extra space below images */
  margin: 0 auto;  /* Centers the image */
}

@media (max-width: 768px) {
  .container {
    flex-direction: column; /* Stack navbar and content vertically */
  }

  .navbar {
    width: 100%; /* Full width on mobile */
    min-width: unset; /* Allow dynamic width */
    max-width: unset; /* Remove width restriction */
    height: auto; /* Adjust height to content */
    padding: 10px; /* Reduce padding for smaller screens */
  }

  .profile-pic {
    width: 80px; /* Reduce profile picture size */
    height: 80px;
  }

  .nav-links button {
    font-size: 14px; /* Adjust button font size */
  }

  .content {
    padding: 10px; /* Reduce content padding */
  }

  .post-pic {
    width: 100%;   /* Make the image fill the container */
    max-width: 100%;
  }
}

#content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

h1 {
  color: #2c3e50;
}

p {
  color: #34495e;
  line-height: 1.6;
}

pre code {
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Post-specific styles */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin: 10px 0;
}

.post-list a {
  color: #1abc9c;
  text-decoration: none;
  cursor: pointer;
}

.post-list a:hover {
  text-decoration: underline;
}

.post {
    max-width: 720px; /* Ensures it adapts */
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.post-date {
  font-weight: bold;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 1.5rem;
}

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #34495e;
  color: #ecf0f1;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.back-button:hover {
  background-color: #1abc9c;
}

form {
  margin-bottom: 20px;
}

input, textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
}

button {
  padding: 10px 20px;
  background-color: #1abc9c;
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #16a085;
}

.comment {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
}

.comment .name {
  font-weight: bold;
  color: #2c3e50;
}

.comment .text {
  color: #34495e;
}