body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  text-align: center;
  position: relative;
}
#house-img {
  max-width: 400px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#house-img:hover {
  transform: scale(1.05);
}
.invite {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  max-width: 90%;
  width: 350px;
}
.hidden {
  display: none;
}
input {
  width: 90%;
  margin: 10px 0;
  padding: 8px;
}
button {
  padding: 10px 20px;
  background: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* Added background image for RSVP form and Google map link container */
.bg-rsvp-background {
  background-image: url('https://raw.githubusercontent.com/GnandeepVenigalla/House-Warming-Ceremony/main/public/images/background-im.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #b75f16;
}

/* 1) Container sits on top of everything */
.door-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  perspective: 1200px;
  background: #f5f5dc; /* match page bg */
  overflow: hidden;
}

/* 2) Prepare the panels */
.door {
  position: absolute;
  top:   0;
  bottom:0;
  width: 50vw;    /* half the viewport width */
  height:100vh;   /* full viewport height */
  /* DOUBLE the image width, keep full height */
  background-image: url('https://github.com/GnandeepVenigalla/House-Warming-Ceremony/blob/main/public/images/maindoor.png?raw=true');
  background-size: 200% 100%;
  background-repeat: no-repeat;
  transition: transform 1s ease-in-out;
}

/* 3) Left half shows the left side of the doubled image */
.door-left {
  left: 0;
  background-position:   0% 0;
  transform-origin: left center;
}

/* 4) Right half shows the right side of the doubled image */
.door-right {
  right: 0;
  background-position: 100% 0;
  transform-origin: right center;
}

/* 5) Swing them open on `.open` */
.door-container.open .door-left  { transform: rotateY(-90deg); }
.door-container.open .door-right { transform: rotateY( 90deg); }

/* 6) Welcome title — fade out when `.open` */
.welcome-title {
  position: absolute;
  top:   60%;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #d9a943;
  z-index: 60;
  transition: opacity 0.5s ease;
}
.door-container.open #welcome-title {
  opacity: 0;
}

/* 7) Key button in front */
#key-btn {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  z-index: 60;
}