/*
 * Made by Erik Terwan
 * 24th of November 2015
 * MIT License
 *
 *
 * If you are thinking of using this in
 * production code, beware of the browser
 * prefixes.
 */

nav {
    position: relative;
    z-index: 6000;
}
#menuToggle {
  display: block;
  top: 50px;
  left: 50px;
  text-align: left;
  -webkit-user-select: none;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
    
  margin-left: 30px;
  margin-top: 7%;
}

#menuToggle a {
  text-decoration: none;
  color: #f50036;
  transition: color 0.3s ease;
}
#menuToggle a:hover {
  color: #f50036;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
    
  margin-left: 30px;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #fff;
  border-radius: 5px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #f50036;
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu {
  position: absolute;
  width: 300px;
  margin: -100px 0 0 -50px;
  padding: 120px 0 50px 65px;
  background: #000;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
#menu li, #menu li a {
  padding: 8px 0;
  line-height: 16pt;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  color: #fff;
  position: relative;
  font-size: 15pt;
  letter-spacing: 0.4pt;
}
#menu li li {
  list-style-type: none;
  padding: 5px 0;
  line-height: 16pt;
  font-weight: 300;
  color: #f50036;
}

#menu li.order { background: #fff; border-radius: 60px; color: #f50036; font-weight: 400; margin:7px  100px 0 0; padding: 10px; text-align: center;}
#menu li.order:hover { color: #fff; background: #f50036;}

#menu li:hover { color: #f50036; cursor: pointer; transition: 0.5s ease;}
#menu li a:hover { color: #fff; cursor: auto;}
#menu li.active { text-decoration: line-through #f50036 3px;}

#menu li li:hover { color: #fff; cursor: pointer; transition: 0.5s ease;}

#menuToggle input:checked ~ ul {
  transform: none;
}


@media only screen and (max-width: 581px) {
#menuToggle {
  margin-top: 10%;
}
#menu {
  width: 280px;
  margin: -100px 0 0 -50px;
  padding: 130px 0 70px 65px;
}
}

@media only screen and (min-width: 769px) {
#menuToggle { margin-left: 0;}
#menuToggle span { display: none;}
#menu {
  clear: both;
  float: left;
  display: block;
  z-index: 5000;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  transform: none;
  list-style: none;
  transition: 0.5s ease;
  text-align: center;
  position: relative;
  color: #000;
}
#menu li.order { background: #fff; border-radius: 60px; color: #f50036; font-weight: 400; margin: 0;  padding: 6px 12px; letter-spacing: 0; border: 1.8px solid #fff; transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1); }
#menu li.order:hover { font-weight: 400; color: #fff; background: #f50036; border: 1.8px solid #fff;}
    
#menu li, #menu a li, #menu li a { font-family: 'Poppins', sans-serif; display: inline-block; cursor: pointer; font-size: 11.4pt; font-weight: 500; padding: 10px; color: #000;}
#menu li.active, #menu li a.active { color: #fff; font-weight: 500; text-decoration: none;}
#menu li:hover { color: #fff; cursor: pointer; transition: 0.5s ease; font-weight: 500;}
#menu a li, #menu li a { font-family: 'Poppins', sans-serif;padding: 10px; text-decoration: none; color: #000; font-weight: 500; }
    
#menu li li {
    padding: 0px 10px;  
    font-weight: 400;
    color: #fff;
    width: 100%;
    text-align: left;
}
#menu li li:hover {
  color: #f50036;
  cursor: pointer;
  transition: 0.5s ease;
}
 
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #000;
  padding: 0;
  margin: 0;
  transition: 0.6s ease;
}
.submenu li a {
  padding: 5px 15px;
  white-space: nowrap;
  color: #fff;
}
#menu li:hover .submenu {
  display: block;
  transition: 0.5s ease;
  cursor: pointer;
}  
}