
/* ---------- OVERLAY ---------- */
#accessibility-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
/*  background: rgba(0,0,0,0.3);*/
  background: transparent;
  display: none; /* hidden by default */
  z-index: 9998;
}

/* ---------- MODAL ---------- */
#accessibility-modal {
  position: fixed;
  top: 50px;
  right: 20px;
  width: 460px;
  max-width: 95%;
  background: #f3f3f3;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}



/* Close button */
#close-modal {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Close Button Image Styles */
.close-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.close-icon:hover {
  opacity: 0.7; /* Slight opacity change on hover */
}

/* Style for the profile header */
  #profiles-header {
    font-size: 20px;
    font-weight: bold;
/*    color: #0078d4;  Windows 11 primary blue */
	color: white;
    margin-bottom: 10px;
  }

/* Arrow button to open/close profiles section */
#toggle-profiles{
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:12px;
background:#003366;
border:none;
border-radius:8px;
border-bottom: 2px solid #003366; /* Blue border to separate profiles */
font-weight:600;
cursor:pointer;
}


.expand-icon{
width:24px;
transition:transform .3s;
color: white;
}

#toggle-profiles.open .expand-icon{
transform:rotate(90deg);
}

/* PROFILE GRID */

.accessibility-profiles{
margin-top:15px;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
animation:fade .25s ease;
}

.hidden{
display:none;
}

/* PROFILE BUTTONS */

.access-profile-btn{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
padding:12px;
border:1px solid #ddd;
border-radius:8px;
background:#003366;
cursor:pointer;
font-size:12px;
}

.access-profile-btn img{
width:24px;
margin-bottom:5px;
}

.access-profile-btn:hover{
background:#0078d4;
color:white;
}

/* ACTIVE PROFILE */

.profile-active{
background:#0078d4;
color:white;
}

/* DIVIDER */

.section-divider{
margin:20px 0;
border-top:1px solid #e4e4e4;
}


/* TOOL GRID */

.accessibility-buttons{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
}

/* TOOL BUTTONS */

.tool-btn{
aspect-ratio:1/1;
border:none;
border-radius:10px;
/*background:#0000cc;*/
background:#0078d4;
color:white;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
font-size:12px;
cursor:pointer;
}

.tool-btn:hover{
background:#005fb8;
}

.tool-btn img{
width:22px;
margin-bottom:6px;
}


/* Divider Style */
.section-divider {
  border: 0;
  border-top: 2px solid #0078d4; /* Blue color (Windows 11 primary blue) */
  margin: 20px 0;  /* Add space above and below the divider */
  width: 100%;
  opacity: 0.2;  /* Make it subtle */
}

/* Optionally, style the profiles section to give some space before the divider */
#profiles-section{
/*  display:flex;*/
  align-items:center;      /* vertical center */
  justify-content:flex-start; /* keep left aligned */
  padding:12px 0;
}



/* ---------- SCROLLABLE CONTENT ---------- */
#modal-content {
  flex-grow: 1;
  overflow-y: scroll;
  scroll-behavior: smooth;
  padding-right: 10px;
}

/* ---------- CUSTOM SCROLLBAR ---------- */
/* Chrome, Edge, Safari */
#modal-content::-webkit-scrollbar {
  width: 12px;
}
#modal-content::-webkit-scrollbar-track {
  background: #f0f0f0; /* subtle light gray */
  border-radius: 6px;
}
#modal-content::-webkit-scrollbar-thumb {
  background-color: #c0c0c0; /* light gray for Firefox-style */
  border-radius: 6px;
  border: 3px solid #f0f0f0; /* space around thumb */
  cursor: grab;              /* draggable */
}
#modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #999; /* slightly darker on hover */
}

/* Firefox */
#modal-content {
  scrollbar-width: thin;       /* thin like Firefox default */
  scrollbar-color: #c0c0c0 #f0f0f0; /* thumb / track colors */
}


/* Accessibility buttons */
.accessibility-buttons button {
  margin: 5px 3px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}

.accessibility-buttons {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 15px;
}

.accessibility-buttons button {
  aspect-ratio: 1.2 / 1; /* Wider than tall */
  background: white;
/*  background:#0000cc;*/
  border: 1px solid #ccc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.accessibility-buttons button .icon {
  margin-bottom: 8px;
}

.accessibility-buttons button:hover {
  background: #e6f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.accessibility-buttons button.active {
  background: #0078d4;
  color: white;
  border-color: #0078d4;
}

@media (max-width: 768px){
  .accessibility-buttons { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px){
  .accessibility-buttons { grid-template-columns: 1fr; }
}



/* Profiles dropdown */
#accessibility-profiles.hidden {
  display: none;
}

/* Arrow button to open/close profiles section */
#toggle-profiles{
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:12px;
background:#f7f7f7;
border:none;
border-radius:8px;
font-weight:600;
cursor:pointer;
}


.expand-icon{
width:16px;
transition:transform .3s;
}

#toggle-profiles.open .expand-icon{
transform:rotate(90deg);
}

/* PROFILE GRID */

.accessibility-profiles{
margin-top:15px;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
animation:fade .25s ease;
border-bottom: 2px solid #003366; /* Blue border to separate header */
}

.hidden{
display:none;
}

/* PROFILE BUTTONS */

.access-profile-btn{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
padding:12px;
border:1px solid #ddd;
border-radius:8px;
background:white;
cursor:pointer;
font-size:12px;
}

.access-profile-btn img{
width:24px;
margin-bottom:5px;
}

.access-profile-btn:hover{
background:#0078d4;
color:white;
}

/* ACTIVE PROFILE */

.profile-active{
background:#0078d4;
color:white;
}

/* DIVIDER */

.section-divider{
margin:20px 0;
border-top:1px solid #e4e4e4;
}

/* TOOL GRID */

.accessibility-buttons{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
}

/* TOOL BUTTONS */

.tool-btn{
aspect-ratio:1/1;
border:none;
border-radius:10px;
/*background:#0000cc;*/
background:#0078d4;
color:white;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
font-size:12px;
cursor:pointer;
}

.tool-btn:hover{
background:#005fb8;
}

.tool-btn img{
width:22px;
margin-bottom:6px;
}


.large-cursor,
.large-cursor * {
  cursor: url('/graphics/large-cursor.png') 62 62, auto !important;
}

.large-cursor::after {
  content: "";
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,0,0.3);
  pointer-events: none;
}

/* Divider Style */
.section-divider {
  border: 0;
  border-top: 2px solid #0078d4; /* Blue color (Windows 11 primary blue) */
  margin: 20px 0;  /* Add space above and below the divider */
  width: 100%;
  opacity: 0.2;  /* Make it subtle */
}

/* Optionally, style the profiles section to give some space before the divider */
#profiles-section{
/*  display:flex;*/
  align-items:center;      /* vertical center */
  justify-content:flex-start; /* keep left aligned */
  padding:12px 0;
}



/* ---------- SCROLLABLE CONTENT ---------- */
#modal-content {
  flex-grow: 1;
  overflow-y: scroll;
  scroll-behavior: smooth;
  padding-right: 10px;
}

/* ---------- CUSTOM SCROLLBAR ---------- */
/* Chrome, Edge, Safari */
#modal-content::-webkit-scrollbar {
  width: 12px;
}
#modal-content::-webkit-scrollbar-track {
  background: #f0f0f0; /* subtle light gray */
  border-radius: 6px;
}
#modal-content::-webkit-scrollbar-thumb {
  background-color: #c0c0c0; /* light gray for Firefox-style */
  border-radius: 6px;
  border: 3px solid #f0f0f0; /* space around thumb */
  cursor: grab;              /* draggable */
}
#modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #999; /* slightly darker on hover */
}

/* Firefox */
#modal-content {
  scrollbar-width: thin;       /* thin like Firefox default */
  scrollbar-color: #c0c0c0 #f0f0f0; /* thumb / track colors */
}
/* Reading guide */
#reading-guide {
  display: none;
  background: rgba(255,255,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3em;
  pointer-events: none;
  z-index: 9999;
}

/* Accessibility classes */
.high-contrast { background-color: black !important; color: yellow !important; }
.legible-font { font-family: Arial, sans-serif !important; }
.large-cursor { cursor: pointer !important; }
.play-animations * { transition: all 0.5s ease; }




/*  For Icon   */
.menu-bar {
  position: relative;
}

.accessibility-icon-container {
  position: fixed;
  top: 2px; 
  right: 65px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.accessibility-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.accessibility-icon:hover {
  transform: scale(1.15);
  /* Optional: change color on hover */
  /* fill: #FFD700; */
}


/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #003366; /* Blue border to separate header */
  padding-bottom: 10px;
}

#modal-title {
  color: #003366; /* Windows 11 blue */
}


select {
  font-size: inherit !important;
}

/* Custom cursor container */
#large-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;  
  height: 32px;
  pointer-events: none; /* do not block clicks */
  z-index: 9999;
  transform: translate(0, 0); /* hotspot at tip */
  transition: transform 0.03s linear; /* smooth movement */
}
