/* Reset & Base Trigger Button */
.trigger-btn {
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
}

/* --- 1. Main Button Settings --- */
.open-btn {
  display: inline-block;
  padding: 0px 0px;
  background-color: none;
  color: royalblue;
  font-weight: 550;
	text-decoration: underline;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.open-btn:hover {
  background-color: aliceblue;
}

/* --- 2. Hide Checkbox --- */
.popup-checkbox {
  display: none;
}

/* --- 3. Overlay and Hidden Default State --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Dark screen tint */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; /* Ignores clicks when invisible */
  transition: opacity 0.3s ease;
}

/* --- 4. The Content Box and Scale Animation --- */
.popup-content {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 12px;
	height: auto;
  max-width: 100%;
  width: 95%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bounce effect */
}

/* --- 5. Pure CSS State Trigger Engine --- */
/* When checkbox is clicked/checked, target the sibling overlay elements */
.popup-checkbox:checked + .popup-overlay {
  opacity: 1;
  pointer-events: auto;
}

.popup-checkbox:checked + .popup-overlay .popup-content {
  transform: scale(1);
}

/* --- 6. Inner Components (Image, Texts, Close button) --- */
.popup-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.popup-title {
  margin: 16px 0 8px 0;
  font-family: sans-serif;
	text-align: center;
  color: #333333;
}

.popup-desc {
  margin: 0;
  font-family: sans-serif;
  color: #666666;
  line-height: 1.5;
  font-size: 14px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #999999;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333333;
}
