body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('images/background.png') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  font-family: 'Great Vibes', cursive;
}

#envelope {
  width: 65%;
  max-width: 550px;
  cursor: pointer;
  transition: transform 0.3s;
}

#envelope:hover {
  transform: scale(1.05);
}

.letter-container {
  position: relative;
  width: 95%;
  max-width: 850px;
  height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.letter-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  border-radius: 8px;
}

#letter-text {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  font-size: 18px;
  color: #000;
  white-space: pre-wrap;
  z-index: 2;
  pointer-events: none;
  line-height: 1.6em;
  text-align: left;
}

@media (max-width: 600px) {
  #letter-text {
    top: 27%;            
    width: 80%;         
    font-size: 14px;
    line-height: 1.55em;
  }
}

#click-message {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 35px;
  font-weight: bold;
  color: #222;
  display: none;
  cursor: pointer;
  z-index: 5;
}

/* MOBILE */
@media (max-width: 600px) {
  #letter-text {
    top: 20%;
    width: 75%;
    font-size: 12px;
    line-height: 1.25em;
  }

}

  #click-message {
    font-size: 14px;
    bottom: 4%;
  }
}
