/** https://github.com/abarna-codespot/Hamburger-Menu
	https://www.youtube.com/watch?v=F-mvXKKoSCU
	tutorial used to understand how to make the hamburger
	* change to x on click
	* use javascript and call functions
	* have text show on click

**/
html, body{
  height: 100%;
  margin: 0;
}


@font-face {
   font-family: BebasNeue-Regular;
    src: url("../fonts/BebasNeue-Regular.ttf")
}




body{
	font-family: 'PT Sans',sans-serif;
/** 	background-color: grey; **/
}


.menu-bar{

	 width: 40px; /** overall width of .menu hamburger lines **/
   height: 28px;

	 margin-left: auto; /** moves it to the right side of screen **/
	 margin-top: 10px;
	 margin-right: 10px;

         /** pushes the burger from the right side of the screen
           inwards, so that its off the edge of the screen **/


  cursor: pointer;
	display: none; /** gets displayed later when screen size is 750 or less **/
}


.icons, .logo{
    cursor: pointer;
    position: absolute;
}

.logo{
  padding: 5px;
  margin: 5px;
  margin-right: 10px;
}

.logo img{ /** for the logo image **/
  width: 80px;
}


.icons{
  display: flex;
}

.icons img{
 padding: 5px 0px;
 width: 20px;  /**  applies to each icon **/
 height: 15px;
}


#IG_link, #E_link, #P_link{
  margin-left: 24%;
}



.bar{
	height: 5px; /** per dash **/
	width: 100%;
	margin-top: 6px; /** adds space between the bars **/
	background-color: silver;
	display: block;
	border-radius: 5px;
	transition: 0.3s ease;
}


/**      lines on hover 	**/
#menu:hover #bar1, #menu:hover #bar2, #menu:hover #bar3{
	width: 50px;
	margin-left: -5px; /** moves the bars to the left as its moving right **/
}


/**      lines on active -  change color 	**/
#menu:active #bar1, #menu:active #bar2, #menu:active #bar3{
	background-color: #6666ff;
}





/** creates the 'X' **/
#line1{
	transform: translateY(-5px);
}
#line3{
	transform: translateY(5px);
}

#line2{
	opacity: 0;
}



/** will be displayed for smaller screens **/



/** navigation list elements styling **/

.nav{
  position: absolute;
  width: 90%; /** 100% of the space alloted to the .nav_links **/
	height: 45px;
 	margin-top: 1%;
  margin-left: 100px;
	top: 20px;
	transition: 0.3s ease-in;
	display: flex;
	display: none;
	transition: transform 0.4s;
	padding: 16px auto;

}

.nav li{
	list-style: none;
}

.nav li a{
	color: #fff;
	text-decoration: none;
	font-family: BebasNeue-Regular;
  font-size: 25px;
	font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav_links{
  clear: left;
	text-align: center;
  width: 90%;
	display: flex;
	justify-content: space-around;
  margin-top: 1%;
  text-shadow: 2px 3px 12px #000000;
}

.nav_links li a:hover{

	color: silver;
	border-bottom: 3px solid;
	border-top: 3px solid;
	padding-bottom: 4px;
	padding-top: 4px;
	transition: 0.5s;
	text-shadow: 4px 3px 15px #000000;
}


.nav_links #current_page{
	color: #ff6600;
}


.nav li a:active{
	color: silver;
}

.logo{ /** temporary placeholder section styling for the logo **/
	float: left;
}

.icons{	/** temporary styling for social media links **/

	width: 25%;

	margin-right: 80px;
	float: right;
	display: flex; /** aligns them horizontally **/
	position: relative;

	}

/** javascript calling section **/

.change .bar{
	height: 5px;
	width: 100%;
	background-color: #6666ff; /** changes color of 'X' **/
	display: block;
	border-radius: 5px;
}

.change #bar1{

	transform: rotateZ(-45deg) translate(-8px, 4px) ;
}
.change #bar3{
	transform: rotate(45deg) translate(-10px, -6px);
}

.change #bar2{
	background: transparent;
}


.change{
	display: block;
}




/** reactive to screen sizes **/
@media screen and (max-width: 2560px){
	/** this is screen size for 27" screen, its what I have **/

	body{
		overflow: hidden; /** just in case, don't want visitors to this site scrolling sideways **/
	}


	.nav li a{
		font-size: 35px;
	}


	.nav_links{
		flex-direction: row;
	}
}

/** change font size a little bit here **/
@media screen and (max-width: 880px){

  .nav_links{
      width: 85%;
  }
	.nav li a{
		font-size: 30px;
	}


	.nav_links{
		flex-direction: row;
	}

}


@media only screen and (max-width: 750px){
	.menu-bar{
	display: block;  /** displays the hamburger icon at 750px and less **/
	}
}


/** hides the nav from screen when width is a minimum 750px
    aka - until hamburger icon is clicked in this example **/
@media only screen and (min-width: 750px){
	.nav{
	display: block;
	}
}


@media screen and (max-width: 750px){ /** changes nav_links direction **/

	.nav{
    margin-left: 33%;
		height: 100%;
		margin-top: 20px;
	}


	.nav_links{
		position: absolute;
		text-align: center;



		display: flex; /** puts items in navigation next to each other **/
		flex-direction: column;
		justify-content: space-around;

		height: 85%;
  	width: 100%;
		}

    #IG_link, #E_link, #P_link{
      margin-left: 20%;
    }
}


@media screen and (max-width: 600px){
  .nav{
    margin-left: 30%;
  }
}

/** smallest screen size iPhone 5, 320px wide, iPhone modesl between 375 - 414px **/
@media only screen and (max-width: 420px){
  .nav{
    margin-left: 24%;
  }


	.nav_links{
		position: absolute;
		top: 20px;

		text-align: center;
		display: flex; /** 	puts items in navigation next to each other **/
		flex-direction: column;
		justify-content: space-around;
	}


}



/** smallest screen size iPhone 5, 320px wide, iPhone models between 375 - 414px **/
@media screen and (max-width: 320px){
  .nav{
    margin-top: 5px;
    margin-left: -20px;
  }

    #IG_link, #E_link, #P_link{
      margin-left: 18%;
    }

    .icons img{
      width: 17px;
      height: 12px;
    }


}
