@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700&display=swap");

li {
  list-style: none;
  display: inline;
}

a {
  text-decoration: none;
}

body {
  background-size: cover;
  background-position: center top 15vh;
  background-repeat: repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: rgb(200, 71, 71);
  font-family: "Montserrat", sans-serif;
}

.navbar {
  display: inline;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: rgb(255, 70, 70);
}

.nav-link {
  display: inline;
  padding: 0.5rem 1rem;
  color: rgb(255, 70, 70);
  transition: 0.5s;
}

.nav-link:hover {
  transition: 0.5s;
  color: #051602;
}

header {
  height: 100vh;
}

.container {
  background-color: #fff;
  padding: 0;
  margin: 0;
  width: 100vw;
}

.event {
  width: 20vw;
  margin-top: 3vw;
  margin-left: 4vw;
  float: left;
}

.event img {
  width: 100%;
}

.event-card {
  margin-left: 6vw;
  margin-top: 4vw;
  float: left;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  display: grid;
  place-content: center;
  background-color: #000000;
  color: #15928A;
  font-size: 1.5rem;
  height: 25vw;
  width: 25vw;
  cursor: pointer;
}

.event-poster {
  border-radius: 12px;
  height: 25vw;
  width: 25vw;
  scale: 1px;
  ;
  transition: all .9s ease;
}

.event-poster:hover {
  opacity: 0.5;
  transform: scale(1.15);
}

.event-overlay {
  position: absolute;
  width: 100%;
  height: 50%;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-image: linear-gradient(to bottom, rgba(245, 246, 252, 0), rgba(0, 0, 0, 0.679), rgb(0, 0, 0));
  cursor: pointer;

}

.event-details {
  margin: 10px;
  position: absolute;
  width: 100%;
  height: 100%;
}

.eventheading {
  position: absolute;
  left: 20px;
  top: 10px;
  margin-bottom: 0;
  font-size: 1.5vw;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.eventicon {
  position: absolute;
  height: 15px;
  width: 15px;
}

.event-card:hover .eventicon {
  transform: scale(1);
}

.event-details ul {
  position: absolute;
  width: 100%;
  margin: 0;
  top: 39%;
  padding-left: 1.5vw;
}

.event-details ul li p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: white;
  margin-bottom: 1;
  font-size: 1.1vw;
  position: relative;
  left: 6%;
}

.tont {
  position: absolute;
  bottom: 10%;
  right: 5%;
  font-size: 1vw;
  z-index: 2;

}

.tont a {
  color: rgb(255, 255, 255);
}


/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top */
  padding-top: 100px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
}



/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content,
#caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0)
  }

  to {
    -webkit-transform: scale(1)
  }
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

@media screen and (max-width: 1024px) and (min-width: 200px) {
  .container ul {
    margin-left: -10vw;
  }

  .event-card {
    margin-left: 15vw;
    margin-bottom: 4vw;
    height: 70vw;
    width: 70vw;
  }

  .event-poster {
    height: 70vw;
    width: 70vw;

  }

  .event-details ul li p {
    font-size: 3.5vw;
  }

  .eventheading {
    font-size: 3.5vw;
  }

  .tont {
    font-size: 4vw;
  }

  #samsaram {
    left: -5px;
  }

}

#samsaram {
  top: -8px;
}