/* jqModal base Styling courtesy of;
	Brice Burgess <bhb@iceburg.net> */

/* The Window's CSS z-index value is respected (takes priority). If none is supplied,
	the Window's z-index value will be set to 3000 by default (via jqModal.js). */
	
.jqmWindow {
     display: none;
     position: fixed;
     top: 50%;
     left: 50%;
     margin-left: -390px;
     width: 786px;
     background-color: #EEE;
     color: #333;
     border: none;
     padding: 2px;
     height:678px;
     transform: translatey(-50%);
 }
 
 .jqmOverlay { background-color: #b5b2b2; }
 
 /* Background iframe styling for IE6. Prevents ActiveX bleed-through (<select> form elements, etc.) */
 * iframe.jqm {position:absolute;top:0;left:0;z-index:-1;
      width: expression(this.parentNode.offsetWidth+'px');
      height: expression(this.parentNode.offsetHeight+'px');
 }
 
 /* Fixed posistioning emulation for IE6
      Star selector used to hide definition from browsers other than IE6
      For valid CSS, use a conditional include instead */
 * html .jqmWindow {
      position: absolute;
      top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
 }



 #menuToggle
{
     display: block;
     position: absolute;
     top: 11px;
     left: 5px;

     z-index: 1;
     position: relative;
     -webkit-user-select: none;
     user-select: none;
}

#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;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  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: 0;
  /* transform: rotate(45deg) translate(-2px, -1px); */
  transform: rotate(0deg) scale(0.2, 0.2);
  background: #bebebe;
  margin-left: 5px;
}

/*
 * 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)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: absolute;
  width: 250px;
  height:100vh;
  margin: -100px 0 0 0;
  padding: 50px 15px;
  padding-top: 68px;
  left: -4px;
  background: #191b1f;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(-104%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
#menu a
{
     text-decoration: none;
}
#menu li
{
  padding: 10px 0;
  font-size: 22px;
  border-bottom: 1px solid #c6c6c6;
  display: inline;
}

/*
 * And let's fade it in from the left
 */
#menuToggle input:checked ~ .hamburger-list
{
  transform: scale(1.0, 1.0);
  opacity: 1;
}