body {
  background-image: url('pics/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  height: 100vh;
}

.top-left-image {
  position: absolute;
  top: 0;
  left: 50px;
  width: 350px;
  height: auto;
  z-index: 2;
}

#image {
  position: absolute;
  top: 100px;
  left: 65px;
  width: 219px;
  height: auto;
  z-index: 1;
}

.calendar {
  position: absolute;
  top: 310px;
  left: 70px;
  width: 175px;
  height: 175px;
  z-index: 1;
}

.button1, .button2, .button3, .button4, .button5 {
  position: absolute;
  width: 50px;
  height: auto;
  z-index: 1;
}

.button1 { top: 310px; left: 320px; }
.button2 { top: 360px; left: 260px; }
.button3 { top: 420px; left: 370px; }
.button4 { top: 430px; left: 290px; }
.button5 { top: 335px; left: 400px; }

.button {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.button:hover {
  transform: scale(1.5);
}

.collage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  z-index: 10;
  pointer-events: none;
}

.collage img {
  position: fixed;
  transition: transform 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.ladybug { top: 130px; left: 130px; width: 225px; transform: rotate(-20deg); z-index: 9; }
.bow { top: 120px; left: 220px; width: 350px; transform: rotate(0deg); z-index: 3; }
.cookie { top: 190px; left: 400px; width: 175px; transform: rotate(20deg); z-index: 5; }
.fish { top: 270px; left: 390px; width: 275px; transform: rotate(-10deg); z-index: 6; }
.girl { top: 225px; left: 50px; width: 300px; transform: rotate(-30deg); z-index: 11; }
.candle { top: 300px; left: 175px; width: 75px; transform: rotate(5deg); z-index: 10; }
.butterfly { top: 410px; left: 190px; width: 300px; transform: rotate(-5deg); z-index: 8; }
.flower { top: 440px; left: 400px; width: 125px; transform: rotate(-15deg); z-index: 4; }
.apple { top: 290px; left: 410px; width: 210px; transform: rotate(15deg); z-index: 7; }

.click-button {
  position: fixed;
  top: 300px;
  left: 270px;
  background-color: #304222;
  color: white;
  font-family: 'TAN Nimbus', serif;
  font-size: 22px;
  padding: 20px 50px;
  border-radius: 999px;
  text-align: center;
  z-index: 11;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  pointer-events: auto;
  border: none;
}

.click-button:hover {
  transform: scale(1.1);
  background-color: #4a6632;
}

.pink-circle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background-color: pink;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.star-frame {
  position: fixed;
  top: 20px;
  right: 150px;
  width: 300px;
  height: 300px;
  overflow: hidden;
  transform: rotate(-20deg); 
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.star-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.rotating-wrapper {
  width: 100%;
  height: 100%;
  animation: spin 10s linear infinite;
}

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


.filmcam {
  position: fixed;
  top: 50px;
  right: 50px;
  width: 250px;
  height: auto;
  z-index: 3;
  transform: scaleX(-1);
}


#starImage {
  transition: opacity 1s ease-in-out;
}

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

.star-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.star-image.visible {
  opacity: 1;
}


.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 200px;
  z-index: 20;
  pointer-events: auto;
}

.chat-postcard {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 1;
}

.chat-box {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.6); /* transparent overlay */
  z-index: 2;
  border-radius: 10px;
  font-family: sans-serif;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
  color: #333;
}

.chat-input {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.chat-input:focus {
  outline: none;
}
