#toggler{
  /* ALWAYS KEEPING THE TOGGLER OR THE CHECKBOX ON TOP OF EVERYTHING :  */
    z-index:2;
    height: 50px;
    width: 50px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    opacity: 0;
}

#burger{
	display: none;
	height: 50px;
	width: 50px;
	float: right;
    align-items: center;
    justify-content: center;
	background: white;
}

/* CREATING THE MIDDLE LINE OF THE HAMBURGER : */

#burger > div{
    position: relative;
    top: 0;
    left: 0;
    background: black;
    height: 2px;
    width: 60%;
    transition: all  0.4s ease;
}

/* CREATING THE TOP AND BOTTOM LINES : 
TOP AT -10PX ABOVE THE MIDDLE ONE AND BOTTOM ONE IS 10PX BELOW THE MIDDLE: */

#burger > div::before,
#burger > div::after{
    content: '';
    position: absolute;
    top: -10px;
    background: black;
    width: 100%;
    height: 2px;
    transition: all  0.4s ease;
}

#burger > div::after{
    top: 10px;
}



/* IF THE TOGGLER IS IN ITS CHECKED STATE, THEN SETTING THE BACKGROUND OF THE MIDDLE LAYER TO COMPLETE BLACK AND OPAQUE :  */

#toggler:checked + #burger > div{
    background: rgba(0,0,0,0);
}

#toggler:checked + #burger > div::before{
    top: 0;
    transform: rotate(45deg);
    background: black;
}

/* AND ROTATING THE TOP AND BOTTOM LINES :  */

#toggler:checked + #burger > div::after{
    top: 0;
    transform: rotate(135deg);
    background: black;
}

#navbar {
	width: 865px;
	margin: 0 auto;
	font-size: 1.2em;
}


/* Set up border-box */
#navbar * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*  */
#navbar ul{
    list-style: none;
	background-color: white;
}

#navbar li{
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding:5px 50px;
    margin: 0;
	display: block;
	float: left;
}


/* Child menus - This is where the magic happens */
/* Selects only ul's that have a parent of li. That way this only effects children menus */
#navbar li>ul{
    position: absolute;
	margin: 0 -20px 0 0;
    transition: opacity 1s ease;
    visibility: hidden;
    z-index: 99;
	max-width: 150px;
}

#navbar li>ul>li{
    padding: 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Selects only ul's where the parent li is hovered */
#navbar li:hover>ul, 
#navbar li:active>ul{
    visibility: visible;
}


#navbar a, span{
    display: block;
    text-decoration: none;
    font-family: Verdana;
    font-size: 0.80em;
    color:#000000;
	font-weight: 900;
}

/* This select retains the style down the chain */
#navbar li:hover>a,
#navbar li:active>a{
    color: #03b6fc !important;
}

#navbar li:hover>a span,
#navbar li:active>a span{
    border:1px solid #03b6fc;
}


@media only screen and (max-width: 600px) {
  #navbar {
    width: 100%;
	background-color: white;
	display: none;
	float: right;
	position: absolute;
	top: 50px;
  }
  
  #navbar li{
    padding:5px 15px;
	float: none;
	text-align: center;
	height: 40px;
  }
  
  #navbar li>ul{
	width: 100%;
	max-width: 100%;
	text-align: center;
	margin-left: -15px;
	margin-top: 10px;
	background-color: #f0f1f2;
  }
  
  #burger{
	display: flex;
  }
}