body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e2eef5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  padding: 20px;
  box-sizing: border-box;
}

#loading-container {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}

#app-container {
  display: none;
  width: 100%;
  /* Let the inner .card define its own width and padding */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 100;
  /* Absolute positioning for crossfade */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 20px));
}
#app-container.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}
#app-container.static {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: auto;
}

.error {
  color: red;
  text-align: center;
  margin-top: 20px;
}

.success {
  color: green;
}

.event-details {
  text-align: center;
}
.event-details h2 {
  color: #333;
  margin-bottom: 10px;
}
.event-details p {
  color: #555;
  line-height: 1.6;
}

.rsvp-form {
  margin-top: 30px;
  text-align: left;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}
.rsvp-form label {
  display: block;
  margin-bottom: 10px;
  color: #333;
}
.rsvp-form button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}
.rsvp-form button:hover {
  background: #ff5252;
}

#rsvp-message {
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
}

.envelope-wrapper {
  position: relative;
  width: 400px;
  height: 260px;
  cursor: pointer;
  perspective: 1500px;
  transform: scale(1);
  transition: transform 0.3s ease;
  margin: auto;
}
@media (max-width: 450px) {
  .envelope-wrapper {
    transform: scale(0.8);
  }
}
@media (max-width: 350px) {
  .envelope-wrapper {
    transform: scale(0.65);
  }
}
.envelope-wrapper.flip .envelope-inner {
  transform: rotateY(180deg);
}
.envelope-wrapper.flip .envelope-front {
  box-shadow: none;
}
.envelope-wrapper.flip .front-content {
  opacity: 0;
}
.envelope-wrapper.flip:hover:not(.open) .flap {
  transform: rotateX(20deg);
}
.envelope-wrapper.open .envelope-inner {
  transform: rotateY(180deg) translateY(50px);
}
.envelope-wrapper.open .flap {
  transform: rotateX(180deg);
  z-index: 1;
  filter: drop-shadow(0 0 0 transparent);
}
.envelope-wrapper.open #dummy-card {
  transform: translateY(-200px);
  opacity: 0;
}

.envelope-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}

.envelope-front, .envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.envelope-front {
  background-color: #fdfbf7;
  border: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: box-shadow 0.6s ease;
}

.stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 55px;
  transform: rotate(3deg);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 2px;
  box-sizing: border-box;
}
.stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

.postmark {
  position: absolute;
  top: 15px;
  right: 45px;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(100, 100, 100, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  pointer-events: none;
  opacity: 0.4;
}
.postmark::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(100, 100, 100, 0.3);
  border-radius: 50%;
}

.postmark-text {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.6rem;
  color: rgba(100, 100, 100, 0.6);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.postmark-lines {
  position: absolute;
  top: 50%;
  right: -30px;
  width: 40px;
  height: 20px;
  transform: translateY(-50%);
  border-top: 2px solid rgba(100, 100, 100, 0.3);
  border-bottom: 2px solid rgba(100, 100, 100, 0.3);
}
.postmark-lines::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(100, 100, 100, 0.3);
  transform: translateY(-50%);
}

.front-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0s linear 0.2s;
}

.guest-name {
  font-family: "Luxurious Script", cursive;
  font-size: 3.5rem;
  color: #93b1c3;
  padding: 20px;
}

.envelope-back {
  background-color: transparent;
  transform: rotateY(180deg);
  z-index: 1;
  box-shadow: none;
}

.envelope-inside {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e8e3d5;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05), 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 0;
}

.envelope-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.envelope-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 200px solid #f0ece1;
  border-right: 200px solid #f0ece1;
  border-bottom: 130px solid #e8e3d5;
  border-top: 130px solid transparent;
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-top: 150px solid #fdfbf7;
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 5;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.05));
}

#dummy-card {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 370px;
  height: 230px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.8s, opacity 0.4s 1.4s;
  z-index: 2;
  border: 1px solid #f0f0f0;
  opacity: 1;
}

#invite-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.card {
  width: 100%;
  max-width: 520px;
  min-height: 700px;
  background: repeating-linear-gradient(to right, #f5f3e0, #f5f3e0 6px, #c3cfa6 6px, #c3cfa6 8px);
  padding: 40px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
}
@media (max-width: 480px) {
  .card {
    padding: 14px;
    min-height: 550px;
  }
}

.card-inner {
  flex: 1;
  background-color: #fdfbf7;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  position: relative;
  box-shadow: 1px 1px 4px -1px rgba(0, 0, 0, 0.15);
}
.card-inner p {
  margin: 0;
}
@media (max-width: 480px) {
  .card-inner {
    padding: 40px 20px;
  }
}

body {
  font-family: "Cormorant Garamond", serif;
  color: #93b1c3;
  font-size: 1.1rem;
  line-height: 1.4;
}

h2 {
  font-weight: normal;
  word-spacing: 0.2em;
  margin: 0;
  margin-bottom: 0.6em;
}

h2, p.focus {
  font-size: 1.5rem;
}

p.focus {
  margin: 2em 0;
}

.typography-names {
  font-family: "Great Vibes", cursive;
  font-size: 5rem;
  color: #517791;
  line-height: 1.1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.03);
}
@media (max-width: 480px) {
  .typography-names {
    font-size: 3.2rem;
  }
}

.typography-ampersand {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 2rem;
  color: #93b1c3;
  display: inline-block;
  margin: 10px 0;
}

.typography-bride {
  font-family: "Monsieur La Doulaise", cursive;
  font-size: 1.05em;
}

.typography-groom {
  font-family: "Herr Von Muellerhoff", cursive;
  font-size: 1.05em;
}

.typography-details {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: #93b1c3;
  line-height: 1.6;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .typography-details {
    font-size: 1.1rem;
  }
}

.divider {
  width: 40px;
  height: 2px;
  background-color: #517791;
  margin: 25px auto;
}

.rsvp-section {
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0);
  padding: 20px;
}

#rsvp-form {
  display: flex;
  text-align: left;
  justify-content: space-between;
  align-items: stretch;
}
#rsvp-form button {
  margin: 0;
}

#rsvp-message {
  position: fixed;
}

/*# sourceMappingURL=style.css.map */
