.bg-container {
  background-image: url("/assets/bg4.jpg");
  background-size: cover;
  background-position: center;
}

/* @media screen and (max-width: 700px) {
  .bg-container {
    height: auto;
  }
}

@media screen and (min-width: 701px) {
  .bg-container {
    height: 800px;
  }
} */

.blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

.block {
  width: 400px;
  height: 330px;
  text-align: center;
  position: relative;
  border: 2px solid #ffffff00;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 10px;
  background-color: rgba(109, 136, 146, 0.3);
  backdrop-filter: blur(10px);
}

/* .block:hover {
  padding-top: 10px;
  padding-bottom: 40px;
} */

/* .block .description-text {
  font-size: 25px;
} */

.block:hover .block-content {
  /* animation: moveTextUp 0.3s forwards; */
}

/* @keyframes moveTextUp {
  from {
    width: 400px;
    height: 330px;
  }
  to {
    width: 420px;
    height: 350px;
  }
} */

/* .block:hover:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; */
  /* animation: grow 0.3s ease forwards; */
/* } */

/* @keyframes grow {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
} */

.block .block-content {
  position: absolute;
  bottom: 20px;
  width: 100%;
  transition: all 0.3s ease;
}

.block a {
  text-decoration: none;
  color: #fff;
  width: 90%;
  display: block;
  margin: 0 auto;
  padding: 20px;
  font-weight: bold;
  height: 100%;
}

.block a:hover {
  /* color: #000; */
}

.block i {
  margin-top: 10px;
  font-size: 24px;
}

.block .description-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* top: 38%;
  left: 50%;
  transform: translate(-50%, -50%); */
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-size: 13px;
  width: 90%;
  height: 75%;
  /* margin: auto; */
  font-weight: normal;
}

.block:hover .description-text {
  /* display: block; */
  opacity: 1;
}

.block-title {
  position: absolute;
  bottom: 50%; /* Adjusted positioning */
  left: 50%;
  top: 35%;
  transform: translateX(-50%);
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 19px; /* Adjusted font size */
  margin: 0 0 auto auto;
  /* white-space: nowrap; Ensure the title stays on a single line */
}

/* .block:hover .block-title {
  transform: translate(-50%, -150%); Adjusted positioning using transform
  opacity: 0;
} */

.main-text {
  position: absolute;
  bottom: 20px;
  width: 100%;
  transition: bottom 0.3s ease;
}

.block:nth-child(1) .block-title {
  font-size: 25px;
}

.block .description-text {
  font-size: 20px;
}

@media screen and (max-width: 800px) {
  .block-title {
    display: none;
  }

  .mx-auto {
    max-width: calc(100% - 20px);
    padding: 0 10px;
  }

  .block-title {
    font-size: 16px; /* Adjusted font size */
    transform: translate(-50%, -150%);
  }

  .block .description-text {
    /* display: block; */
    opacity: 1;
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    /* font-size: 18px; */
    color: #fff;
  }
}

@media screen and (max-width: 600px) {
  .block-title {
    display: none;
  }

  .block-title {
    font-size: 12px; /* Adjusted font size */
    transform: translate(-50%, -150%);
  }

  .block .description-text {
    /* display: block; */
    opacity: 1;
    font-size: 18px;
    /* transform: translate(-50%, -20%); */
  }
}

@media screen and (max-width: 400px) {
  .block-title {
    font-size: 12px; /* Adjusted font size */
    transform: translate(-50%, 50%);
    white-space: normal; /* Ensure the title stays on a single line */
  }

  .block .description-text {
    /* display: block; */
    opacity: 1;
  }
}

.block:nth-child(1) {
  background-color: rgba(255, 255, 255, 0.8); /* First color with 30% opacity */
  color: rgba(218, 28, 92, 0.8);
}

.block:nth-child(2) {
  background-color: rgba(
    182,
    186,
    226,
    0.8
  ); /* Second color with 30% opacity */
}

.block:nth-child(3) {
  background-color: rgba(126, 214, 249, 0.8); /* Third color with 30% opacity */
}

.block:nth-child(4) {
  background-color: rgba(
    253,
    228,
    126,
    0.8
  ); /* Fourth color with 30% opacity */
}

.block:nth-child(5) {
  background-color: rgba(247, 121, 121, 0.8); /* Fifth color with 30% opacity */
}

.block:nth-child(6) {
  background-color: rgba(156, 222, 115, 0.8); /* Sixth color with 30% opacity */
}

/* Add more nth-child rules for additional blocks if needed */

button {
  background-color: #ffffff00;
  color: #ffffff;
  /* margin-top: 50px; */
  padding: 15px;
  margin-top: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 90%;
  height: 5rem;
  bottom: 10%;
  z-index: 999;
  border: 3px solid #fff;
  font-size: 18px;
}

.block-title-button {
  font-size: 18px;
}

button:hover {
  background-color: #fff;
  color: #9f1f63; /* Change the text color on hover */
}

.block:nth-child(1) .block-title-button {
  color: #9f1f63;
}

@media screen and (max-width: 600px) {
  .block .description-text {
    font-size: 25px;
  }
}

@media screen and (max-width: 400px) {
  .block:nth-child(2) .block-title-button {
    font-size: 14px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }
}

@media screen and (max-width: 350px) {
  .block .description-text {
    font-size: 18px;
  }

  .block:nth-child(1) .block-title-button {
    font-size: 12px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }

  .block:nth-child(2) .block-title-button {
    font-size: 12px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }

  .block:nth-child(3) .block-title-button {
    font-size: 12px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }
  .block:nth-child(4) .block-title-button {
    font-size: 14px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }
  .block:nth-child(5) .block-title-button {
    font-size: 14px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }
  .block:nth-child(6) .block-title-button {
    font-size: 14px;
    width: 100%;
    text-wrap: wrap;
    padding: 0;
  }
}