header {
  background: var(--light);
  width: 100%;
  position: fixed;
  z-index: 999;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding: 5px;
  height: 60px;
  top: 0;
  left: 0;
  position: relative;
  /* transition: top 0.3s ease-in-out */
}

/*logo*/
.header figure a img {
  width: 150px;
}

/*menu*/
.header .menu {
  display: none;
}

.header .menu ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.header .menu ul li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  color: var(--dark);
  font-weight: bold;
}

.header .menu ul li a.active,
.header .menu ul li a:hover {
  color: var(--orange);
}

/*header-right*/
.header-right {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

/*mode change*/
/* dark model */
.dark-mode-toggle {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: none;
  display: inline-block;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  overflow: hidden;
}

.dark-mode-toggle:focus {
  outline: none;
  border-color: var(--orange);
}

:root[data-theme="dark"] .dark-mode-toggle__text:before {
  content: "deactivate ";
}

:root[data-theme="light"] .dark-mode-toggle__text:before {
  content: "activate ";
}

.dark-mode-toggle__icon {
  display: block;
  background: var(--dark-grey);
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  position: relative;
  transition: right 0.3s ease-in-out;
  /* Add transition for opacity */
  z-index: 1;
  transform: rotate(-20deg);
}

.dark-mode-toggle__icon:before {
  z-index: 0;
  content: "";
  position: absolute;
  display: block;
  border-right: none;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  top: 50%;
  left: 50%;
  transition: right 0.3s ease-in-out;
  /* Add transition for opacity */
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spin__rays 5s linear infinite;
  background-image: linear-gradient(0deg,
      transparent 46%,
      var(--orange) 46%,
      var(--orange) 54%,
      transparent 54%),
    linear-gradient(90deg,
      transparent 46%,
      var(--orange) 46%,
      var(--orange) 54%,
      transparent 54%),
    linear-gradient(45deg,
      transparent 47%,
      var(--orange) 47%,
      var(--orange) 53%,
      transparent 53%),
    linear-gradient(135deg,
      transparent 47%,
      var(--orange) 47%,
      var(--orange) 53%,
      transparent 53%);
}

.dark-mode-toggle__icon:after {
  content: "";
  position: absolute;
  display: block;
  background: var(--light);
  border-radius: 0.7rem;
  width: 0.8rem;
  height: 0.8rem;
  top: 50%;
  left: 200%;
  transform: translateY(-50%);
  transition: right 0.3s ease-in-out;
  /* Add transition for opacity */

}

.dark-mode-toggle .dark-mode-toggle__icon {
  background: var(--orange);
}

:root[data-theme="light"] .dark-mode-toggle__icon:after {
  left: 40%;
}

:root[data-theme="dark"] .dark-mode-toggle__icon {
  width: 1rem;
  height: 1rem;
}

:root[data-theme="dark"] .dark-mode-toggle__icon:before {
  opacity: 1;
}

@keyframes spin__rays {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

.hidden--visually {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*search*/
.header-right .search-top {
  display: none;
}

.header-right .search-top input {
  padding: 8px 10px;
  border: none;
  background: var(--grey);
  color: var(--dark);
  border-radius: 20px;
  outline: none;
}

/*hamburger*/
.hamburger .bx:hover {
  color: var(--orange);
}

.hamburger .bx {
  font-size: 30px;
  color: var(--dark);
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -300px;
  /* Initially offscreen */
  width: 300px;
  height: 100%;
  background-color: var(--light);
  transition: right 0.3s ease-in-out;
  z-index: 9999;
}

.sidebar-menu.active {
  right: 0;
  height: 98%;
  border-end-end-radius: 10px;
  /* Displayed onscreen */
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.close-button i {
  color: var(--dark);
  font-size: 30px;
  font-weight: bold;
}

/*progress bar*/
#progress-bar {
  position: relative;
  left: 0;
  width: 0;
  height: 2px;
  background: rgb(6, 132, 199);
  background: linear-gradient(82deg,
      rgba(6, 132, 199, 1) 14%,
      rgba(246, 142, 61, 1) 46%,
      rgba(242, 90, 79, 1) 93%);
  z-index: 9999;
  transition: right 0.3s ease-in-out;

}

/* mobile menu btm */
.mobile-menu {
  display: block;
  background: var(--light);
  height: 50px;
  position: fixed;
  bottom: 0;
  border-radius: 100px;
  margin: 5px;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
}

.mobile-menu-wrap {
  height: 100%;
  width: 100%;
  padding: 0px 20px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.mobile-menu-wrap ul {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

.mobile-menu-wrap ul .mobile-menu-item-center {
  height: 50px;
  width: 50px;
  display: flex;
  border-radius: 50%;
  margin-top: -20px;
  background: var(--blue);
  align-items: center;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  z-index: 999;
}

.mobile-menu-wrap ul .mobile-menu-item-center:hover {
  background: var(--orange);
}

.mobile-menu-wrap ul li a {
  font-size: 30px;
  font-weight: bold;
  display: flex;
}

.mobile-menu-wrap ul li a:hover {
  color: var(--orange);
}

.mobile-menu-wrap ul .mobile-menu-item-center a .bx,
.mobile-menu-wrap ul .mobile-menu-item-center a .bx:hover {
  color: #F9F9F9 !important;
}

.side-logo {
  margin-top: 10%;
}

.side_menu-wrap {
  display: flex;
  width: 100%;
}

.side-menu-right {
  display: flex;
  flex-direction: column;
  padding: 30px;
  width: 100%;
}

.side-menu-right li {
  padding: 10px 0px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.side-menu-right li a .bx {
  background-color: var(--dark-grey);
  padding: 4px;
  color: var(--light);
  border-radius: 5px;
  margin-right: 5px;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  color: var(--light);
  background-color: var(--dark);
  border: none;
  border-radius: 50px;
  width: 20px;
  height: 40px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: right 0.3s ease-in-out;
}

#scrollToTopBtn i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#scrollToTopBtn.show {
  opacity: 1;
}

@media (min-width: 576px) {
  .mobile-menu {
    display: none;
  }

  .sidebar-menu.active {
    right: 0;
    height: 100%;
    border-end-end-radius: 0px;
    /* Displayed onscreen */
  }
}

@media (min-width: 992px) {
  .header .menu {
    display: block;
  }
}

@media (min-width: 1200px) {
  .header-right .search-top {
    display: block;
  }
}

footer {
  margin-top: 50px;
}

footer .footer-inner {
  text-align: center;
  border-top: solid 1px var(--border);
  padding: 40px 0;
}

footer .footer-inner img {
  width: 200px;
  height: 100%;
}

footer .footer-inner .copyright {
  color: var(--dark);
}

footer .secondary-footer {
  background-color: #a1a1a126;
  padding-top: 10px;
  padding-bottom: 5px;
  font-size: 17px;
  text-align: center;
}

footer .secondary-footer a {
  color: var(--blue);
}

/* today headline */


.wrapper-404 {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapper-404 .oops {
  color: var(--blue);
  font-size: 8em;
  letter-spacing: 0.05em;
  margin-top: 30px;
}

.wrapper-404 .info {
  color: var(--dark);
  padding: 5px;
  font-size: 20px;
}

.wrapper .button {
  background: var(--blue);
  color: #fff;
  text-transform: uppercase;
  padding: 10px 40px;
  border-radius: 50px;
  transition: 150ms;
}