.paypal_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.price-card {
  position: relative;
  background-size: cover;
  padding: 20px;
  margin: 20px;
  width: 300px;
  min-height: 300px; /* Adjusted height to reduce blank space */
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.bonus-cutout {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: red;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.price-card h1 {
  color: #ffeb3b; /* Bright Yellow */
  font-size: 36px;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), -2px -2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse-shadow 1.5s infinite;
}

@keyframes pulse-shadow {
  0% {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), -2px -2px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    text-shadow: 2px 2px 16px rgba(0, 0, 0, 0.8), -2px -2px 16px rgba(0, 0, 0, 0.4);
  }
  100% {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), -2px -2px 8px rgba(0, 0, 0, 0.2);
  }
}

.price-card h2 {
  font-size: 24px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-text 3s linear infinite;
}

@keyframes rainbow-text {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.price-card h3 {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 10px;
  border: 2px solid white;
  display: inline-block;
  color: white;
}

.price-card button {
  display: block; /* Ensures the button starts on a new line */
  width: auto; /* Adjust as needed to fit the design */
  margin: 0 auto; /* Centers the button in the card if it's not full width */
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  background-color: white;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.price-card button:hover {
  background-color: #f8f8f8;
}

.price-card i {
  font-size: 50px;
  color: black;
  margin-bottom: 10px;
}

/* Modal styles */
.paypal_modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-info p {
  text-align: center;
  width: 100%;
  margin: 10px 0;
}

.modal-info p#modal-price {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 10px;
  border: 2px solid white;
  display: block; /* Changed from inline-block to block */
  color: white;
  font-size: 24px;
  width: auto; /* Automatically adjust width to content */
  max-width: 100%; /* Prevents the element from exceeding the modal width */
  box-sizing: border-box; /* Includes padding and border in the element's width */
  text-align: center;
}

.modal-info p#modal-coins {
  font-size: 36px;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  color: #ffeb3b; /* Bright Yellow */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), -2px -2px 8px rgba(0, 0, 0, 0.2);
}

.modal-info p#modal-extra-coins {
  font-size: 24px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-text 3s linear infinite;
}

.paypal_modal-content {
  position: relative; /* Necessary for the positioning of the pseudo-element */
  background-color: #fefefe; /* Fallback color if the image fails to load */
  background-image: url('/img/background_modal.jpg'); /* Insert the URL of your desired background image */
  background-size: cover; /* Ensure the background image covers the entire element */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* No repeat of the image */
  margin: 15% auto; /* Center the modal in the page */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px; /* Maximum width of the modal */
  border-radius: 10px;
  text-align: center; /* Center-aligns the text inside the modal */
  overflow: hidden; /* Ensures no overflow outside the border-radius */

  /* Semi-transparent overlay to enhance text readability */
  &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5); /* Dark overlay, adjust opacity as needed */
      border-radius: 10px; /* Ensures the overlay matches the border radius of the modal */
      z-index: -1; /* Puts the overlay behind the content inside the modal */
  }
}


.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

#payment-status-image {
  display: block;
  margin: 0 auto;
  max-width: 100px; /* Adjust size as needed */
}

.payment__container {
  width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 5rem 7rem;
  border-radius: 1.25rem;
  display: none; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25);

  @media screen and (max-width:769px) {
      width: 650px;
      padding: 3rem 7rem;
  }
  @media screen and (max-width:480px) {
      width: 350px;
      padding: 2rem 2rem;
  }
}

.payment__container-heading,
.payment__container-welcome,
.payment__container-cube,
.payment__container-text,
.payment__container-btn {
  text-align: center;
}

.payment__container-heading {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 20px;
  @media screen and (max-width:769px) {
      font-size: 3rem;
  }
  @media screen and (max-width:480px) {
      font-size: 2.3rem;
      margin-bottom: 10px;
  }
}

.payment__container-image {
  width: 100px;
  margin-bottom: 20px;
  @media screen and (max-width:480px) {
      width: 70px;
      margin-bottom: 20px;
  }
}

.payment__container-welcome {
  font-size: 3rem;
  margin-bottom: 10px;
  @media screen and (max-width:769px) {
      font-size: 2.5rem;
  }
  @media screen and (max-width:480px) {
      font-size: 1.6rem;
      margin-bottom: 5px;
  }
}

.payment__container-text {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
  @media screen and (max-width:769px) {
      font-size: 1.5rem;
  }
  @media screen and (max-width:480px) {
      font-size: 1.2rem;
      margin-bottom: 10px;
  }
}

/* Updated to use button and cursor styling */
.payment__container-btn {
  text-decoration: none;
  padding: 1rem 2.5rem;
  background: #ff4568;
  color: #fff;
  font-size: 2.2rem;
  display: inline-block;
  border-radius: 4.5rem;
  font-weight: 400;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.25);
  transition: all 0.15s ease;
  margin: 0 auto; /* Center the button */
  cursor: pointer; /* Show pointer cursor on hover */
  border: none; /* Remove default button border */
  &:hover {
      opacity: 0.8;
  }
  @media screen and (max-width:769px) {
      font-size: 1.6rem;
  }
  @media screen and (max-width:480px) {
      font-size: 1.4rem;
  }
}

#payment-status-close-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}

#payment-status-close-btn:hover {
  background-color: #c0392b;
}