/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
  background-color: #fefefe;
}

/* BURGER ICON */
.burger {
  display: inline-block;
  cursor: pointer;
  z-index: 2;
}

.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  border-radius: 5px;
  transition: 0.4s;
}

.change .bar1 {
  transform: rotate(-45deg) translate(-9px, 6px);
  background-color: #fff;
}

.change .bar2 {
  opacity: 0;
  background-color: #fff;
}

.change .bar3 {
  transform: rotate(45deg) translate(-8px, -8px);
  background-color: #fff;
}

/* NAVBAR WRAPPER */
.wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  list-style-type: none;
  background-color: chocolate;
  overflow: hidden;
  z-index: 1;
}

.container-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NAVBAR */
nav {
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 1px 2px 10px 2px rgba(0, 0, 0, .1);
}

nav .brand a {
  font-size: 3.4rem;
  font-weight: 1050;
  color: aqua;
  text-decoration: none;
}

.font {
  font-family: 'Sigmar', cursive;
}

/* SIDEBAR BACKGROUND */
.bg-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, .1);
  visibility: hidden;
  transition: .3s;
}

.bg-sidebar.change {
  right: 0;
  visibility: visible;
  display: block;
}

/* SIDEBAR MENU */
nav ul {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -300px;
  width: 300px;
  background-color: #505050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: .5s;
}

nav ul.change {
  right: 0;
}

nav ul li {
  list-style: none;
  padding: 20px 15px;
}

nav ul li a {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

/* DESKTOP MODE */
@media screen and (min-width: 960px) {
  .bg-sidebar.change {
    right: 0;
    visibility: hidden;
    display: none;
  }

  .burger {
    display: none;
  }

  nav {
    position: relative;
  }

  nav ul {
    position: relative;
    top: unset;
    bottom: unset;
    right: unset;
    width: unset;
    background: unset;
    display: flex;
    flex-direction: row;
  }

  nav ul li {
    padding: 10px 15px;
  }

  nav ul li:hover::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    transform: translateY(20px);
    transition: .3s;
  }

  nav ul li a {
    font-size: 1.1rem;
    color: #000;
  }

  nav ul li:last-child {
    font-weight: 550;
  }
}

/* LARGE DESKTOP */
@media screen and (min-width: 1200px) {
  .container-flex {
    width: 100%;
    max-width: 1024px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}