@import url('https://fonts.googleapis.com/css2?family=Ruda:wght@400..900&display=swap');

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

.wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  min-height: 100vh;
  /* background-color: red; */
}

.dashed-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to right, #e7e5e4 1px, transparent 1px),
    linear-gradient(to bottom, #e7e5e4 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;

  /* Mask untuk membuat efek dashed */
  -webkit-mask-image: repeating-linear-gradient(
      to right,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    );
  mask-image: repeating-linear-gradient(
      to right,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    );

  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.invitation {
  border-radius: 1.5rem;
  /* background-color: blue; */
  transition: all 1 ease-out;
  display: flex;
  width: 98%;
  align-items: center;
  z-index: 1;
  position: relative;
  justify-content: center;
}

.invitation img {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  width: 95%;
  padding: 0.5rem;
  border-radius: 1rem;
  margin: 0.5rem;
}

.wrap-navigation {
  position: absolute;
  /* background-color: orange; */
  width: 5rem;
  height: 6rem;
  border-radius: 0.5rem;
  right: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.envelope-navigation {
  position: absolute;
  left: 1.3rem;
  z-index: 99;
}

.btn-digital-envelope,
.btn-google-maps,
.btn-back {
  border: 1.5px solid #98afd0;
  cursor: pointer;
  border-radius: 40%;
  padding: 0.5rem 0.6rem;
  animation: bounce 1.5s ease-in-out infinite alternate;
}

.btn-digital-envelope:hover,
.btn-google-maps:hover,
.btn-back:hover {
  background-color: #98afd0;
  color: white;
}

@media (width >= 360px) {
  .invitation {
    width: 100%;
  }
}

/* Tablet (iPad, Samsung Tab, Xiaomi Pad) 768px, 48 * 16 = 768px, 1 rem = 16px */
@media (width >= 48rem) {
  .invitation img {
    width: 100%;
  }

  .invitation {
    width: 74%;
  }
}

/* Laptop (13, 14, 15 inch) 1024px, 64 * 16 = 1024px, 1 rem = 16px */
@media (width >= 64rem) {
  .invitation img {
    width: 100%;
  }

  .invitation {
    width: 70%;
  }
}

/* Desktop 1280px, 80 * 16 = 1280px, 1 rem = 16px */
@media (width >= 80rem) {
  .invitation img {
    width: 92%;
  }

  .invitation {
    width: 36%;
  }
}

/* Layar Besar 1536px, 96 * 16 = 1536px, 1 rem = 16px */
@media (width >= 96rem) {
  .invitation {
    width: 70% '';
  }
}

/* Digital Envelope */
.wrap-envelope {
  width: 100dvw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ruda', sans-serif;
  font-size: 0.8rem;
  position: relative;
}

.bank {
  width: 7rem;
  background-color: white;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.envelope {
  color: white;
  text-align: center;
  overflow: auto;
  padding: 2rem;
  margin: 0 1rem;
  z-index: 1;
  max-width: 640px;
  background-color: rgb(129, 149, 180);
  border-radius: 0.5rem;
  height: 95dvh;
}

.wrap-bank {
  background-color: rgb(138, 162, 197);
  margin: 1rem;
  padding: 1rem 1rem;
  border-radius: 0.5rem;
}

.envelope p {
  margin: 1rem 0;
}

.copy-btn {
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 0.25rem;
}

.nomorBank {
  text-decoration: none;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Adjust for desired bounce height */
  }
  100% {
    transform: translateY(0);
  }
}
