* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Georgia', serif;
  background: url('k-t.jpeg') no-repeat center center fixed;
  background-size: cover;
  color: #fffaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.screen {
  background-color: rgba(0,0,0,0.75);
  padding: 30px;
  border-radius: 15px;
  max-width: 700px;
  width: 100%;
  animation: popup 0.5s ease;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
p {
  font-size: 1.2rem;
  line-height: 1.6;
}

input[type="text"] {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  width: 70%;
  max-width: 300px;
  margin-top: 15px;
  margin-bottom: 10px;
}
button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background-color: #fffaf6;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background-color: #f0e6d2;
}
#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, #fceabb, #f8b500);
  box-shadow:
    0 0 15px 4px rgba(255, 215, 0, 0.8),
    inset 0 0 10px 5px #fff3b0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cake-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fffaf6;
  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;
  }
}
