
h1{
	font-size: 2.4em;
	margin-left: 10px;
}
h4{
	margin-top: 10px;
}
p{
	font-size: 1.2em;
  min-width: 100px
}
#lema{
	font-size: 1.4em;
	color: rgb(50,100,250);
	text-shadow: 1px 1px 1px red;
}
html{
	padding-right: 0px;
	background-image: url('../imatges/bg1.jpg');
}

body{
	padding: 2px;
	justify-content: center;
	height: auto;
	width: 90%;
}
body p{padding: 6px;}

button{
	font-size: 1.1em;
	padding: 4px;
	margin: 0px 0px 10px 220px;
}
#body{
	width: 90%;
	padding: 0px; 
	background-color: rgba(200,200,220,0.7);
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	margin:30px 0px 10px 0px;
	height: auto;
}
#libuit{display: none;}
nav{
	padding: 5px;
}
nav li{
	display: inline-block;
	font-size: 1.2em;
	padding: 8px;
}
nav li:hover{
  transform: scale(1) rotate(0deg);
	border-radius: 15px;
}
nav figure img:hover{
  transform: scale(1.1) rotate(-360deg);
}

section{
	margin: 20px 10px 40px 10px; 
}

.galeria div{
	margin: 20px 0px;
}

.galeria div figure{
	height: 210px;
	min-width: 160px;
}
.galeria div h3{
	font-size: 1.1em;
}

.galeria div figure img{
	height: 90%;
	width: 60%;
	min-width: 170px;
}
.galeria div figure img:hover{
  transform: scale(1) rotate(0deg);
  box-shadow: 8px 8px 8px rgba(60,60,60,0.8);
}

#retrats figure{
	margin: 40px 30px 30px 30px;
	width: 280px;
	height: 350px;
}
#retrats figure img{
	width: 100%;
	height: 100%;
}
#retrats figure img:hover{
	transform: scale(1.1) rotate(0deg);
}
.yourportrait figure{margin: 50px auto;}
.yourportrait figure img{
	width: 300px;
	height: 350px;
}
.yourportrait figure img:hover{
	transform: scale(1) rotate(0deg);
}
.grande{
	display: none;
}
.others figure img{
	width: 280px;
	margin: 30px;
	border: groove 6px red;
}
.serra{
	height: auto;
	margin: 30px auto;
}
.serra img{width: 80%;}
.midaitec ul:nth-of-type(3){
	margin-left: 30px;
}

@keyframes rotar{
  0%{transform: rotateX(-20deg) rotateY(50deg);}
  50%{transform: rotateX(-20deg) rotateY(50deg);}
  100%{transform: rotateX(-20deg) rotateY(50deg);}
}
 .cubo{
  height: 160px;
  width: 160px;
	min-width: 250px;
	transform: rotateX(0deg) rotateY(15deg);
  animation: rotar 35s linear infinite;
}
.cara{
  height: 160px;
  width: 160px;
}
.front{
  transform: translateZ(80px);
}
.back{
  transform: rotateY(180deg) translateZ(80px);
}
.right{
  transform: rotateY(-90deg) translateZ(80px);
}
.left{
  transform: rotateY(90deg) translateZ(80px);
}
.up{
  transform: rotateX(90deg) translateZ(80px);
}
.down{
  transform: rotateX(-90deg) translateZ(80px);
}
#gmap iframe{
	height: 250px;
	width: 250px;
	margin-bottom: 20px;
}

.pcontainer{
	padding: 10px;
	height: 450px;
	width: 300px;
	margin: 20px auto 50px auto;
}
.pcaratula{
  width: 200px;
  margin: 50px auto 20px auto;
}

.pcaratula:hover{
  height: 300px;
  width: 200px;
  margin: 50px auto 200px auto;
  transform: rotateX(15deg) rotateY(15deg);
}
.spoem{
	margin: 30px auto 100px 60px;
}
.hpoem{
	margin-top: 50px;
	margin-bottom: 30px;
}
.spanguasap{
	display: inherit;
}

.correuifb{margin-top: 20px;}
.feisbuk{
	margin-top: 15px;
	height: 45px;
	width: 45px;
}
.xarxes{margin:auto;}
.xarxashare{
	display: inline-block;
	height: 45px;
	width: 45px;
	margin: auto;
}

footer{
	height: auto;
	padding: 15px;
	text-align: left;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	margin: 10px 0px 0px 0px;
}
footer h3,h6{
	font-size: 0.9em;
}
footer h3{margin-bottom: 15px;}
.safe{
	text-align: center;
}