/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/activity.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto; /* Allow scrolling for long content */
  font-family: "Trebuchet MS", sans-serif;
}




/* General styling for the cards */
.actcollection {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping for smaller screens */
  gap: 20px; /* Adds space between cards */
  justify-content: center; /* Centers the cards horizontally */
  margin: 0 auto;
  padding: 10px;
  max-width: 1200px;
}

.actcard {
  background-color: #f9f9f9; /* Light background for cards */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: calc(33.333% - 20px); /* Three cards per row with gap accounted for */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.actcard:hover {
  transform: scale(1.05);
}

.actcontainer {
  padding: 15px;
  text-align: center;
}

.actcard img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #ddd;
}

.actcontainer h4 {
  margin: 10px 0;
  font-family: Verdana, sans-serif;
}

.actcontainer p {
  color: #666;
  font-size: 14px;
  font-family: Verdana, sans-serif;
}

.activitiesheader {
  text-align: center;
  padding-top: 50px;
  font-family: Verdana, sans-serif;
}

.lastdescription {
  font-family: "Trebuchet MS", sans-serif;
  padding: 50px;
  text-align: center;
  font-size: 14px; /* Smaller font size */
  color: #555; /* Grey color */
  margin: 0 auto;
  max-width: 800px; /* Center alignment with width restriction */
}


/* Responsive styling Cards*/
@media (max-width: 768px) {
  .actcard {
    width: calc(50% - 20px); /* Two cards per row */
  }
}

@media (max-width: 600px) {
  .actcard {
    width: 100%; /* One card per row */
  }
}

@media (max-width: 600px) {
  .lastdescription {
    padding: 20px; /* Reduced padding for smaller screens */
    font-size: 12px; /* Smaller font size for mobile */
  }
}
