body{
  overflow-y:scroll;
}


/* Navigation Menu - Background */
.navigation {
  /* critical sizing and position styles */
  width: 200px;
  height: 310px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: -200px;
  z-index: 2;
  
  overflow:auto;
  overflow-y:scroll;
  
  /* non-critical appearance styles */
  list-style: none;
  background: #111;
}

.navigation2 {
  /* critical sizing and position styles */
  width: 150px;
  height: 14.5em;
  position: fixed;
  top: 30px;
  right: -200px;
/*  bottom: 10px;*/
  z-index: 2;
  
  overflow:hidden;
  /*overflow-y:scroll;*/
  
  /* non-critical appearance styles */
  list-style: none;
  background: #1d1d1d;
    line-height:0.5em;
}

/* Navigation Menu - List items */
.nav-item {
  /* non-critical appearance styles */
  width: 150px;
  border-top: 1px solid #111;
  border-bottom: 0px solid #000;
}

.nav-item a {
  /* non-critical appearance styles */
  display: block;
  padding: 1em;
  /*background: -webkit-linear-gradient(315deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);*/
  color: #d0d9e5;
  font-size: 1.2em;
  text-decoration: none;
  -webkit-transition:color 0.2s, background 0.5s;
  transition: color 0.2s, background 0.5s;
}

.nav-item text {
  /* non-critical appearance styles */
  display: block;
  padding: 1em;
  /*background: -webkit-linear-gradient(315deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);*/
  color: #d0d9e5;
  font-size: 1em;
  text-decoration: none;
  -webkit-transition:color 0.2s, background 0.5s;
  transition: color 0.2s, background 0.5s;
    font-style: italic;
    text-align: center;
}


.nav-item a:hover {
  color: #7ea1ce;
  background: -webkit-linear-gradient(315deg, rgba(0,0,0,0) 0%,#7ea1ce 200%);
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%,#7ea1ce 200%);
}

.nav-item text:hover {
  color: #7ea1ce;
  background: -webkit-linear-gradient(315deg, rgba(0,0,0,0) 0%,#7ea1ce 200%);
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%,#7ea1ce 200%);
}

/* Site Wrapper - Everything that isn't navigation */
.site-wrap {
  /* Critical position and size styles */
  min-height: 100%;
  min-width: 100%;
  background-color: white; /* Needs a background or else the nav will show through */
  position: relative;
  top: 0;
  bottom: 100%;
  left: 0;
  z-index: 1;
  
  /* non-critical apperance styles */
  padding: 4em;
  background-image: -webkit-linear-gradient(315deg, rgb(254,255,255) 0%,rgb(221,241,249) 35%,rgb(160,216,239) 100%);
  background-image: linear-gradient(135deg, rgb(254,255,255) 0%,rgb(221,241,249) 35%,rgb(160,216,239) 100%);
  background-size: 200%;
}

/* Nav Trigger */
.nav-trigger {
  /* critical styles - hide the checkbox input */
  display: none;
  height: 0;
  width: 0;
}

label[for="nav-trigger"] {
  /* critical positioning styles */
  position: fixed;
  left: 15px; top: 15px;
  z-index: 2;
  
  /* non-critical apperance styles */
  height: 30px;
  width: 30px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='30px' height='30px' viewBox='0 0 30 30' enable-background='new 0 0 30 30' xml:space='preserve'><rect width='30' height='6'/><rect y='24' width='30' height='6'/><rect y='12' width='30' height='6'/></svg>");
  background-size: contain;
}


.nav-trigger2 {
  /* critical styles - hide the checkbox input */
  display: none;
  height: 0;
  width: 0;
}

label[for="nav-trigger2"] {
  /* critical positioning styles */
  position: relative;
  z-index: 2;
    display:inline-block;
    /*vertical-align: middle;*/
  
  /* non-critical apperance styles */
 /* height: 20px;
  width: 20px;*/
  cursor: pointer;
 /* background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='20px' height='20px' viewBox='0 0 20 20' enable-background='new 0 0 20 20' xml:space='preserve'><rect width='20' height='6'/><rect y='24' width='20' height='6'/><rect y='12' width='20' height='6'/></svg>");*/
  background-size: contain;
}

/* Make the Magic Happen */
.nav-trigger + label, .site-wrap, .navigation {
  -webkit-transition:left 0.2s;
  transition: left 0.2s;
}

.nav-trigger:checked + label {
  left: 215px;
}

.nav-trigger:checked ~ .site-wrap {
 /* left: 200px; */
  box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
}

.nav-trigger:checked ~ .navigation {
  left: 0px;
}

/* Make the Magic Happen, avec le menu de droite */
.nav-trigger2 + label, .navigation2 {
  -webkit-transition:right 0.2s;
  transition: right 0.2s;
}

.nav-trigger2:checked + label {
  /*right: 215px;*/
}

.nav-trigger2:checked ~ .navigation2 {
  right: 0px;
}
body {
	/* Without this, the body has excess horizontal scroll when the menu is open */
  overflow-x: hidden;
}

/* Additional non-critical styles */

h1, h3, p {
  max-width: 600px;
  margin: 0 auto 1em;
}

code {
	padding: 2px;
	background: #ddd;
}

/* Micro reset */
*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;}
html, body { height: 100%; width: 100%; font-family: Helvetica, Arial, sans-serif; }