* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Georgia', serif;
  color: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 🔒 First background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('7A1A0639.jpg') no-repeat center center fixed;
  background-size: cover;
  transition: opacity 1s ease-in-out;
  z-index: -2;
  opacity: 1;
}

/* 🔓 Second background (hidden at first) */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('7A1A0544.jpg') no-repeat center center fixed;
  background-size: cover;
  transition: opacity 1s ease-in-out;
  z-index: -1;
  opacity: 0;
}

/* When unlocked → fade in second photo */
body.unlocked::after {
  opacity: 1;
}

.screen {
  background-color: rgba(33, 20, 7, 0.9);
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  animation: popup 0.5s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #E37401;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #FAFAFA;
}

input[type="text"] {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #73593A;
  width: 70%;
  max-width: 300px;
  margin-top: 15px;
  margin-bottom: 10px;
  background-color: #FAFAFA;
  color: #211407;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background-color: #E37401;
  color: #FAFAFA;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #BFC0CA;
  color: #211407;
}

#error-msg {
  color: #FF6B6B;
  margin-top: 10px;
  min-height: 20px;
}

/* 🎂 Cake-style frame */
.cake-frame {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, #E37401, #492C11);
  box-shadow:
    0 0 15px 4px rgba(227, 116, 1, 0.6),
    inset 0 0 10px 5px #73593A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FAFAFA;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 💬 Side-by-side layout */
.message-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: left;
}

.message-text {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

/* ✨ Pop-up animation */
@keyframes popup {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 📱 Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1rem;
  }
  input[type="text"] {
    width: 100%;
  }
  .message-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
