@font-face{
    font-family : "Raleway";
    src : url('Raleway-Regular.ttf') format('truetype');
}

@font-face{
    font-family : "Dancing Script";
    src : url('DancingScript-Regular.otf') format('opentype');
}

* {
	padding: 0;
	margin: 0;
}

body {
	background: url(bg-light.png) repeat;
	font-family: 'Raleway', sans-serif;

	padding-bottom: 10em;
}

.header {
	background: #603554;
	padding: 0.4em;
	color: white;

	cursor: pointer;

	background-image: url(menu.png);
	background-repeat: no-repeat;
	background-position: 98% 50%;

	
}


.content{
	padding: 0.5em;
	margin: 0.5em;
	background-color: rgba(255,255,255, 0.7);

	border: 10px solid white;
}


h1, h2 {
	font-size: 2.5em;
	font-weight: normal;	
	font-family: 'Dancing Script', cursive;
	/*font-family: 'Amatic SC', cursive;*/
}

h1 .version {
	font-family: 'Raleway', sans-serif;
	font-size: 0.4em;
}

h3 {
	margin: 1em 0;
}

.header p {
	font-size: 0.8em;
	
}

.header strong{
	font-weight: normal;
	font-family: 'Dancing Script', cursive;
	font-size: 1.5em;
}

.footer {
	font-weight: bold;
	color:#603554;
	padding-top: 0.5em;
	text-align: center;
}


.content h2, .content p  {
	margin-bottom: 0.3em; 
}

.message {

	padding: 0.5em;
	overflow: hidden;
	color: white;
	height: auto;

	border: 0px solid black;

	transition: 0.5s all;
}

.message.hidden {
	height: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	margin-bottom: 0;
}


.message.error {
	background-color: red;
	
}

.message.success {
	background-color: green;
}

.message.info {
	background-color: #603554;
}


.waitIndicator {
	opacity: 1;
	position: fixed;
	top:0;
	left: 0;
	margin: 0;
	width: 100%;
	height: 100%;

	font-weight: bold;
	text-align: center;
	background: rgba(0,0,0,0.5);
	color:white;

	font-size: 1.5em;
	padding: 5em 0;

	transition: 0.3s all;

	transform-origin: 50% 0%; 
	transform: scale(1, 1);
}

.waitIndicator.hidden {
	opacity: 0;
	transform: scale(1, 0);
	height: 0%;
	padding: 0;
	font-size: 0;
}



form label {
	color: grey;

}

form input[type=text], form input[type=number], form input[type=submit], form input[type=file], form textarea, form select {
	font-size: 1.3em;
	width: 100%;
	display: block;

	margin-bottom: 0.5em;
	margin-top: 0.1em;
}

form input[type=text], form input[type=number], form select{
	height: 2em;
}

form p.submit input {
	display: inline; 
	width: auto;

}

form p.submit {
	height: 2em;
	margin-top: 2.5em;
}


form p.favorite {
	font-size: 1.1em;
	padding-left: 30px;
	background: url(fav.png) no-repeat 0 50%; 

	margin: 1em 0; 
}
form p.favorite label {
	color: black;
}


form.add h3 {
	background-color: #603554;
	color: white;
	padding: 0.5em;
}

form .help{
	color: grey;
}


form .canvasLabel canvas {
	width: 100%;
}

form .canvasLabel {
	width: 100px;
	display: none;
}


.menu {
	
	color: #603554;

	padding: 0;
	margin: 0;
	width: 100%;
	overflow: auto;

	list-style: none;
	text-align: center;

	font-weight: bold;
	max-height: 500px;

	transition: 1s all;
}

.menu.hidden {
	max-height: 0px; 
}


.menu li {
	background: white;
	cursor: pointer;
	padding: 2em 0;
	width: 47%;
	float: left;
	margin: 0.5em 1.5%;

	border-radius: 1em;
}



.productList {

}

.productItem {
	padding-bottom: 1em;
	margin-bottom: 1em;

	border-bottom: 1px solid #603554;
	
	overflow: auto;
	position: relative;
}

.productItem.favorite .title {
	padding-left: 30px;
	background: url(fav.png) no-repeat 0 50%; 
}


.productItem h3 {
	font-size: 2em;
	margin-top: 0;
	margin-bottom: 0.1em;
}

.productItem .label {
	float: left;
	width: 10em;
	min-height: 10em;
	margin-right: 1em;

	background-color: #eeeeee;
}

.productItem .label img {
	width: 100%;
}

.productItem .year{
	font-size: 1em;
	font-style: italic;
	color: #603554;
}

.productItem .comment{
	font-size: 0.9em;
	color: #999999;
}

.productItem .type {
	position: absolute;
	top: 0.5em;
	left: 0.5em;

	padding: 0.3em;
	border-radius: 1em;
	background: white;
	box-shadow: 0.1em 0.1em 0.3em rgba(0,0,0,0.5);
	font-size: 0.8em;

	text-transform: lowercase;
}

.productItem .type.redWine {
	background-color: #603554;
	color: white; 
}

.productItem .type.roseWine {
	background-color: #C696B6;
	color: white; 
}

.productItem .type.whiteWine {
	background-color: #ECEAD3;
	color: #603554; 
}

.productItem .type.whisky {
	background-color: #ECBF46;
	color: #603554; 
}

.productItem .type.rhum {
	background-color: #E5ECC6;
	color: #603554; 
}

.productItem.show .delete {
	display: block;
}

.productItem .delete{
	display: none;
	position: absolute;
	top:0;
	right:0;
	background: rgba(255,0,0,0.5) url(close.png) no-repeat 0.6em 50%;
	color: white;

	padding: 1em;
	padding-left: 2em;

	font-size: 0.6em;
}



.dishList {
	list-style: none;
	overflow: auto;
}


.dishList li {
	width: auto;
	float: left;
	padding: 1em 0;
	margin-right: 0.5em;
}

.dishList input {
	margin-right: 0.5em; 
}


.dish input[type=text] {
	display: none;
}

.dish {
	font-weight: bold;
	padding: 0.5em;

	background-color: #eeeeee;
}

.dish.good {
	background-color: green;
	color: white;
}

.dish.bad {
	background-color: red;	
	color: white;
}



.addProduct {
	cursor: pointer;
	text-decoration: underline;
	
}


@media screen and (max-width: 700px){
	
	.productItem .label {
		float: none;
		width: 100%;

		overflow: hidden;
		max-height: 80px;
	}

	.productItem .label img{
		position: relative;
		top:-80px;

		transition: 1s all;
	}

	.productItem.show .label{
		max-height: 500px;
	}

	.productItem.show .label img{
		position: relative;
		top:0px;
	}
}
