/*
 * Made by Erik Terwan
 * 24th of November 2015
 * MIT License
 *
 *
 * If you are thinking of using this in
 * production code, beware of the browser
 * prefixes.
 */
 
 #menuToggle
 {
   display: block;
   position: relative;
   padding: 30px;
   
   z-index: 1;
   
   -webkit-user-select: none;
   user-select: none;
 }
 
 #menuToggle a
 {
   text-decoration: none;
   color: #cdcdcd;
   
   transition: color 0.3s ease;
 }
 
 #menuToggle a:hover
 {
   color: #ff6600;
 }
 
 
 #menuToggle input
 {
   display: block;
   width: 37px;
   height: 28px;
   position: absolute;
   margin: 0;
   
   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: 1;
   transform: rotate(45deg) translate(-2px, -1px);
   background: #cdcdcd;
 }
 
 /*
  * 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)
 {
   transform: rotate(-45deg) translate(0, -1px);
 }
 
 /*
  * Make this absolute positioned
  * at the top left of the screen
  */
 #menu
 {
   position: absolute;
   width: 15vw;
   margin: -57px 0 0 -50px;
   padding: 4vh;
   padding-top: 6vw;
   border-radius: 7px;
   
   background: #232323;
   list-style-type: none;
   -webkit-font-smoothing: antialiased;
   /* to stop flickering of text in safari */
   
   transform-origin: 0% 0%;
   transform: translate(-100%, 0);
   
   transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
 }
 
 #menu li
 {
   padding: 1vw 4vw;
   font-size: 1.5vw;
 }
 
 /*
  * And let's slide it in from the left
  */
 #menuToggle input:checked ~ ul
 {
   transform: none;
 }



/*responzivno moje*/
@media only screen and (max-width: 950px) {

    #menu li a {
        font-size: 2vw;
    }

    #menu {
        padding-top: 12vw;
    }
}


@media only screen and (max-width: 750px) {

    #menu {
        padding-top: 12vw;
    }

    #menu li a {
      font-size: 2.5vw;
    }
}


@media only screen and (max-width: 600px) {

    #menu {
        padding-top: 10vw;
        border-radius: 7px;
        margin: -41px 0 0 -50px;
    }

    #menu li a {
      font-size: 3vw;
    }

    #menuToggle
    {
      padding: 20px 30px;
    }


    #menuToggle input
    {
      width: 32px;
      height: 22px;
      margin-top: -5px;
      margin-left: -5px;
    }
    
    #menuToggle span
    {
      width: 23px;
      height: 2px;
      border-radius: 4px;
    }


    #menuToggle input:checked ~ span
    {
      width: 26px;
    }
}


@media only screen and (max-width: 450px) {

  #menu {
      margin: -31px 0 0 -50px;
      padding-top: 40px;
      padding-bottom: 20px;
      width: 25vw;
  }

    #menu li a {
      padding-left: 30px;
    }

    #menuToggle
    {
      padding: 10px 20px;
    }

    #menuToggle input
    {
      width: 37px;
      height: 28px;
      margin-top: -10px;
      margin-left: -10px;
    }
}


@media only screen and (max-width: 300px) {

    #menu {
        width: 28vw;
    }
}
