/* [ON BIG SCREENS] */
/* (A) WRAPPER */
#hamnav {
  width: 100%;
  float: right;
  /* Optional */
  position: fixed;
  top: 0px;
  left: 0;
  display: none;
}

/* (B) HORIZONTAL MENU ITEMS */
#hamitems { 
  display: none;
}
#hamitems a {
  flex-grow: 1;
  flex-basis: 0;
  padding: 15px;
  color: white;
  text-decoration: none;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6);
  float: left;
  font-size: 28px;
  border-radius: 3px;
  display: none;
}

#hamitems a:hover { 
  background-color: rgba(0, 0, 0, 0.8);
  color: #0087ff;
}

/* (C) HIDE HAMBURGER */
#hamnav label, #hamburger { display: none; }

@media only screen and (max-width: 1125px) {
  #hamnav {
    display: block;
  }

  /* (A) BREAK INTO VERTICAL MENU */
  #hamitems a {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border-top: 1px solid #333;
  }

  /* (B) SHOW HAMBURGER ICON */
  #hamnav label {
    display: inline-block;
    color: white;
    font-style: normal;
    font-size: 3em;
    padding: 10px 18px;
  }

  /* (C) TOGGLE SHOW/HIDE MENU */
  #hamitems { 
    display: none;
    opacity: 1;
    
    transition: all 500ms ease-in-out;
  }
  #hamnav input:checked ~ #hamitems { 
    display: block;
  }

  .menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all .5s ease-in-out;
    border: 3px solid white;
  
    left: 85%;
    top: 10px;  
  }
  .menu-btn {
    width: 50px;
    height: 6px;
    background: #777;
    border-radius: 5px;
    transition: all .5s ease-in-out;
  }
  .menu-btn::before, .menu-btn::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 6px;
    background: #fff;
    border-radius: 5px;
    transition: all .5s ease-in-out;
  }
  .menu-btn::before {
    transform: translateY(-16px);
  }
  .menu-btn::after {
    transform: translateY(16px);
  }
  #hamnav input:checked .menu-btn {
    transform: translateX(-50px);
  }
  #hamnav input:checked .menu-btn::before {
    transform: rotate(45deg) translate(35px,-35px);
  }
  #hamnav input:checked .menu-btn::after {
    transform: rotate(-45deg) translate(35px,35px);
  }  
}

.menu-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: all .5s ease-in-out;
  border: 3px solid white;

  left: 85%;
  top: 10px;
}
.menu-btn__burger {
  width: 50px;
  height: 6px;
  background: #fff;
  border-radius: 5px;
  transition: all .5s ease-in-out;
}
.menu-btn__burger::before, .menu-btn__burger::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 6px;
  background: #fff;
  border-radius: 5px;
  transition: all .5s ease-in-out;
}
.menu-btn__burger::before {
  transform: translateY(-16px);
}
.menu-btn__burger::after {
  transform: translateY(16px);
}
.menu-btn.open .menu-btn__burger {
  transform: translateX(-50px);
  background: transparent;
}
.menu-btn.open .menu-btn__burger::before {
  transform: rotate(45deg) translate(35px,-35px);
}
.menu-btn.open .menu-btn__burger::after {
  transform: rotate(-45deg) translate(35px,35px);
}

.menu-items {
  flex-direction: column;
  justify-content: space-around;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  transform: translateX(100vw);
  transition: transform .3s ease-in-out;
}
.manu-items.open {
  transform: translateX(0);
}


/* [DOES NOT MATTER] */
html, body {
  padding: 0;
  margin: 0;
  font-family: arial, sans-serif;
}

.rb-header {
  position: fixed;
  background-color: rgba(0, 0, 0, .50);
  top: 0px;

  /*border-bottom: 1px solid rgb(0, 0, 0);*/
}

.rb-menu {
  line-height: 50px;
  font-size: 1rem;
  right: 0;
  font-family: Roboto Slab,Georgia,serif;
  font-weight: 300;
  overflow: hidden;
  margin: 0;
  white-space: nowrap;
  display: none;
  position: relative;
  text-align: right;
  position: fixed;
  top: 2%;
  right: 2%;
}

@media only screen and (min-width: 1124px) {
  .rb-menu {
    display: block;
  }
}

.rb-menu-item {
  text-decoration: none;
  padding-right: 15px;
  color: #ffffffcc;

  transition: 200ms ease-in;
}

.rb-menu-item::after {
  content: "/";
  position: relative;
  color: #ffffffcc;
  right: -10px;
}
.rb-menu-item:last-child:after {
  display: none;
}

.rb-menu-item:hover {
  color: #0087ff;
}

.rb-menu-item-active {
  color: #2658ff !important;
}

.rb-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background-color: #0087ff;

  transform: scaleX(0);
  transform-origin: right;
  transition: transform 500ms ease-in;
}
.rb-menu-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}