/* File style.css yang sudah diperbaiki */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', 'Comic Neue', sans-serif;
  /* Background gambar */
  background-image: url('hahaha-simpsons.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Overlay transparan agar teks lebih kontras (cocok untuk background biru apapun) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,30,0.5) 100%);
  z-index: 0;
}

/* Container card dengan efek kaca (glassmorphism) */
.container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 2rem;
  max-width: 750px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.3s;
}

.container:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

/* Judul */
h1 {
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

/* Gambar kecil di atas (opsional) */
.top-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

/* Kotak Joke */
.joke-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 30px;
  font-size: 1.3rem;
  color: #0a2f44;
  margin: 1.5rem 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-left: 8px solid #ffd966;
}

/* Tombol */
button {
  background: #ffd966;
  border: none;
  padding: 12px 32px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e3c72;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  background: #ffc107;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

button:active {
  transform: scale(0.98);
}

/* Responsif */
@media (max-width: 600px) {
  .container {
    padding: 1.2rem;
  }
  .joke-box {
    font-size: 1rem;
    padding: 1.2rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}