
body {
  font-family: 'calibri', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: white;
  overflow-x: hidden;
}

.events {
  background: url('../media/event.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-600px) scale(3);
  z-index: 1;
}

.wrapperEve {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 300px;
}

.wrapperEve::-webkit-scrollbar {
  display: none;
}

.wrapperEve {
  scrollbar-width: none;
}

.evcontainer {
  width: 99%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.event-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-content: center;
}

.event-block {
  display: flex;
  min-width: 300px;
  max-width: 48%;
  border: 2px solid rgb(16, 69, 99);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0, 0, 0);
  padding: 10px;
  background-color: rgba(16, 69, 99, 0.378);
  color: rgb(255, 255, 255);
  box-sizing: border-box;
  transition: transform 0.2s ease-in-out;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.event-block:hover {
  transform: translateY(-5px);
  background-color: rgba(16, 69, 99, 0.697);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 1);
}

.event-content {
  display: flex;
  align-items: center;
}

.event-image {
  width: 50%;
  height: auto;
  margin-right: 20px;
  border-radius: 8px;
}

.event-text {
  text-align: left;
}

.event-block h6 {
  margin-top: 0;
  font-size: 1.5vw;
  font-family: calibri, Helvetica, sans-serif;
}

.event-block p2 {
  font-family: calibri;
  margin-top: 0;
  font-size: 1vw;
  font-weight: 100;
}

.name-container-events {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../media/event.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.name-container-events h5 {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Sanskrit', serif;
  font-size: 7vw;
  text-shadow: 0 0 10px gold;
  margin: 0;
  padding: 20px;
}

.previous-event,
.upcoming-event {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 8px;
  margin: 10px auto;
  text-align: center;
  width: 100%;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.previous-event h2,
.upcoming-event h2 {
  padding: 25px;
  margin-top: 0;
  font-size: 1.5rem;
  font-family: calibri, Helvetica, sans-serif;
  color: rgb(227, 255, 167);
  text-shadow: 0 0 5px rgba(255, 215, 0, 1);
}

.previous-event p,
.upcoming-event p {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  .event-container {
    flex-direction: column;
  }

  .event-block {
    justify-content: center;
    max-width: 85%;
  }

  .event-text {
    text-align: center;
  }

  .event-content {
    flex-direction: column;
  }

  .event-image {
    width: 60%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 0px;
  }

  .event-block h6 {
    font-size: 4.5vw;
  }

  .event-block p2 {
    font-size: 3.5vw;
  }

  .name-container-events {
    height: 45vh;
  }

  .name-container-events h5 {
    font-size: 8vw;
  }

  .previous-event,
  .upcoming-event {
    padding: 10px;
    font-size: 1rem;
    max-width: 90%;
  }

  .previous-event h2,
  .upcoming-event h2 {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .event-block h6 {
    font-size: 3.5vw;
  }

  .event-block p2 {
    font-size: 1.5vw;
  }

  .name-container-events h5 {
    font-size: 8vw;
  }

  .previous-event,
  .upcoming-event {
    max-width: 600px;
    padding: 12px;
  }

  .previous-event h2,
  .upcoming-event h2 {
    font-size: 1.5rem;
  }
}
