body {
  min-height: 200vh;
  background-color: #ececec;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Hide overflow to prevent scrollbars */
  font-family: 'Heebo', sans-serif;
}

.profile-pic-container {
  position: absolute;
  top: 0;
  left: 20px;
  margin: 10px;
  z-index: 2;
}

.profile-pic {
  width: 100px;
  height: auto;
  border-radius: 50%;
}

.welcome-message {
  text-align: center;
  position: relative;
  font-size: 36px;
  margin-top: 20px;
  font-weight: bold;
  z-index: 2;
}

.rain-container {
  height: 100vh; /* Changed to 100vh to enable rain effect on mobile */
  position: fixed;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.raindrop {
  position: absolute;
  width: 2px;
  height: 10px;
  background-color: lightblue;
  opacity: 0.8;
  animation: fall 2s linear infinite;
}

.line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0px;
  background-color: lightblue;
  transition: height 0.5s ease;
  z-index: 1;
  overflow: hidden;
}

@keyframes fall {
  from {
    transform: translateY(-20px);
  }
  to {
    transform: translateY(100vh);
  }
}

.raindrop {
  animation: fall 2s linear infinite forwards;
}

.drain {
  position: fixed; /* Changed to fixed for mobile */
  bottom: 0;
  left: 45%;
  width: 10%;
  height: 50px;
  z-index: 10;
  cursor: pointer;
}

.plug {
  position: absolute;
  top: 30px;
  left: 12px;
  width: 60px;
  height: 10px;
  background-color: #141313;
  border-radius: 10px;
}

.plug:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 26px;
  width: 4px;
  height: 10px;
  background-color: #141313;
  border-radius: 2px;
}

.hole {
  position: absolute;
  bottom: 0px;
  left: 41px;
  transform: translateX(-50%);
  width: 70px;
  height: 10px;
  background-color: #000;
  border-radius: 0 0 30px 30px;
  z-index: 2;
  background: radial-gradient(ellipse at center, #555 0%, #000 100%);
  box-shadow: inset 0 0 10px #000000;
}

#mainBubble {
  position: absolute;
  bottom: 0;
  display: none;
  z-index: 15;
}

.random-bubble {
  position: absolute;
  bottom: 0;
  display: block;
  border-radius: 50%;
  z-index: 3;
}

.cards-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Increase the space between cards */
  padding: 50px;
  margin-top: 2vh;
}

.card {
  perspective: 1000px;
  width: 200px;
  height: 250px;
  margin: 15px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  transform-origin: center center;
}

/* Hover effect for non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-inner {
    transform: rotateY(180deg);
  }
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-front {
  background-color: #fff;
}

.card-back {
  background-color: #f8f8f8;
  color: #333;
  transform: rotateY(180deg);
  padding: 20px;
}

/* Rest of your CSS remains the same */

i.devicon {
  font-size: 40px;
  color: #000;
}

.icon-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 240px;
  margin: 0 auto;
}

.card-back .icon-row i {
  margin: 5px;
  font-size: 40px;
  flex: 0 0 calc(33.33% - 10px);
}

.card-back .icon-row {
  max-width: 200px;
  margin: auto;
}

.icon-row i {
  margin: 5px;
  font-size: 40px;
  flex: 0 0 30%;
}

.icon-row:last-child {
  justify-content: center;
}

@media (max-width: 600px) {
  body {
    min-height: 100vh;
    overflow: auto;
    margin: 0; /* Remove margin to fill the entire viewport */
  }

  .profile-pic-container {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .profile-pic {
    width: 80px;
  }

  .welcome-message {
    font-size: 24px;
    margin-top: 100px;
  }

  .raindrop {
    display: block; /* Enable rain effect on mobile */
  }

  .line {
    display: none;
  }

  /* Remove drain and water filling features on mobile */
  .drain {
    display: none;
  }

  /* Remove water filling features on mobile */
  .rain-container {
    display: none;
    height: 100%; /* Make sure the rain container takes full height */
  }

  .cards-container {
    padding: 20px;
    margin-top: 10px;
  }

  .card {
    width: 90%;
    margin: 10px auto;
  }

  .form-group input[type="email"],
  .form-group textarea {
    width: 100%;
  }
}
