:root{
  --bg1:#ffecd2;
  --bg2:#fcb69f;
  --bg3:#c3f0ca;
  --bg4:#a1c4fd;
  --card-bg: #ffffffee;
  --text:#1d2230;
  --muted:#4d5566;
  --accent:#6a5cff;   /* lively purple */
  --accent-2:#ff6a88; /* coral-pink */
  --accent-3:#00c2ff; /* sky blue */
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.12), 0 6px 12px rgba(0,0,0,.06);
}

/* Cheerful animated gradient background */
body {
  margin: 0;
  min-height: 100svh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3), var(--bg4));
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  font: 1em/160% sans-serif;
}
.sidebar {
  background-color: #EAEDF0;
  position: fixed;
  top: 0;
  right: 0px;
  z-index: 1;
}
ul {
  list-style-type: none;
}
@keyframes gradientShift {
  0% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
  100% { background-position: 0% 50% }
}

.card {
  width: min(720px, 92vw);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 40px);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: visible; /* changed from hidden to visible to allow popup to display larger than container */
  isolation: isolate;
}

/* Decorative bubbles */
.card::before, .card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.35;
  z-index: -1;
}
.card::before {
  width: 220px; height: 220px;
  right: -60px; top: -60px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
}
.card::after {
  width: 280px; height: 280px;
  left: -90px; bottom: -90px;
  background: radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  width: max-content;
}
.badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; opacity: .9;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
}

.lock-hero {
  margin: 20px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(84px, 12vw, 120px);
  height: clamp(84px, 12vw, 120px);
  border-radius: 22%;
  background: conic-gradient(from 180deg, #fff8, #fff0 40%);
  border: 2px dashed rgba(0,0,0,.08);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 12px 16px;
  border-radius: 12px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.btn.secondary {
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

footer {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  opacity: .9;
}
.special-marker {
  display: inline-block;
  margin-left: 10px;
  background: linear-gradient(to right, #FFD700, #FFA500);
  color: var(--text-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  transform: rotate(-2deg);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.image-wrapper {
  position: relative;
  max-width: 400px;
  color: white;
}
.image-wrapper:hover .overlay {
  background: rgba(255, 255, 255, 1.0);
}
.image-wrapper:hover + .hide {
  display:block;
  color: red;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease-in-out;
}
.overlay-text {
  position: absolute;
  bottom: .5em;
  font-size: 18px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 0, 0, 0.9);
  padding: 8px 12px;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 15px;
}

.gallery-item {
  position: relative;
  width: calc(25% - 20px);
  height: auto;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.1);
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: 90%;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  overflow: hidden;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {transform: scale(0.6);}
  to {transform: scale(1);}
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .btn { transition: none; }
}
@media screen and (max-width: 768px) {
  .modal-content{
     width: calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  .modal-content  {
    width: calc(100% - 20px);
  }
}