nav ul,
nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 550px) {
  .w-25 {
    width: 100% !important;
  }
}

#mobile-toggle {
  font-size: 1.4rem;
}

nav a {
  display: block;
  text-decoration: none;
}

nav a:hover,
nav a:visited {
  text-decoration: none;
}

.menu-bar {
  background: rgb(19, 13, 13);
  padding: 17px;
  /* width: 10px; */
  display: flex;
  border-radius: 10px;
  /* border: 1px solid black; */
  align-items: center;
  justify-content: space-between;
}

#menu-link,
.menuLink{
  margin: 5px 10px;
  color: white !important;
}

.activeLink:focus {
  background-color: black !important;
  color: white;
}

.menu-link {
  padding: 8px 8px 8px 8px;
  /* background: rgb(73, 73, 73); */
  color: black;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 1;
  width: auto;
  font-size: 12px;
}

.menu-link[aria-haspopup="true"] {
  padding-right: 40px;
}

.menu-link[aria-haspopup="true"]:before {
  content: "\f054"; /* Unicode for Font Awesome right arrow icon */
  font-family: "Font Awesome 6 Free";
  background-size: 14px;
  width: 14px;
  height: 14px;
  font-size: 12px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-play {
  font-size: 10px !important;
  margin-right: 7px;
}

/*.footer-arrow-icon:before{*/
/* content: "\f054" !important;*/
/*}*/
.footer-arrow-icon {
  font-size: 11px;
  margin-right: 6px;
}

.footer-social-icon {
  color: white;
  font-size: 25px;
}

.footer-flag {
  font-size: 30px !important;
  margin-top: 10px;
}

.calculator-icons {
  width: 27px;
}

/*.menu-list{*/
/* opacity: 0;*/
/* transition: opacity 0.3s ease-in-out;*/
/*}*/

.menu .menu-list {
  overflow-x: auto;
  overflow-y: auto;
}

.menu .menu-list::-webkit-scrollbar-track {
  background-color: orange;
}

.menu .menu-list::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 10px;
}

.menu .menu-list::-webkit-scrollbar {
  width: 2px;
  height: 0;
  margin: 0;
  padding: 0;
}

.mega-menu-header {
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: bold;
  color: #136a73;
}

.mega-menu {
  background: #ffffff;
  z-index: 10;
}

.mega-menu--multiLevel {
  flex-direction: column;
}

/* search bar css start */

@media screen and (max-width: 800px) {
  #search-bar {
    display: none;
  }
}

/* search bar css end */

@media all and (min-width: 951px) {
  .nav {
    /*margin-top: 30px;*/
    background: #ffa53d;
  }

  .nav > nav {
    max-width: 85%;
    margin: 0 auto;
  }

  .menu [aria-haspopup="true"] ~ ul ,
   .menu.menu-list{
    display: none;
  }

  .menu-bar {
    position: relative;
  }

  .menu-bar > li > [aria-haspopup="true"]:after {
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1397521/arrowBottom.svg#accent");
  }

  .menu-bar > li > [aria-haspopup="true"]:hover:after {
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1397521/arrowBottom.svg#light");
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul:hover {
    display: flex;
  }

  .dropdown:focus-within > [aria-haspopup="true"] {
    display: flex;
  }

  .dropdown[aria-haspopup="true"]:focus,
  .dropdown:focus-within > [aria-haspopup="true"] {
    /* background: #177E89; */
    color: black;
  }

  .menu-bar > li > [aria-haspopup="true"]:focus:after,
  .menu-bar > li:focus-within > [aria-haspopup="true"]:after,
  .menu-bar > li:hover > a:after {
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1397521/arrowTop.svg#light");
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* height: 50vh !important; */
  }

  .mega-menu:hover {
    display: flex;
  }

  .mega-menu a:hover {
    background: #dceced;
    color: #136a73;
  }

  .mega-menu--multiLevel > li {
    width: 33.33333333%;
  }

  .mega-menu--multiLevel > li > [aria-haspopup="true"] ~ ul,
  .mega-menu--multiLevel > li > [aria-haspopup="true"] ~ div{
    left: 33.33333333%;
    /*width: 83.333333%;*/
  }

  .mega-menu--multiLevel > li > [aria-haspopup="true"] ~ ul ul {
    width: 100%;
    left: 100%;
  }

  .mega-menu--multiLevel [aria-haspopup="true"] ~ ul,
  .mega-menu--multiLevel [aria-haspopup="true"] {
    border-left: 1px solid #f0f0f0;
    font-size: 0.9rem;
  }

  .mega-menu--multiLevel [aria-haspopup="true"] ~ ul:hover,
  .mega-menu--multiLevel [aria-haspopup="true"]:hover {
    display: flex;
  }

  .mega-menu--multiLevel [aria-haspopup="true"] ~ ul, 
  .mega-menu--multiLevel [aria-haspopup="true"] ~ div{
    position: absolute;
    top: 0;
    height: 100%;
  }

  .mega-menu--flat > * {
    flex: 1;
  }

  .mobile-menu-trigger,
  .mobile-menu-header,
  .mobile-menu-back-item {
    display: none;
  }
}

.mega-menu--multiLevel li:focus-within > [aria-haspopup="true"] ~ ul {
  display: flex;
}

@media all and (max-width: 950px) {
  .mega-menu--multiLevel li:focus-within > [aria-haspopup="true"] ~ ul {
    display: block !important;
  }

  .mobile-menu-trigger,
  .mobile-menu-header,
  .mobile-menu-back-item {
    display: block;
  }

  .mobile-menu-trigger {
    background: black;
    border-radius: 15px;
    color: #ffffff;
    border: 0;
    padding: 10px;
    min-width: 94%;
    font-size: 1.2em;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-header {
    order: -1;
    background: grey;
  }

  .mobile-menu-header a {
    padding: 20px 25px;
    color: #ffffff;
    visibility: visible;
  }

  .menu-bar {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 300px;
    max-width: 350px;
    max-width: 90%;
    overflow-x: hidden;
    transition: left 0.3s;
    box-shadow: 1px 0px 2px 0px rgba(0, 0, 0, 0.25);
  }

  @media screen and (max-width: 800px) {
    .menu-bar {
      display: block !important;
    }

    #menu-link {
      display: block !important;
    }
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    left: 100%;
    top: 0;
    max-height: 100vh;
    width: 100%;
    transition: left 0.3s;
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul > li > [aria-haspopup="true"] {
    font-size: 1rem;
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul [aria-haspopup="true"] {
    color: black;
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul [aria-haspopup="true"]:after {
    content: "+";
    background: none;
    font-size: 1em;
    font-weight: normal;
    height: 20px;
    line-height: 1;
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul [aria-haspopup="true"] ~ ul {
    max-height: 0px;
    transform-origin: top;
    transform: scaleY(0);
    transition: max-height 0.1s;
  }

  .mega-menu-content {
    padding: 20px 25px;
  }

  .mobile-menu-back-item {
    order: -1;
  }

  .mobile-menu-back-item a {
    background: #d9d9d9;
    color: #2a2a2a;
    max-height: calc(1.4em + 40px);
    margin-top: calc(0px - (1.4em + 40px));
    pointer-events: none;
  }

  .mobile-menu-back-item a:before {
    content: "";
    width: 14px;
    height: 12px;
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1397521/arrowLeft.svg#default");
    background-size: 14px;
    margin-right: 10px;
    display: inline-block;
  }

  .mobile-menu-trigger:focus ~ ul {
    left: 0;
    z-index: 1;
  }

  .menu-bar:hover,
  .menu-bar:focus-within {
    left: 0;
    z-index: 1;
  }

  .menu-bar > li > [aria-haspopup="true"]:focus ~ ul {
    left: 0;
    z-index: 1;
  }

  /*.menu-bar>li>[aria-haspopup="true"]~ul {*/
  /* margin-top: calc(1.4em + 40px);*/
  /*}*/

  .menu-bar > li > [aria-haspopup="true"] ~ ul:hover,
  .menu-bar > li > [aria-haspopup="true"] ~ ul:focus-within {
    left: 0;
  }

  .menu-bar
    > li
    > [aria-haspopup="true"]
    ~ ul
    [aria-haspopup="true"]:focus
    ~ ul {
    /*max-height: 500px;*/
    animation: dropdown 0.3s forwards;
  }

  .menu-bar
    > li
    > [aria-haspopup="true"]
    ~ ul
    li:focus-within
    > [aria-haspopup="true"]
    ~ ul {
    max-height: 200px !important;
    transform: scaleY(1);
  }

  .menu-bar > li:focus-within ~ .mobile-menu-header a {
    visibility: hidden;
  }
}

@media all and (max-width: 950px) and (hover: none) {
  .mobile-menu-trigger:hover ~ ul {
    left: 0;
    z-index: 1;
  }

  .menu-bar > li > [aria-haspopup="true"]:hover ~ ul {
    z-index: 1;
    left: 0;
  }

  .menu-bar > li > [aria-haspopup="true"] ~ ul:hover {
    z-index: 1;
    left: 0;
  }

  .menu-bar
    > li
    > [aria-haspopup="true"]
    ~ ul
    [aria-haspopup="true"]:hover
    ~ ul {
    max-height: 500px;
    animation: dropdown 0.3s forwards;
  }

  .menu-bar
    > li
    > [aria-haspopup="true"]
    ~ ul
    [aria-haspopup="true"]
    ~ ul:hover {
    max-height: 500px;
    transform: scaleY(1);
  }

  .menu-bar > li:hover ~ .mobile-menu-header a {
    visibility: hidden;
  }

  .search-container {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: -9999px;
  }
}

@keyframes dropdown {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes flyout {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.menu.menu-list.open {
  display: flex;
  /*opacity: 1;*/
  /*Ensures that the drop-down is visible */
  /*Apply other necessary styles here if needed */
}

.search-button {
  background: black;
}

#popupBg {
  background: url("https://www.assignmentguru.co.uk/assets/img/halloween-popup-banner.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

.swing {
  animation: swing ease-in-out 1s infinite alternate;
  transform-origin: center -20px;
  float: center;
}

.swing img {
  display: block;
}

.swing:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid #999;
  top: -10px;
  left: 50%;
  z-index: 0;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.swing:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: -14px;
  left: 54%;
  z-index: 5;
  border-radius: 50% 50%;
  background: #000;
}

@keyframes swing {
  0% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(-4deg);
  }
}

.menu li > button,
.menu div > button{
  border: none;
  background: unset;
  margin: 0px;
  width: 100%;
  font-size: 0.9rem !important;
  font-weight: 700;
  text-align: left;
  border-radius: 0 !important;
}

.site-menu-bar .dropdown-button {
    padding: 0px;
    font-weight: 500;
    font-size: 1rem !important;
}

.mega-menu--multiLevel > li > a {
    font-size: 0.9rem;
    font-weight: 700;
}