body {
  margin: 0;
  font-family: 'Comic Sans MS', cursive;
  background-color: #FFFAEE;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
    background: url('bg.jpg') repeat center center fixed;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

#lockScreen {
  text-align: center;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

#lockScreen h1 {
  color: #FF69B4;
  font-size: 1.8em;
}

input[type="password"] {
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #FFB6C1;
  outline: none;
  margin-top: 10px;
  font-size: 1em;
}

button {
  background: #FF69B4;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 10px;
  margin-top: 10px;
  cursor: pointer;
}

#errorMsg {
  color: red;
  margin-top: 10px;
}

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: pink;
  transform: rotate(45deg);
  animation: floatUp 10s linear infinite;
  opacity: 0.7;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  background: pink;
  border-radius: 50%;
}

.heart::before {
  top: -50%;
  left: 0;
  width: 100%;
  height: 100%;
}
.heart::after {
  left: -50%;
  top: 0;
  width: 100%;
  height: 100%;
}

@keyframes floatUp {
  from {
    transform: translateY(0) rotate(45deg);
    opacity: inherit;
  }
  to {
    transform: translateY(-120vh) rotate(45deg);
    opacity: 0;
  }
}
.envelope-container {
  text-align: center;
  margin-bottom: 20px;
}

#letter {
  width: 300px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#letter:hover {
  transform: scale(1.05);
}

/* Your hidden message */
#mainContent {
  display: none;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  color: #d60076;
  font-size: 1.1em;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overlay background */
#welcomeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 250, 238, 0.95); /* matches your bg theme */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  animation: fadeInOverlay 0.8s ease forwards;
}

/* Inner content */
.welcome-content {
  background: white;
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  text-align: center;
  color: #d60076;
  max-width: 400px;
  font-family: 'Comic Sans MS', cursive;
  transform: scale(0.9);
  animation: popUp 0.8s ease forwards;
}

/* Close button */
#welcomeOverlay button {
  background: #FF69B4;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
}

#welcomeOverlay button:hover {
  background: #e0579d;
}

/* Animations */
@keyframes fadeInOverlay {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes popUp {
  to {
    transform: scale(1);
  }
}
