/* ===== GLOBAL ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;

  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(
    135deg,
    #1e3a8a,
    #3b82f6,
    #60a5fa
  );
}



/* ===== CARD ===== */

.container {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  padding-bottom: 100px; /* 👈 space for footer */

  position: relative; /* 👈 important */

  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(96, 165, 250, 0.25);

  animation: fadeIn 0.8s ease forwards, float 6s ease-in-out infinite;
}





/* ===== TITLE ===== */

h1 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: white;
}



/* ===== BUTTON ===== */

button {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;

  color: white;
  background: #0f172a;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
}



/* ===== JOKE BOX ===== */

#joke {
  margin-top: 30px;
  padding: 20px;

  min-height: 70px;

  font-size: 1.1rem;
  line-height: 1.6;

  color: white;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(8px);

  animation: fadeUp 0.4s ease;
}

footer {
  position: absolute;  /* 👈 makes it stick */
  bottom: 30px;        /* 👈 distance from bottom */
  left: 0;
  width: 100%;
opacity: 0.8;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}


  
  






/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
