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

:root {
  --black: #000000;
  --olive: #767a3c;
  --beige: #d2b1a4;
  --blue: #90aad6;
  --white: #ffffff;
}

@font-face {
  font-family: "DolomanPavljenko";
  src: url("assets/fonts/DolomanPavljenko.otf") format("opentype");
  font-display: swap;
}

body {
  font-family: "Sofia Sans", sans-serif;
  background: linear-gradient(135deg, var(--beige) 0%, var(--blue) 100%);
  color: var(--black);
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--beige);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--olive);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#error-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.error-content {
  text-align: center;
  color: var(--beige);
}

.error-content h1 {
  font-size: 120px;
  margin-bottom: 20px;
  color: var(--olive);
}

.error-content p {
  font-size: 24px;
}

#envelope-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #e8ddd4 0%, #c4d4e8 100%);
  z-index: 9997;
  perspective: 1500px;
}

.envelope-wrapper {
  animation: envelopeAppear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes envelopeAppear {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.envelope {
  position: relative;
  width: 90vw;
  max-width: 500px;
  height: 320px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
  border-radius: 12px;
}

.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(245, 245, 245, 0.9) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    );
  border-radius: 12px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.envelope-back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.envelope-back::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.5);
}

.envelope-front {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 9;
  border-radius: inherit;
}

.envelope-flap {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(100% - 2px);
  height: 55%;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(245, 245, 245, 0.95) 100%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.015) 2px,
      rgba(0, 0, 0, 0.015) 4px
    );
  clip-path: polygon(2% 0, 98% 0, 50% 100%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transform-origin: 50% 0%;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.envelope-flap::before {
  display: none;
}

.envelope-flap::after {
  display: none;
}

.envelope-flap.opening {
  transform: rotateX(-180deg);
}

.heart-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 6;
}

.heart-image {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.heart-seal:hover .heart-image {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.heart-seal.breaking .heart-image {
  animation: heartBreak 0.8s ease-out forwards;
}

@keyframes heartBreak {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: scale(1.15) rotate(-8deg);
  }
  60% {
    transform: scale(0.85) rotate(8deg);
  }
  100% {
    transform: scale(0) rotate(20deg);
    opacity: 0;
  }
}

.click-instruction {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--olive);
  font-size: 15px;
  font-weight: 500;
  animation: instructionPulse 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes instructionPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(-3px);
  }
}

.arrow-icon {
  animation: arrowBounce 2s ease-in-out infinite;
  transform: translateX(0);
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

.click-instruction.hidden {
  animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
  }
}

.envelope-tab {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 60px;
  background:
    linear-gradient(
      180deg,
      rgba(250, 250, 250, 0.98) 0%,
      rgba(240, 240, 240, 0.98) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    );
  clip-path: polygon(
    0 0,
    100% 0,
    100% 60%,
    90% 75%,
    70% 85%,
    50% 100%,
    30% 85%,
    10% 75%,
    0 60%
  );
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(0, 0, 0, 0.05);
  cursor: grab;
  user-select: none;
  z-index: 8;
  transition: transform 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
}

.envelope-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.envelope-tab:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.envelope-tab:active {
  cursor: grabbing;
}

.envelope-tab.pulling {
  transition: none;
}

.envelope-tab.visible {
  display: block !important;
  animation: tabSlideIn 0.5s ease-out forwards;
}

@keyframes tabSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.tab-instruction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--olive);
  animation: tabBounce 2s ease-in-out infinite;
}

@keyframes tabBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.tab-instruction svg {
  margin-bottom: 2px;
}

.tab-instruction p {
  font-size: 11px;
  font-weight: 500;
}

.invitation-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: auto;
  aspect-ratio: 850 / 511;
  max-height: 75%;
  background-image: url("fon_priglos.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
}

.invitation-card.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 7;
  pointer-events: auto;
}

.invitation-card.slide-out {
  animation: cardSlideOut 1s ease-out forwards;
  z-index: 7;
}

.invitation-overlay {
  width: 100%;
  height: 100%;
  padding: 36% 8% 8% 8%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #111111;
  font-family: "DolomanPavljenko", "Sofia Sans", sans-serif;
  font-synthesis: weight;
  overflow: hidden;
}

.invite-names {
  margin: -45px -9px 1%;
  font-size: clamp(25px, 2.2vw, 39px);
  line-height: 1;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1px;
  text-shadow: 0 0 0.01px currentColor;
}

.invite-message {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 700;
  text-align: left;
  white-space: pre-line;
  max-width: 92%;
  text-shadow: 0 0 0.01px currentColor;
}

@keyframes cardSlideOut {
  to {
    transform: translate(-50%, 100vh) scale(0.8);
    opacity: 0;
  }
}

#main-content {
  min-height: 100vh;
  opacity: 0;
  animation: contentFadeIn 1s ease-in forwards;
}

@keyframes contentFadeIn {
  to {
    opacity: 1;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--beige) 0%, var(--blue) 100%);
}

.hero-content {
  padding: 20px;
  position: relative;
}

.photos-bar {
  margin-bottom: 40px;
  max-width: 100%;
  background: transparent;
}

.photos-desktop {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.photos-mobile {
  display: none;
  background: transparent;
}

.main-title {
  font-size: 64px;
  color: var(--black);
  margin-bottom: 20px;
  animation: titleSlideIn 1s ease-out;
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ampersand {
  color: var(--olive);
  font-style: italic;
}

.wedding-date {
  font-size: 28px;
  color: var(--olive);
  animation: titleSlideIn 1s ease-out 0.3s both;
  margin-bottom: 60px;
}

.hero-invitation-card {
  width: 400px;
  max-width: 90%;
  aspect-ratio: 850 / 511;
  background-image: url("fon_priglos.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  transform: rotate(-8deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: titleSlideIn 1s ease-out 0.6s both;
}

.hero-invitation-overlay {
  width: 100%;
  height: 100%;
  padding: 36% 8% 8% 8%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #111111;
  font-family: "DolomanPavljenko", "Sofia Sans", sans-serif;
  font-synthesis: weight;
  overflow: hidden;
}

.hero-invite-names {
  margin: -45px -9px 1%;
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1px;
  text-shadow: 0 0 0.01px currentColor;
}

.hero-invite-message {
  margin: 0;
  font-size: clamp(10px, 1.35vw, 16px);
  line-height: 1.12;
  font-weight: 700;
  text-align: left;
  white-space: pre-line;
  max-width: 92%;
  text-shadow: 0 0 0.01px currentColor;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--olive);
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  font-size: 42px;
  color: var(--black);
  margin-bottom: 50px;
}

.dresscode-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--beige) 100%);
}

.dresscode-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.dresscode-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dresscode-card h3 {
  font-size: 24px;
  color: var(--olive);
  margin: 0 0 15px 0;
  text-align: center;
}

.dresscode-text {
  font-size: 16px;
  color: var(--black);
  text-align: center;
  line-height: 1.5;
  margin: 0 0 25px 0;
}

.dresscode-colors {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.color-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 0;
  text-transform: lowercase;
}

.color-code {
  font-size: 14px;
  color: var(--black);
  margin: 0;
  font-family: monospace;
  opacity: 0.8;
}

.countdown-section {
  background: var(--white);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-value {
  font-size: 56px;
  color: var(--olive);
  font-weight: bold;
}

.countdown-label {
  font-size: 18px;
  color: var(--black);
  margin-top: 10px;
}

.event-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--beige) 100%);
}

.event-card {
  background: var(--white);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.event-info {
  text-align: center;
  margin-bottom: 30px;
}

.event-info h3 {
  font-size: 32px;
  color: var(--olive);
  margin-bottom: 15px;
}

.event-address,
.event-time {
  font-size: 18px;
  color: var(--black);
  margin: 10px 0;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Georgia", serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--olive);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contacts-section {
  background: var(--white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: linear-gradient(135deg, var(--beige) 0%, var(--blue) 100%);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-card h3 {
  font-size: 20px;
  color: var(--olive);
  margin-bottom: 15px;
}

.contact-name {
  font-size: 28px;
  color: var(--black);
  margin-bottom: 15px;
}

.contact-link {
  color: var(--black);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--olive);
}

footer {
  background: var(--black);
  color: var(--beige);
  text-align: center;
  padding: 40px 20px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 42px;
  }

  .wedding-date {
    font-size: 22px;
  }

  .photos-desktop {
    display: none;
  }

  .photos-mobile {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
  }

  .hero-invitation-card {
    width: 320px;
    transform: rotate(-6deg);
  }

  .hero-invite-names {
    font-size: clamp(14px, 3vw, 22px);
  }

  .hero-invite-message {
    font-size: clamp(9px, 2vw, 14px);
  }

  section h2 {
    font-size: 32px;
  }

  .dresscode-container {
    gap: 30px;
  }

  .dresscode-card {
    padding: 25px;
    min-width: 280px;
  }

  .dresscode-card h3 {
    font-size: 20px;
  }

  .dresscode-text {
    font-size: 14px;
  }

  .dresscode-colors {
    gap: 25px;
  }

  .color-circle {
    width: 70px;
    height: 70px;
  }

  .color-name {
    font-size: 16px;
  }

  .color-code {
    font-size: 12px;
  }

  .countdown {
    gap: 20px;
  }

  .countdown-value {
    font-size: 40px;
  }

  .countdown-label {
    font-size: 14px;
  }

  .event-card {
    padding: 30px 20px;
  }

  .event-info h3 {
    font-size: 24px;
  }

  .envelope {
    max-width: 420px;
    height: 280px;
  }

  .invitation-card {
    width: 90%;
    height: auto;
    aspect-ratio: 850 / 511;
    max-height: 74%;
  }

  .heart-seal {
    top: 50%;
    left: 50%;
  }

  .heart-image {
    width: 85px;
    height: 85px;
  }

  .envelope-tab {
    height: 55px;
  }

  .click-instruction {
    font-size: 14px;
  }

  .arrow-icon {
    width: 24px;
    height: 24px;
  }

  .invitation-overlay {
    padding: 20% 8.5% 10% 8.5%;
  }

  .invite-names {
    margin: 0 0 6%;
    font-size: clamp(18px, 3.2vw, 28px);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08px;
    text-shadow: 0 0 0.01px currentColor;
  }

  .invite-message {
    font-size: 17px;
    line-height: 1.2;
    max-width: 94%;
    font-weight: 700;
    text-shadow: 0 0 0.01px currentColor;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 32px;
  }

  .wedding-date {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .hero-invitation-card {
    width: 280px;
    transform: rotate(-5deg);
  }

  .hero-invite-names {
    font-size: clamp(12px, 3.5vw, 18px);
    margin: -30px -9px 1%;
  }

  .hero-invite-message {
    font-size: clamp(8px, 2.2vw, 12px);
  }

  section {
    padding: 60px 15px;
  }

  section h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .dresscode-container {
    gap: 20px;
  }

  .dresscode-card {
    padding: 20px;
    min-width: 100%;
  }

  .dresscode-card h3 {
    font-size: 18px;
  }

  .dresscode-text {
    font-size: 13px;
  }

  .dresscode-colors {
    gap: 20px;
  }

  .color-circle {
    width: 60px;
    height: 60px;
  }

  .color-name {
    font-size: 14px;
  }

  .color-code {
    font-size: 11px;
  }

  .countdown-item {
    min-width: 70px;
  }

  .countdown-value {
    font-size: 32px;
  }

  .event-card {
    padding: 25px 15px;
  }

  .contacts-grid {
    gap: 20px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .envelope {
    max-width: 340px;
    height: 240px;
  }

  .invitation-card {
    width: 92%;
    height: auto;
    aspect-ratio: 850 / 511;
    max-height: 70%;
  }

  .heart-seal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .heart-image {
    width: 70px;
    height: 70px;
  }

  .click-instruction {
    font-size: 12px;
    gap: 6px;
    left: calc(100% + 10px);
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
    transform: translateX(0);
  }

  .envelope-tab {
    width: 120px;
    height: 50px;
  }

  .tab-instruction p {
    font-size: 10px;
  }

  .invitation-overlay {
    padding: 20% 8.5% 10.5% 8.5%;
  }

  .invite-names {
    margin: 11px 0 3%;
    font-size: clamp(16px, 4.7vw, 22px);
    line-height: 1;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.06px;
    text-shadow: 0 0 0.01px currentColor;
  }

  .invite-message {
    font-size: clamp(12px, 3.3vw, 14px);
    line-height: 1.2;
    max-width: 94%;
    font-weight: 700;
    text-shadow: 0 0 0.01px currentColor;
  }
}

@media (max-width: 400px) {
  .invitation-card {
    width: 94%;
    max-height: 68%;
  }

  .invitation-overlay {
    padding: 20% 9% 11% 11%;
  }

  .invite-names {
    margin: 6px 0 3%;
    font-size: clamp(15px, 5vw, 20px);
    line-height: 1;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.06px;
    text-shadow: 0 0 0.01px currentColor;
  }

  .invite-message {
    font-size: clamp(11px, 3.5vw, 13px);
    line-height: 1.18;
    max-width: 93%;
    font-weight: 700;
    text-shadow: 0 0 0.01px currentColor;
  }
}
