*{
	margin: 0px;
	padding: 0px;
}

a{
	text-decoration: none;
	color: inherit;
}
h1{
	font-size: 2.5em;
}
h4{
	margin-top: 10px;
}
p{
  margin-top: 20px;
  margin-bottom: 25px;
}
#lema{
	font-size: 1.3em;
}

.flex-container{
  display: flex;
  flex-wrap: wrap;
}

.flex1{flex:1;}
.flex2{flex:2;}
.flex3{flex:3;}
.flex4{flex:4;}
.flex5{flex:5;}
.flex6{flex:6;}

html{
	background-image: url('../imatges/bg.jpg');
	background-attachment: fixed;
}

body{
	font-family: verdana;
	text-align: justify;
	width: 90%;
	margin: 50px auto 50px auto;
	min-width: 320px;
}

button{
	font-size: 1.2em;
	padding: 4px;
	margin: 0px 0px 10px 850px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background-color: rgba(0,0,0,0.5);
	color: white;
}
#body{
	position: relative;
	width: 100%;
	background-color: rgba(200,200,220,0.7);
	margin:230px auto 50px auto;
	border-radius: 15px;
	min-width: 320px;
}
#bodywrite{
	position: relative;
	width: 90%;
	background-color: rgba(230,230,240,0.9);
	margin:230px auto 50px auto;
	border-radius: 15px;
	min-width: 320px;
}
nav{
	display: flex;
	flex-wrap: wrap;
	justify-content: right;
	margin: 10px auto;
	padding: 40px;
	min-width: 320px;
}

nav li{
	display: inline-block;
	padding: 15px;
	text-transform: capitalize;
	font-weight: bold;
	color: rgb(200,10,50);
	text-shadow: 0px 0px 2px white;
  transition: 0.5s;
}

nav li:hover{
  color: purple;
  background-color: yellow;
  transform: scale(1.1) rotate(3deg);
  border-radius: 30px;
}
#idioma{justify-content: left;}
#idioma li:hover{
	background-color: initial;
	transform: scale(1.3) rotate(0deg);
	border-radius: 20px;
}

nav figure img{
	box-shadow: 0px 0px 0px rgba(60,60,60,0.6);
  transition: 0.5s;
	width: 60%;
}

nav figure img:hover{
  transform: scale(1.2) rotate(-720deg);
  box-shadow: 15px 15px 15px rgba(60,60,60,0.6);
}

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

.galeria div{
	display: flex;
	justify-content: center;
	margin: 75px auto;
}

.galeria div figure,h3{
	flex: 1;
	max-width: 40%;
	display: inline-block;
	flex-wrap: wrap;
  text-align: center;
 	margin: auto;
	padding: 0px;
	min-width: 100px;
	font-style: italic;
}

.galeria div figure img{
	border: solid 2px red;
	width: 240px;
	height: 290px;
	border-radius: 10px;
  box-shadow: 2px 2px 2px rgba(60,60,60,0.6);
  transition: 0.5s;
	min-width: 200px;
}

.galeria div figure img:hover{
  transform: scale(1.2) rotate(0deg);
  box-shadow: 15px 15px 15px rgba(60,60,60,0.6);
}

#retrats figure{
	display: inline-block;
	flex-wrap: wrap;
	width: 450px;
	height: 450px;
	min-width: 200px;
	margin: 80px;
}

#retrats figure img{
	border: solid 2px red;
	border-radius: 10px;
	width: 100%;
	height: 90%;
	box-shadow: 2px 2px 2px rgba(60,60,60,0.6);
  	transition: 0.5s;
}
#retrats figure img:hover{
	transform: scale(1.2) rotate(0deg);
  	box-shadow: 15px 15px 15px rgba(60,60,60,0.6);
}
.yourportrait figure{
	display: inline-block;
	flex-wrap: wrap;
	text-align: center;
	min-width: 200px;
	margin: 50px auto 50px auto;
}
.yourportrait figure img:hover{
	transform: scale(1.2) rotate(0deg);
  	box-shadow: 15px 15px 15px rgba(60,60,60,0.6);
}
.yourportrait figure img{
	border: solid 2px red;
	border-radius: 10px;
	width: 350px;
	height: 400px;
	box-shadow: 2px 2px 2px rgba(60,60,60,0.6);
  	transition: 0.5s;
}

.grande{
  position: fixed;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	text-align: center;
	border-top: solid 40px grey; border-bottom: solid 60px grey;
	border-right: solid 130px grey; border-left: solid 130px grey;
}
.grande img{
	height: 100%;
	width: 90%;
}
.others figure{text-align: center;}
.others figure img{
	width: 280px;
	margin: 40px;
	border: groove 6px red;
}
.serra{
	height: auto;
	width: 500px;
	text-align: center;
	margin-top: 40px;
	margin-block-end: 40px;
}
.serra img{
	width: 60%;

}
.midaitec ul{
	justify-content: right;
	margin-top: 20px;
}
.midaitec ul:nth-of-type(2){
	text-decoration: inherit;
}
.midaitec ul li{
	margin-top: 20px;
	list-style-type: none;
}
.midaitec ul li:last-of-type{
	margin-bottom: 10px;
}
@keyframes rotar{
  0%{transform: rotateX(0deg) rotateY(0deg);}
  50%{transform: rotateX(-180deg) rotateY(180deg);}
  100%{transform: rotateX(-360deg) rotateY(360deg);}
}
.cubo{
  transform-style: preserve-3d;
  height: 300px;
  width: 300px;
  margin: 140px auto 110px auto;
  position: relative;
  transform: rotateX(45deg) rotateY(45deg);
  animation: rotar 35s linear infinite;
}

.cara{
  position: absolute;
  height: 300px;
  width: 300px;
}
.front{
  transform: translateZ(150px);
}
.back{
  transform: rotateY(180deg) translateZ(150px);
}
.right{
  transform: rotateY(-90deg) translateZ(150px);
}
.left{
  transform: rotateY(90deg) translateZ(150px);
}
.up{
  transform: rotateX(90deg) translateZ(150px);
}
.down{
  transform: rotateX(-90deg) translateZ(150px);
}

#gmap{
	text-align: center;
	margin-bottom: 30px;
}
#gmap iframe{
	height: 350px;
	width: 350px;
	border: groove 6px rgba(100,40,30,1);
}

.pcontainer{
	padding: 20px;
	border: groove 3px red;
	height: 550px;
	width: 400px;
	margin: 50px auto 50px auto;
	min-width: 250px;
	background-color: rgba(60,100,80,0.8);
}
.pcaratula{
	transform-style: preserve-3d;
  height: 300px;
  width: 300px;
  margin: 100px auto 200px auto;
  position: relative;
  transform: rotateX(15deg) rotateY(15deg);
}

@keyframes protar{
  0%{transform: rotateX(25deg) rotateY(0deg);}
  50%{transform: rotateX(25deg) rotateY(180deg);}
  100%{transform: rotateX(25deg) rotateY(360deg);}
}
.pcaratula:hover{
  transform-style: preserve-3d;
	height: 300px;
  width: 300px;
  margin: 100px auto 200px auto;
  position: relative;
  transform: rotateX(15deg) rotateY(15deg);
  animation: protar 15s linear infinite;
}

.pcara{
  position: absolute;
  height: 300px;
  width: 200px;
}
.pfront{
  transform: translateZ(10px);
}
.pback{
  transform: rotateY(180deg) translateZ(10px);
}
.pright{
  height: 300px;
  width: 20px;
  transform: rotateY(-90deg) translateZ(10px);
}
.pleft{
  height: 295px;
  width: 20px;
  transform: rotateY(90deg) translateZ(185px);
}
.pup{
  height: 20px;
  width: 195px;
  transform: rotateX(90deg) translateZ(5px);
}
.pdown{
  height: 20px;
  width: 195px;
  transform: rotateX(-90deg) translateZ(285px);
}
.spoem{
	margin: 30px auto 100px 200px;
}
.hpoem{
	margin-top: 50px;
	margin-bottom: 30px;
}

.guasap{
	display: none;
	height: 60px;
	width: 60px;
	margin: auto;
}
.guasap img{
	width: 80%;
}
.feisbuk{
	display: inline-block;
	height: 40px;
	width: 40px;
	margin: auto;
}
.feisbuk img{
	width: 100%;
}
.feisbuk:hover{
	transform: scale(1.1);
	border: solid 1px purple;
	border-radius: 15px;
}
.xarxes{margin-left: 90px;}
.xarxashare{
	display: inline-block;
	height: 40px;
	width: 40px;
	margin: auto;
}
.xarxashare img{width: 100%;}
.xarxashare img:hover{
	transform: scale(0.9);
	border: solid 1px black;
	border-radius: 15px;
}
.xarxashare:first-of-type{
	margin-left: 50px;
	margin-right:30px;
}
.xarxashare:last-of-type{
	margin-left:30px;
}
footer{
	height: auto;
	padding: 20px;
	text-align: right;
	background-color: rgba(130,130,120,0.7);
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
	margin: 10px auto 0px auto;
}
footer h3{
	font-size: 0.6em;
	font-style: italic;
}

footer nav{
	padding: 2px;
}
.safe{
	margin-top: 10px;
	text-align: left;
}
.correu{
	text-shadow: 0px 0px 1px white;
	transition: 0.5s;}
.correu:hover{
	transform: scale(1) rotate(0deg);
	color: purple;
}
.correuifb{
	display: inline-block;
	margin: auto;
}
