/* Reset some defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-image: url('img/card3.webp');
 /* background-size: 100%; */
  color: rgb(250, 250, 252);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 30px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 0px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
  
}

h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem); /* responsive between 1.8rem and 3rem */
}


@keyframes slideInRightBounce {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  60% {
    opacity: 1;
    transform: translateX(-20px);
  }
  80% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

.header-animate {
  animation: slideInRightBounce 5s ease-out forwards;
}



main {
  flex: 1;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card-container .card {
  background-color: rgba(255, 255, 255, 0.8); /* very transparent white */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}


/* Unique backgrounds per card */
.apple-bg {
  background-image: url('img/card.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px;     /* match the card's rounded style */
}



.ebay-bg {
  background-image: url('img/card2.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}

.sephora-bg {
  background-image: url('img/card4.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}

.razergold-bg {
  background-image: url('img/card5.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}

.nike-bg {
  background-image: url('img/card6.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}

.playstation-bg {
  background-image: url('img/card7.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}

.visa-bg {
  background-image: url('img/card8.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}

.mastercard-bg {
  background-image: url('img/card9.jpg');  /* adjust path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;           /* ensures the form isn't flush with edges */
  border-radius: 20px; 
}


/* Initial state: cards are slightly translated down and transparent */

/* Initial state: cards are slightly translated down and transparent */


/* When cards become visible, slide them up and fade in */
.card.slide-in {
  opacity: 1;
  transform: translateY(0);
}


.card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 15px;
  color: #02050a;
  font-size: 1.6rem;
  text-align: center;
}

label {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  color: #080505;
}

input[type="number"],
input[type="email"],
input[type="text"],
select {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="number"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 6px #0070f3aa;
}

button {
  margin-top: auto;
  padding: 12px 20px;
  font-size: 1.1rem;
  background-color: #0070f3;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #005bb5;
}

.cashapp-input {
  margin-top: -10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #555;
}

.cashapp-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.form-status {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: green;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .card {
    padding: 20px 15px;
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0; /* top/right/bottom/left = 0 */
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show modal */
.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Modal box */
.modal-content {
  background: white;
  max-width: 450px;
  width: 90%;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 25px 50px rgba(0, 112, 243, 0.3);
  text-align: center;
  animation: modalFadeIn 0.35s ease forwards;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modal header */
.modal-content h2 {
  margin-bottom: 15px;
  font-size: 2.2rem;
  color: #0070f3;
  font-weight: 700;
}

/* Modal text */
.modal-content p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 25px;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
  font-weight: 700;
}

.modal-close:hover {
  color: #0070f3;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container styling */
.sliding-message-container {
  width: 100%;
  background-color: #09121b;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  padding: 10px 0;
}

/* The sliding text */
.sliding-message {
  display: inline-block;
  white-space: nowrap;
  font-size: 1rem;
  color: #fff;
  padding-left: 100%;
  animation: slide-left 18s linear infinite;
}

/* Email link style */
.sliding-message a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

/* Keyframes for sliding animation */
@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive font scaling */
@media (max-width: 600px) {
  .sliding-message {
    font-size: 0.9rem;
  }
}



