/* Base Styles */
body {
  background-color: white;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.container1 {
  padding: 20px;
  display: flex;
  direction: row;
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

#large {
  width: 403px;
  min-height: 700px;
  background-color: #519eba;
  text-align: center;
  transition: transform 0.5s ease-in-out;
}

#large:hover {
  transform: scale(1.05);
}

.item {
  display: block;
  width: 400px;
  height: 480px;
  overflow: hidden;
  position: relative;
  border: 2px solid #b3b3b3;
}

.cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 7.8s linear;
  transform: translateY(0);

}

.item:hover .cover-image {
  transform: translateY(-78%);
}

.cover-image2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
   transition: transform 3.6s linear;
  transform: translateY(0);

}

.item:hover .cover-image2 {
  transform: translateY(-36%);
}

.cover-image3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
 transition: transform 6.8s linear;
  transform: translateY(0);

}

.item:hover .cover-image3 {
  transform: translateY(-68%);
}

.cover-image4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 3.2s linear;
  transform: translateY(0);

}

.item:hover .cover-image4 {
  transform: translateY(-32%);
}

.cover-image6 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 6s linear;
  transform: translateY(0);

}

.item:hover .cover-image6 {
  transform: translateY(-60%);
}

.cover-image7 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 6.6s linear;
  transform: translateY(0);

}

.item:hover .cover-image7 {
  transform: translateY(-66.5%);
}
.cover-image8 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 5.95s linear;
  transform: translateY(0);

}

.item:hover .cover-image8 {
  transform: translateY(-59.5%);
}

.cover-image9 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 6.9s linear;
  transform: translateY(0);

}

.item:hover .cover-image9 {
  transform: translateY(-69%);
}
.cover-image11 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 8.52s linear;
  transform: translateY(0);

}

.item:hover .cover-image11 {
  transform: translateY(-85.2%);
}

.cover-image12 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: transform 7.55s linear;
  transform: translateY(0);

}

.item:hover .cover-image12 {
  transform: translateY(-75.5%);
}


.view-button {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  display: inline-block;
  padding: 10px 20px;
  background-color: rgb(165,42,42);
  color: white;
  border: none;
  cursor: pointer;
}


.view-button:hover {
  background-color: rgb(1,18,36);
}

.forspace {
  width: 100%;
  max-width: 900px;
  height: 150px;
  margin: 0 auto;
}

.forspace2 {
  width: 100%;
  max-width: 380px;
  height: 160px;
  margin: 0 auto;
}

.title {
  margin: 15px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #f4f4f4;
}

.para {
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: -9px;
  letter-spacing: 1px;
  text-align: justify;
}

/* Media Queries */

/* Tablets */
@media (max-width: 1024px) {
  .container1 {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  #large,
  .item {
    width: 90%;
    max-width: 500px;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  .container1 {
    gap: 20px;
    padding: 10px;
  }

  #large,
  .item {
    width: 100%;
  }

  .title {
    font-size: 20px;
    text-align: center;
  }

  .para {
    font-size: 15px;
    margin: 0 10px;
  }

  .view-button {
    font-size: 18px;
  }
}

/* Extra Small Devices */
@media (max-width: 400px) {
  .title {
    font-size: 18px;
  }

  .para {
    font-size: 14px;
  }

  .view-button {
    font-size: 16px;
  }
}