/* Common */

html, body {
  background: #5b2312;
  font-family: "Quicksand", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2 {
  text-align: center;
  margin-top: 32px;
  color: #ffffff;
  font-family: "Dancing Script", cursive;
  font-size: 2.4rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.gift-card a,
.qrcode-container button {
  font-family: "Quicksand", "Segoe UI", Arial, sans-serif;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  background: #5b2312;
  color: #ffffff;
  padding: 12px 0 10px 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1.5px 6px rgba(67, 160, 71, 0.08);
  border: none;
  cursor: pointer;
  width: 70%;
}

.gift-card a:hover,
.qrcode-container button:hover {
  background: #805c51;
}

footer {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 0.93rem;
  padding: 18px 0 10px 0;
  background: linear-gradient(90deg, #5b2312 80%, #805c51 100%);
  width: 100%;
  flex-shrink: 0;
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.10);
  letter-spacing: 0.01em;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 30px;
}

footer a {
  color: #ffe6c7;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.18s;
  font-size: 1em;
}
footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* Gift Page */

#gifts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-direction: row;
}

.gift-card {
  background: #eaa995;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.09);
  border: none;
  padding: 24px 20px 20px 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 270px;
  min-height: 430px;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  justify-content: flex-start;
  gap: 14px;
}

.gift-card:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.13);
}

.gift-title {
  font-weight: 700;
  font-size: 1.18rem;
  color: #5b2312;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  letter-spacing: 0.01em;
}

.gift-price {
  font-size: 1.08rem;
  color: #5b2312;
  font-weight: 600;
  margin: 0 0 8px 0;
  padding: 4px 0;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  flex: 1;
}

.gift-card img {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  width: 180px;
  height: 180px;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
  margin: 0 auto;
}

/* QR Code Page */

.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50vh;
  gap: 18px;
  background: #eaa995;
  color: #5b2312;
  padding: 2%;
  text-align: center;
  box-sizing: border-box;
  border-radius: 6px;
}

.qrcode-container img {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  width: 240px;
  height: 240px;
  background: #f0f0f0;
  display: block;
  margin: 0 auto;
}

.qrcode-container button {
  width: 20%;
}

.qrcode-container p {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5em 0;
  margin: 0;
  word-break: break-all;
}

.back-link {
  display: block;
  margin: 32px auto 0 auto;
  text-align: center;
  background: #eaa995;
  color: #5b2312;
  font-size: 1.08rem;
  font-family: "Quicksand", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 10px 24px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s,
    text-decoration 0.18s;
  box-shadow: 0 1.5px 6px rgba(67, 160, 71, 0.08);
  width: fit-content;
}

.back-link:hover {
  background: #805c51;
  color: #ffffff;
}

/* Media Queries */

@media (max-width: 600px) {
  .qrcode-container button {
    width: 40%;
  }
}
