*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Ubuntu;
  font-size: 10px;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.container2 {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.menu-icons {
  color: #eee;
  font-size: 4rem;
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1500;
  display: none;
}

nav {
  display: flex;
  align-items: center;
  width: 100%;
  height: 8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  background-color: rgba(0, 0, 0);
}

.logo img {
  width: 5rem;
  height: 5rem;
  background-color: rgb(252, 252, 252);
  display: flex;
  border-radius: 100%;
  margin-right: 5rem;
  margin-left: 5rem;
  z-index: 1000;
}

.logo i {
  margin: auto;
  font-size: 3rem;
  color: #eee;
  z-index: 1000;
}

.nav-list {
  display: flex;
  width: 100%;
  align-items: center;
  z-index: 1000;
}

.nav-list li {
  line-height: 8rem;
  position: relative;
}

.sub-menu li {
  line-height: 4rem;
}

.nav-list a {
  display: block;
  color: #eee;
  padding: 0 1.5rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  transition: color 650ms;
}

.nav-list a:hover {
  color: #0dfc05;
  text-decoration: none;
}

.btn2 {
  padding: 1.3rem;
  display: inline-block;
  background-color: #0dfc05;
  border: 2px solid #0dfc05;
  border-radius: 5rem;
  transition: background-color 650ms;
}

.btn2:hover {
  color: #0dfc05;
  background-color: rgba(0, 0, 0, 0.2);
}

.sub-menu {
  width: 20rem;
  display: block;
  position: absolute;
  border-top: 3px solid #0dfc05;
  background-color: #191919;
  z-index: 1000;
  top: 16rem;
  opacity: 0;
  visibility: hidden;
  transition: all 650ms ease;
}

.sub-menu::before {
  content: "";
  position: absolute;
  top: -2.5rem;
  left: 3rem;
  border: 1.2rem solid transparent;
  border-bottom-color: #0dfc05;
}

.sub-menu .sub-menu::before {
  top: 0.9rem;
  left: -2.5rem;
  border: 1.2rem solid transparent;
  border-right-color: #0dfc05;
}

.sub-menu .sub-menu {
  border-top: none;
  border-left: 3px solid #0dfc05;
  top: 0;
  left: 160%;
}

.nav-list li:hover > .sub-menu {
  top: 8rem;
  opacity: 1;
  visibility: visible;
}

.sub-menu li:hover > .sub-menu {
  top: 0;
  left: 100%;
}

li.move-right {
  margin: auto 5rem auto auto;
  line-height: initial;
}

.move-right {
  margin: auto 5rem auto auto;
  line-height: initial;
}

ul.li.sub-menu {
  width: 20rem;
  display: block;
  position: absolute;
  border-top: 3px solid #0dfc05;
  background-color: #191919;
  z-index: 1000;
  top: 10rem;
  opacity: 0;
  visibility: hidden;
  transition: all 650ms ease;
}

@media screen and (max-width: 970px) {
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: none;
    flex-direction: column;
    align-items: initial;
    background-color: #191919;
    z-index: 1000;
    overflow-y: scroll;
  }

  .nav-list > li {
    line-height: 6rem;
    z-index: 1000;
  }

  .sub-menu {
    position: initial;
    border: 3px solid transparent;
    border-left-color: #0dfc05;
    margin-left: 1rem;
    max-height: 0;
    z-index: 1000;
  }

  .sub-menu::before {
    display: none;
  }

  .nav-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    max-height: initial;
  }

  li.move-right {
    margin: 0 auto 0 0;
    line-height: initial;
  }

  .move-right {
    margin: 0 auto 0 0;
    line-height: initial;
  }

  .menu-icons {
    display: block;
  }

  .ion-md-close {
    display: none;
  }

  nav.active .ion-md-close {
    display: block;
  }

  nav.active .ion-md-menu {
    display: none;
  }

  nav.active .nav-list {
    display: flex;
  }
}
