#available-events, #unavailable-events {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 80%; 
  background-color: #f9f9f9;
}

/* Event container layout */
.events-container {
  display: flex;
  flex-direction: column; /* Stacks events vertically */
  align-items: center;
  gap: 5px; /* Add space between event boxes */
  width: 750px; /* Adjust width to desired size */
}

/* No events message */
  #noEventsNotif {
  text-align: center;
  font-size: 16px;
  color: red; /* Change this to your preferred color */
  margin-top: 15px;
}

/* Event box styling */
.event-box {
  position: relative;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 750px;
}

.event-header {
  display: flex;
  flex-direction: column; /* Stack the title, countdown, and description vertically */
}

.event-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px; /* Add some space below the title */
}

.event-countdown {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px; /* Space between countdown and description */
}

.event-description {
  font-size: 13px;
  color: #333;
  margin-top: 5px; /* Ensure it is separated from the countdown */
}

.join-event-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #ffc107;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.join-event-btn:hover {
  background-color: #e0a800;
}

/* Unavailable event box styling */
.event-box.unavailable {
  display: flex; /* Display the unavailable event box */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center items */
  align-items: center; /* Center items */
  position: relative; /* To position the overlay */
  width: 80%; /* Adjust width to your liking */
  height: 125px; /* Increase height as needed */
  margin: 10px auto; /* Center the box with some margin */
  background-color: #fff; /* Background color */
  border: 2px solid #ccc; /* Border for visual distinction */
  border-radius: 8px; /* Rounded corners */
  opacity: 1; /* Full opacity */
  z-index: 1; /* Lower z-index for the blurred background */
  pointer-events: none;
}



.eventUnavailableContent {
  display: flex; /* Use flexbox for centering */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center items vertically */
  align-items: center; /* Center items horizontally */
  position: absolute; /* Position relative to the event box */
  top: 50%; /* Move to the vertical center */
  left: 50%; /* Move to the horizontal center */
  transform: translate(-50%, -50%); /* Offset to center exactly */
  z-index: 10; /* Higher z-index to appear above the blur */
  pointer-events: none; /* Allow interaction with this element */
}

.eventUnavailableImg {
  width: 50px; /* Adjust size as needed */
  height: 50px; /* Adjust size as needed */
  margin-bottom: 10px; /* Space between the image and text */
}

.eventUnavailableTitle {
  font-size: 16px; /* Adjust text size as needed */
  text-align: center; /* Center the text */
  color: #fff; /* Text color */
  font-weight: bold;
  font-style: italic;
  margin-top: 45px;
}

/* Dark overlay effect */
.unavailable-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hide the hover effect for unavailable events */
.event-box.unavailable:hover {
  box-shadow: none;
  transform: none;
  pointer-events: none;
}


.overlay-content {
  display: flex; /* Use flexbox for the icon and text */
  flex-direction: column; /* Stack icon above text */
  align-items: center; /* Center align the items */
}

.overlay-content i {
  margin-bottom: 5px; /* Space between icon and text */
  transform: translateY(-5px); /* Slightly raise the padlock */
}

.overlay-content span {
  margin-top: 10px;
  text-align: center; /* Center the text */
}

.eventUnavailableContent {
  margin-top: 5px;
}
