.content {
  display: none; /* Hidden by default */
  padding-top: 10px;
}

section.active .content {
  display: block; /* Show content when section is active */
}

#project {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center items horizontally */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Space between buttons */
  margin-bottom: 20px; /* Space below buttons */
}

.content {
  display: flex; /* Use flexbox for card layout */
  flex-wrap: wrap; /* Allow cards to wrap to the next line */
  justify-content: center; /* Center cards horizontally */
  padding-top: 10px;
  width: 100%; /* Full width */
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin: 10px;
  width: 280px; /* Fixed width for cards */
  max-width: 100%; /* Ensure it fits within the container */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Center content inside the card */
}

.language-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.language-button.active {
  background-color: #0056b3; /* Darker blue for the active button */
  font-weight: bold;
}

.language-button:hover {
  background-color: #0056b3;
}

.projectTitle {
  margin: 0;
  font-size: 1.5em;
}

.projectImage {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 10px 0;
}

.projectDetails {
  margin: 10px 0;
}

.projectLink {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.projectLink:hover {
  text-decoration: underline;
}

.projectList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.projectItem {
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  flex: 1 1 auto; /* Allow items to grow as needed */
}

.projectItem a {
  text-decoration: none;
  color: #007bff;
}

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

.projectDetails {
  margin-top: 10px;
}

details {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 890px) {
  .container {
    margin-top: -5px;
  }
}
