:root {
   --size: min(92vw, 30%);       /* overall widget size */
    --ring-thickness: 56px; /* arc button thickness */
    --glow: 24px;
    --bg: #0a0f1c;
    --ring: #1e2a55;
    --accent: #6cf1ff;
    --text: #e8f4ff;
  }
    @media (max-width: 1100px) {
    :root {
      --size: 92vw; /* scale to screen width on small devices */
    }
  }
   .lang-button{
		  font-size: 1.4em;
	  }
  @media (max-width: 500px) {
	  .lang-button{
		  font-size: 1.1em;
	  }
	  
	  
  }
  

#adalah-logo {
  position: absolute;
  top: 0px;                  /* always pinned to top */
  left: 50%;                  /* start from middle */
  transform: translateX(-50%);/* pull back half its width -> true center */
  width: 35%;
  max-width:200px;  /* big on small screens, capped at 15% */
  z-index: 10;                /* ensures it stays above HUD/video/background */
}

		
  @media (orientation: portrait)  and (max-width: 1100px) {
	  
		/* #adalah-logo {
		  width:80% !important;
		} */
		
		.hud{
			/* max-width:90% !important; */
		}
		
		#background-video {
		  position: fixed;
		  top: 50%;
		  left: 50%;
		  width: 100vh;   /* swapped because rotated */
		  height: 100vw;
		  transform: translate(-50%, -50%) rotate(90deg);
		  transform-origin: center center;
		  object-fit: cover;
		  z-index: -1;
		}

  }
  
  @media (orientation: landscape)  and (max-width: 1000px) {
	  
		#adalah-logo {
		  width: 13%;               /* ensures it stays above HUD/video/background */
		}	
		
		.hud{
			max-width:25% !important;
		}
  }
  
  @media (orientation: landscape)  and (min-width: 1001px) and (max-width: 1500px) {
		
		.hud{
			max-width:40% !important;
		}
  }
  
  
 
/* video as background */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes the video fill the screen */
  z-index: -1; /* put behind content */
}

/* overlay content */
.content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  font-family: Arial, sans-serif;
}
  
 
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1000px circle at 50% 30%, #252e4c 20%, #050911 65%, #02050a 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* sparkle base layer */
body::before,
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 400px 400px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  animation: moveStars 20s linear infinite;
}

/* layer 1: bright white */
body::before {
  background:
    radial-gradient(3px 3px at 10% 20%, rgba(255,255,255,0.9), transparent 100%),
    radial-gradient(3px 3px at 30% 80%, rgba(173,216,255,0.85), transparent 100%),
    radial-gradient(3px 3px at 70% 40%, rgba(255,255,255,0.95), transparent 100%),
    radial-gradient(3px 3px at 90% 90%, rgba(173,216,255,0.8), transparent 100%);
  animation: moveStars 20s linear infinite, twinkleFast 2s ease-in-out infinite;
}

/* layer 2: offset twinkles for variety */
body::after {
  background:
    radial-gradient(3px 3px at 15% 25%, rgba(255,255,255,0.9), transparent 100%),
    radial-gradient(3px 3px at 35% 75%, rgba(173,216,255,0.85), transparent 100%),
    radial-gradient(3px 3px at 75% 45%, rgba(255,255,255,0.95), transparent 100%);
  animation: moveStars 30s linear infinite, twinkleFast 2s ease-in-out infinite;
  animation-delay: 0s, 1s; /* delay twinkle so not in sync */
}

@keyframes twinkleFast {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: 400px 400px; }
}

.jconfirm-content{
	color:black;
}

 .hud {
	width: var(--size);
	aspect-ratio: 1;
	filter: drop-shadow(0 8px 40px rgba(0,0,0,0));
	position: absolute;       /* position relative to viewport */
	top: 55%;                 /* move down halfway */
	left: 50%;                /* move right halfway */
	transform: translate(-50%, -50%); /* pull back half its size */
	display: flex;
	flex-direction: column;   /* keep items stacked */
	align-items: center;      /* horizontal center */
	justify-content: center;  /* vertical center */
	text-align: center;
  }

 /*  .hud {
    width: var(--size);
    aspect-ratio: 1;
    position: relative;
    filter: drop-shadow(0 8px 40px rgba(0,0,0,.45));
  } */

  /* center circular video */
  .hud video {
    position: absolute; inset: 50% auto auto 50%;
    transform: translate(-50%,-50%);
    width: 62%; aspect-ratio: 1; border-radius: 50%;
    object-fit: cover; overflow: hidden;
    background: white; /* removes default grey */
    box-shadow:
      0 0 0 2px rgba(108,241,255,.35) inset,
      0 0 40px rgba(108,241,255,.15),
      0 0 var(--glow) rgba(108,241,255,.25);
  }

  /* the ring hosting the 4 quarter buttons */
  .ring {
    position: absolute; inset: 0; border-radius:50%;
  }

  /* common styles for each arc button (SVG paths) */
  .arc {
    cursor: pointer;
    transition: filter .2s ease, opacity .2s ease;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
  }
  .arc path {
    fill: url(#arcGrad);
    stroke: rgba(108,241,255,.35);
    stroke-width: 1.2;
  }
  .arc:hover path { filter: brightness(1.25); }
  .arc:active path { filter: brightness(1.45); }

  /* labels on arcs */
  .label {
    font-size: 0.2rem; /* smaller text */
    text-transform: uppercase;
    fill: #cfefff;
    pointer-events: none; /* so clicks go to path */
  }

  /* decorative pulse */
  .pulse {
    position: absolute;
    width: 10%; aspect-ratio: 1; border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 0 0 rgba(108,241,255,.6);
    animation: ping 2.2s ease-out infinite;
    opacity: .12;
	pointer-events: none;
  }
  @keyframes ping { to { box-shadow: 0 0 0 60px rgba(108,241,255,0); } }

  /* optional center caption */
  .center-caption {
    position: absolute; left: 50%; top: 72%;
    transform: translateX(-50%);
    font-size: 12px; letter-spacing: .08em; color: #a6d8ff; text-transform: uppercase;
    opacity: .8; user-select: none;
  }
  
  .br-10{
	  border-radius: 10px;
  }
  
  .background-lightgray{
	  background-color: #efefef;
  }
  
  .background-white{
	  background-color: #fff;
  }