/* CSS Styling for Event cards - events.html */

* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
}
::-webkit-scrollbar{
    width: 12px;
    
}
::-webkit-scrollbar-thumb{
    
    border-left: 1px solid white;
    border-top: 1px solid white;
    border-radius: 10px;
    background-color: #88aeff;
}
::-webkit-scrollbar-track{
  
  height: 100%;
  background-color: rgb(255, 255, 255);
}
iframe {
  scrollbar-width: none; /* For Firefox */
}

iframe::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}
.area {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  display: grid;
  place-items: center;

  grid-template-columns: 50% auto;
}

.crd {
  width: 42vw;
  aspect-ratio: 5/4;
  margin: 6%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 10px 15px 1px rgba(0, 0, 0, 0.2);
  border-bottom: 0.4vw solid #57aeff;
}
.crd:hover {
  border-bottom: 0.4vw solid #202020;
  transition: 300ms ease;
  box-shadow: 0px 0px 2vw 0.5vw rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.upr {
  aspect-ratio: 5/3;
  width: 100%;
  background-color: rgb(255, 255, 255);
  border-top-left-radius: 2vw;
  border-top-right-radius: 2vw;
  overflow: hidden;
}
.upr img {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.lwr {
  height: fit-content;

  margin-bottom: 2vw;
  width: 100%;
  background-color: rgb(255, 255, 255);
  border-bottom-left-radius: 2vw;
  border-bottom-right-radius: 2vw;
  border-top: 0.2vw solid rgb(59, 59, 59, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crd-title {
  width: 94%;
  height: fit-content;
  margin-left: 3%;
  margin-right: 3%;
  text-align: justify;
  margin-top: 10px;
  font-weight: 700;
  color: rgb(46, 46, 46);
  font-size: min(3vw, 36px);
}
.crd-status {
  margin-left: 3%;
  margin-right: 3%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: min(1.5vw, 20px);
}

@media only screen and (max-width: 600px) {
  .area {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    display: grid;
    place-items: center;

    grid-template-columns: none;
  }
  .crd {
    width: 100%;
    aspect-ratio: 5/4;
    margin: 6%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 10px 15px 1px rgba(0, 0, 0, 0.2);
    border-bottom: 0.4vw solid #57aeff;
  }
  .crd-status {
    margin-left: 3%;
    margin-right: 3%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: min(1.9vw, 25px);
  }
}


@keyframes carouselAnim {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(calc(-100% + (6*300px)));
  }
}

@media only screen and (max-width: 768px) {
  .container .carousel-items {
    animation: carouselAnim 60s infinite alternate linear;
  }
  @keyframes carouselAnim {
    from {
      transform: translate(0, 0);
    }
    to {
      transform: translate(calc(-100% + (5*300px)));
    }
  }
}

.carousel-focus:hover {
  transition: all 0.8s;
  transform: scale(1.1);
}