*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: linear-gradient(to bottom right, #f8f9fa, #e9ecef); /* Light gray gradient */
  color: #212529;
  font-size: 16px;
  transition: background-color 0.5s ease; /* Smooth background transitions */
}

.card {
  position: relative; /* For positioning message overlay */
  display: flex;
  flex-direction: column; /* Allow content to stack */
  justify-content: center;
  align-items: center;
  width: min(100% - 2rem, 300px); /* Smaller card for just a button */
  height: min(100% - 2rem, 300px); /* Make it square */
  padding: 1rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-out;
}

button#clickButton {
  width: 180px;
  height: 180px;
  margin: 0;
  padding: 0;
  border-radius: 50%; /* Make it round */
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(45deg, #6dd5ed, #2193b0); /* Soft blue gradient */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  animation: appearFromBottom 0.6s ease-out 0.2s forwards; /* Page load animation */
}

button#clickButton:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

button#clickButton:active {
  transform: scale(0.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-pop-animation {
  animation: buttonPop 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes buttonPop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.95);
  }
  70% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes appearFromBottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-overlay {
  position: absolute;
  top: 20%; /* Position above the center of the card */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: #343a40;
  opacity: 0;
  pointer-events: none; /* Allow clicks to pass through */
  text-align: center;
  width: 90%; /* Ensure text wraps within the card */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  z-index: 10; /* Ensure it's above other elements */
}

.message-overlay.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px); /* Move up slightly on show */
}

.card-easter-egg {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
}
