/* 'Open Sans' font from Google Fonts */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);

body {
  background: #ece8e5;
  font-family: 'Open Sans', sans-serif;
}

nav {
  		height: 40px;
		  width: 100%;
		  background: #455868;
		  font-size: 11pt;
		  font-family: 'PT Sans', Arial, sans-serif;
		  font-weight: bold;
		  position: relative;
		  border-bottom: 2px solid #283744;
		}
		nav ul {
		  padding: 0;
		  margin: 0 auto;
		  width: 1920px;
		  text-align: center;
		  height: 40px;
		}
		nav li {
		  display: inline;
		  float: left;
		}
		.clearfix:before,
		.clearfix:after {
		    content: " ";
		    display: table;
		}
		.clearfix:after {
		    clear: both;
		}
		.clearfix {
		    *zoom: 1;
		}
		nav a {
		  color: #fff;
		  display: inline-block;
		  width: 180px;
		  text-align: center;
		  text-decoration: none;
		  line-height: 40px;
		  text-shadow: 1px 1px 0px #283744;
		}
		nav li a {
		  border-right: 1px solid #576979;
		  box-sizing:border-box;
		  -moz-box-sizing:border-box;
		  -webkit-box-sizing:border-box;
		}

		nav#listitemhome {
		  float: center;
		}
		nav#listitemloginout {
		  float: right;
		}
		nav a:hover, nav a:active {
  		background-color: #8c99a4;
		}
		nav a#pull {
		  display: none;
		}
		@media screen and (max-width: 1920px) {
		  nav { 
		      height: auto;
		  }
	    nav ul {
	      width: 100%;
	      display: block;
	      height: auto;
	    }
	    nav li {
	      width: 10%;
	      float: left;
	      position: relative;
	    }
	    nav li a {
	    border-bottom: 1px solid #576979;
	    border-right: 1px solid #576979;
	  	}
	    nav a {
	      text-align: left;
	      width: 100%;
	      text-indent: 25px;
	    }
		}
		@media screen and (max-width: 1800px) {
		  nav { 
		      height: auto;
		  }
	    nav ul {
	      width: 100%;
	      display: block;
	      height: auto;
	    }
	    nav li {
	      width: 16.66%;
	      float: left;
	      position: relative;
	    }
	    nav li a {
	    border-bottom: 1px solid #576979;
	    border-right: 1px solid #576979;
	  	}
	    nav a {
	      text-align: left;
	      width: 100%;
	      text-indent: 25px;
	    }
		}
		@media screen and (max-width: 1080px) {
		  nav { 
		      height: auto;
		  }
	    nav ul {
	      width: 100%;
	      display: block;
	      height: auto;
	    }
	    nav li {
	      width: 50%;
	      float: left;
	      position: relative;
	    }
	    nav li a {
	    border-bottom: 1px solid #576979;
	    border-right: 1px solid #576979;
	  	}
	    nav a {
	      text-align: left;
	      width: 100%;
	      text-indent: 25px;
	    }
		}
		@media only screen and (max-width : 480px) {
		  nav {
		    border-bottom: 0;
		  }
		  nav ul {
		    display: none;
		    height: auto;
		  }
		  nav a#pull {
		    display: block;
		    background-color: #283744;
		    width: 100%;
		    position: relative;
		  }
		  nav a#pull:after {
		    content:"";
		    background: url('nav-icon.png') no-repeat;
		    width: 30px;
		    height: 30px;
		    display: inline-block;
		    position: absolute;
		    right: 15px;
		    top: 10px;
		  }
		}
		@media only screen and (max-width : 320px) {
		  nav li {
		    display: block;
		    float: none;
		    width: 100%;
		  }
		  nav li a {
		    border-bottom: 1px solid #576979;
		  }
		}

.login {
  width: 300px;
  margin: 16px auto;
  font-size: 16px;
}

/* Reset top and bottom margins from certain elements */
.login-header,
.login p {
  margin-top: 0;
  margin-bottom: 0;
}

/* The triangle form is achieved by a CSS hack */
.login-triangle {
  width: 0;
  margin-right: auto;
  margin-left: auto;
  border: 12px solid transparent;
  border-bottom-color: #455868;
}

.login-header {
  background: #455868;
  padding: 20px;
  font-size: 1.4em;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.login-container {
  background: #9fb1ce;
  padding: 12px;
}

/* Every row inside .login-container is defined with p tags */
.login p {
  padding: 12px;
}

.login input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  border-width: 1px;
  border-style: solid;
  padding: 16px;
  outline: 0;
  font-family: inherit;
  font-size: 0.95em;
}

.login input[type="text"],
.login input[type="password"] {
  background: #fff;
  border-color: #bbb;
  color: #555;
}

/* Text fields' focus effect */
.login input[type="text"]:focus,
.login input[type="password"]:focus {
  border-color: #888;
}

.login input[type="submit"] {
  background: #455868;
  border-color: transparent;
  color: #fff;
  cursor: pointer;
}

.login input[type="submit"]:hover {
  background: #283744;
}

/* Buttons' focus effect */
.login input[type="submit"]:focus {
  border-color: #05a;
}
.amountbox {
	margin-right: 10px;
}
.measurebox {
	margin-right: 10px;
}
.amountfield {
	margin-right: 10px;
}
.measurefield {
	margin-right: 10px;
}
.recipeinfo {
	margin-top: 25px;
}
.recipe {
	position: relative;
	/* top: -25px; */
	background-color: #fcfce0;
	color: black;
	width: 400px;
	margin: auto;
	margin-bottom: 50px;
	box-shadow: 10px 10px 5px 5px #888888;
	/* transform: perspective(300px) rotateX(2deg) rotateZ(-2deg); */
}
.recipe:empty {
	box-shadow: none;
}
.comments {
	position: relative;
	background-color: #d4cbc4;
	border-radius: 20px;
	/* top: 50px; */
	width: 400px;
	margin: auto;
	padding: 10px;
}
.calories {
	position: relative;
	background-color: #d4cbc4;
	border-radius: 20px;
	width: 400px;
	margin: auto;
	padding: 10px;
}
.nutrients {
	position: relative;
	background-color: #d4cbc4;
	border-radius: 20px;
	width: 400px;
	margin: auto;
	padding: 10px;
}
@media screen and (max-width: 450px) {
	.recipe {
		width: 300px;
	}
	.comments {
		width: 300px;
	}	
	.calories {
		width: 300px;
	}
	.nutrients {
		width: 300px;
	}
	#recipeselectlist {
		width: 320px;
	}
	table {
		display: inline-block;
		overflow-x: auto;
	}
}
@media screen and (min-width: 1080px) {
	
	.recipeandcomments {
		width: 1080px;
		margin: auto;
	}
	.recipe {
		float: left;
		margin-bottom: 50px;
	}
	.comments {
		float: left;
		margin-left: 50px;
	}
	.calories {
		float: left;
		margin-left: 50px;
	}
	.nutrients {
		float: left;
		margin-left: 50px;
	}
}
.divforrecipeselectlist {
	width: 480px;
	margin: auto;
}
.recipe_image {
	max-width:100%;
}
.sectionIngredientInfo {
	width: 480px;
	margin: auto;
}
.IngrOpm {
	width: 480px;
	margin: auto;
}
.maindiv {
	width: 480px;
	margin: auto;
}
.maindiv img {
	max-width:100%;
}
.homeheads {
	text-align: center;
}
@media screen and (max-width: 400px) {
	.maindiv {
		width: 350px;
	}
}
table {
	max-width: 1000px;
	font-size: 0.9em;
	margin: 0 auto;
	border: 1px solid black;
	border-collapse: collapse;
}
th {
  	border: 1px solid black;
  	background-color: darkgrey;
}
td {
  	border: 1px solid black;
  	background-color: lightgrey;
  	text-align: center;
}
.AlignLeft {
	text-align: left;
}
label {
	display: block;
}
label.messagelabel {
	display: inline;
	color: red;
}