input[type=checkbox].toggle{
  display:none;
}
header, nav a{
  line-height:50px;
  background-color:#2b5a77;
  color:#fff;
}
nav a{
  display:block;
  border-style:dotted;
  border-color:#69c;
  border-width:0px;
  padding:0 20px;
  text-align:center;
}
.icon:hover,
nav a:hover{
  background-color:#69c;
}
.icon{
  display:block;
  width:50px;
  height:50px;
  background-size:contain;
  cursor:pointer;
}
.icon.hamburger{
  background-image:url(hamburger.png);
}
header{
  position:fixed;
  top:0;
  left:0;
  z-index:100;
  width:100%;
}

@media (min-width:601px){
  nav{
    position:fixed;
    top:0;
    right:0;
    z-index:101;
  }
  nav a{
    border-left-width:1px;
    float:right;
  }
  main{
    margin-top:50px;
  }
  .icon.hamburger{
    display:none;
  }
}
@media (max-width:600px){
  .icon.hamburger{
    position:absolute;
    top:0;
    right:0;
  }
  nav{
    overflow:hidden;
    transition:max-height 0.3s;
    -webkit-transition:max-height 0.3s;
  }
  nav a{
    border-top-width:1px;
  }
  main{
    transition:margin-top 0.3s;
    -webkit-transition:margin-top 0.3s;
  }
  .toggle:not(:checked)+header nav{
    max-height:0px;
  }
  .toggle:not(:checked)+header+main{
    margin-top:50px;
  }
  .toggle:checked+header nav{
    max-height:150px;
  }
  .toggle:checked+header+main{
    margin-top:200px;
  }
}
