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

a {
  text-decoration: none;
}

#menu_control {
  position: absolute;
  z-index: 2;
  opacity: 0;
}

.header {
  height: 50px;
  background-color: #ccc;
  position: relative;
}

.logo {
  width: 60px;
  height: 40px;
}

.logo img {
  height: 40px;
  vertical-align: middle;
}

.menu_btn {
  width: 40px;
  height: 40px;
  background: #000;
  display: block;
  position: absolute;
  top: 5px;
  right: 10px;
}

.menu_btn span {
  width: 1px;
  height: 1px;
  display: block;
  overflow: hidden;
  opacity: 0;
}

.menu_btn::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 36px;
  left: 2px;
  background: #aaa;
  top: 0;
  bottom: 0;
  margin: auto;
  box-shadow: 0px 8px 0px #aaa, 0px -8px 0px #aaa;
}

nav {
  width: 80%;
  height: calc(100vh - 50px);
  background: #e63946;
  position: absolute;
  padding: 5px;
  top: 50px;
  left: -100%;
  transition: all 0.5s;
}

nav a {
  display: block;
  color: #f1faee;
  padding: 10px 20px;
  border-bottom: 1px solid #f1faee;
}

#menu_control:checked ~ .header nav {
  left: 0;
}

@media screen and (min-width: 768px) {
  .menu_btn {
    display: none;
  }

  .header {
    display: flex;
    justify-content: space-between;
  }

  nav {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    left: 0;
    top: 0;
    background: transparent;
  }

  nav a {
    border-bottom: none;
    color: #e63946;
    font-weight: bold;
  }
}
