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

html {
  height: 100%;
}

p {
  padding: 10px 0;
}

body {
  height: 100%;
  font-family: arial;
  position: relative;
  background: #222;
  overflow-x: hidden;
}

.floatl {
  float: left;
}

.floatr {
  float: right;
}

/* Side menu */
.sideMenu {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 250px;
  background: #222;
  color: #FFF;
  padding: 20px;
  text-transform: uppercase;
}
.sideMenu.left {
  opacity: .5;
  -webkit-transform: translatex(-40px);
          transform: translatex(-40px);
  -webkit-transition: 0.33s cubic-bezier(0.7, 0.15, 0.36, 1);
  transition: 0.33s cubic-bezier(0.7, 0.15, 0.36, 1);
}
.sideMenu.right {
  left: auto;
  right: 0;
}
.sideMenu > ul {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}
.sideMenu > ul > li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.sideMenu > ul > li a {
  color: #CCC;
  text-decoration: none;
  display: block;
  line-height: 3.2;
  font-size: 0.8em;
  font-weight: bold;
  margin: 0 -10px;
  padding: 0 20px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-transition: 0.4s cubic-bezier(0.3, 0.8, 0.5, 1.08);
  transition: 0.4s cubic-bezier(0.3, 0.8, 0.5, 1.08);
}
.sideMenu > ul > li a:hover {
  color: #222;
  text-indent: 250px;
}
.sideMenu > ul > li a::before {
  content: attr(data-value);
  color: #FFF;
  float: left;
  width: 250px;
  margin-left: -250px;
}

/* Toggle button */
.menuBtn {
  display: inline-block;
  background: #ddd;
  border-radius: 50px;
  color: #B7B7B7;
  cursor: pointer;
  display: block;
  font: bold 1.7em/36px Courier New;
  width: 36px;
  height: 36px;
  text-align: center;
  text-shadow: 0 -5px, 0 5px;
  -webkit-transition: 0.15s;
  transition: 0.15s;
}
.menuBtn:hover {
  background: #222;
}

/* Content handing */
#contentWrap {
  min-height: 100%;
  position: relative;
  z-index: 1;
  background: #FFF;
  padding: 20px;
  -webkit-transition: 0.33s cubic-bezier(0.7, 0.15, 0.36, 1);
  transition: 0.33s cubic-bezier(0.7, 0.15, 0.36, 1);
}
#sideToggle1:checked ~ #contentWrap {
  border-radius: 8px;
  -webkit-transform: translatex(250px);
          transform: translatex(250px);
}
#sideToggle2:checked ~ #contentWrap {
  -webkit-transform: translatex(-250px);
          transform: translatex(-250px);
  border-radius: 8px;
}

#sideToggle1:checked ~ .sideMenu.left {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}
