/* Impede a rolagem da página quando o menu está ativo */
body.no-scroll {
  overflow: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}

a {
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: var(--font-size-quaternary);
}

#header-container > header > div > nav > div.login > a > div > i {
  line-height: 44px;
}

.header {
  background: var(--primary-color);
  box-shadow: 0px 3px 3px 1px rgba(0, 0, 0, 0.3);
}

.nave {
  background: var(--primary-color);
  max-width: 100%;
  height: 44px !important;
  display: flex;
  justify-content: space-between;
}

.logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 5px;
  padding-left: 130px;
}

.nav-list {
  display: flex;
  height: 44px;
  list-style: none;
}

.nav-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 400;
  color: #f4f4f4;
  cursor: pointer;
}

.nav-list > li > a {
  padding: 16px;
}

.acess {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 60px;
}

.font-div {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.font-div a {
  color: #f4f4f4;
}

.login {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 114px;
  cursor: pointer;
}

.text-login {
  display: flex;
  align-items: center;
  color: #f4f4f4;
  cursor: pointer;
  height: 100%;
  line-height: 44px;
}

.nav-list li:hover,
.font-size:hover,
.acess:hover {
  background: var(--secondary-color) !important;
}

.login:hover {
  background: var(--header-hover) !important;
}

.hamburger {
  display: none;
  border: none;
  background: none;
  border-top: 3px solid #f4f4f4 !important;
  cursor: pointer;
}

.hamburger::after,
.hamburger::before {
  content: " ";
  display: block;
  height: 3px;
  width: 30px;
  background: #f4f4f4 !important;
  margin-top: 5px;
  position: relative;
  transition: 0.3s;
}

.dropdown-burger {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: var(--font-size-quaternary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 44px;
}

.dropdown-burger-menu {
  background-color: var(--sidebar-color);
  position: fixed;
  text-align: center;
  align-content: center;
  box-shadow: 0 0 2px black;
  border-radius: 12px;
  display: none;
  width: calc(15 * var(--font-size-tertiary));
  top: 52px;
  right: 8px;
  padding: 12px;
  z-index: 7;
}

.dropdown-burger-menu.active {
  display: flex;
  box-shadow: 0 0 2px black !important;
  flex-direction: column;
  justify-content: space-evenly;
}

.xclose {
  align-self: flex-end;
  cursor: pointer;
}

.dropdown-burger-icon {
  display: flex;
  flex-direction: column;
  color: #000000;
  cursor: default;
}

.dropdown-burger-icon a {
  font-size: var(--font-size-secondary);
}

.dropdown-burger-icon i {
  align-self: center;
  margin-top: 30px;
  font-size: 50px;
}

.dropdown-burger-icon span {
  font-size: var(--font-size-quaternary);
}

.dropdown-burger-list {
  display: flex;
  flex-direction: column;
}

.dropdown-burger-item {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--primary-color);
}

.dropdown-burger-item a {
  font-size: var(--font-size-tertiary);
  width: 100%;
}

.dropdown-burger-item:hover {
  background: var(--quaternary-hover-color);
}

@media (max-width: 1500px) {
  .logo {
    padding-left: 60px;
  }

  .login {
    margin-right: 44px;
  }

  .nav-list {
    display: flex;
    height: 44px;
    list-style: none;
  }
}

@media (max-width: 1350px) {
  .logo {
    padding-left: 0px;
  }

  .overlay {
    position: fixed;
    top: 44px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 44px);
    background-color: rgba(176, 176, 176, 0.7);
    backdrop-filter: blur(3px);
    z-index: 5;
    display: none;
  }

  .overlay.active {
    display: block;
    box-shadow: none !important;
  }

  .acess {
    gap: 12px;
    padding: 0 20px;
  }

  .hamburger {
    align-self: center;
    display: block;
    z-index: 6;
  }

  .font-div a {
    color: var(--primary-color);
  }

  .login {
    margin-right: 0;
  }

  .login a {
    padding: 0;
    width: 100%;
    height: 100%;
    line-height: 44px;
    white-space: nowrap;
  }

  .nave {
    justify-content: space-between;
    padding: 0 16px;
    align-items: center;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    width: 160px;
    padding: 0 !important;
    margin: 0 !important;
    height: min-content;
    background: var(--sidebar-color);
    flex-direction: column;
    z-index: 6;
    pointer-events: none;
    border: solid 1px var(--selected-color);
    overflow: auto;
  }

  .nav-list li,
  .nav-list .acess {
    height: 40px;
    margin: 0 8px;
    border-bottom: solid 1px var(--selected-color);
    color: var(--primary-color);
  }

  .nav-list .acess {
    display: flex;
    justify-content: center;
  }

  .nav-list li:hover,
  .font-size:hover,
  .acess:hover {
    background: var(--contrast-color) !important;
  }

  .login:hover {
    background: inherit !important;
  }

  .nav-list a {
    font-size: var(--font-size-quaternary);
  }

  .font-size {
    color: var(--menu-font-color);
  }

  /* Estilos ativos */
  .nave.active {
    box-shadow: none !important;
  }

  .nave.active .nav-list {
    display: block;
    pointer-events: all;
  }

  .nave.active .nav-list a {
    opacity: 1;
  }

  .nave.active .hamburger {
    border-top-color: transparent !important;
  }

  .nave.active .hamburger::before {
    transform: rotate(135deg);
  }

  .nave.active .hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }
}

/* The switch - the box around the slider */
.switch {
  display: block;
  --width-of-switch: 1.8em;
  --height-of-switch: 1em;
  /* size of sliding icon -- sun and moon */
  --size-of-icon: 0.7em;
  /* it is like a inline-padding of switch */
  --slider-offset: 0.1em;
  position: relative;
  width: var(--width-of-switch);
  height: var(--height-of-switch);
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f4f4f5;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: var(--size-of-icon, 0.7em);
  width: var(--size-of-icon, 0.7em);
  border-radius: 20px;
  left: var(--slider-offset, 0.3em);
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(251, 116, 63, 1) 0%,
    rgba(252, 235, 70, 1) 100%
  );
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #303136;
}

input:checked + .slider:before {
  left: calc(100% - (var(--size-of-icon, 1.4em) + var(--slider-offset, 0.3em)));
  background: #303136;
  /* change the value of second inset in box-shadow to change the angle and direction of the moon  */
  box-shadow: inset 4px -3px 3px -2px #8983f7, inset 3px -3px 2px -1px #a3dafb;
}

@media screen and (max-width: 700px) {
  .logo a img {
    display: none;
  }

  .logo a {
    width: 140px;
    height: 30px;
    background-image: url("../../assets/img/Logo-Horizontal_V1.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left top;
  }
}
