.cookie-btns-wrapper {
  align-self: center;
}

footer {
    z-index: 100;
    position: relative;
}

body {
    overflow: auto;
}

.recording-pulse-blue {
  animation-name: recording-pulse-blue-animation;
  animation-timing-function: ease-in-out;
  animation-duration: 1s;
  animation-direction: alternate-reverse;
  animation-iteration-count: infinite;
}

@keyframes recording-pulse-blue-animation {
  from {
    border-color: #ade5ff;
  }

  to {
    border-color: #0066cc;
  }
}

.stn-widget-content {
  padding-top: env(safe-area-inset-top) !important;
}

.stn-widget-buttons-wrapper {
  top: calc(20px + env(safe-area-inset-top, 0)) !important;
}

.ant-radio-checked .ant-radio-inner {
  border-color: #0066cc !important;
}

.ant-radio-wrapper:hover .ant-radio-inner,
.ant-radio:hover .ant-radio-inner {
  border-color: #0066cc !important;
}

.ant-radio-checked:hover .ant-radio-inner {
  border-color: #0066cc !important;
}

.ant-drawer-close {
  width: 32px !important;
  height: 32px !important;
}

.button-icon .fa-icon {
  transition: color 0.2s ease-in-out;
}

.button-icon .caret-down {
  transition: fill 0.2s ease-in-out;
}

.button-icon:hover .fa-icon {
  color: #0276b1;
}

.button-icon:hover .caret-down {
  fill: #0276b1 !important;
}

.menu-link-item:hover {
  color: #0276b1 !important;
}

.menu-link-item:hover .caret-down {
  fill: #0276b1 !important;
}

.ant-menu-horizontal>.ant-menu-submenu::after,
.ant-menu-horizontal>.ant-menu-item::after {
  left: 0px !important;
  right: 0px !important;
}

.ant-menu-horizontal {
  li {
    height: 60px !important;
  }

  li:focus {
    z-index: 9999 !important;
  }
}

.ant-menu-submenu-title:focus {
  z-index: 9999 !important;
}

.ant-menu-submenu-horizontal {
  padding: 0px !important;
}

.ant-menu-submenu-title {
  height: 60px !important;

  .ant-menu-title-content {
    .menu-link-item {
      background-color: transparent !important;
      margin-top: 0px !important;
    }
  }
}

.ant-menu-submenu-title:focus {
  border-radius: 0;
}

.ant-menu-submenu-popup {
  padding-top: 4px !important;
}

.ant-menu-item-group {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.ant-menu-vertical {
  padding-bottom: 4px !important;
}

.ant-menu-sub>.ant-menu-item-active:hover {
  background-color: #fafdff !important;
  color: #0276b1 !important;
}

.ant-menu-item-group-list>.ant-menu-item-active:hover {
  background-color: #fafdff !important;
  color: #0276b1 !important;

  .mobile-menu-item-label {
    color: #0276b1 !important;
  }
}

.ant-dropdown-menu-item-active:hover {
  background-color: #fafdff !important;
  color: #0276b1 !important;

  .dropdown-menu-item {
    background-color: #fafdff !important;
    color: #0276b1 !important;
  }

  .dropdown-menu-item-icon {
    fill: #0276b1 !important;
  }
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ensure focus ring is place on home logo, but only when navigating via keyboard */
#homeLogo:focus-visible {
  outline: 3px solid #74c0f2 !important;
  outline-offset: 1px !important;
}

/*Override all focus */
/*:focus-visible {*/
/*  outline: 2px solid #0276b1 !important;*/
/*  outline-offset: 1px !important;*/
/*}*/
/* Fonts */
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Font colours */
q,
.copyright,
.pos-g,
.phon,
.prefix,
.v-gs {
    color: grey;
}

.collo,
.x-gs q::before {
    color: black;
}

/* Font styles */
q,
.pos-g {
    font-style: italic;
}

.collo {
    font-weight: 600;
    padding-right: 4px;
    font-style: normal;
}

/* Font weights */
.cl,
.pos,
.seo,
.shcut,
.v-g,
.xrGrp {
    font-weight: 600;
}

/* Display */
.def,
.phonetics,
.pos-g,
.seo,
.xrGrp a {
    display: inline-block;
}

q,
.prefix,
.shcut,
.topic-g,
.xr-gs {
    display: block;
}

/* Other */
.wordlist span, q {
    margin-bottom: 10px;
}

.seo {
    font-size: large;
}

.shcut {
    font-size: large;
    margin: 25px 0;
}

/* Styling for external links */
.xrGrp a {
    border: 1px solid #DFE2E6;
    border-radius: 4px;
    font-weight: 500;
    color: #0066CC;
    margin-bottom: 10px;
    padding: 4px 8px;
    text-decoration: none;
}

/* Styling for external links */
.xrGrp button {
    border: 1px solid #DFE2E6;
    border-radius: 4px;
    font-weight: 500;
    color: #0066CC;
    margin-bottom: 10px;
    padding: 4px 8px;
    text-decoration: none;
    background-color: transparent;
    font-size: 16px;
    font-family: "Source Sans Pro", sans-serif;
    margin: 0;
    line-height: 1.5;
}

/* Override styles for .ndv within .def */
.def .xrGrp a {
    border: none !important;
    border-radius: 0 !important;
    color: #1e90ff !important;
    /* Specify color */
    display: inline !important;
    /* Revert to default display value */
    padding: 0 !important;
    /* text-decoration: underline !important; Specify text decoration */
}

.def .xrGrp button {
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    color: #1e90ff !important;
    /* Specify color */
    display: inline !important;
    /* Revert to default display value */
    padding: 0 !important;
    /* text-decoration: underline !important; Specify text decoration */
    font-size: 16px;
    font-family: "Source Sans Pro", sans-serif;
}

.xr-gs {
    padding-top: 15px;
}

.label-g {
    display: inline;
}

/* Adding a colon after elements with class .prefix */
.prefix::after {
    content: ":";
}

.prefix {
    text-transform: uppercase;
}

span.def {
    display: inline;
    width: 100%;
    flex: 1;
}

.wordlist {
    display: block;
    margin-top: 32px;
}

span.x-gs {
    width: 100%;
    margin-left: 36px;
}

span.xr-gs {
    width: 100%;
}

.sn-g {
    display: inline-flex;
    gap: 4px;
    counter-increment: item;
}

.sn-g:before {
    margin-right: 12px;
    font-size: 14px;
    content: counter(item);
    background: #E6F0FA;
    border-radius: 100%;
    color: #5D6B82;
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.sense-topg {
    display: contents;
}

/* Aligning phonetic transcription to the right */
.phonetics {
    float: right;
    display: flex;
    gap: 16px;
}

/* Copyright styling */
.copyright {
    display: none;
}

/* Font style when audio is playing */
.audio-playing .phon {
    color: #1e90ff;
}

.v-gs {
    display: block;
}

.gram-g {
    color: #5D6B82;
}

.if-gs {
    display: block;
}

.sn-g-child-wrapper {
    white-space: pre-line;
}

.volume-icon {
    cursor: pointer;
}

.footer-links:focus {
  outline: 3px solid #74c0f2;
  outline-offset: 1px;
  border-radius: 6px;
}

@media (prefers-contrast: more) {

  .footer-links:hover {
     outline: 3px solid #74c0f2;
     outline-offset: 1px;
      border-radius: 6px;
 }
}

