.cognitive {
    width: 200px; /* Atur ukuran gambar */
    height: 20px;
    position: fixed; /* Tetap relatif terhadap viewport, bukan dokumen */
    top: 0;
    left: 0;
    pointer-events: none; /* Agar elemen tidak menghalangi klik */
    transform: translate(-50%, -50%); /* Pusatkan gambar di kursor */
}

/* Dark Mode */
.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

/* Filters for simulating color blindness */
/* body.protanopia {
    filter: grayscale(0.5) sepia(1) hue-rotate(-50deg) saturate(1.2);
}

body.tritanopia {
    filter: grayscale(0.5) sepia(1) hue-rotate(200deg) saturate(1.4);
}

body.deuteranopia {
    filter: grayscale(0.5) sepia(1) hue-rotate(-20deg) saturate(1.3);
} */

/* body.epilepsi header.fixed {
    position: sticky; } */
  body.epilepsi .wrapper,
  body.epilepsi .browser-height {
    filter: grayscale(0.5);
    backdrop-filter: grayscale(0.5); }
  body.epilepsi a {
    transition: none !important; }
  body.epilepsi .collapsing, body.epilepsi .play-button {
    transition: none !important; }
  body.epilepsi .media-image-item {
    transition: none !important; }
    body.epilepsi .media-image-item:hover .caption, body.epilepsi .media-image-item:focus .caption {
      transition: none !important; }
  body.epilepsi .animated {
    -webkit-animation-duration: 0s !important;
    animation-duration: 0s !important;
    -webkit-animation-fill-mode: none !important;
    animation-fill-mode: none !important; }
  /* body.Protanopia header.fixed {
    position: sticky; } */
  body.Protanopia .wrapper,
  body.Protanopia .browser-height {
    filter: grayscale(0.5) sepia(0.8) saturate(3);
    backdrop-filter: grayscale(0.8) sepia(0.5) saturate(3); }
  /* body.Deuteranopia header.fixed {
    position: sticky; } */
  body.Deuteranopia .wrapper,
  body.Deuteranopia .browser-height {
    filter: grayscale(0.5) hue-rotate(117deg) sepia(0.7) saturate(3);
    backdrop-filter: grayscale(0.5) hue-rotate(117deg) sepia(0.7) saturate(3); }
  /* body.Tritanopia header.fixed {
    position: sticky; } */
  body.Tritanopia .wrapper,
  body.Tritanopia .browser-height {
    filter: hue-rotate(230deg) grayscale(0.5) saturate(3);
    backdrop-filter: hue-rotate(230deg) grayscale(0.5) saturate(3); }

.adhd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Area gelap */
    pointer-events: none; /* Tidak menghalangi interaksi */
    z-index: 9999;
    overflow: hidden;
}

.focus-area {
    position: absolute;
    width: 150px; /* Ukuran lingkaran terang */
    height: 150px;
    background-color: rgba(255, 255, 255, 1); /* Area terang */
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.ADHD{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.ADHD .top-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%; 
    background-color: rgba(0, 0, 0, 0.4); 
}

.ADHD .bottom-cursor{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Ubah tinggi sesuai kebutuhan */
    background-color: rgba(0, 0, 0, 0.4); /* Warna gelap transparan */
}

.ADHD .top-cursor,
.ADHD .bottom-cursor{
    transition: background-color 0.3s ease;
}

/* Garis terang di tengah */
.ADHD .center-line{
    position: absolute;
    top: 40%; /* Awal bagian terang */
    height: 20%; /* Tinggi garis terang */
    width: 100%;
}

.ADHD:hover .top-line,
.ADHD:hover .bottom-line{
    background-color: rgba(0, 0, 0, 0.8);
}

/* High Contrast Mode */
.high-contrast {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}

/* Aksesibilitas untuk Font */
body {
    font-size: 16px;
    font-family: inherit;
}


/* Atur semua heading untuk mewarisi gaya dari body */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-family: inherit;
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.accessibility-btn {
    background-color: #1B8E2D;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
}

.accessibility-menu {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.accessibility-option {
    margin-bottom: 15px;
}
