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

body {
  background: #1e1f22;
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 40px;
}

.subtitle {
  text-align: center;
  color: #a9adb8;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #2b2d31;
  border: 1px solid #3a3d44;
  border-radius: 16px;
  padding: 30px;
  width: 280px;
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.card:hover {
  transform: translateY(-5px);
  border-color: #6c7cff;
}

.card h2 {
  margin-bottom: 10px;
}

.back-btn,
.reset-btn,
.hint-btn {
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.back-btn {
  background: #3b82f6;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 25px;
}

.back-btn:hover {
  background: #2563eb;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.item {
  background: #2b2d31;
  border: 1px solid #3a3d44;
  border-radius: 14px;
  padding: 18px;
}

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.hint-btn {
  background: #444857;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
}

.hint-btn:hover {
  background: #5a6073;
}

.hint {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.hint.active {
  max-height: 100%;
  margin-top: 18px;
}

.hint-content {
  background: #202226;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #383c45;
}

.hint-content p {
  margin-bottom: 14px;
  color: #d4d4d4;
}

pre {
  background: #111317;
  color: #7ee787;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.hint-content img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #444;
  cursor: zoom-in;
}

.reset-btn {
  margin-top: 30px;
  background: #ef4444;
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
}

.reset-btn:hover {
  background: #dc2626;
}

.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);

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

  z-index: 9999;

  animation: fadeIn 0.3s ease;
  cursor: zoom-out;

  padding: 20px;
}

.image-overlay img {
  max-width: 95%;
  max-height: 95%;

  object-fit: contain;

  border-radius: 12px;

  animation: zoomIn 0.3s ease;
}

@media (orientation: landscape) and (max-height: 600px) {
  .image-overlay img {
    max-height: 98vh;
    max-width: 98vw;
  }
}

.image-overlay.hide {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}
