* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #ffe6f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}
.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.message-box {
  flex: 1 1 100%;
  max-width: 100%;
  text-align: center;
  margin-bottom: 20px;
  animation: fadeIn 3s ease-in-out;
}
.message-box h1 {
  font-size: 2.5rem;
  color: #ff3399;
}
.countdown {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #333;
}
.photo-container {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
  background: transparent;
}
.photo-container img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.15);
  /* animation: fadeInPhoto 2s ease-in-out; */
}
img{
  height: 350px;
  max-height: 90vh;
  width: 80%;
  max-width: 400px;
  object-fit: contain;
  object-position: center;
  object-fit: cover;
  object-position: center;
  object-fit: fill;
  object-fit: scale-down;
  object-fit: none;
  object-fit: contain;
  object-fit: cover;
  object-fit: fill;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.15);
  animation: shakeDown 1s ease-in-out;
  background: transparent;
  margin: 0;
  padding: 0;
  display: block;
  transition: transform 0.3s ease;
  transform: translateY(0);
  will-change: transform;
  cursor: pointer;
}
.song-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 25px;
  background-color: white;
  color: #1DB954;
  font-weight: bold;
  border: 2px solid #1DB954;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.song-btn:hover {
  background-color: #1DB954;
  color: white;
}
@keyframes blink-cursor {
  0%, 100% { border-color: #ff3399; }
  50% { border-color: transparent; }
}
@media (min-width: 768px) {
  .container {
    flex-direction: row;
  }
  .message-box {
    flex: 1 1 50%;
    text-align: left;
    max-width: 50%;
  }
  .photo-container {
    flex: 1 1 50%;
    max-width: 50%;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shakeDown {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 0; }
  30% { transform: translateY(0) rotate(2deg); opacity: 1; }
  60% { transform: translateY(-5px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes fadeInPhoto {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
.cursor {
  border-right: 3px solid #ff3399;
  animation: blink-cursor 0.8s steps(1) infinite;
}
