/* Universal Box Sizing Heretat (última versió) */

html {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

*, *:before, *:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

/* Estils propis */

html {
	font-size: 62.5%;
}

body {
	color: #E56060;
}

label {
	position: absolute;
	top: 0;
	left: 0;
	width: 100px;
	height: 100px;
	background: url(190-menu.png) center no-repeat;
	background-size: 32px, 32px, auto;
	cursor: pointer;
	transition: all 200ms ease-in;
	z-index: 1000;
}

.fons {
	width: 30%;
	padding-right: 80px;
	float: right;
	background-color: #FDE7E7;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}

.navmenu {
	position: fixed;
	top: 0;
	left: 0;
	margin: 0 0 0 -200px;
	width: 200px;
	height: 100%;
	background-color: rgba(74,74,74,0.85);
	transition: all 200ms ease-in;
	overflow: hidden;
}

article {
	width: 70%;
	margin-right: 100px;
	float: right;
	transition: all 200ms ease-in;
	border-left: 20px solid #E56060;
	border-left: 2rem solid #E56060;
}

h1 {
	font: 72px/73px 'Libre Baskerville', serif;
	font: 7.2rem/7.3rem 'Libre Baskerville', serif;
	width: 1000px;
	padding-left: 80px;
	padding-left: 8rem;
	font-weight: 300;
	font-style: italic;
	text-decoration: underline;
}

p {
	font: 20px/30px 'Libre Baskerville', serif;
	font: 2rem/3rem 'Libre Baskerville', serif;
	font-weight: 700;
}

em {
	font: 18px/27px 'Libre Baskerville', serif;
	font: 1.8rem/2.7rem 'Libre Baskerville', serif;
	display: inline-block;
	padding-bottom: 80px;
	color: #4A4A4A;
}

p, em {
	padding-left: 80px;
	padding-left: 8rem;
}

h2 {
	font: 124px/124px 'Libre Baskerville', serif;
	font: 12.4rem/12.4rem 'Libre Baskerville', serif;
	padding-left: 80px;
	padding-left: 8rem;
}

ul {
	list-style-type: none;
}

li {
	padding: 18px 0 18px 0;
}

a {
	text-decoration: none;
	font: 32px/32px 'Merriweather', serif;
	font: 3.2rem/3.2rem 'Merriweather', serif;
	font-weight: 300;
	font-style: italic;
	color: white;
}

label:hover {
	background-color: lightblue;
}

input[type="checkbox"] {
	display: none;
}

input[type="checkbox"]:checked ~ .contenidor {
	transform:translate3d(220px,0,0);
}

input[type="checkbox"]:checked ~ .navmenu {
	margin-left: 0px;
}

input[type="checkbox"]:checked ~ label {
	margin-left: 200px;
	background: url(ic_clear_white_48dp.png) center no-repeat;
	background-size: 32px, 32px, auto;
	background-color: rgba(74,74,74,0.85);

}

/* Media Queries */

@media screen and (max-width: 548px){

	html {
		font-size: 33%;
	}

	label {
		width: 70px;
		height: 70px;
		background-size: 20px, 20px, auto;
	}

	article {
		padding-right: 40px;
	}

	h1 {
		width: 280px;
		font-size: 37px;
		line-height: 1.2;
	}

	em {
		padding-bottom: 40px;
	}

	p, em {
		padding-left: 40px;
	}

	li {
		padding: 12px 0 12px 0;
	}

	.dreta {
		display: inline-block;
		float: right;
		padding-right: 40px;
	}

	.esquerra {
		display: inline-block;
		float: left;
	}

}

@media screen and (min-width: 548px) and (max-width: 768px) {

	html {
		font-size: 33%;
	}

	label {
		width: 80px;
		height: 80px;
		background-size: 26px, 26px, auto;
	}

	article {
		padding-right: 65px;
	}

	h1 {
		width: 480px;
	}

	em {
		padding-bottom: 65px;
	}

	li {
		padding: 14px 0 14px 0;
	}

	.dreta {
		display: inline-block;
		float: right;
		padding-right: 40px;
	}

	.esquerra {
		display: inline-block;
		float: left;
	}
}

@media screen and (min-width: 768px) and (max-width: 1150px) {

	html {
		font-size: 45%;
	}

	h1 {
		width: 750px;
	}

}