/*
  ★·.·´¯`·.·★ RETRO 2000s WEDDING STYLE ★·.·´¯`·.·★
  Andrea y Mattia - China 2026
*/

body {
  font-family: 'Comic Sans MS', 'Chalkboard', cursive;
  background-color: #ffccff;
  background-image: url('https://web.archive.org/web/20090829054404im_/http://geocities.com/heartland/park/5765/star.gif');
  color: #660066;
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
}

/* Main container */
.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  border: 5px ridge #ff66cc;
  padding: 20px;
}

/* Header styling */
h1 {
  font-family: 'Times New Roman', serif;
  color: #cc0066;
  text-shadow: 2px 2px #ffccff;
  font-size: 2.5em;
}

h2 {
  color: #9933cc;
  border-bottom: 3px dotted #ff99cc;
  padding-bottom: 10px;
}

h3 {
  color: #cc0066;
}

/* Language selector */
.language-bar {
  background: linear-gradient(to right, #ff99cc, #cc99ff, #99ccff);
  padding: 10px;
  text-align: center;
  border: 3px outset #ff66cc;
  margin-bottom: 20px;
}

.language-bar a {
  margin: 0 15px;
  text-decoration: none;
  font-size: 1.5em;
}

.language-bar a:hover {
  transform: scale(1.2);
  display: inline-block;
}

/* Marquee styling */
marquee {
  background-color: #ffff99;
  color: #cc0066;
  font-weight: bold;
  padding: 5px;
  border: 2px dashed #ff6699;
  margin: 10px 0;
}

/* Photo placeholder */
.photo-placeholder {
  width: 300px;
  height: 300px;
  border: 5px double #cc0066;
  background-color: #ffe6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  font-style: italic;
  color: #999;
}

.photo-placeholder img {
  max-width: 100%;
  height: auto;
}

/* Gift tables */
table.gift-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  margin: 20px 0;
  background-color: #fff0f5;
}

table.gift-table th {
  background: linear-gradient(to bottom, #ff99cc, #ff66b2);
  color: white;
  padding: 12px;
  border: 3px outset #ff66cc;
  font-family: 'Times New Roman', serif;
  font-size: 1.1em;
  text-shadow: 1px 1px #990066;
}

table.gift-table td {
  padding: 10px;
  border: 2px inset #ffccdd;
  background-color: white;
  text-align: center;
}

table.gift-table tr:hover td {
  background-color: #fff0f5;
}

/* Gift buttons */
.gift-btn {
  background: linear-gradient(to bottom, #ff6699, #cc3366);
  color: white;
  border: 3px outset #ff99cc;
  padding: 8px 16px;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9em;
}

.gift-btn:hover {
  background: linear-gradient(to bottom, #ff99cc, #ff6699);
  border-style: inset;
}

.gift-btn:active {
  border-style: inset;
}

/* Section dividers */
.divider {
  text-align: center;
  margin: 30px 0;
}

.divider img {
  max-height: 30px;
}

/* Intro text box */
.intro-box {
  background-color: #ffe6f2;
  border: 3px double #cc0066;
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
  line-height: 1.8;
}

.no-payment-note {
  background-color: #ffffcc;
  border: 3px dashed #ff6699;
  padding: 14px;
  margin: 18px 0;
  line-height: 1.5;
}

/* Payment dialog */
.payment-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 88dvh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0;
  color: #660066;
  background: #fffafc;
  border: 5px ridge #ff66cc;
  box-shadow: 0 12px 40px rgba(102, 0, 102, 0.35);
}

.payment-dialog::backdrop {
  background: rgba(70, 0, 70, 0.68);
  backdrop-filter: blur(2px);
}

.payment-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
  background: linear-gradient(to right, #ffcced, #e6ccff);
  border-bottom: 3px dotted #ff66aa;
}

.payment-dialog__header h2 {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  line-height: 1.2;
}

.payment-dialog__eyebrow {
  font-size: 0.85rem;
  font-weight: bold;
  color: #993366;
}

.dialog-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 3px outset #ff99cc;
  background: #fff;
  color: #990055;
  font: bold 1.7rem/1 'Comic Sans MS', cursive;
  cursor: pointer;
}

.selected-gift {
  margin: 18px 20px 8px;
  padding: 14px;
  background: #ffffcc;
  border: 2px dashed #ff6699;
  font-weight: bold;
  text-align: center;
}

.payment-intro {
  margin: 0 20px 16px;
  line-height: 1.5;
}

.payment-method {
  margin: 14px 20px;
  padding: 16px;
  background: #fff;
  border: 3px double #cc66aa;
}

.payment-method h3 {
  margin: 0 0 12px;
}

.payment-method--bizum {
  background: #f2e9ff;
  border-color: #9966cc;
}

.bizum-number {
  margin: 12px 0 0;
  padding: 12px;
  background: white;
  border: 2px dashed #9966cc;
  color: #003399;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.04em;
}

.payment-details {
  margin: 0;
}

.payment-details > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dotted #ddaacc;
}

.payment-details > div:last-child {
  border-bottom: 0;
}

.payment-details dt {
  font-weight: bold;
  color: #993366;
}

.payment-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-details code {
  font-size: 0.95rem;
  color: #003399;
}

.copy-btn,
.bizum-contact {
  min-height: 42px;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 9px 14px;
  border: 3px outset #cc99ff;
  background: linear-gradient(to bottom, #cc99ff, #9966cc);
  color: white;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-hint {
  margin: 12px 0 0;
  padding: 10px;
  background: #ffffdd;
  line-height: 1.4;
}

.payment-thanks {
  margin: 18px 20px 24px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #cc0066;
}

/* Blinking text - very 2000s! */
.blink {
  animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

/* Under construction banner */
.under-construction {
  text-align: center;
  margin: 15px 0;
}

.retro-banner,
.retro-badge {
  display: inline-block;
  padding: 5px 10px;
  border: 3px outset #cccccc;
  background: #000080;
  color: #ffff00;
  font: bold 0.8rem 'Courier New', monospace;
  letter-spacing: 0.04em;
}

.retro-divider {
  display: inline-block;
  color: #ff3399;
  font-size: 1.35rem;
  letter-spacing: 0.15em;
}

.contact-icon {
  font-size: 1.8rem;
}

/* Visitor counter */
.visitor-counter {
  text-align: center;
  margin: 20px 0;
  font-size: 0.9em;
}

.visitor-counter img {
  vertical-align: middle;
}

/* Guestbook / contact section */
.contact-section {
  background-color: #e6ccff;
  border: 3px groove #9966cc;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border-top: 3px ridge #ff99cc;
  font-size: 0.9em;
  color: #996699;
}

.footer a {
  color: #cc0066;
}

/* Hearts decoration */
.hearts {
  color: #ff6699;
  font-size: 1.5em;
}

/* Currency display */
.price-eur {
  font-weight: bold;
  color: #003399;
}

.price-mxn {
  color: #006600;
  font-size: 0.9em;
}

/* Flag emojis bigger */
.flag {
  font-size: 2em;
  vertical-align: middle;
}

/* Thank you page specific */
.thank-you-container {
  text-align: center;
  padding: 50px 20px;
}

.thank-you-container h1 {
  font-size: 3em;
  color: #cc0066;
}

.thank-you-hearts {
  font-size: 3em;
  margin: 20px 0;
}

/* Mobile cards: readable without horizontal scrolling */
@media (max-width: 700px) {
  body {
    padding: 0;
    font-size: 16px;
  }

  .container {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-width: 0 3px;
  }

  .language-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: -12px -12px 18px;
    padding: 12px;
  }

  .language-bar a {
    display: inline-block;
    min-width: 44px;
    margin: 0 6px;
    font-size: 1.65rem;
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  h1 img {
    height: 28px;
  }

  h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .photo-placeholder {
    width: min(280px, calc(100vw - 54px));
    height: auto;
    aspect-ratio: 1;
  }

  .intro-box {
    padding: 15px;
    line-height: 1.55;
  }

  table.gift-table {
    display: block;
    width: 100%;
    margin: 16px 0;
    border: 0;
    background: transparent;
  }

  table.gift-table tbody {
    display: block;
  }

  table.gift-table tr:first-child {
    display: none;
  }

  table.gift-table tr:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 0 14px;
    overflow: hidden;
    background: white;
    border: 3px double #ff99cc;
    box-shadow: 3px 3px 0 #f3c4e2;
  }

  table.gift-table td {
    display: block;
    box-sizing: border-box;
    padding: 10px;
    border: 0;
    border-radius: 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  table.gift-table td:first-child {
    grid-column: 1 / -1;
    padding: 15px 12px;
    background: #fff5fa;
    border-bottom: 2px dotted #ff99cc;
    font-size: 1.05rem;
    font-weight: bold;
  }

  table.gift-table td:nth-child(2):not(:last-child),
  table.gift-table td:nth-child(3):not(:last-child) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-bottom: 1px solid #f2d6e7;
  }

  table.gift-table td:nth-child(2):not(:last-child) {
    border-right: 1px solid #f2d6e7;
  }

  table.gift-table td[colspan] {
    grid-column: 1 / -1;
    border-right: 0;
  }

  table.gift-table td:last-child {
    grid-column: 1 / -1;
    padding: 10px;
  }

  .gift-btn {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .divider {
    margin: 22px 0;
  }

  .contact-section {
    overflow-wrap: anywhere;
  }

  .payment-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-width: 4px;
  }

  .payment-dialog__header {
    padding: 15px 14px 10px;
  }

  .payment-dialog__header h2 {
    font-size: 1.25rem;
  }

  .selected-gift,
  .payment-intro,
  .payment-method,
  .payment-thanks {
    margin-left: 12px;
    margin-right: 12px;
  }

  .payment-method {
    padding: 13px;
  }

  .payment-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }

  .payment-details__iban code {
    display: block;
    font-size: 0.9rem;
  }

  .copy-btn,
  .bizum-contact {
    width: 100%;
    min-height: 48px;
  }
}

/* WebRing style footer decoration */
.webring {
  margin-top: 20px;
  padding: 10px;
  border: 2px dotted #cc99ff;
  background-color: #f0e6ff;
  font-size: 0.8em;
}

/* Email link styling */
a.email-link {
  color: #0000ff;
  text-decoration: underline;
}

a.email-link:visited {
  color: #800080;
}

/* NEW! and Updated! badges */
.badge-new {
  background-color: #ff0000;
  color: #ffff00;
  font-size: 0.7em;
  padding: 2px 5px;
  font-weight: bold;
  animation: blink-animation 1s steps(2, start) infinite;
}

.badge-hot {
  background-color: #ff6600;
  color: white;
  font-size: 0.7em;
  padding: 2px 5px;
  font-weight: bold;
}
