
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #e8dfd1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: Georgia, serif;
}

.room {
  position: relative;
  width: min(100%, 1000px);
  margin: 24px auto;
}

.room-image {
  display: block;
  width: 100%;
  height: auto;
}

.welcome {
  position: absolute;
  top: 3%;
  left: 4%;
  margin: 0;
  padding: 8px 12px;
  background: #fff8e9;
  color: #604d45;
  transform: rotate(-4deg);
  box-shadow: 2px 3px 5px #0002;
  font-size: clamp(14px, 2vw, 21px);
}
  
.hotspot {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.october-spot {
  /*adjust this to drawing */
  top: 300px;
  left: 515px;
  width: 5%;
  height: 5%;
}

.october-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.record-spot {
  top: 500px;
  left: 110px;
  width: 10%;
  height: 10%;
}

.record-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.mirror-spot {
  top: 175px;
  left: 390px;
  width: 5%;
  height: 5%;
}

.mirror-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.uggy-spot {
  top: 400px;
  left: 780px;
  width: 8%;
  height: 8%;
}

.uggy-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.trash-spot {
  top: 300px;
  left: 365px;
  width: 5%;
  height: 5%;
}

.trash-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.mug-spot {
  top: 215px;
  left: 150px;
  width: 5%;
  height: 5%;
}

.mug-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.poem-spot {
  top: 635px;
  left: 185px;
  width: 7%;
  height: 7%;
}

.poem-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.laundry-spot {
  top: 550px;
  left: 350px;
  width: 10%;
  height: 10%;
}

.laundry-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.blanket-spot {
  top: 550px;
  left: 780px;
  width: 10%;
  height: 10%;
}

.blanket-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.computer-spot {
  top: 125px;
  left: 30px;
  width: 10%;
  height: 10%;
}

.computer-spot:hover {
  background: #ffffff22;
  outline: 2px dashed #8b6d60;
}

.computer-spot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-image {
  width: 70%;
  height: auto;
  display: block;
  pointer-events: none;
}

.spotify-player {
  position: absolute;
  top: 55%;       /* adjust */
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 85%);
  padding: 8px;
  background: #f5ead6;
  border: 2px solid #6d5948;
  border-radius: 8px;
  box-shadow: 3px 4px 0 #0003;
  z-index: 20;
}

.spotify-player[hidden] {
  display: none !important;
}

.spotify-close {
  display: block;
  margin-left: auto;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #6d5948;
}

.spotify-player iframe {
  display: block;
  border: 0;
  border-radius: 8px;
}


#message-image {
  display: block;
  max-width: min(75vw, 500px);
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#message-image[hidden],
#message-text[hidden] {
  display: none !important;
}

.message {
  position: absolute;
  z-index: 10;
  top: 35%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: min(80%, 300px);
  padding: 24px;
  background: #fff8e9;
  color: #604d45;
  text-align: center;
  box-shadow: 3px 5px 12px #0003;
}

.close {
  position: absolute;
  top: 5px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

.couple-poster {
  position: absolute;

  /* Adjust these to fit the space above your bed */
  top: 60px;
  left: 625px;
  width: 25%;

  height: auto;
  z-index: 2;
  
  filter: saturate(65%) contrast(85%) brightness(105%);

  /* Slightly crooked, like a real poster */
  transform: rotate(-3deg);

  /* Soft shadow against the wall */
  box-shadow: 2px 4px 8px #0003;
}

.pic-poster {
  position: absolute;

  /* Adjust these to fit the space above your bed */
  top: 45px;
  left: 685px;
  width: 13%;

  height: auto;
  z-index: 2;

  /* Slightly crooked, like a real poster */
  transform: rotate(2deg);
  
  filter: saturate(65%) contrast(85%) brightness(105%);

  /* Soft shadow against the wall */
  box-shadow: 10px 2px 20px #0003;
}

.clear-tape {
  position: absolute;

  /* Adjust these to fit the space above your bed */
  top: 17px;
  left: 725px;
  width: 6%;

  height: auto;
  z-index: 2;

  /* Slightly crooked, like a real poster */
  transform: rotate(-2deg);

}

.letter-button,
.playlist-link {
  display: inline-block;
  padding: 10px 16px;
  margin: 8px;
  border: 2px solid #8a5265;
  border-radius: 6px;
  background: #f8dce5;
  color: #66364a;
  font-family: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.letter-button:hover,
.playlist-link:hover {
  background: #edb9cb;
  transform: rotate(-2deg);
}


/*positioning container */
.hotspot {
  position: absolute;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* The little heart decal */
.heart-decal {
  position: absolute;
  width: 28px;
  height: auto;

  /* Place it near the top-right of each hotspot */
  top: -12px;
  right: -10px;

  pointer-events: none;
  transition: transform 0.2s ease;
}

/* A little movement when you hover */
.hotspot:hover .heart-decal {
  transform: scale(1.25) rotate(12deg);
}

.letter-button,
.playlist-link {
  display: inline-block;
  padding: 10px 16px;
  margin: 8px;
  border: 2px solid #8a5265;
  border-radius: 6px;
  background: #f8dce5;
  color: #66364a;
  font-family: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.letter-button:hover,
.playlist-link:hover {
  background: #edb9cb;
  transform: rotate(-2deg);
}

#celebration {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 24px 16px;
}

#celebration h1 {
  position: relative;
  z-index: 2;
  color: #b64f77;
}

#celebration p,
#celebration a {
  position: relative;
  z-index: 2;
}

#confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#confetti span {
  position: absolute;
  top: -20px;
  color: #d76d96;
  font-size: 22px;
  animation: fall 3s linear infinite;
}

@keyframes fall {
  from {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translateY(280px) rotate(360deg);
    opacity: 0;
  }
}

[hidden] {
  display: none !important;
}

/* Image popup styling */
#message.image-mode {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: 90%;
}

/* Keep images centered and properly sized */
#message.image-mode #message-image {
  display: block;
  position: static;
  transform: none;
  width: 400px;
  height: 400px;
  max-width: 80vw;
  max-height: 75vh;
  object-fit: contain;
  margin: 0 auto;
}

/* Keep the close button visible over the image */
#message.image-mode .close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  background: #fffaf0;
  border-radius: 50%;
}