* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 12px;
}

/* reCAPTCHA box */
.recaptcha {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 12px 16px;
  border-radius: 5px;
  border: 1px solid #d3d3d3;
  cursor: pointer;
  user-select: none;
}

.checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #777;
  border-radius: 3px;
  position: relative;
}

.checkbox.checked::after {
  content: '✔';
  position: absolute;
  font-size: 16px;
  left: 3px;
  top: -2px;
}

.logo {
  height: 26px;
  margin-left: auto;
}

/* Modal popup */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal {
  padding: 12px;
}

/* Blue top bar */
.captcha-header {
  background: #1a73e8;
  color: white;
  padding: 12px;
  font-size: 13px;
  text-align: left;
}

.captcha-header::after {
  content: 'Click verify once there are none left';
  display: block;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

.captcha-box {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 380px; /* desktop limit */
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 10px;
}

.grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  cursor: pointer;
  position: relative;
}

.grid img.selected {
  border: 3px solid #4285f4;
  transform: scale(0.97);
}

/* Blue circle selection */
.grid img.selected::after {
  content: '✔';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  background: #1a73e8;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Footer */
.captcha-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 14px 12px;
}

.captcha-icons span {
  font-size: 18px;
  margin-right: 10px;
  cursor: pointer;
}

#verifyBtn {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/* Info popup overlay */
.info-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
}

.info-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  text-align: center;
}

.info-content button {
  margin-top: 10px;
  padding: 6px 12px;
}

/* Hidden at start */
.garden {
  position: fixed;
  inset: 0;
  background: linear-gradient(#ffd6e7, #fff);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: all 1.2s ease;
}

.garden.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Her big photo */
.main-photo {
  max-width: 70%;
  max-height: 70%;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.slideshow {
  position: relative;
  width: 70%;
  max-width: 500px;
  height: 70%;
  z-index: 2;
  overflow: hidden; /* important */
}

.slide {
  position: absolute; /* KEY FIX */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 3;
}

.lock-screen {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lock-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 280px;
}

.lock-box input {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 16px;
}

.lock-box button {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

#lockInput {
  letter-spacing: 2px;
  font-size: 18px;
  text-align: center;
}

.captcha-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.2s;
}

.captcha-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 10000;
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  padding: 35px;
  border-radius: 16px;
  text-align: center;

  transform: scale(0.85);
  transition: transform 0.5s ease;
}

.popup.show .popup-content {
  transform: scale(1);
}
