body {
  background: #fff;
  font-family: 'Raleway', sans-serif;
}
.left{  float: left; clear:both;   width: 25%;}
.nav {
  margin: auto;
  margin-top: 15px;
  position: relative;
}

.nav h2 {
  font-size: 22px;
  background: #fff;
  height: 40px;
  text-transform: uppercase;
  color: #616161;
  width: 242px;
  display: flex;
  flex: 1; 
  padding-left:30px;
  align-items: center;
  box-shadow: 4px 4px 20px -2px rgba(0,0,0,.35);
  transition: all .4s;
  margin-bottom: 20px;
}

.nav:hover h2{
  transform: translateY(-2px);
  box-shadow: 2px 2px 5px -1px rgba(0,0,0,.35);
 }
.nav:hover:active h2{
  transform: translateY(10px);
  box-shadow: 0px -1px 2px 0px rgba(0,0,0,.35);
 }

.input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  height: 40px;
}

#toggle:checked ~ul {
  height: 0%;
}

.nav ul {
  padding-left: 0;
  padding-top: 0;
  margin-top: 0;
  list-style: none;
  overflow: hidden;

  margin-bottom: 22px;

  height: 100%;
  
}
.nav ul li {

  display: inline-block;


  line-height: 2.6em;
  width: 240px;
  margin: 0;
  margin-bottom: 5px;
  background: #fff;
  transition: background 3s;
  box-shadow: 2px 2px 10px -2px rgba(0,0,0,.35);
}

.nav ul li:hover {
  background: #b0c2ef;
  transition: background .45s;
}



.nav ul a {
  display: block;
  float:left;
  padding-left:30px;
  color: #717171;
  text-transform: lowercase;
  font-size: 16px;
  font-weight: 200;
  text-decoration: none;
  transition: color .3s;
  line-height:40px;
}

@media(min-width: 320px) and (max-width: 376px){
.nav h2 {
   font-size: 15px;
  width: 100%;
  padding-left:15px;}

.nav ul li {
  width: 95%;
  margin: 0;
  margin-bottom: 5px;
}

.nav ul a {
  padding-left:5px;
  font-size: 12px;
}



}