* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  padding: 20px;
}

/* GRID RESPONSIVE */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  background: white;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

/* BUTTON */
button {
  margin-top: 10px;
  padding: 8px 14px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

/* HOVER – saat kursor di atas button */
button:hover {
  background: #1558c0; /* biru lebih gelap */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ACTIVE – saat benar-benar diklik */
button:active {
  background: #0f4aa8; /* lebih gelap lagi */
  transform: scale(0.92);
}

/* FOCUS – saat diakses via keyboard / tap */
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.35);
}

/* ANIMASI KLIK */
button.clicked {
  transform: scale(0.9);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* ISI MODAL */
.close {
  position: absolute;
  top: 10px;
  right: 16px;
  z-index: 10;
  background: white;
  border-radius: 50%;
  padding: 2px 8px;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* IFRAME */
iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CLOSE */
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 26px;
  cursor: pointer;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 480px) {
  .modal-content {
    height: 95%;
  }
}
