@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

.nb-menu {
  font-family: 'Inter';
  position: fixed;
  left: 90px;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  max-height: calc(100% - 40px);
  border-radius: 12px;
  opacity: 1;
  transition: 0.3s;
  z-index: 5000000;
  overflow-y: auto;
  width: 580px;
  line-height: 1.2;
  font-size: 16px;
  letter-spacing: 0.015em;
  color: #000;
}

.nb-menu-header {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background-color: #007c9d;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.nb-menu-header > div {
  display: flex;
  flex-direction: column;
}

.nb-menu-header > div:first-child {
  flex-grow: 1;
  text-align: center;
  padding: 5px 0;
}

.nb-menu-header div[role='button'] {
  cursor: pointer;
  height: 29px;
  width: 29px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 20px;
}

.nb-menu-header div[role='button']:hover {
  opacity: 0.8;
}

.nb-menu-header h2 {
  font-size: 28px;
  line-height: 39px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.nb-menu-header .nb-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 39px;
  margin-bottom: 18px;
}

.nb-card {
  margin: 0 20px;
}

.nb-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nb-btn {
  border-radius: 8px;
  padding: 22px 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #333;
  font-size: 16px !important;
  background: #f2f7fa;
  border: 0.4px solid #0000001f;
  box-shadow: 0px 0px 3px 0px #00000017;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: normal;
}

.nb-btn .nb-translate {
  font-size: 18px;
  line-height: 21px;
}

.nb-btn .material-icons {
  margin-bottom: 21px;
}

.nb-btn .icon {
  margin-bottom: 21px;
  display: flex;
  align-items: center;
  position: relative;
}

.nb-btn.highlight-headings .icon span,
.nb-btn.font-weight-toggle .icon span {
  font-size: 32px;
  font-weight: 600;
  line-height: normal;
  height: 24px;
}

.nb-btn:hover {
  border-color: #419d4a;
}

.nb-btn.nb-selected {
  background: #419d4a;
  color: white;
  border-color: #419d4a;
}

.nb-btn.active {
  border-color: #007c9d !important;
  box-shadow: 0 0 10px rgba(0, 124, 157, 0.5);
}

.nb-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000cc;
  border: none;
  border-radius: 90px;
  padding: 7px 57px 7px 80px;
  margin: 0 auto;
  width: calc(100% - 30px);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2px;
  cursor: pointer;
  max-width: max-content;
  border: 1px solid #fff;
  position: relative;
  line-height: 24px;
}

.nb-reset-btn:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  background: url('/themes/custom/apollo/assets/svg/ph_repeat-light.svg');
  background-size: 100%;
  left: 57px;
  top: 11px;
}

.nb-reset-btn .material-icons {
  margin-right: 10px;
  font-size: 24px;
}

.nb-reset-btn:hover {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.nb-reset-btn:hover:before {
  background: url('/themes/custom/apollo/assets/svg/ph_repeat-light-active.svg');
}

.nb-menu-content {
  overflow-y: auto;
  max-height: calc(100% - 180px);
  color: #333;
  padding: 30px 0 40px;
  border: 1px solid #00000033;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  background-color: #ffffff;
}

.nb-widget,
.nb-menu {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.nb-widget *,
.nb-menu * {
  box-sizing: border-box;
}

.nb-menu-btn {
  position: fixed;
  z-index: 999;
  background: transparent;
  transition: 0.3s;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  cursor: pointer;
  text-decoration: none;
  left: 1rem;
  bottom: auto;
  right: auto;
  transform: translateY(-50%);
  top: calc(50% + 205px);
  background-color: #007c9d;
  padding: 12px;
  display: none; /* Hiding the functionality temporarily. */
}

.nb-accessibility-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nb-page-structure {
  display: none;
  margin: 15px 15px 30px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.nb-page-structure h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.nb-page-structure table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  table-layout: fixed;
}

.nb-page-structure th,
.nb-page-structure td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #dedede;
  font-size: 14px;
  color: #333;
}

.nb-page-structure th {
  background: #f1f1f1;
  font-weight: 600;
}

.nb-page-structure td a {
  color: #007c9d;
  text-decoration: none;
}

.nb-page-structure td a:hover {
  text-decoration: underline;
}

.nb-page-structure tr th:first-child {
  width: 110px;
}

.nb-page-structure table thead th {
  text-transform: capitalize;
}

@font-face {
  font-family: 'OpenDyslexic3';
  src: url('https://website-widgets.pages.dev/fonts/OpenDyslexic3-Regular.woff')
      format('woff'),
    url('https://website-widgets.pages.dev/fonts/OpenDyslexic3-Regular.ttf')
      format('truetype');
}

@media only screen and (max-width: 1056px) {
  .nb-menu {
    top: 20px;
    transform: translateY(0);
    max-height: calc(100% - 40px);
  }

  .nb-reset-btn:hover {
    background: #ffffff;
    color: #000000cc;
    border: none;
  }

  .nb-reset-btn:hover:before {
    background: url('/themes/custom/apollo/assets/svg/ph_repeat-light.svg');
    background-size: 100%;
  }
}

/* Tablet (max-width: 768px) */
@media only screen and (max-width: 768px) {
  .nb-menu {
    width: 100%;
    left: 0;
    bottom: 0;
    top: 0;
    transform: translateY(0);
    max-height: none;
    border-radius: 0;
  }

  .nb-menu-header {
    font-size: 20px;
    padding: 30px 15px;
    border-radius: 0;
  }

  .nb-menu-header > div:first-child {
    padding: 0;
  }

  .nb-menu-header h2 {
    margin-bottom: 15px;
  }

  .nb-menu-header .nb-title {
    font-size: 20px;
    margin-bottom: 25px;
    line-height: 26px;
  }

  .nb-btn .nb-translate {
    font-size: 16px;
  }

  .nb-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nb-btn {
    font-size: 16px !important;
  }
  .nb-btn .icon {
    margin-bottom: 10px;
  }
  .nb-reset-btn {
    font-size: 14px;
    padding: 8px 23px 8px 43px;
    line-height: 17px;
    border: 0;
  }

  .nb-reset-btn:before {
    left: 23px;
    top: 10px;
    height: 14px;
    width: 14px;
  }

  .nb-reset-btn .material-icons {
    font-size: 24px;
  }
  .nb-menu-btn {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 20px;
    top: 50%;
  }
  .nb-page-structure {
    margin-bottom: 0;
  }

  .nb-page-structure h4 {
    font-size: 16px;
  }
  .nb-page-structure th,
  .nb-page-structure td {
    font-size: 14px;
    padding: 8px;
  }
  .nb-menu-content {
    max-height: none;
  }

  .nb-page-structure tr th:first-child {
    width: 70px;
  }

  .nb-menu-header div[role='button'] {
    right: 15px;
    top: 15px;
  }

  .nb-btn.highlight-headings .icon span,
  .nb-btn.font-weight-toggle .icon span {
    font-size: 26px;
  }
}

/* Mobile (max-width: 480px) */
@media only screen and (max-width: 480px) {
  .nb-items {
    gap: 20px 10px;
  }
  .nb-btn {
    font-size: 16px !important;
    padding: 20px 6px;
    justify-content: center;
    min-height: 123px;
  }
  .nb-btn .icon {
    margin-bottom: 10px;
  }
  .nb-reset-btn .material-icons {
    font-size: 24px;
  }
  .nb-menu-btn {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 15px;
  }
  .nb-menu-content {
    padding: 30px 0 50px;
  }
  .nb-page-structure th,
  .nb-page-structure td {
    font-size: 13px;
    padding: 6px;
  }
}

/* Very Small Mobile (max-width: 320px) */
@media only screen and (max-width: 320px) {
  .nb-menu {
    font-size: 14px;
  }
  .nb-menu-header {
    font-size: 16px;
  }
  .nb-btn {
    font-size: 14px !important;
    padding: 10px 12px;
  }
  .nb-btn .material-icons {
    font-size: 22px;
  }
  .nb-reset-btn {
    font-size: 14px;
    padding: 10px 15px;
  }
  .nb-menu-btn {
    width: 50px;
    height: 50px;
  }
}
