/* SLIDER */
@keyframes slidy {
  0% {
    left: 0%;
  }
  20% {
    left: 0%;
  }
  25% {
    left: -100%;
  }
  45% {
    left: -100%;
  }
  50% {
    left: -200%;
  }
  70% {
    left: -200%;
  }
  75% {
    left: -300%;
  }
  95% {
    left: -300%;
  }
  100% {
    left: -400%;
  }
}
.slider_container {
  overflow: hidden;
  display: block;
  text-align: center;
}
.slider_container figure img {
  width: 20%;
  float: left;
  height: 500px;
  object-fit: cover;
}
.slider_container figure {
  height: 300px;
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 30s slidy infinite;
}

.slider_title {
    position: absolute;
    top: 31%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--color-white);
    z-index: 9;
    font-size: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
}

@media only screen and (max-width: 768px) {
    .slider_title {
        top: 30%;
        font-size: 40px;
    }
    .slider_container figure img {
      height: 250px;
    }
}

@media screen and (min-width: 375px) and (max-width: 767px) {
    .slider_title {
        top: 33%;
        font-size: 40px;
    }
}

@media screen and (min-width: 769px) and (max-width: 960px) {
    .slider_title {
        top: 30%;
    }
}
/* END SLIDER */

/* DESCRIPTION */
.description {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.description div {
    /* width: 50%; */
    margin-top: 75px;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* margin-top: 6%; */
}

.description p {
  margin-top: 20px;
}
/* .description span {
    width: 600px;
} */
.description h2 {
    font-size: 40px;
    color: var(--color-mainGreen);
    text-align: center;
}

@media only screen and (max-width: 768px) {
    /* .description {
        width: 300px;
    } */
    .description div {
      margin-top: 20px;
    }
    .description p {
      text-align: start;
      padding-left: 20px;
      padding-right: 20px;
    }
}
/* END DESCRIPTION */

/* ACTIVITIES */
.activities {
  margin-top: 75px;
  display: flex;
  flex-direction: column;
  gap: 75px;
}

.activity {
  /* background-color: rgb(248, 123, 123); */
  margin-left: 10%;
  margin-right: 10%;
}

.activity li {
  font-family: 'Roboto Condensed', sans-serif;
}

.activity_grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
}

.activity-image {
  max-width: 100%;
  height: auto;
}

.activity_grid span {
  padding: 15px;
}
.activity_grid h3 {
  font-size: 40px;
  color: var(--color-mainGreen);
}

.activity_grid p {

}

.activity_slider_container {
  overflow: hidden;
  display: block;
  text-align: center;
}
.activity_slider_container figure img {
  width: 20%;
  float: left;
  height: auto;
  object-fit: cover;
}
.activity_slider_container figure {
  height: auto;
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 30s slidy infinite;
}

@keyframes slideContent {
    to {
      opacity: 1;
      transform: translateX(0);
    }
}

.slideToRight {
  transform: translateX(-70%);
}

.slideToLeft {
  transform: translateX(70%);
}
.slideContentTo {
  animation: slideContent 1s forwards;
}


@media only screen and (max-width: 768px) { 
  .activity {
    margin-left: 20px;
    margin-right: 20px;
  }
  .activity ul {
    list-style-type: disc;
    list-style-position: inside; 
    padding-left: 20px;
  }
  .activity_grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .activity_grid span {
    padding: 0px;
  }
}

@media screen and (min-width: 769px) and (max-width: 960px) { 
  .activity-image {
    margin-top: 50%;
  }
  /* .activity_slider_container figure {
    margin-top: 50%;
  } */
  /* .activity_slider_container figure { TODO: Mirar si cal fer això, ja que ara poden haver sliders
    margin-top: 50%;
  } */
}
/* END ACTIVITIES */

/* MIDDLE TEXT */
.middleText {
  text-align: center;
  background-color: var(--color-mainGreen);
  padding: 20px 0px 25px 0px;
}
.middleText_content {
  padding: 0px 5px 0px 5px;
  color: var(--color-white);
}
/* END MIDDLE TEXT */

/* RECOMENDATION */
.recomendation {
  display: flex;
  justify-content: center;
}
.recomendation_content {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* font-size: 25px; */
  align-items: center;
  border: 2px solid var(--color-mainGreen);
  border-radius: 25px;
  padding: 25px;
  width: fit-content;
}

.recomendation_content strong {
  font-family: 'Roboto Condensed', sans-serif;
}

.greenStrong {
  color: var(--color-mainGreen);
}

.recomendation_content img {
  width: 35px;
  height: 35px;
  filter: invert(56%) sepia(21%) saturate(1224%) hue-rotate(93deg) brightness(92%) contrast(87%);
  animation: jump-shaking 1.5s infinite;
}

.recomendation_calendar {
  display: flex;
  gap: 15px;
}
@media only screen and (max-width: 768px) {
  .recomendation_content {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@keyframes jump-shaking {
  0% { transform: translateX(0) }
  25% { transform: translateY(-9px) }
  35% { transform: translateY(-9px) rotate(17deg) }
  55% { transform: translateY(-9px) rotate(-17deg) }
  65% { transform: translateY(-9px) rotate(17deg) }
  75% { transform: translateY(-9px) rotate(-17deg) }
  100% { transform: translateY(0) rotate(0) }
}
/* END RECOMENDATION */