/* ===== BASIC RESET & MOBILE-FIRST STYLING ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
    
/* Hide scrollbar but keep functionality */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: 'Merriweather', serif;
  background-color: #fff5f6;  /* Changed to match the pink theme */
  color: #5a4f4f;
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===== FIXED BACKGROUND CONTAINER WITH DUAL-LAYER ===== */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

/* ===== PASSWORD OVERLAY ===== */
#password-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 240, 245, 0.85);  /* Changed to a more pink-tinted white */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lock Icon */
.lock-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  position: relative;
}

.lock-icon::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 12px;  /* Reduced height */
  border: 3px solid rgba(255, 182, 193, 0.6);
  border-bottom: none;
  border-radius: 50% 50% 0 0;  /* Changed to only round top corners */
  top: -5px;  /* Adjusted position */
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.lock-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 24px;
  background: rgba(255, 182, 193, 0.4);
  border: 3px solid rgba(255, 182, 193, 0.6);
  border-radius: 6px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px -2px rgba(255, 182, 193, 0.1),
    0 -1px 2px rgba(255, 255, 255, 0.4) inset;
  transition: all 0.4s ease;
}

.lock-icon.unlocked::before {
  transform: translate(-50%, -15px);
  opacity: 0;
}

.lock-icon.unlocked::after {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.lock-icon.error {
  animation: shakelock 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

#password-overlay.fade-out {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  pointer-events: none;
}

#password-overlay.fade-out .lock-icon::before {
  transform: translate(-50%, -15px);
  opacity: 0;
}

#password-overlay.fade-out .lock-icon::after,
#password-overlay.fade-out input,
#password-overlay.fade-out button {
  opacity: 0;
  transform: translateY(10px);
}

/* Error state for password input */
#password-input.error {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
  border-color: rgba(255, 99, 99, 0.6) !important;
  box-shadow: 0 4px 20px rgba(255, 99, 99, 0.15) !important;
}

@keyframes shake {
  10%, 90% {
    transform: translateX(-1px);
  }
  20%, 80% {
    transform: translateX(2px);
  }
  30%, 50%, 70% {
    transform: translateX(-3px);
  }
  40%, 60% {
    transform: translateX(3px);
  }
}

@keyframes shakelock {
  10%, 90% {
    transform: rotate(-1deg);
  }
  20%, 80% {
    transform: rotate(2deg);
  }
  30%, 50%, 70% {
    transform: rotate(-3deg);
  }
  40%, 60% {
    transform: rotate(3deg);
  }
}

#password-overlay h1 {
  margin-bottom: 20px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5em;
  font-weight: 400;
  color: #8a7e7e;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  opacity: 0.8;
  letter-spacing: 0.5px;
}
#password-overlay input[type="password"] {
  padding: 12px 20px;
  font-size: 1.2em;
  border: 2.5px solid rgba(255, 182, 193, 0.5);
  border-radius: 25px;
  margin-bottom: 20px;
  width: 80%;
  max-width: 300px;
  background-color: rgba(255, 248, 240, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  color: #695f5f;
  letter-spacing: 0.5px;
  font-weight: 400;
}
#password-overlay input[type="password"]::placeholder {
  color: #9e9191;
  opacity: 0.7;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}
#password-overlay input[type="password"]:focus {
  border-color: rgba(255, 141, 161, 0.6);
  box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
  background-color: rgba(255, 248, 240, 0.25);
}
#password-overlay button {
  padding: 8px 22px;
  font-size: 1.1em;
  background: linear-gradient(
    to bottom,
    rgba(255, 192, 203, 0.7) 0%,
    rgba(255, 182, 193, 0.65) 100%
  );
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  color: #9e9191;
  letter-spacing: 1.2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px -2px rgba(255, 182, 193, 0.1),
    0 -1px 2px rgba(255, 255, 255, 0.5) inset,
    0 2px 4px rgba(0, 0, 0, 0.03) inset;
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.8),
    0 0 2px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

#password-overlay button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  border-radius: 20px 20px 0 0;
}

#password-overlay button:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 202, 213, 0.75) 0%,
    rgba(255, 192, 203, 0.7) 100%
  );
  color: #8d8181;
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.03),
    0 6px 10px -2px rgba(255, 182, 193, 0.15),
    0 -1px 2px rgba(255, 255, 255, 0.5) inset,
    0 2px 4px rgba(0, 0, 0, 0.03) inset;
  transform: translateY(-1px);
}

#password-overlay button:active {
  transform: translateY(1px);
  background: linear-gradient(
    to bottom,
    rgba(255, 182, 193, 0.75) 0%,
    rgba(255, 172, 183, 0.7) 100%
  );
  color: #847777;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.02),
    0 2px 4px -1px rgba(255, 182, 193, 0.1),
    0 -1px 2px rgba(255, 255, 255, 0.4) inset,
    0 1px 3px rgba(0, 0, 0, 0.03) inset;
}

/* ===== LETTER CONTENT CONTAINER ===== */
#letter-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  scroll-snap-type: y mandatory;
  position: relative;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ===== SECTION & ANIMATION STYLES ===== */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  scroll-snap-align: start;
  will-change: opacity, transform;
}
.section.animate {
  opacity: 1;
  transform: translateY(0);
}
.greeting, .closing {
  font-family: 'Indie Flower', cursive;
  font-size: 2em;
  text-align: center;
  color: #695f5f;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
.content {
  font-size: 1.2em;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 1);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #695f5f;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}
.signature {
  display: block;
  max-width: 150px;
  margin: 20px auto;
  opacity: 0.85;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
.picture-frame {
  border: 4px solid #d4c4a8;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.3s ease;
}
.dangling-frame {
  position: absolute;
  width: 150px;
  border: 3px solid #d4c4a8;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  border-radius: 6px;
}
.dangling-frame.top-left {
  top: 10px;
  left: 10px;
}
.dangling-frame.bottom-right {
  bottom: 10px;
  right: 10px;
}

/* ===== CONTENT WRAPPER & STICKER STYLES ===== */
.content-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.sticker {
  position: absolute;
  width: 120px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticker.visible {
  opacity: 1;
  transform: translateY(0);
}

.sticker-img {
  width: 100%;
  height: auto;
  transform: rotate(var(--rotation));
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  opacity: 0.85;
  will-change: transform;
}

/* Sticker positions */
.sticker.top-left {
  top: -20px;  /* Changed from 0 to -20px to move up */
  left: -50px;  /* Changed from -30px to -50px to move left */
}

.sticker.top-right {
  top: 0;
  right: -30px;
}

.sticker.top-center {
  top: -20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
}

.sticker.top-center.visible {
  transform: translateX(-50%) translateY(0);
}

.sticker.bottom-left {
  bottom: 0;
  left: -30px;
  transform: translateY(-20px);
}

.sticker.bottom-left.visible {
  transform: translateY(0);
}

.sticker.bottom-right {
  bottom: 0;
  right: -30px;
  transform: translateY(-20px);
}

.sticker.bottom-right.visible {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sticker {
    width: 90px;
  }
  
  .sticker.top-left,
  .sticker.bottom-left {
    left: -15px;
  }
  
  .sticker.top-right,
  .sticker.bottom-right {
    right: -15px;
  }
}

@media (max-width: 480px) {
  .sticker {
    width: 70px;
  }
  
  .sticker.top-left,
  .sticker.bottom-left {
    left: -10px;
  }
  
  .sticker.top-right,
  .sticker.bottom-right {
    right: -10px;
  }
}

/* Remove old sticker styles */
.sticker-container {
  display: none;
}

/* ===== FLOATING ELEMENTS STYLES ===== */
#floating-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.floating-element {
  position: absolute;
  cursor: grab;
  pointer-events: auto;
  animation: spaceFloat var(--float-duration, 20s) linear infinite;
  will-change: transform, opacity;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  transform-origin: center center;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-element:hover {
  cursor: grab;
  opacity: 0.8;
  transform: scale(1.1);
}

.floating-element:active {
  cursor: grabbing;
}

.floating-element.popping {
  position: fixed;
  animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  transition: none;
}

.sparkle {
  position: fixed;
  width: 2px;
  height: 10px;
  background: linear-gradient(to bottom, #fff, #ffb6c1);
  pointer-events: none;
  animation: sparkle 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  border-radius: 50%;
}

@keyframes sparkle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

@keyframes pop {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--current-rotation)) scale(1);
    opacity: var(--current-opacity);
  }
  30% {
    transform: translate3d(0, 0, 0) rotate(calc(var(--current-rotation) + 15deg)) scale(1.3);
    opacity: var(--current-opacity);
  }
  60% {
    transform: translate3d(0, 0, 0) rotate(calc(var(--current-rotation) + 30deg)) scale(0.9);
    opacity: calc(var(--current-opacity) * 0.7);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(calc(var(--current-rotation) + 45deg)) scale(0.1);
    opacity: 0;
  }
}

@keyframes spaceFloat {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(var(--initial-rotation));
    opacity: 0;
  }
  2% {
    transform: translate3d(0, 0vh, 0) rotate(calc(var(--initial-rotation) + 30deg));
    opacity: 0.6;
  }
  95% {
    transform: translate3d(0, 95vh, 0) rotate(calc(var(--initial-rotation) + 330deg));
    opacity: 0.6;
  }
  100% {
    transform: translate3d(0, 105vh, 0) rotate(calc(var(--initial-rotation) + 360deg));
    opacity: 0;
  }
}

#score-counter {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(255, 192, 203, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 15px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9em;
  font-weight: 400;
  color: #9e9191;
  z-index: 51;
  letter-spacing: 0.5px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px -2px rgba(255, 182, 193, 0.1),
    0 -1px 2px rgba(255, 255, 255, 0.4) inset;
  border: 1px solid rgba(255, 182, 193, 0.2);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#score-counter.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.counter-text {
  flex: 0 0 auto;
  margin-right: 0.3em;
}

.score-wrapper {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  vertical-align: middle;
  min-width: 1.5em;
  color: #8d8181;
  font-weight: 500;
  margin-top: -0.15em;
  flex: 0 1 auto;
}

.score-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  text-align: center;
  height: 100%;
  line-height: 1.25em;
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initial state for the first number */
.score-number:first-child {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.score-number.new {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.score-number.old {
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
}

@keyframes countUp {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes countOut {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
}

/* Toast Message Styles */
#toast-container {
  position: fixed;
  top: 55px;
  right: 15px;
  z-index: 50;
  pointer-events: none;
}

.toast-message {
  background: rgba(255, 192, 203, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px 15px;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85em;
  color: #9e9191;
  margin-top: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px -2px rgba(255, 182, 193, 0.1);
  border: 1px solid rgba(255, 182, 193, 0.2);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  max-width: 250px;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-message.hide {
  opacity: 0;
  transform: translateX(20px);
}

/* ===== PHOTO GRID STYLES ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.photo-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  transform-origin: center;
  will-change: transform;
  aspect-ratio: 1;
}

.picture-frame {
  border: 3px solid rgba(255, 182, 193, 0.6);
  box-shadow: 
    0 2px 6px rgba(255, 182, 193, 0.15),
    0 1px 3px rgba(255, 182, 193, 0.1);
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover .picture-frame {
  transform: scale(1.02);
  box-shadow: 
    0 4px 12px rgba(255, 182, 193, 0.25),
    0 2px 6px rgba(255, 182, 193, 0.15);
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.lightbox-overlay.active {
  background: rgba(0, 0, 0, 0.9);
  opacity: 1;
  visibility: visible;
}

.expanded-photo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  visibility: hidden;
  cursor: zoom-out;
}

.expanded-photo-container.active {
  visibility: visible;
}

.expanded-photo {
  position: fixed;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  transform-origin: center;
  will-change: transform;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-photo.sliding {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-photo.grabbing {
  transition: none;
  cursor: grabbing;
}

/* Navigation Buttons */
.photo-nav-button {
  position: fixed;
  bottom: 40px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
  transform: translateY(20px);
}

.photo-nav-button::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2.5px solid currentColor;
  border-left: 0;
  border-bottom: 0;
}

.photo-nav-prev {
  left: calc(50% - 140px);
}

.photo-nav-next {
  right: calc(50% - 140px);
}

.photo-nav-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.photo-nav-next::before {
  transform: rotate(45deg);
  margin-left: -4px;
}

.photo-nav-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.photo-nav-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.photo-nav-button:active {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0.95);
}

/* Close Button */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
  z-index: 1002;
}

.expanded-photo-container.active .lightbox-close {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Success state for password input */
#password-input.success {
  border-color: rgba(183, 223, 190, 0.6) !important;
  box-shadow: 0 4px 20px rgba(183, 223, 190, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background-color: rgba(183, 223, 190, 0.05) !important;
}

/* ===== COUNTDOWN TIMER STYLES ===== */
#countdown-container {
  margin-bottom: 40px;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

/* Password elements container */
#password-elements {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

#password-elements.hidden {
  display: none;
}

#password-elements.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Test button styles */
.test-button {
  margin-top: 20px;
  padding: 8px 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9em;
  color: #9e9191;
  background: rgba(255, 192, 203, 0.15);
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px -2px rgba(255, 182, 193, 0.1);
}

.test-button:hover {
  background: rgba(255, 192, 203, 0.25);
  transform: translateY(-1px);
}

.test-button:active {
  transform: translateY(1px);
}

/* Hide test button in production */
.test-button {
  display: none;
}

/* Show test button only when URL has ?dev=true */
.dev-mode .test-button {
  display: inline-block;
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  padding: 15px;
  background: rgba(255, 192, 203, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 15px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.02),
    0 4px 8px -2px rgba(255, 182, 193, 0.1),
    0 -1px 2px rgba(255, 255, 255, 0.4) inset;
  border: 1px solid rgba(255, 182, 193, 0.2);
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-2px);
}

.countdown-number {
  font-family: 'Quicksand', monospace;
  font-size: 2.5em;
  font-weight: 500;
  color: #8d8181;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  line-height: 1;
  width: 100%;
  text-align: center;
  letter-spacing: 0.05em;
}

.countdown-label {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9em;
  color: #9e9191;
  margin-top: 5px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.countdown-title {
  font-family: 'Indie Flower', cursive;
  font-size: 1.5em;
  color: #9e9191;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for countdown */
@media (max-width: 600px) {
  .countdown-wrapper {
    gap: 10px;
  }
  
  .countdown-item {
    width: 70px;
    padding: 10px;
  }
  
  .countdown-number {
    font-size: 2em;
  }
  
  .countdown-label {
    font-size: 0.8em;
  }
  
  .countdown-title {
    font-size: 1.2em;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .countdown-item {
    width: 60px;
    padding: 8px;
  }
  
  .countdown-number {
    font-size: 1.8em;
  }
}