@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');

:root {
  --bg: #0f0f12;
  --text: #e7e7ea;
  --muted: #9aa0a6;
  --accent: #e2b714;
  --card: #1a1d22;
  --border: #2a2f36;
}

/* Minimal scrollbar styling */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  p

  /* Fix card container positioning and centering */
  .card-container {
    margin-top: 90px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  ng-bottom: 80px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, Segoe UI, Roboto, Arial;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Video Background - Primary background */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}

/* Fallback to image background if video fails to load */
body:has(#bgVideo[data-failed="true"]) {
  background: var(--bg) url('./img/bg.webp') center center / cover no-repeat fixed;
}

/* Ensure content appears above video */
header, main {
  position: relative;
  z-index: 1;
}

header.top {
  padding: 8px 16px;
  max-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.logo {
  height: 75px;
  width: auto;
  max-width: 150px;
  margin-top: 75px;
}

/* General Button Styling - Default gold theme for all buttons */
button {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shimmer-delayed-2 3.4s ease-in-out infinite 0.7s;
}

button:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  color: #1a1a1a;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Off-canvas Navigation Toggle Button */
.nav-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shimmer-delayed-1 2.5s ease-in-out infinite 0.5s;
}

.nav-toggle:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  color: #1a1a1a;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Off-canvas Navigation Panel */
.off-canvas-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: url('./img/static/offcanvass-bg.webp') center center / cover no-repeat;
  background-color: rgba(26, 29, 34, 0.8);
  background-blend-mode: overlay;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.off-canvas-nav.open {
  right: 0;
}

.off-canvas-content {
  /* padding: 80px 20px 20px 20px; */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

/* .actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 400px;
  width: 100%;
} */


/* Off-canvas Overlay */
.off-canvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.off-canvas-overlay.open {
  opacity: 1;
  visibility: visible;
}

h1 {
  margin: 0;
  font-size: 20px
}

main {
  width: 100%;
  margin: 90px auto;

}

/* Placeholder image when no cards are visible */
.placeholder-image {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: 600px;
  height: auto;
  z-index: 0;
  transition: opacity 0.5s ease;
}

/* Ask Oracle Button - centered below placeholder image */
.ask-oracle-btn {
  position: fixed;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 3px solid #b8941f;
  color: #2d2d2d;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 1;
  min-width: 250px;
  animation: shimmer-delayed-1 3s ease-in-out infinite 1s;
}

.ask-oracle-btn:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  color: #1a1a1a;
  transform: translateX(-50%) scale(1.08) translateY(-3px);
  box-shadow: 0 8px 20px rgba(226, 183, 20, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.actions button {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #e9ce76, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 2.9s ease;
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  /* min-width: 240px; */
}

.actions button {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* .actions button:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  color: #1a1a1a;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
} */

.actions button.jewel-btn {
  background: none;
  box-shadow: none !important;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 0;
  margin: 0;
}

.heart-main {
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}

button.jewel-btn span {
  max-width: 80px;
  font-family: 'Cinzel', serif;
  color: #e2b714;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.actions.grid {
  display: grid;
  grid-template-columns: repeat(2, 100px);
  grid-template-rows: repeat(2, 100px);
  gap: 60px;
}

img.big-heart {
  width: 500px;
  max-width: 90vw;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  justify-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

/* Responsive grid templates for different card counts */
.cards.multiple-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px;

}

.cards.multiple-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  position: relative;
  width: 450px;
  height: 625px;
  animation: cardZoomIn 0.8s ease-out forwards;
  transform: scale(0.3);
  opacity: 0;
}

@keyframes cardZoomIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
    z-index: -1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
    z-index: 1;
  }
}

/* Scale cards when displaying multiple */
.cards.multiple-2 .card {
  width: 360px;
  height: 500px;
}

.cards.multiple-3 .card {
  width: 270px;
  height: 375px;
}

/* Staggered animation delays for multiple cards */
.card:nth-child(1) {
  animation-delay: 0s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Adjust card faces for scaled cards */
.cards.multiple-2 .card-face {
  height: 500px;
}

.cards.multiple-3 .card-face {
  height: 375px;
}

.todays-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 8rem;
  color: var(--accent);
  z-index: 2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, .8);
  font-weight: bold;
  pointer-events: none;
}

/* Number displayed on number cards */
.card-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 8rem;
  color: #D2B48C;
  /* Light tan color */
  z-index: 3;
  text-shadow: 0 4px 8px rgba(0, 0, 0, .8);
  font-weight: bold;
  pointer-events: none;
}

/* Number displayed on back of number cards */
.card-number-back {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 2.5rem;
  color: var(--accent);
  z-index: 4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
  font-weight: bold;
  pointer-events: none;
  font-family: 'Cinzel', serif;
}

/* Angel name displayed at top of angel/spirit cards */
.card-name {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  z-index: 3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
  font-weight: 600;
  line-height: 20px;
  pointer-events: none;
  font-family: 'Cinzel', serif;
  text-align: center;
  max-width: 90%;
}

.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s
}

.card.flipped .card-inner {
  transform: rotateY(180deg)
}

.card.flipped .card-name {
  display: none;
}

.card.flipped .card-number {
  display: none;
}

.card.flipped .front-text-overlay {
  display: none;
}

.card.flipped .controls .flip {
  animation: none;
}

.card-face {
  height: 625px;
  padding: 12px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  overflow: hidden;
}

.card-front .img-wrap {
  position: absolute;
  inset: 12px;
  z-index: 0;
  border-radius: 8px;
  overflow: hidden;
}

.card-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card-back img.back-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.card-front img.overlay {
  mix-blend-mode: screen;
  opacity: .95
}

/* Front text overlay for angel/spirit cards */
.front-text-overlay {
  position: absolute;
  bottom: 60px;
  left: 60px;
  right: 60px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  color: white;
  padding: 15px 60px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 8px;
  overflow-y: auto;
  z-index: 2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front-text-overlay::-webkit-scrollbar {
  width: 6px;
}

.front-text-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.front-text-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.front-text-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-container .text {
  display: none;
  /* Hide text div - will be shown in modal */
}

/* View Reading Button */
.view-reading-btn {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shimmer 4s ease-in-out infinite 2.8s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin: 15px 0 10px 0;
}

.view-reading-btn:hover {
  color: #1a1a1a;
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: scale(1.05) translateY(-2px);
}

.card-back {
  transform: rotateY(180deg);
  position: relative;
}

.card-back .back-text {
  /* Place back text over the back image, covering full card area */
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;

  border-radius: 10px;
  color: var(--text);
  width: 300px;
  align-content: center;
  margin: auto;
  height: 400px;
  box-sizing: border-box;
  text-align: center;
  overflow-y: auto;
  align-items: center;
  /* allow vertical scrolling for overflow */
  position: relative;
}

/* Scroll down button for overflowing back-text */
.card-back .scroll-down-button {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(226, 183, 20, 0.9);
  border: none;
  border-radius: 100px;

  height: 24px;
  cursor: pointer;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.card-back .scroll-down-button:hover {
  background: rgba(226, 183, 20, 1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-back .scroll-down-button:active {
  transform: translateX(-50%) translateY(0px);
}

.card-back .scroll-down-button::before {
  content: 'Scroll Down';
  color: #2d2d2d;
  font-size: 12px;
  font-weight: bold;
  line-height: 0.5;
}

.card-back .scroll-down-button.visible {
  display: flex;
}

.card-back .zodiac {
  font-weight: bold;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
}

.card-back .vibration {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  font-style: italic;
}

.card-back .message {
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
  font-family: 'Cinzel', serif;
}

.controls {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  height: 30px;
  align-items: center;
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }

  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-2px);
  }

  20%, 40%, 60%, 80% {
    transform: translateX(2px);
  }
}

.controls .flip {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  cursor: pointer;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shake 2s infinite, shimmer-delayed-2 3.5s ease-in-out infinite 1s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.controls .flip:hover {
  color: #1a1a1a;
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: scale(1.1) translateY(-2px);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  50% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes shimmer-delayed-1 {
  0% {
    background-position: 200% 0;
  }

  50% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes shimmer-delayed-2 {
  0% {
    background-position: 200% 0;
  }

  50% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes shimmer-delayed-3 {
  0% {
    background-position: 200% 0;
  }

  50% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 2px 6px rgba(226, 183, 20, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 4px 12px rgba(226, 183, 20, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.5);
  }

  100% {
    box-shadow: 0 2px 6px rgba(226, 183, 20, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  }
}

@keyframes pulse-glow-fast {
  0% {
    box-shadow: 0 4px 10px rgba(226, 183, 20, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow: 0 6px 16px rgba(226, 183, 20, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  }

  100% {
    box-shadow: 0 4px 10px rgba(226, 183, 20, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  }
}

@keyframes pulse-glow-active {
  0% {
    box-shadow: 0 0 20px rgba(226, 183, 20, 1.0), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    background: radial-gradient(circle at center, #ffffff 0%, #f9e89a 15%, #f4e17a 35%, #e2b714 65%, #d4af37 100%);
  }

  50% {
    box-shadow: 0 0 30px rgba(226, 183, 20, 1.2), inset 0 3px 6px rgba(255, 255, 255, 0.7);
    background: radial-gradient(circle at center, #ffffff 5%, #f9e89a 20%, #f4e17a 40%, #e2b714 70%, #d4af37 100%);
  }

  100% {
    box-shadow: 0 0 20px rgba(226, 183, 20, 1.0), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    background: radial-gradient(circle at center, #ffffff 0%, #f9e89a 15%, #f4e17a 35%, #e2b714 65%, #d4af37 100%);
  }
}

dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6)
}

dialog::backdrop {
  background: rgba(0, 0, 0, .6)
}

.modal {
  padding: 16px;
  min-width: 300px
}

/* Reading Modal */
.reading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  padding-top: 30px;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.reading-modal.hidden {
  display: none;
}

.reading-modal-content {
  background: linear-gradient(135deg, #553c9a, #7c2d8b, #8b3a9c);
  padding: 0;
  border-radius: 20px;
  text-align: center;
  color: var(--text);
  max-width: 600px;
  max-height: 80vh;
  min-height: 300px;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid var(--accent);
  position: relative;
  margin: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reading-modal-content h3 {
  color: var(--accent);
  font-size: 24px;
  margin: 0;
  padding: 25px 30px 15px 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;

}

.reading-modal-text {
  font-size: 16px;
  line-height: 1.6;
  padding: 20px 30px;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.reading-modal-text::-webkit-scrollbar {
  width: 6px;
}

.reading-modal-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.reading-modal-text::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.reading-modal-text::-webkit-scrollbar-thumb:hover {
  background: #f4d03f;
}

.reading-modal-footer {
  padding: 15px 30px 25px 30px;
  flex-shrink: 0;

}

.close-modal-btn {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 25px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shimmer 3s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  display: block;
}

.close-modal-btn:hover {
  color: #1a1a1a;
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: scale(1.05) translateY(-2px);
}

.row.end {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px
}

.hidden {
  display: none
}

.card[data-type="number"] .controls .flip {
  display: none
}

/* numbers have no back */

/* Number Input Overlay */
#numberInputOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#numberInputOverlay.hidden {
  display: none;
}

/* Date Input Overlay */
#dateInputOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#dateInputOverlay.hidden {
  display: none;
}

/* Day Select Overlay */
#daySelectOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#daySelectOverlay.hidden {
  display: none;
}

/* Month Select Overlay */
#monthSelectOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#monthSelectOverlay.hidden {
  display: none;
}

/* Number Options Modal */
#numberOptionsModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#numberOptionsModal.hidden {
  display: none;
}

/* Card Options Modal */
#cardOptionsModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#cardOptionsModal.hidden {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #e2b714;
  font-size: 40px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(226, 183, 20, 0.1);
  transform: scale(1.1);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 15px 30px;
  font-size: 18px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #e2b714;
  border: 2px solid #d4af37;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  min-width: 250px;
}

.modal-actions button:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  color: #1a1a1a;
  border-color: #d4af37;
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.number-input-content {
  text-align: center;
  color: white;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.number-input-content h2 {
  font-family: 'Cinzel', serif;
  color: #e2b714;
  font-size: 28px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.number-input-content input {
  padding: 15px 25px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(226, 183, 20, 0.5);
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.number-input-content input:focus {
  border-color: #e2b714;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(226, 183, 20, 0.3);
}

.number-input-content input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.number-input-content select {
  padding: 10px;
  font-size: 18px;
  background: transparent;
  color: white;
  border: 2px solid #e2b714;

}

.number-input-content select:focus {
  border-color: #e2b714;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(226, 183, 20, 0.3);
}

.number-input-content select option {
  background: #1a0a4a;
  color: white;
}

/* Select Picker Styles */
.select-picker {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.year-select {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(226, 183, 20, 0.5);
  border-radius: 15px;
  padding: 15px 35px 15px 20px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: #e2b714;
  text-align: center;
  min-width: 150px;
  backdrop-filter: blur(5px);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10"><path fill="%23e2b714" d="M1.5 0L7 5.5L12.5 0L14 1.5L7 8.5L0 1.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 14px 10px;
}

/* .year-select:hover {
  border-color: rgba(226, 183, 20, 0.7);
  background: rgba(0, 0, 0, 0.8);
} */

.year-select:focus {
  border-color: #e2b714;
  box-shadow: 0 0 0 3px rgba(226, 183, 20, 0.3);
}

.year-select option {
  background: #1a0a4a;
  color: #e2b714;
  padding: 10px;
  font-family: 'Cinzel', serif;
  text-align: center;
  direction: ltr;
}

/* Fix year select dropdown positioning */
.year-select:focus,
.year-select:active {
  position: relative;
  z-index: 1000;
}

/* Date Picker Styles */
.date-picker-row {
  display: flex;

  justify-content: center;
  margin: 20px 0;

}

.date-picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.date-picker-group label {
  font-family: 'Cinzel', serif;
  color: #e2b714;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.date-select {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(226, 183, 20, 0.5);
  border-radius: 10px;
  padding: 10px 25px 10px 15px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: #e2b714;
  text-align: center;
  min-width: 80px;
  backdrop-filter: blur(5px);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23e2b714" d="M1.5 0L6 4.5L10.5 0L12 1.5L6 7.5L0 1.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
  background-size: 12px 8px;
}

.date-select:hover {
  text-shadow: 1px 1px 2px rgba(255, 228, 25, 0.8);
}

.date-select:focus {
  border-color: #e2b714;
  box-shadow: 0 0 0 3px rgba(226, 183, 20, 0.3);
}

.date-select option {
  background: #1a0a4a;
  color: #e2b714;
  padding: 8px;
  font-family: 'Cinzel', serif;
  text-align: center;
  direction: ltr;
}

/* Fix dropdown positioning */
.date-select:focus,
.date-select:active {
  position: relative;
  z-index: 1000;
}

/* Ensure proper select element positioning */
.date-picker-group .select-picker {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.picker-range {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 10px;
}

/* Day Picker Styles - Same as Year Picker */
.day-picker-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 20px auto;
  box-shadow: 2px 2px 15px #000;
}

.day-picker {
  height: 200px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(226, 183, 20, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.day-picker::-webkit-scrollbar {
  display: none;
}

.day-picker-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.day-picker-item.active {
  color: #e2b714;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Month Picker Styles - Same as Year and Day Picker */
.month-picker-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 20px auto;
  box-shadow: 2px 2px 15px #000;
}

.month-picker {
  height: 200px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(226, 183, 20, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.month-picker::-webkit-scrollbar {
  display: none;
}

.month-picker-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.month-picker-item.active {
  color: #e2b714;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom Date Picker Styles for Life Path Number */
.date-picker-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;


}

.date-picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.date-picker-group label {
  font-family: 'Cinzel', serif;
  color: #e2b714;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.date-month-picker-container,
.date-day-picker-container,
.date-year-picker-container {
  position: relative;
  width: 120px;
  height: 160px;
  box-shadow: 2px 2px 15px #000;
}

.date-month-picker,
.date-day-picker,
.date-year-picker {
  height: 160px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(226, 183, 20, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.date-month-picker::-webkit-scrollbar,
.date-day-picker::-webkit-scrollbar,
.date-year-picker::-webkit-scrollbar {
  display: none;
}

.date-month-picker-item,
.date-day-picker-item,
.date-year-picker-item {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.date-month-picker-item.active,
.date-day-picker-item.active,
.date-year-picker-item.active {
  color: #e2b714;
  font-size: 18px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-center-line {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2b714, transparent);
  box-shadow: 0 0 10px rgba(226, 183, 20, 0.5);
}

/* Hide number input spinner arrows */
.number-input-content input[type="number"]::-webkit-outer-spin-button,
.number-input-content input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input-content input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.number-input-content .error {
  color: #ff6b6b;
  font-size: 16px;
  display: none;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.number-input-content .error.visible {
  display: block;
}

/* Error message for missing cards */
.error-message {
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid #ff6b6b;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.error-message h3 {
  color: #ff6b6b;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.error-message p {
  color: #ffcccc;
  font-size: 1rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.number-input-content button {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  padding: 18px 50px;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shimmer-delayed-1 3.2s ease-in-out infinite 0.3s;
}

.number-input-content button:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  color: #1a1a1a;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Simple Intention Overlay */
#intentionOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgb(22 1 107) 0%, rgb(0 0 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#intentionOverlay.hidden {
  display: none;
}

.intention-content {
  text-align: center;
  color: white;
  max-width: 500px;
  padding: 40px;
}

h3.choose-title {
  font-family: 'Cinzel', serif;
  color: #e2b714;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.intention-content h2 {
  font-family: 'Cinzel', serif;
  color: #e2b714;
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.intention-content p {
  font-size: 18px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.intention-content .ready-btn {
  background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
  background-size: 200% 200%;
  border: 2px solid #b8941f;
  color: #2d2d2d;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  padding: 18px 50px;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shimmer-delayed-2 3.7s ease-in-out infinite 2s;
}

.intention-content .ready-btn:hover {
  background: linear-gradient(145deg, #f9e89a, #f4e17a, #e2b714, #d4af37, #f9e89a);
  background-size: 200% 200%;
  border-color: #d4af37;
  color: #1a1a1a;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 6px 16px rgba(226, 183, 20, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Today's number display */
.todays-number-display {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(226, 183, 20, 0.2);
}

.todays-number-display h2 {
  margin: 0 0 8px 0;
  color: var(--accent);
  font-size: 24px;
}

.todays-number-display p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {

  .cards.multiple-2,
  .cards.multiple-3 {
    grid-template-columns: unset;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {

  /* Adjust main padding for mobile - add bottom padding for fixed nav */
  main {
    padding: 8px 8px 80px 8px;
    margin-top: 30px;
  }

  /* Ensure body has proper bottom padding for fixed navigation */
  body {
    padding-bottom: 60px;
  }

  /* Mobile placeholder sizing */
  /* .placeholder-image {
    max-width: 280px;
    max-height: 280px;
    width: 70vw;
  } */

  /* Mobile Ask Oracle Button adjustments */
  .ask-oracle-btn {
    top: 60%;
    font-size: 16px;
    padding: 14px 28px;
    min-width: 260px;
    letter-spacing: 1.5px;
  }

  /* Mobile card grid - single column */
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    justify-items: center;
    margin: 0 auto;
    width: 100%;
  }

  /* Single card on mobile */
  .card {
    width: 339px;
    height: 472px;
  }

  .card-face {
    height: 472px;
    padding: 8px;
  }

  /* Multiple cards on mobile - same size as single cards since they stack vertically */
  .cards.multiple-2 .card,
  .cards.multiple-3 .card {
    width: 339px;
    height: 472px;
  }

  .cards.multiple-2 .card-face,
  .cards.multiple-3 .card-face {
    height: 472px;
    padding: 8px;
  }

  /* Adjust text sizes for mobile cards */
  .card-number {
    font-size: 5rem;
  }

  .card-number-back {
    font-size: 1.8rem;
    top: 12%;
  }

  .card-name {
    font-size: 1.2rem;

  }

  /* Fix card container positioning - lower by 90px */
  .card-container {
    margin-top: 90px;
  }

  /* Fix text overflow on mobile - match card width */
  .card-container .text {
    max-width: 339px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Mobile off-canvas navigation adjustments */
  .nav-toggle {
    top: 25px;
    width: unset;
    height: unset;
    font-size: 16px;
    padding: 5px 15px;
    border-radius: 30px;
  }

  .off-canvas-content {
    padding: 15px;
  }

  /* .actions button {
    background: linear-gradient(145deg, #f4e17a, #e2b714, #d4af37, #b8941f, #f4e17a);
    background-size: 200% 200%;
    border: 2px solid #b8941f;
    color: #2d2d2d;
    padding: 14px 20px;
    font-size: 14px;
    min-height: 48px;
    min-width: 90vw;
    text-align: center;
    border-radius: 12px;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    box-shadow: 0 4px 12px rgba(226, 183, 20, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  } */



  .actions button:hover {

    transform: scale(1.05) translateY(-2px);

  }

  /* Mobile logo adjustment */
  .logo {
    height: 60px;
    margin-top: 60px;
  }

  /* Mobile modal adjustments */
  .intention-content,
  .number-input-content {
    padding: 20px;
    margin: 20px;
  }

  /* Adjust today's number display for mobile */
  .todays-number-display {
    margin-bottom: 16px;
    padding: 12px;
  }

  .todays-number-display h2 {
    font-size: 20px;
  }

  /* Mobile year picker, day picker, and month picker adjustments */
  .year-picker-container,
  .day-picker-container,
  .month-picker-container {
    width: 280px;
    height: 280px;
  }

  .year-picker,
  .day-picker,
  .month-picker {
    height: 280px;
    /* Ensure touch scrolling works on mobile */
    -webkit-overflow-scrolling: touch;
    /* Remove scroll snap on mobile - can cause issues on Android */
    scroll-snap-type: none;
    /* Force hardware acceleration for smoother scrolling */
    transform: translateZ(0);
    will-change: scroll-position;
    /* Reduce momentum for better JavaScript snap control */
    overscroll-behavior: contain;
    /* Better touch control */
    touch-action: pan-y;
  }

  .year-picker-item,
  .day-picker-item,
  .month-picker-item {
    height: 54px;
    font-size: 18px;
    /* Ensure touch targets are large enough */
    min-height: 54px;
    /* Better contrast for mobile */
    color: rgba(255, 255, 255, 0.9);
  }

  .year-picker-item.active,
  .day-picker-item.active,
  .month-picker-item.active {
    font-size: 22px;
    color: #e2b714;
    font-weight: 700;
  }

  /* Mobile date picker adjustments */
  .date-picker-row {
    /* flex-direction: column; */
    gap: 15px;
    align-items: center;
  }

  .date-month-picker-container,
  .date-day-picker-container,
  .date-year-picker-container {
    width: 90px;
    height: 200px;
  }

  .date-month-picker,
  .date-day-picker,
  .date-year-picker {
    height: 200px;
    /* Ensure touch scrolling works on mobile */
    -webkit-overflow-scrolling: touch;
    /* Remove scroll snap on mobile - can cause issues on Android */
    scroll-snap-type: none;
    /* Force hardware acceleration for smoother scrolling */
    transform: translateZ(0);
    will-change: scroll-position;
  }

  .date-month-picker-item,
  .date-day-picker-item,
  .date-year-picker-item {
    height: 40px;
    font-size: 16px;
    /* Ensure touch targets are large enough */
    min-height: 40px;
    /* Better contrast for mobile */
    color: rgba(255, 255, 255, 0.9);
  }

  .date-month-picker-item.active,
  .date-day-picker-item.active,
  .date-year-picker-item.active {
    font-size: 18px;
    color: #e2b714;
    font-weight: 700;
  }
}

/* Card Slideshow Styles */
.card-slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.slideshow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.slideshow-slides {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 625px;
}

.slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

/* Navigation Arrows - Hidden since numbered buttons provide better navigation */
.slideshow-nav {
  display: none;
}

/* Navigation arrows removed - numbered buttons provide better UX */

/* Numbered Navigation - Now inside each card-container */
.card-container .slideshow-numbers {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 10px 0;
  padding: 0 20px;
}

.card-container .number-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: radial-gradient(circle at center, #f4e17a 0%, #e2b714 30%, #d4af37 60%, #b8941f 100%);
  border: 2px solid #b8941f;
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(226, 183, 20, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  animation: pulse-glow 2s ease-in-out infinite;
}

.card-container .number-btn:hover {
  background: radial-gradient(circle at center, #f9e89a 0%, #f4e17a 25%, #e2b714 50%, #d4af37 100%);
  border-color: #d4af37;
  color: #1a1a1a;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(226, 183, 20, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  animation: pulse-glow-fast 1s ease-in-out infinite;
}

.card-container .number-btn.active {
  background: radial-gradient(circle at center, #ffffff 0%, #f9e89a 15%, #f4e17a 35%, #e2b714 65%, #d4af37 100%);
  border-color: #d4af37;
  color: #1a1a1a;
  box-shadow: 0 0 20px rgba(226, 183, 20, 1.0), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.4);
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 800;
  border-width: 3px;
  animation: pulse-glow-active 1.5s ease-in-out infinite;
}

/* Slideshow mode adjustments */
.cards.slideshow-mode {
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin: 0 auto;
}

/* Mobile Slideshow Styles */
@media (max-width: 480px) {
  .slideshow-wrapper {
    padding: 15px 10px;
    max-width: 100%;
  }

  .card-slideshow {
    padding: 0;
  }

  .slideshow-slides {
    min-height: 472px;
  }

  .slideshow-nav {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }

  .slideshow-nav.prev {
    margin-right: 15px;
  }

  .slideshow-nav.next {
    margin-left: 15px;
  }

  .card-container .number-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .card-container .slideshow-numbers {
    gap: 12px;
    margin: 15px 0 8px 0;
    padding: 0 15px;
  }

  /* Mobile modal adjustments */
  .reading-modal-content {
    margin: 15px 10px;
    max-width: calc(100vw - 20px);
    max-height: 80vh;
    min-height: 250px;
  }

  .reading-modal-content h3 {
    font-size: 18px;
    padding: 20px 20px 12px 20px;
  }

  .reading-modal-text {
    font-size: 14px;
    line-height: 1.5;
    padding: 15px 20px;
  }

  .reading-modal-footer {
    padding: 12px 20px 20px 20px;
  }

  .close-modal-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .view-reading-btn {
    font-size: 12px;
    padding: 10px 16px;
    margin: 12px 0 8px 0;
  }

  /* Mobile button adjustments - ensure proper touch targets */
  button {
    min-height: 48px;
    font-size: 14px;
    padding: 14px 20px;
    /* Ensure proper touch target size for accessibility */
    min-width: 48px;
  }

  button:hover {
    /* Reduce hover effects on mobile for better touch interaction */
    transform: scale(1.02) translateY(-1px);
  }
}