:root{
    /* AAA Compliant Colors (7:1 contrast ratio) */
    
    /* header color */
    --ad-bg-primary: rgb(255, 255, 255);

    /* menu colors */
    --ad-navbar-active-color: rgb(153, 52, 0);     /* Darker orange for better contrast */
    --ad-nav-link-color: rgb(0, 10, 45);           /* Darker blue for better contrast */
    --ad-nav-link-hover-color: rgb(0, 10, 45);     /* Consistent with nav link */
    --ad-dropdown-bg: rgba(255, 255, 255, 1);      /* Full opacity for better readability */
    --ad-dropdown-link-hover-bg: rgba(0, 10, 45, 0.1); /* Subtle hover effect */
  
    
    /* Focus and interactive states */
    --focus-outline-color: rgb(0, 90, 200);        /* High contrast blue for focus states */
    --error-color: rgb(155, 0, 0);                 /* High contrast red for errors */
    --success-color: rgb(0, 100, 0);               /* High contrast green for success */
  }

  html { height:100%; }
  body { 
    height:100%; 
    overflow:hidden; 
    margin:0; 
    padding:0; 
    font-family:Arial, Helvetica, sans-serif; 
    font-size:16px; 
    color:#FFFFFF; 
    background-color:#000000; }


  .ad-bg-body-primary {
   background-color:var(--ad-bg-primary);
    
}



.nav-link {
  color: var(--ad-nav-link-color);
  font-weight: 500; /* Slightly bolder for better readability */
}

.nav-link:focus, 
.nav-link:hover {
  color: var(--ad-nav-link-hover-color);
  text-decoration: underline; /* Additional visual feedback */
}

.dropdown-menu {
  background-color: var(--ad-dropdown-bg);
  border: 1px solid rgba(0, 10, 45, 0.2); /* Subtle border for better definition */
}

.dropdown-item  {
  color: var(--ad-nav-link-color) !important;
  font-weight: 500;
 
}
.dropdown-item.active, .dropdown-item:active{
 background-color: var(--ad-bg-primary);
  color: var(--ad-nav-link-color);
}

.dropdown-item:hover {
  background-color: var(--ad-dropdown-link-hover-bg);
  color: var(--ad-nav-link-color);
}



/* Keep dropdown visible when child is active */
#menu .dropdown.show > .dropdown-toggle {
    color: #ffffff !important;
}





.sticky-nav {
  position: fixed;
  top: 200px;
  left: 20px;
  height: auto;
  background-color: var(--ad-bg-primary); /* Background color for the navigation */
  width: auto; /* Adjust the width as needed */
  padding: 20px; /* Adjust the padding as needed */
  z-index: 1000; /* Ensure it's above other elements */
}

#toolbar
{
  position: absolute;
  bottom: 20px;
  left: 0px;
  z-index: 9999;
  width: 121px;
  height: 121px;
  padding: 32px 32px 32px 30px;
  background-image: url(../images/toolbar.png);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.grid-item {
  background-color: #ffffff;
  color: rgb(0, 10, 45);  /* Darker color for better contrast */
  text-align: center;
  padding: 0;
  height: 25px;
  width: 25px;
  border-radius: 5px;
  justify-self: center;
  cursor: pointer;
  border: 1px solid rgba(0, 10, 45, 0.2); /* Better visual definition */
  transition: all 0.2s ease-in-out;
}

/* Hover state with enhanced contrast */
.grid-item:hover {
  background-color: rgb(0, 10, 45);
  color: #ffffff;
}

/* Active state for better feedback */
.grid-item:active {
  background-color: rgb(0, 10, 45);
  color: #ffffff;
  transform: scale(0.95);
}

/* Keyboard focus styles */
:focus {
  outline: 3px solid var(--focus-outline-color);
  outline-offset: 2px;
}

/* Focus styles for interactive elements */
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.btn:focus-visible,
.grid-item:focus-visible {
  outline: 3px solid var(--focus-outline-color);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

/* Remove default focus for mouse users but keep it for keyboard */
.nav-link:focus:not(:focus-visible),
.dropdown-item:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.grid-item:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ad-nav-link-color);
  color: white;
  padding: 1rem;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.3s ease;
}

.skip-to-main:focus {
  top: 0;
  outline-offset: -2px;
}

#rotationPointer
{
  width: 10px;
  height: 10px;
  background-color: rgb(246, 213, 182);
  border-radius: 50px;

  position: relative;
  
}




/* Extra small devices (phones) */
@media (max-width: 575.98px) {
  /* Define styles for extra-small screens */
  .sticky-nav {
    top: 140px;
    left: 10px;
    width: 80%; /* Adjust the width as needed */
  }

  #toolbar
{

  z-index: 999;
 bottom: -66px;
}
  
  
}
/* Landscape orientation on mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  .sticky-nav {
    top: 80px;
    left: 10px;
    width: 60%;
    padding: 10px;
  }

  #toolbar {
    bottom: -66px;
    left: 10px;
    z-index: 999;
  }
}

@media (max-width: 932.98px) and (orientation: landscape) {
  .sticky-nav {
    top: 80px;
    left: 10px;
    width: 60%;
    padding: 10px;
  }

  #toolbar {
    bottom: -66px;
    left: 10px;
    z-index: 999;
  }
}


/* Small devices (tablets) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Define styles for small screens */
}

/* Medium devices (laptops) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Define styles for medium screens */
}

/* Large devices (desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Define styles for large screens */
}

/* Extra-large devices (large desktops) */
@media (min-width: 1200px) {
  /* Define styles for extra-large screens */
}







