body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
}
.banner {
  min-width: 220px;
  background: rgba(60, 100, 180, 0.80) !important;
  color: #fff !important;
}
@media (orientation: portrait) {
  .banner {
    background: rgba(14,33,72,0.88) !important;
    color: #fff !important;
  }
}
.flip-card {
  width: 340px;
  height: 440px;
  perspective: 1200px;
  position: relative;
}
.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
  position: relative;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  position: absolute;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-card-front {
  background: rgba(255,255,255,0.2);
}
.flip-card-back {
  background: rgba(60, 100, 180, 0.80) !important;
  color: #fff;
  transform: rotateY(180deg);
  padding: 32px 24px;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
@media (orientation: portrait) {
  .flip-card-back,
  .flip-card-back.mobile {
    background: rgba(14,33,72,0.88) !important;
    color: #fff;
  }
}
.flip-card-back.mobile {
  background: rgba(20, 30, 60, 0.80) !important;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.expiration, #flip-expiration {
  background: #F8F8E1 !important;
  color: #222;
  border-radius: 16px;
  padding: 6px 16px;
  font-weight: bold;
  font-size: 1.1rem;
}
.wish-text {
  margin-top: 80px;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 500px) {
  .flip-card {
    width: 95vw;
    height: 60vw;
    min-width: 220px;
    min-height: 260px;
    max-width: 340px;
    max-height: 440px;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.15); /* dim effect */
  z-index: 0;
  pointer-events: none;
}

/* Ensure main content is above the dim overlay */
.container, .flip-card, .banner, .btn, .expiration, .wish-text {
  position: relative;
  z-index: 1;
}

#flip-expiration {
  margin-bottom: 0;
}
#flip-wish-text {
  margin-top: 10%;
  display: block;
  text-align: center;
}

.preserve-btn-fixed {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  z-index: 100;
}
#preserve-button {
  font-size: 0.95rem;
  padding: 8px 18px;
  min-width: unset;
  min-height: unset;
}

@media (orientation: landscape) {
  #get-wishes-button {
    background: #FFC1DA !important;
    color: #222 !important;
    border: none;
  }
  .flip-card-back {
    background: rgba(138,204,213,0.85) !important;
    color: #222;
  }
  .banner {
    background: rgba(138,204,213,0.85) !important;
    color: #222 !important;
  }
  #preserve-button {
    background: #FF90BB !important;
    color: #222 !important;
    border: none;
  }
}

@media (orientation: portrait) {
  #get-wishes-button {
    background: #7965C1 !important;
    color: #fff !important;
    border: none;
  }
  #preserve-button {
    background: #483AA0 !important;
    color: #fff !important;
    border: none;
  }
  .expiration, #flip-expiration {
    background: #E3D095 !important;
    color: #222;
  }
}

.wish button {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Gochi Hand', cursive;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wish button:hover {
    background-color: #ff1493;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .wish button {
        background-color: #ff69b4;
        font-size: 1rem;
        padding: 6px 12px;
    }

    /* Navigation bar theme */
    .bottom-nav {
        background-color: #1a1a1a;
        border-top: 1px solid #333;
    }

    .bottom-nav a {
        color: #fff;
    }

    .bottom-nav a:hover {
        color: #ff69b4;
    }

    /* Light theme override */
    @media (prefers-color-scheme: light) {
        .bottom-nav {
            background-color: #fff;
            border-top: 1px solid #ddd;
        }

        .bottom-nav a {
            color: #333;
        }

        .bottom-nav a:hover {
            color: #ff69b4;
        }
    }

    /* Hide preserve button in portrait mode */
    .preserve-btn-fixed {
        display: none;
    }
} 