/* ROOT */
html, body { height: 100%; }
body {
  margin: 0;
  color: #fff;
  font-family: 'Georgia', serif;
  background: #1e3c72; /* will be overridden by JS gradient */
  transition: background 1s ease;
}

/* FIXED BACKGROUND LAYER (NO LAYOUT IMPACT) */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  isolation: isolate;
}

/* Moving visuals */
.moving-line {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.8), rgba(255,255,255,0.2));
  background-size: 200% auto;
  transform: rotate(-10deg) scaleY(1.5);
  animation: moveLine 6s linear infinite, shimmer 3s linear infinite;
  z-index: 0;
}

@keyframes moveLine { from { transform: translateX(-50%) rotate(-10deg) scaleY(1.5);} to { transform: translateX(50%) rotate(-10deg) scaleY(1.5);} }
@keyframes shimmer { from { background-position: 200% center;} to { background-position: -200% center;} }

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 12s infinite ease-in-out;
  z-index: 0;
}
.circle1 { width:150px; height:150px; top:10%; left:15%; animation-delay:0s; }
.circle2 { width:200px; height:200px; bottom:15%; right:10%; animation-delay:4s; }
.circle3 { width:100px; height:100px; top:70%; left:30%; animation-delay:8s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)} }

/* UI LAYER (ABOVE BACKGROUND) */
.ui-root {
  position: relative;
  z-index: 2;                 /* above .bg */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENT */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.quote-box {
  text-align: center;
  font-size: 2rem;
  max-width: 70%;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: fadeIn 2s ease;
}
@keyframes fadeIn { from{opacity:0; transform:translateY(30px)} to{opacity:1; transform:translateY(0)} }

/* BOTTOM CONTROLS */
.bottom-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}
.refresh-btn {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto 10px;
}
.refresh-btn:hover { background: rgba(255, 255, 255, 0.35); transform: scale(1.05); }
#visitCount { font-size: 1rem; opacity: 0.8; }

/* MENU BUTTON (TOP-RIGHT) */
.menu-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 6;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 1.1rem;
  line-height: 1;
}
.menu-btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); transition: all .2s ease; }

/* SLIDE-IN MENU */
.menu-pane {
  position: fixed;
  top: 0; right: 0;
  height: 100vh; width: 320px; max-width: 85vw;
  background: rgba(20,20,30,0.55);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 30px rgba(0,0,0,0.35);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 6;
  display: flex; flex-direction: column;
}
.menu-pane.open { transform: translateX(0); }

.menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; font-weight: 600; font-size: 1.1rem; color: #fff;
}
.icon-btn {
  border: none; background: rgba(255,255,255,0.18); color: #fff; cursor: pointer;
  padding: 8px 10px; border-radius: 10px;
}
.icon-btn:hover { background: rgba(255,255,255,0.3); }

.menu-options { display: grid; gap: 12px; padding: 10px 18px 18px; }
.menu-option {
  width: 100%; padding: 14px 16px; text-align: left; color: #fff; cursor: pointer; border: none;
  border-radius: 14px; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform .15s ease, background .2s ease;
}
.menu-option:hover { transform: translateY(-1px); background: rgba(255,255,255,0.28); }
.menu-option.primary { background: rgba(255,255,255,0.28); }
.menu-option.primary:hover { background: rgba(255,255,255,0.38); }

/* OVERLAY */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 7;
}
.overlay.show { display: block; }
.overlay-content {
  position: absolute; right: 50%; top: 50%; transform: translate(50%, -50%);
  width: min(600px, 90vw); background: rgba(25,25,35,0.75); color: #fff;
  border-radius: 18px; padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.overlay-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.overlay-body { line-height: 1.6; font-size: 1rem; opacity: .95; }
/* --- HELP OVERLAY STYLING --- */
.help-content {
  text-align: center;
  padding: 28px 22px;
  max-width: 600px;
}

.help-content h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #fff;
}

.help-content p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 90%;
}

/* phone links / highlight */
.help-content a {
  color: #bfe9ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.help-content a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* ensure overlay centered visually */
.overlay-content.help-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

