/* header */

.header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #3e3f51;
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4rem;
  z-index: 3;
}

.header ul {
  flex-basis: 80%;
  flex-grow: 1;
  flex-shrink: 1;
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
  overflow: hidden;
  background-color: #3e3f51;
}

.header li a {
  display: block;
  padding: 20px 10px;
  border-right: 1px solid #292B30;
  text-decoration: none;
  font-size: 20px;
}

.header li a:hover,
.header .menu-btn:hover {
  /* background-color: #6b6b6b; */
}

.header .logo {
  display: flex;
  cursor: pointer;
  height: 2rem;
  padding: 10px 20px;
  text-decoration: none;
}

.logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
} 

.logo img{
  cursor: pointer;
  height: 32px;
}

/* menu */

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: #fff;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #fff;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 240px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* 48em = 768px */

@media (min-width: 48em) {
  .header ul {
   padding: 5px 0px 5px 0;
   list-style-type: none;
   flex-basis: unset;
   flex-grow: unset;
   flex-shrink: unset;
  }
  .header li {
    display: inline;
 }
  
  .header li a {
    display: inline;
    padding: 20px 20px;
  }
  
  .header .logo {
    height: 2.5rem;
  }
  
  .logo img{
    height: 48px;
  }
  
  .header .menu {
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }
}
