main {
  position: relative;
  height: auto !important;
  width: 100%;
  padding: 10px;
}
h1 {
  text-align: center;
}
p,
.activitiesContainer {
  margin: 0 auto;
  border-bottom: 1px solid white;
  padding-bottom: 2px;
}

.activitiesContainer {
  width: 95%;
  height: 87vh;
  overflow-y: scroll;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 500px));
  gap: 20px;
  justify-content: center;
  padding: 15px;
  margin: 20px auto;
  border: 1px solid white;
}
.activitiesContainer {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}
.activitiesContainer::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.showHideContainer {
  display: none;
}
.activitiesContainer .activity {
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.5), -4px -4px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: flex;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  &:hover {
    transform: scale(0.95);
    border-radius: 5px;
  }
}
.activitiesContainer .activity .textContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 5px;
}
.activitiesContainer .activity .textContainer .newsdetails {
  display: none;
}
main .newsPopup {
  position: absolute;
  width: 90%;
  height: 100vh;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid white;
  background-color: rgb(10, 120, 194);
  padding: 0px;
  z-index: 2000;
  overflow-y: auto;
  transition: all 1s ease-in-out;
}
.hideNews {
  top: -120%;
}
.showNews {
  top: 20px;
}
.newsPopup .closeNews {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
}
.newsHolder {
  padding: 20px;
}
.newsPopup .closeNews img {
  width: 30px;
  height: 30px;
  filter: invert();
  right: 5px;
  top: 5px;
  cursor: pointer;
  transition: all 0.2s linear;
}
.activity .activityDetailsImg img {
  width: 30%;
  height: 30%;
  margin-right: 10px;
  float: left;
  border: 1px solid white;
}
.activityTitle {
  font-size: 1.2rem;
  padding-bottom: 10px;
}
.activityTitleSingle {
  font-size: 2.5rem;
  padding-bottom: 10px;
}
.newsdetailsSingle {
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-align: justify;
}
.ActivityDate {
  padding: 25px 10px;
  font-size: 1.2rem;
  font-style: italic;
}
.activityDetailsImg .closeNews img:hover {
  transform: rotateX("180deg");
  scale: 1.2;
}
.overlayNews {
  position: absolute;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100vh;
  z-index: 1700;
}

.activitiesContainer .activity .activityImg {
  flex: 1;
}
.activitiesContainer .activity .activityImg img {
  width: 100%;
}
@media only screen and (max-width: 900px) {
  main {
    height: auto;
    margin-top: 70px;
  }
  h1 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  p {
    width: 90%;
  }
  .activitiesContainer {
    width: 100%;
  }
  main .newsPopup {
    width: 95%;
  }
  .activity .activityDetailsImg img {
    width: 100%;
    border-radius: 10px;
  }
  .activityTitleSingle {
    font-size: 1.5rem;
    padding-top: 5px;
  }
}
