@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,600,300);


/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
	cursor: default;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1.12em; }
h5 { font-size: .83em; }
h6 { font-size: .75em; }

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

strong { font-weight: bold; }

p {margin: 1em 0px;}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}

.clearfix {
	clear: both;
}

#video {
  width: 100%;
  height: 100%;
}

/* ICONES */

@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?ew7w0r');
  src:  url('fonts/icomoon.eot?ew7w0r#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?ew7w0r') format('truetype'),
    url('fonts/icomoon.woff?ew7w0r') format('woff'),
    url('fonts/icomoon.svg?ew7w0r#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-image:before {
  content: "\f03e";
}
.icon-photo:before {
  content: "\f03e";
}
.icon-picture-o:before {
  content: "\f03e";
}
.icon-chevron-left:before {
  content: "\f053";
}
.icon-chevron-right:before {
  content: "\f054";
}
.icon-quill:before {
  content: "\e907";
}
.icon-camera:before {
  content: "\e90f";
}
.icon-book:before {
  content: "\e91f";
}
.icon-library:before {
  content: "\e921";
}
.icon-location:before {
  content: "\e947";
}
.icon-calendar:before {
  content: "\e953";
}
.icon-users:before {
  content: "\e972";
}
.icon-enlarge:before {
  content: "\e989";
}
.icon-menu:before {
  content: "\e9bd";
}
.icon-grin:before {
  content: "\e9e9";
}
.icon-point-right:before {
  content: "\ea04";
}
.icon-cross:before {
  content: "\ea0f";
}




/* PORTADA */

#portada-imatge {
	background: #FFEFBF;
	text-align: center;
	padding: 90px 20px;
	position: relative;
}

#portada-intro {
	background: #F0BF12;
	padding: 50px 20px;
}

#portada-intro a {
	text-decoration: none;
	font-size: 30px;
	transition: 0.2s transform cubic-bezier(0.175, 0.885, 0.270, 1.650);
}

#portada-intro a:hover, #portada-intro a:focus {
	transform: scale(0.9,0.9);
}


.portada .text {
	font-size: 18px; font-weight: bold;
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

#portada-imatge img {
	max-width: 100%;
}

.finestra {
	position: fixed;
	z-index: -1;
	top: 0; right: 0; bottom: 0; left: 0;
	margin: auto;
	visibility: collapse;
	background-color: #fff;
	width: 80%;
	height: 30%;
	opacity: 1;
	transition: all 0.4s ease;
	transform: translateY(20px);
}

.finestra.open {
	z-index: 1000;
	display: block;
	transform: translateY(-30px);
	visibility: visible;
	transition: all 0.4s ease;
	opacity: 1;
	height: 80%;
}

.finestra .barra-eme {
	background-color: #fff;
	text-transform: uppercase;
	font-weight: 300;
	position: fixed;
	width: 100%;
}

.finestra .titol-eme, .finestra .eme-h {
	padding: 2px;
	text-transform: uppercase;
	font-weight: 300;
}

.finestra a {
	color: #518EF8;
}

.eme-cont {
	padding: 30px 20px;
	font-weight: 300;
	overflow-y: auto;
	height: 100%;
}

.finestra .logos {
	margin: 20px;
	text-align: center;
}

.finestra .logos img {
	margin: 20px;
}

.finestra .logos img.logo-diapaso {
	margin-left: 40px;
}


@-moz-keyframes continua {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@-webkit-keyframes continua {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-o-keyframes continua {
  0%, 20%, 50%, 80%, 100% {
    -o-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -o-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -o-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

@-ms-keyframes continua {
  0%, 20%, 50%, 80%, 100% {
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -ms-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -ms-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@keyframes continua {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

#portada-imatge .baixar {
	background: url(../img/baixar.png) center center no-repeat;
	background-size: 50px 50px;
	width: 50px; height: 50px;
	margin: 20px auto;
	position: absolute;
	bottom: 0; left: 0; right: 0;
	-moz-animation: continua 2s infinite;
	-webkit-animation: continua 2s infinite;
	-o-animation: continua 2s infinite;
	-ms-animation: continua 2s infinite;
	animation: continua 2s infinite;
}

#main-menu ul, #main-menu ul li {
	list-style: none;
	margin: 0; right: 0;
	display: block;
}

#main-menu ul li {
	display: block;
	float: left;
	width: 25%;
	background: #333;
	height: 400px;
}

#main-menu ul li a {
	display: block;
	position: relative;
	text-decoration: none;
	color: #fff;
	text-align: center;
	overflow: hidden;
	line-height: 0;
	width: 100%; height: 100%;
}

#main-menu ul li a img , #main-menu ul li a .menu-aina{
	width: 100%;
	transition: 0.2s all ease-in-out;
	position: relative;
	z-index: 5;
}

#main-menu ul li a .menu-aina {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 5;
}

#main-menu ul li a .info {
	position: absolute;
	bottom: -40px; left: 0; right: 0;
	padding: 10px 5px;
	background: rgba(0,0,0,0.7);
	transition: 0.2s all ease-in;
	line-height: 1;
	z-index: 10;
}

#main-menu ul li a:hover .info, #main-menu ul li a:focus .info {
	bottom: 0;
}

#main-menu ul li a:hover img, #main-menu ul li a:hover .menu-aina {
	transform: scale(1.05,1.05) rotate(0.01deg);
	transform-origin: center top;
	transition: 4s all ease-out;
}

#main-menu ul li a .segle, #main-menu ul li a .nom, #main-menu ul li a .separador {
	display: block;
}

#main-menu ul li a .segle {
	font-size: 34px;
}

#main-menu ul li a .nom {
	text-transform: uppercase;
	font-size: 18px;
	letter-spacing: 2px;
	font-weight: 200;
	opacity: 0;
	transition: 0.2s opacity linear;
	transition-delay: 0.2s;
}

#main-menu ul li a:hover .nom, #main-menu ul li a:focus .nom {
	opacity: 1;
}

#main-menu ul li a .separador {
	width: 180px;
	height: 1px;
	background: rgba(255,255,255,0.8);
	margin: 10px auto;
}

#about {
	height: 500px;
	background: #32B9C6;
}

#footer {
	height: 50px;
	background: #222;
}

#menu-capitol-gran {
	position: fixed;
	top: 60px; left: 0; right: 0; bottom: 0;
	margin-top: -100%;
	height: 100%;
	padding-bottom: 60px;
	z-index: 49;
	transition: 0.5s all ease-in;
	background: #222;
}

#menu-capitol-gran #main-menu ul {
	position: relative;
	height: 100%;
}

#menu-capitol-gran #main-menu ul li{
	position: relative;
}

#menu-capitol-gran #main-menu ul li a {height: 100%; overflow: hidden;}


.menu-obert #menu-capitol-gran {
	margin-top: 0;
	transition: 0.5s all ease-out;
}

.fp-tableCell {
	display: block;
}

.center {
	text-align: center;
}


.pagina {
  position: absolute;
  top: 0; bottom: 0; right: 0; left: 0;
  margin: auto;
  position: relative;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(0.512963, 0.512963);
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  z-index: 10;
}

.scaleable-wrapper {
  padding: 20px;
  resize: both;
  position: relative;
  background: #666;
  height: 400px;
}




/* Comuns */

* {
  box-sizing: border-box;
}

.container {
  margin: auto;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.4;
}

.btn {
  display: inline-block;
}

.img-responsive {
  max-width: 100%;
}

.abs {
  position: absolute;
}

.left, .center {
  left: 0;
}

.right {
  right: 0;
}

.text-left {
	text-align: left;
}

.titol h1 {
  display: inline-block;
  margin: 0;
}

.descripcio {
  color: #fff;
  padding: 5px;
  font-size: 34px;
}

#resposta .descripcio {
	font-size: 32px;
	color: #333;
}

.fp-section {
  overflow: hidden;
}

svg {
	overflow: hidden;
}

/* Header */

#menu-cap {
  height: 70px;
  position: relative;
  transition: height 0.3s linear;
}

header.primerasec #menu-cap {
  height: 50px;
  transition: height 0.3s linear;
}

#barra-cap {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 50;
  color:  #fff;
}

#id-cap {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 143px;
	padding-right: 6px;
	padding-left: 10px;
	margin-right: 20px;
	background: rgba(0,0,0,0.7);
	line-height: 1;
}


#nom-cap {
	position: absolute;
	left: 163px;
	height: 15px;
	margin: auto 0;
	top: 0;
	bottom: 0;
	line-height: 1;
}

#nom-cap h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 200;
  text-transform: uppercase;
  padding: 0;
  letter-spacing: 4px;
}

#id-cap .num {
  font-size: 32px;
  position: absolute;
  display: block;
  line-height: 43px;
  height: 43px;
  top: 0; right: 0; left: 0; bottom: 0;
  margin: auto;
  text-align: center;
}

.barra-fletxa, .barra-menu, .barra-rutes {
	display: inline-block;
	background: url('../img/barra_dalt.png') no-repeat;
	background-size: 37px 50px;
}

.barra-fletxa {
	width: 18px;
	height: 31px;
	position: absolute;
	top: 0; bottom: 0;
	margin: auto 0;
	opacity: 0.5;
}

.barra-fletxa.dreta {
	background-position: -18px 0;
	right: 10px;
}

.barra-fletxa.esquerra {
	background-position: 0 0;
	left: 10px;
}

.barra-menu {
	background-position: -15px -32px;
	width: 22px;
	height: 18px;
	position: absolute;
	top: 0; bottom: 0;
	right: 27px;
	margin: auto 0;
	opacity: 0.8;
}

.barra-rutes {
	background-position: -1px -31px;
	width: 12px;
	height: 20px;
	position: absolute;
	top: 0; bottom: 0;
	right: 65px;
	margin: auto 0;
	opacity: 0.8;
}

a:hover.barra-fletxa, a:focus.barra-fletxa,
a:hover.barra-menu, a:focus.barra-menu,
a:hover.barra-rutes, a:focus.barra-rutes{
	opacity: 1;
}

.barra-fletxa.desactivat {
	opacity: 0.1;
}


#botons-cap {
	float: right;
	width: 100px;
}

.barra-menu.menu-open {
	opacity: 1;
}

/* Menu */

ul.menu.tancat {
animation-name: menutancat;
}

ul.menu {
	position: absolute;
	display: block;
	z-index: 200;
	right: 3px;
    margin-top: 87px;
	opacity: 0;
	transform-origin: top right;
	transform: scale(0,0);
	transition: 0.4s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.1s opacity linear, 0.3s margin linear;
}

.primerasec ul.menu {
	margin-top: 66px;
}

ul.menu.open {
	opacity: 1;
	transform: scale(1,1);
	transition: 0.4s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.3s margin linear;
}

ul.menu .punta {
  position: absolute;
  z-index: 50;
  right: 15px;
  top: -15px;
  width: 40px;
}

ul.menu li {
  font-size: 1.2em;
  z-index: 60;
  text-align: right;
  font-weight: 300;
}

ul.menu li a {
position: relative;
z-index: 51;
}

/* Vídeo emergent */

#emergent {
	width: 300px;
	height: 385px;
	background-color: #fff;
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	margin: auto;
	z-index: -1;
	display: none;
}

#emergent.open {
	z-index: 20;
	display: block;
	transform: translateY(-30px);
}

#emergent div {
	pointer-events: none;
}

#emergent .video-js {
	pointer-events: stroke;
	margin-top: 25px;
}

.barra-eme {
	background-color: #54B9C5;
	overflow: hidden;
	height: 25px;
	position: relative;
}

.arros-eme, .tanca-eme {
	padding: 5px;
	height: 30px;
	pointer-events: stroke;
	font-size: 16px;
}

.arros-eme a, .tanca-eme a {
	color: #fff;
}

.arros-eme {
	background-color: #4F555F;
}

.tanca-eme {
	float: right;
	background-color: #F86851;

}

#botons-cap {
  float: right;
  text-align: right;
  padding-right: 25px;
}

#barra-cap a {
  color: #fff;
}

#botons-cap .btn-mapa {
  float: left;
}

ul.menu {
  padding: 0;
}

#barra-cap ul li {
	border-bottom: 1px solid #999;
	border-left: 1px solid #999;
	border-left: 1px solid #999;
}

#barra-cap ul.menu a {
	background: #333;
	color: #eee;
	transition: 0.2s all linear;
}

#barra-cap ul.menu a:hover, ul.menu a:focus {
	color: #fff;
	padding-left: 25px;
	padding-right: 45px;
}


.bloc2 {
	background-color: rgb(241,204,128);
}

.menu li {
  list-style: none;
  height: 12%;
}

.menu.open {
  display: block;
}

.menu li a {
  display: block;
  color: #fff;
  padding: 6px 35px;
}

#progressbar {
    width: 100%;
    height: 10px;
    background-color: #292929;
}

#progressbar div {
    height: 100%;
    color: #fff;
    text-align: right;
    line-height: 5px;
    width: 0;
    background-color: #F0BF12;
    transition: all 100ms linear;
}

#progressbar div.lent {
	transition: all 1500ms ease-in-out;
}

/* Vídeo js */

.video-js .vjs-control-bar {
  z-index: 500;
	background-color: transparent;
}

.overlay {
	position: fixed;
	top: 0; bottom: 0; right: 0; left: 0;
	background: #000;
	z-index: 0;
	opacity: 0;
	transition: 0.5s opacity linear;
}

.overlay.active {
	z-index: 90;
	opacity: 0.5;
}

#overlay-menu.overlay.active {
	z-index: 49;
	transition: 0.4s opacity linear;
}
#overlay-menu.overlay {
	background: #fff;
}
/* Rutes */

#rutes {
	position: fixed;
	top: 7.5%;
	right: 0;
	left: 0;
	width: 85%;
	height: 85%;
	margin: auto;
	z-index: -10;
	display: none;
	transition: all 0.5s linear;
	border-width: 40px 0 0 0;
	border-color: #F0BF12;
	border-style: solid;
}

@keyframes mapaIn {
    from {display:block; top: 100%;}
    to {display:block; top: 7.5%;}
}

@keyframes mapaOut {
    from {display:block; top: 7.5%;}
    to {display:block; top: -100%;}
}

#map {
  height: 100%;
}

#rutes.open {
  display: block;
  z-index: 100;
  animation-name: mapaIn;
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.270, 1.650);
}

#rutes.close {
  animation-name: mapaOut;
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.270, 1.650);
}

.titol-rutes, .tanca-rutes {
	position: absolute;
	top: -42px;
	padding: 10px 20px;
	font-weight: 300;
	text-transform: uppercase;
	display: block;
}

.titol-rutes {
	left: -10px;
}

.tanca-rutes {
	right: -10px;
}

.tanca-rutes a {
	color: #000;
}

/* Formes Clip Path */

.cp {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0; right: 0; bottom: 0; left: 0;
}

.top {
	z-index: 6;
}

.bafarada-cp {
	clip-path: url(#bafarada-svg);
	-webkit-clip-path: polygon(100% 0, 100% 79%, 25% 79%, 25% 100%, 0 80%, 0 0);
}

.bafarada-cp.top {
	background-color: rgba(255, 255, 255, 0.95);
}

.bafarada-cp.back {
	background-color: #F0BF12;
	transform: rotate(1deg);
}

.bafarada-cp.reback {
	background-color: #ECA436;
	transform: rotate(-2deg);
	left: -6px;
	top: -2px;
}

.interrogant {
	position: relative;
	top: 150px;
	width: 250px;
	height: 200px;
	right: 55px;
}

.interrogant-cp {
	-clip-path: url(#interrogant-cp);
	-webkit-clip-path: polygon(23% 0, 95% 13%, 100% 75%, 72% 100%, 0 81%, 5% 40%);
}

.interrogant-cp.top {
	background-color: #ECA436;
	z-index: 19;
}

.interrogant-cp.back {
	background-color: #F0BF12;
	transform: rotate(-11deg);
	z-index: 18;
}

.interrogant-cp.reback {
	background-color: #BBB58A;
	transform: rotate(-17deg);
	z-index: 17;
}

.resposta-cp {
	-webkit-clip-path: polygon(50% 0, 97% 2%, 100% 57%, 95% 100%, 18% 97%, 13% 52%, 0 0);
}

.resposta-cp.top {
	background-color: rgba(255, 255, 255, 0.7);
}

.resposta-cp.back {
	background-color: rgba(255, 255, 255, 0.7);
	transform: rotate(2deg);
	left: -8px;
}

.titol-cp {
	clip-path: url(#titol-svg);
	-webkit-clip-path: polygon(22% 15%, 97% 9%, 100% 94%, 0 100%, 7% 23%);
}

.titol-cp.top {
	left: -25px;
	top: -10px;
	background-color: #F0BF12;
	z-index: 8;
}

.titol-cp.back {
	-webkit-clip-path: polygon(13% 7%, 96% 0, 93% 77%, 76% 88%, 0 94%);
	z-index: 7;
	background-color: rgba(0,0,0,0.8);
	left: 3px;
}

.titol-cp.reback {
	z-index: 6;
	background-color: rgba(0,0,0,0.6);
	top: -20px;
	left: -30px;
}

.desc-cp {
	clip-path: url(#descripcio-svg);
	-webkit-clip-path: polygon(50% 7%, 100% 21%, 100% 100%, 5% 100%, 0 5%);
	overflow: visible;
	z-index: 5;
	background-color: rgba(0, 0, 0, 0.8);
	left: -10px;
}

.desc-cp.back {
	clip-path: url(#descripcio-back);
	-webkit-clip-path: polygon(50% 7%, 100% 21%, 100% 100%, 5% 100%, 0 5%);
	z-index: 4;
	background-color: rgba(0, 0, 0, 0.5);
	top: -10px;
}

.right-cp {
	background-color: rgba(0, 0, 0, 0.5);
	top: 30px;
}

.right-cp.top {
	-webkit-clip-path: polygon(0 0, 97% 0, 100% 96%, 81% 100%, 3% 100%);
	clip-path: url(#right-svg);
}

.right-cp.back {
	-webkit-clip-path: polygon(23% 0, 100% 0, 97% 100%, 0 98%, 3% 3%);
	clip-path: url(#right-svg-back);
}

.center-cp.top {
	clip-path: url(#center-svg);
	-webkit-clip-path: polygon(18% 2%, 100% 2%, 96% 98%, 5% 101%, 0% 4%);
	background-color: rgba(0, 0, 0, 0.4);
}

.center-cp.back {
	clip-path: url(#center-svg-back);
	-webkit-clip-path: polygon(99% 0, 100% 98%, 79% 100%, 0 100%, 3% 0);
	background-color: rgba(0, 0, 0, 0.6);
}

.back {
	z-index: 4;
}

.reback {
	z-index: 3;
}

/* Bloc 1 */

.bloc-img, .bloc-img-ov {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

#cap1 .bloc-img-ov {
	background-size: auto 100%;
	background-position: right bottom;
}

#informacio {
  top: 100px;
}

#informacio .titol h1 {
  padding: 5px 20px;
	font-size: 60px;
}

.pantalla {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
	z-index: 300;
}

.btn-rep, .btn-cmap {
	background-color: #fff;
	border-radius: 6px;
	padding: 6px 12px;
	color: #333;
	text-transform: uppercase;
	z-index: 20;
	position: relative;
	font-size: 35px;
	vertical-align: middle;
}

.btn-cmap .icon-location {
	color: #BF4E3D;
	vertical-align: middle;
}

.gm-style-iw div div {
	overflow: hidden;
}

.gm-style-iw .imatge {
	text-align: center;
}

.gm-style-iw .imatge img {
	max-height: 150px;
}

.gm-style-iw h1 {
	margin-top: 10px;
	border-bottom: 2px solid #F0BF12;
	margin-bottom: 5px;
	font-size: 18px;
	padding-bottom: 5px;
}

.btn-rep {
	background: #ECA436 url(../img/lse.jpg) left center no-repeat;
	color: #fff;
	background-size: auto 100%;
	padding: 10px 15px 10px 60px;
	font-size: 0.8em;
}

.descripcio .btn-rep {
	margin-top: 10px;
}

/* Bloc 2 */

.info-text {
  top: 30%; left: 5%;
  /*background-color: rgb(255, 246, 1, 0.7);*/
  position: relative;
}

.diapo {
	overflow: hidden;
	height: 0px; width: 0px;
	opacity: 0;
  position: relative;
    transform: translate3d( 0, 0, 0);
  -webkit-font-smoothing: antialiased;
}

.diapo.active {
	display: block;
	height: auto; width: auto;
	opacity: 1;
	z-index: 10;
}

.opac {
  opacity: 0;
  transition: opacity 0.4s linear;
}

.video-js {
	position: absolute;
	top: 0; bottom: 0; left: 0; right: 0;
	width: 100%;
	height: 100%;
	background: transparent;
}

.bloc2 .video-js {
	top:60px;
	height: auto;
}

.section.moviment .video-js .vjs-control-bar {
	opacity: 0;
}

.video-js .vjs-big-play-button, .video-js .vjs-fullscreen-control, .vjs-icon-audio, .video-js .vjs-audio-button, .vjs-icon-volume-high, .video-js .vjs-mute-control, .video-js .vjs-volume-menu-button {
	display: none;
}

.bloc2 .transicio {
	position: absolute;
	bottom: -100px;
	height: 100px;
	left: 0; right: 0;
	opacity: 0;
	transition: 0.2s all linear;
}

.bloc2.moviment .transicio {
	opacity: 1;
	bottom: 0;
}

.right .info-text {
	position: absolute;
	left: auto;
	right: 10%;
	top: 320px;
}

.info-text .titol {
	text-transform: lowercase;
	height: auto;
	width: auto;
	padding: 20px;
	top: 50px;
	display: inline-block;
	padding-right: 70px;
}

.info-text .titol h2 {
	font-size: 60px;
}

.info-text .descripcio {
	top: 0px;
	width: 710px;
	min-height: 250px;
	padding: 30px;
	height: auto;
	transition: height 0.2s ease-out;
}

.info-text .descripcio .diapo {
	padding-right: 50px;
}

.left .descripcio .diapo {
	text-align: right;
}

.center .descripcio .diapo {
	/*
	padding-left: 10px;
	padding-right: 40px;
	font-size: 1.4em;
	font-weight: 300;
	*/
}

.center .descripcio .diapo p {
	margin: 0;
}

.descripcio .circle {
	position: absolute;
	right: 5px;
	top: 90px;
}

.text-desc {
	position: relative;
	z-index: 12;
}

.video1 .descripcio {
	left: 10px;
}


/* Bloc 3 */

.owl-theme .owl-controls {
	margin-top:10px;
	text-align:center;
	-webkit-tap-highlight-color:transparent
}
.owl-theme .owl-controls .owl-nav .owl-next, .owl-theme .owl-controls .owl-nav .owl-prev, a.boto-seguent {
	color:#fff;
	font-size:0;
    color: rgba(0,0,0,0);
	margin:5px;
	padding:0;
    background: url(../img/partida/next.png) center center no-repeat;
	display:inline-block;
	cursor:pointer;
    width: 66.5px; height: 47px;
    background-size: 100% 100%;
    transition: 0.2s all linear;
}

a.boto-seguent:hover, a.boto-seguent:focus {
  transform: scale(1.1, 1.1);
}

.owl-theme .owl-controls .owl-nav .owl-prev {
  background-image: url(../img/partida/prev.png);
}

.owl-theme .owl-controls .owl-nav .disabled {
	opacity:.5;
	cursor:default
}
.owl-theme .owl-dots .owl-dot {
	display:inline-block;
	zoom:1;
	*display:inline
}
.owl-theme .owl-dots .owl-dot span {
	width:10px;
	height:10px;
	margin:5px 7px;
	background:#fff;
    border: 2px solid #000;
	display:block;
	-webkit-backface-visibility:visible;
	-webkit-transition:opacity 200ms ease;
	-moz-transition:opacity 200ms ease;
	-ms-transition:opacity 200ms ease;
	-o-transition:opacity 200ms ease;
	transition:opacity 200ms ease;
	-webkit-border-radius:30px;
	-moz-border-radius:30px;
	border-radius:30px
}
.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span {
	background:#f6af05
}


#bloc3menu {
  background-color: #0085B2;
  text-align: center;
}

#bloc3menu .titol_partida, #bloc3menu .menub3 a, .slide .partida_seccio, .slide .owl-carousel, #prova-sort {
  transform: scale(0,0);
  transition: all 200ms linear;
  transition: 0.3s all cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.2s opacity linear;
  transition-delay: 1500ms;
}


#bloc3menu .menub3 a.e-person { transition-delay: 1600ms;}
#bloc3menu .menub3 a.e-contes { transition-delay: 1700ms;}
#bloc3menu .menub3 a.e-constr { transition-delay: 1800ms;}
#bloc3menu .menub3 a.e-joclin { transition-delay: 1900ms;}

.slide .owl-carousel {
  opacity: 0;
  transition: all 300ms linear;
  transition: 0.5s all cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.6s opacity linear;
  transition-delay: 1600ms;
}

#bloc3.active #bloc3menu.active .titol_partida, #bloc3.active #bloc3menu.active .menub3 a, .slide.active .partida_seccio, .slide.active .owl-carousel, #bloc3.active #bloc3menu.active #prova-sort {
  transform: scale(1,1);
  opacity: 1;
}


#bloc3.active #bloc3menu.active .menub3 a:hover [class^="icon-"], #bloc3menu.active .menub3 a:focus [class^="icon-"]{
  transform: scale(1.2, 1.2);
  transition-delay: 0s;
  transition: 0.2s transform linear;
}

.owl-item .informacio {
  opacity: 0;
  transition: 0.2s all linear;
  transition-delay: 1s;
  padding-top: 20px;
  padding-bottom: 0;
	max-height: 765px;
}

.owl-item.active .informacio {
  padding-bottom: 20px;
  padding-top: 0;
  opacity: 1;
  transition-delay: 0.5s;
}

.fp-controlArrow.fp-prev {
  border-color: transparent #eee transparent transparent;
}

.fp-controlArrow.fp-next {
  border-color: transparent transparent transparent #eee;
}

.menub3 {
  display: block;
}

.btn-b3 {
  text-align: center;
  vertical-align: middle;
  color: #fff;
  font-weight: bold;
  font-size: 22px;
  text-transform: lowercase;
  font-style: italic;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 446px 418px;
  width: 446px;
  padding-top: 433px;
  margin: 10px 5px;
}

.e-person { background-image: url(../img/partida/b3_picto_a.png);}
.e-contes { background-image: url(../img/partida/b3_picto_b.png);}
.e-constr { background-image: url(../img/partida/b3_picto_c.png);}
.e-joclin { background-image: url(../img/partida/b3_picto_d.png);}

.menub3 a span {
  display: block;
}

.menub3 [class^="icon-"] {
  font-size: 3em;
  margin-top: 35px;
}

#prova-sort {
	margin-top: 55px;
	padding: 30px;
	display: inline-block;
	min-width: 650px;
	color: #FAC400;
	border: 6px solid #FAC400;
	border-radius: 6px;
	font-weight: bold;
	font-size: 45px;
	background: #007A9E;
	text-transform: lowercase;
}

#prova-sort { transition-delay: 2000ms;}

.bloc3-lsmenu a {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	color: #fff;
	font-weight: bold;
	font-size: 22px;
	text-transform: lowercase;
	font-style: italic;
	width: 250px;
}

.bloc3-lsmenu {
	text-align: center;
	padding-top: 150px;
}

.bloc3-lsmenu a .icona {
	display: block;
	width: 158px;
	height: 158px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	margin: 15px auto;
}

.bloc3-lsmenu a.btn-text .icona {
	background-image: url(../img/partida/llegir.png);
}

.bloc3-lsmenu a.btn-ls .icona {
	background-image: url(../img/partida/lse.png);
}

.bloc3-lsmenu-tornar {
	color: #fff;
	display: inline-block;
	padding: 10px 15px;
	background: rgba(0,0,0,0.5);
	font-weight: bold;
	font-size: 30px;
	text-transform: lowercase;
}

#bloc3 .slide h1.partida_seccio, #portada-intro a {
  text-align: center;
  display: inline-block;
  background: #fff;
  color: #333 !important;
  margin: 0 auto 30px auto;
  color: #fff;
  margin-bottom: 10px;
  padding: 10px 30px;
  -webkit-clip-path: polygon(0 1%, 100% 10%, 99% 94%, 2% 99%);
  clip-path: polygon(0 1%, 100% 10%, 99% 94%, 2% 99%);
  box-shadow: 10px -10px 0 rgba(0,0,0,0.4);
  text-transform: lowercase;
  position: relative;
  z-index: 999;
}

#bloc3 .owl-carousel {
  background: rgba(0,0,0,0.15);
  color: #fff;
  -webkit-clip-path: polygon(1% 4%, 100% 0, 98% 96%, 3% 91%);
  clip-path: polygon(1% 4%, 100% 0, 98% 96%, 3% 91%);
  box-shadow: 10px -10px 0 rgba(0,0,0,0.15);
  padding-bottom: 50px;
}

.bloc3-lsmenu-text, .bloc3-lsmenu-video {
	display: none;
}

.bloc3-lsmenu-text {
	line-height: 1.4;
}

.bloc3-lsmenu-text, .owl-carousel h2 {
	padding: 0 10px;
}

.bloc3-lsmenu-video-player {
	height: 465px;
	width: 800px;
	position: relative;
	margin: 15px auto;
}

.owl-carousel .owl-item .img-responsive {
  -ms-transform: rotate(-1.5deg);
  -webkit-transform: rotate(-1.5deg);
  transform: rotate(-1.5deg);
  margin-top: -20px;
}

.owl-carousel h2 {
	font-size: 1.5em;
  margin-top: 30px;
	margin-bottom: 10px;
}

pre {
	font-family: "Open Sans", sans-serif;
	font-style: italic;
}

cite {
	font-style: normal;
}

#construccions h2 {
	font-size: 50px;
}

.info-cons {
	font-weight: 300;
	font-size: 40px;
}

.info-cons p {
	line-height: 1;
}

.titol_partida {
  position: relative;
  display: inline-block;
  margin: 250px auto 15px auto;
  padding: 10px 30px;
  -webkit-clip-path: polygon(0 9%, 100% 2%, 98% 99%, 2% 92%);
  clip-path: polygon(0 9%, 100% 2%, 98% 99%, 2% 92%);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.4);
  background: #F0BF12;
  text-transform: lowercase;
}

.fp-controlArrow {
	display: none;
}

a.boto-tornar {
	color: #fff;
	font-size: 30px;
	width: 50px;
	height: 50px;
	text-align: center;
	background: rgba(0,0,0,0.3);
	border-radius: 40px;
	display: inline-block;
	margin-right: 15px;
	opacity: 0;
	transition: 0.1s all linear;
	z-index: 99;
	position: relative;
}

a.boto-tornar:hover, a.boto-tornar:focus, a.boto-tornar:active {
	background: rgba(0,0,0,0.5);
	transform: scale(0.9,0.9);
	transition-delay: 0ms;
}

.slide.active a.boto-tornar:active {
	transform: scale(1.5,1.5);
	opacity: 0.3;
	transition-delay: 0ms;
}

.slide.active a.boto-tornar {
	opacity: 1;
	transition-delay: 1400ms;
}

a.boto-tornar span {
	margin-top: 10px;
	margin-right: 2px;
	display: inline-block;
}

#mode-aleatori {
	background: #ffee00;
	border: 2px solid #000;
	border-radius: 5px;
	width: 300px;
	height: auto;
	padding: 15px 0;
	font-size: 30px;
	font-weight: bold;
	animation-name: sort;
    animation-duration: 4s;
	animation-iteration-count: infinite;
}

#bloc3 .container {
	margin: 110px 50px 0 50px;
}

@keyframes sort {
	0% {background-color: #ffee00;}
    10% {background-color: #F4ED89;}
	20% {background-color: #ffee00;}
    100% {background-color: #ffee00;}
}

#bloc3 #personatges { background: #BF4E3D; }
#bloc3 #contes { background: #3C69B7;}
#bloc3 #construccions { background: #A0B75F;}
#bloc3 #joc { background: #574F32;}
#retrat { background: #419099;}

.titol-a {
  font-size: 1.5em;
}

.cont-slide {
  height: 100%;
}

.poema {
	line-height: 1.4;
}

.poema p:first-child {
  font-style: italic;
  margin-left: 20px;
}

.poema ul {
	list-style: circle;
	margin-left: 24px;
}

.poema ul > li > a {
	color: #fff;
	line-height: 1.2;
}

.poema ul > li > a:hover, .poema ul > li > a:focus {
	text-decoration: underline;
}

.col-6.col-guimera {
	padding-top: 0;
	margin-top: -30px;
}

.b3-img-ref {
	margin-top: 10px;
	margin-bottom: 15px;
	line-height: 1.4;
	clear: left;
	/*
	font-weight: 300;
	font-size: 1.1em;
	*/
}

.b3-img-ref .icon-image {
	margin-right: 10px;
}

/* Joc */

    .pissarra {
      position: absolute;
      top: 0; left: 0; right: 0;
	  width:1820px;
	  height:700px;
      padding: 100px 249px 40px 530px;
	  font-size:30px;
      color: #fff;
      background: url(../img/partida/pissarra.png) center center no-repeat;
      background-size: 100% 100%;
      margin: 0 50px;
    }

	.pissarra-aina {
		background: url(../img/partida/pissarra-aina-escriu.png) bottom left no-repeat;
		background-size: 100% 100%;
		position: absolute;
		bottom: 0; left: 0;
		width:562px;
		height:639px;
		z-index: 55;
		transition: 2s left ease-out, 0.2s background linear;
	}

	#cap1 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap2 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap3 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap4 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap5 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap6 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap7 #joc_activitat_cont.aplaudiment .pissarra-aina,
	#cap8 #joc_activitat_cont.aplaudiment .pissarra-aina{
		left: 36%;
		background-image: url(../img/partida/aplaudiment.gif);
		width:562px;
	}

	.aplaudiment iframe {
		opacity: 0;
	}

    #joc_teoria_cont  {
		position: absolute;
		font-family: 'Kalam', cursive;
		top: 0; right: 0; left: 0; bottom: 288px;
		transform: rotateZ(0deg);
		transform-origin: bottom left;
		transition: 0.5s top cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.5s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.3s opacity linear;
		transition-delay: 0.3s;
		z-index: 45;
    }

    #joc.iniciat #joc_teoria_cont {
      opacity: 0;
	  transform: rotateZ(-5deg);
      top: -500px;
	  transition-delay: 0s;
    }

	#bloc3 #joc.iniciat {
		background: #E89600;
		transition: 0.4s background linear;
	}

    #joc_teoria table {
      color: #fff;
    }

    #joc_teoria table td, #joc_teoria table th {
      padding: 0 30px 0 0;
    }

	#joc_activitat_cont {
		position: absolute;
		top: 1000px; right: 0; left: 0; bottom: 288px;
		transform-origin: bottom left;
		transform: rotateZ(5deg);
		z-index: 0;
		opacity: 0;
		transition: 0.5s top cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.5s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.3s opacity linear;
		transition-delay: 0s;
	}

	#joc.iniciat #joc_activitat_cont {
      opacity: 1;
      top: 0;
	  z-index: 50;
	  transform: rotateZ(0deg);
	  transition-delay: 0.3s;
    }

    #joc_activitat {
		position: absolute;
		top: 0; left: 0; right: 0;
		width:1820px;
		height:750px;
		color: #fff;
        text-align: center;
		padding: 50px 50px 40px 530px;
		font-size: 28px;
		margin: 50px 50px;
		background: rgba(0,0,0,0.15);
		-webkit-clip-path: polygon(1% 4%, 100% 0, 98% 96%, 3% 91%);
		clip-path: polygon(1% 4%, 100% 0, 98% 96%, 3% 91%);
    }

	#joc_activitat iframe {
		width: 100%;
		height: 560px;
		transition: 0.2s opacity linear;
	}

    #joc_activitat_parelles, #joc_activitat_respostes {
        position: relative;
        z-index: 90;
    }

    #joc_activitat_parelles, #joc_activitat_respostes, #joc_activitat_aplaudiment {
        transition: 0.5s opacity linear;
    }

    #joc_activitat.superat #joc_activitat_parelles, #joc_activitat.superat #joc_activitat_respostes {
        opacity: 0;
    }

    #joc_activitat.superat #joc_activitat_aplaudiment {
        opacity: 1;
        transition-delay: 0.6s;
    }

    #joc_activitat_aplaudiment {
        width: 100%;
        position: absolute;
        top: 0;
        height: 300px;
        text-align: center;
        opacity: 0;
        z-index: -100;
    }

    .joc_resposta, .joc_parella {
        width: 135px;
        height: 124px;
        display: inline-block;
        text-align: center;
    }

    .joc_parella {
        background-position: center center;
        background-repeat: no-repeat;
        background-size: 125px 104px;
    }

    .joc_resposta span {
        border: 3px dashed #ccc;
        background: #eee;
        vertical-align: middle;
        line-height: 104px;
        border-radius: 10px;
        width: 125px;
        height: 104px;
        margin: 5px;
        display: inline-block;
        color: #333;
    }

    .joc_parella {
        cursor: move;
    }

a.boto-practica, a.boto-teoria {
	display: inline-block;
	font-family: 'Kalam', cursive;
	font-size: 25px;
	text-align: center;
	font-weight: bold;
	text-transform: lowercase;
	font-style: italic;
    color: #000;
	padding: 30px 55px 20px 5px;
	margin:5px auto 20px auto;
    background: url(../img/partida/practica.png) center center no-repeat;
	display:inline-block;
	cursor:pointer;
    width: 267px; height: 87px;
    background-size: 100% 100%;
    transition: 0.2s all linear;
}

 a.boto-teoria {
	padding: 30px 10px 20px 45px;
	background-image: url(../img/partida/teoria.png);
 }

 .aplaudiment a.boto-teoria {
	opacity: 0;
 }

/* Selfi */

#confetti{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s opacity linear;
}

#retrat.active #confetti {
	opacity: 1;
	transition-delay: 1500ms;
}

#selfie-transicio {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 85px;
background: -moz-linear-gradient(top, rgba(0,133,178,1) 0%, rgba(0,133,178,0) 100%);
background: -webkit-linear-gradient(top, rgba(0,133,178,1) 0%,rgba(0,133,178,0) 100%);
background: linear-gradient(to bottom, rgba(0,133,178,1) 0%,rgba(0,133,178,0) 100%);}


#retrat .titol_partida {
	transform: scale(1.5,1.5);
	left: 40%;
	transition: 0.2s left ease-out, 0.4s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.1s opacity linear;
	transition-delay: 200ms;
}

#retrat.active .titol_partida {
	transform: scale(1,1);
	left: 0;
	transition-delay: 1550ms;
}

#selfie-canvia-capitol {
	position: absolute;
	display: block;
	bottom: -500px;
	left: 5%;
	height: 300px;
	width: 710px;
	background: #F0BF12;
	color: #fff;
	font-size: 50px;
	font-weight: bold;
	text-align: center;
	padding: 120px 50px;
	-webkit-clip-path: polygon(0 0, 99% 4%, 100% 97%, 1% 100%);
	-moz-clip-path: polygon(0 0, 99% 4%, 100% 97%, 1% 100%);
	clip-path: polygon(0 0, 99% 4%, 100% 97%, 1% 100%);
	box-shadow:  20px 20px 0 rgba(0,0,0,0.3);
	transition: 0.2s all linear;
	vertical-align: bottom;
	line-height: 1;
	opacity: 0;
	transition: 0.2s opacity linear, 0.2s bottom ease-out;
}

#retrat.active #selfie-canvia-capitol {
	opacity: 1;
	bottom: 50px;
	transition: 0.5s opacity linear, 0.5s bottom ease-out;
	transition-delay: 2100ms;
}

#selfie-canvia-capitol span, #portada-intro a span {
	font-size: 30px;
	margin-left: 20px;
	display: inline-block;
	color: #fff;
	width: 45px;
	height: 45px;
	border-radius: 45px;
	padding: 7px 0;
	background: rgba(0,0,0,0.5);
	vertical-align: bottom;
	transition: 0.2s all linear;
}

#portada-intro a span  {
	font-size: 15px;
	line-height: 25px;
	padding: 0;
	margin-left: 10px;
	background: #F0BF12;
	width: 25px; height: 25px; border-radius: 25px;
}

a#selfie-canvia-capitol:hover, a#selfie-canvia-capitol:focus {
	background: #fff;
	color: #F0BF12;
	box-shadow: 0 0 0 rgba(0,0,0,0.3);
}

a#selfie-canvia-capitol:hover span, a#selfie-canvia-capitol:focus span {
	background: #F0BF12;
}

#selfie-espai {
	padding-top: 100px;
}

#selfie-espai .titol_partida {
	position: absolute;
	margin: 0 0 0 -20px;
	z-index: 50;
}

#selfie-espai .info-text {
	margin-top: 100px;
}

#selfie-espai .info-text .descripcio {
	padding: 50px;
	min-height: 0;
	opacity: 0;
	margin-top: 300px;
	transition: 0.1s opacity linear, 0.2s margin-top ease-out;
}

#retrat.active #selfie-espai .info-text .descripcio {
	opacity: 1;
	margin-top: 0;
	transition: 1s opacity linear, 2s margin-top ease-out;
	transition-delay: 1600ms;
}

#selfie {
	position: absolute; height: 605px; width: 640px; margin: 0 auto;
	border: 5px solid #fff;
	overflow: hidden;
	right: -500px;
	top: 150px;
	transform-origin: top right;
	transform: scale(1.4,1.4);
	background: #333;
	opacity: 0;
	transition: 0.2s opacity linear, 0.2s right ease-out;
}

#retrat.active #selfie {
	right: 50px;
	opacity: 1;
	transition: 0.5s opacity linear, 0.5s right ease-out;
	transition-delay: 2100ms;
}

#selfie-container {
  position: relative; height: 480px; width: 640px; margin: auto;
  overflow: hidden;
  transform-origin: center center;
}

#selfie-container.mirall #selfie-dibuix, #selfie-container.mirall #selfie-camera {
	transform: rotate3d(0, 0, 0, 180deg);
	transition: 0.3s all linear;
}

#selfie-container.mirall #selfie-dibuix, #selfie-container.mirall #selfie-camera {
	transform: rotate3d(0, 1, 0, 180deg);
}

#cap8 #selfie-container.mirall #selfie-dibuix, #cap8 #selfie-container.mirall #selfie-camera {
	transform: rotate3d(0, 0, 0, 180deg);
}

#selfie-camera, #selfie-dibuix, #selfie-foto, #selfie-flash {
  height: 480px; width: 640px; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}

#selfie-flash {
  display: none;
  pointer-events: none;
}

#selfie-dibuix {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 640px 480px;
}
#selfie-foto {
  display: none;
}

a#selfie-descarrega {
  font-family: sans-serif;
  font-weight: bold;
  color: #777;
  background: #fff;
  border-radius: 25px;
  border: 3px solid #009ED8;
  text-align: center;
  display: block;
  width: 290px;
  padding: 5px;
  left: 0; right: 0; top: 0;
  margin: auto;
  margin-top: -100px;
  opacity: 0;
  text-decoration: none;
  transition: 1.5s all linear;
  text-transform: uppercase;
}

a#selfie-descarrega i {
  margin-right: 5px;
}

a#selfie-descarrega.selfie-descarrega {
  margin-top: 15px;
  opacity: 0.5;
}

a#selfie-descarrega:hover, a#selfie-descarrega:focus, a#selfie-descarrega.selfie-descarrega:hover, a#selfie-descarrega.selfie-descarrega:focus {
  opacity: 0.9;
  transition: 0.2s opacity linear;
}

a.selfie-boto, .selfie-boto {
  position: absolute;
  left: 0; right: 0;
  display: block;
  margin: auto;
  margin-top: -50px;
  width: 80px; height: 80px;
  border-radius: 100px;
  background: #efefef;
  border: 5px solid #fff;
  text-decoration: none;
  color: #777;
  text-align: center;
  z-index: 10;
  font-size: 45px;
  padding: 12px 0;
  transition: 0.2s background linear;
  transform: rotate3d(0, 0, 0, 180deg);
}

a.selfie-boto span:last-child {
  display: none;
}

a.selfie-boto span.icon-camera {
  display: block;
}

a.selfie-boto:hover, a.selfie-boto:focus {
  background: #777;
  color: #efefef;
}

#selfie-compte {
  background: #D6451D;
  color: #fff;
  font-weight: bold;
  transform: rotate3d(0, 0, 0, 180deg);
}

#selfie-personatges {
  background: #ccc;
  height: 120px;
  width: 644px;
  margin: 0 -2px;
}

#selfie-personatges a {
  width: 160px;
  height: 120px;
  display: block;
  float: left;
  border: 2.5px solid #fff;
  border-top: 5px solid #fff;
  background: #fff;
}

#selfie-personatges a img {
  width: 160px;
  height: 120px;
}

#selfie-personatges a.active img {
  opacity: 0.5;
}

#selfie-flash.selfie-flash {
  animation-name: selfieflash;
  animation-duration: 1s;
  display: block;
}

@keyframes selfieflash {
  from {display: block; opacity: 1; background: #fff;}
  to {display: block; opacity: 0; background: #fff;}
}

@keyframes menuobert {
	from { transform: scale(0,0); }
	to { transform: scale(1,1);}
}


	body {
		font-size: 24px;
	}

  .pantalla {
    width: 70%;
  }

	/* Bloc 1 */

	.titol, .descripcio {
		position: relative;
	}

  #bafarada {
    top: 150px;
    left: 40px;
    overflow: visible;
  }

  #aina-preg {
    position: absolute;
    z-index: 15;
    bottom: -50px;
    left: 220px;
	height: 650px;
	width: 512px;
	background: url(../img/aina/aina_pregunta.png) center center no-repeat;
	background-size: 512px 650px;
  }

  #aina-preg img {
    height: 650px;
  }

  #bafarada .titol {
		width: 725px;
		padding: 15px 30px;
		position: relative;
		color: #012935;
		text-align: right;
		line-height: 1.3;
		z-index: 12;
		padding-bottom: 125px;
  }

	#bafarada .titol h3 {
		font-size: 38px;
	}

	#cap1 #bafarada h3, #cap2 #bafarada h3 {
		font-size: 57px;
	}

	#cap4 #bafarada h3 {
		font-size: 32px;
	}

	#cap5 .barbarisme {
		color: #777;
	}

  #resposta {
		right: 0px;
		width: 1100px;
		bottom: 20px;
		height: auto;
  }

	#resposta .simbol-int {
		color: #fff;
    top: 20px;
    font-size: 5.5em;
    font-weight: 700;
		width: 100%;
		text-align: center;
		display: inline-block;
		position: absolute;
		z-index: 20;
  }

  #resposta .simbol-int::after {
	content: '?';
  }

	#resposta .descripcio {
		padding-left: 205px;
		padding-right: 35px;
	}

	#resposta .descripcio p {
		margin-top: 0.5em;
	}

	/* Bloc 2 */


	/* Bloc 3 */
  .col-6 {
    width: 50%;
    float: left;
    padding: 10px;
  }

  #carrega-capitol {
	background: #000;
	position: fixed; top: 0; bottom: 0; left: 0; right: 0;
	transition: 0.5s opacity linear, 0.5s background linear;
	opacity: 0;
	z-index: 0;
  }

.loader-container {
	  width: 100%;
	  height: 49px;
	  text-align: center;
	  position: absolute;
	  top: 0; bottom: 0; right: 0; left: 0;
	  margin: auto;
  }

  .loader {
	  width: 49px;
	  height: 49px;
	  margin: 0 auto;
	  border-radius: 50%;
	  border-top-color: transparent;
	  border-left-color: transparent;
	  border-right-color: transparent;
	  box-shadow: 3px 3px 1px rgb(255,255,255);
	  animation: cssload-spin 690ms infinite linear;
		  -o-animation: cssload-spin 690ms infinite linear;
		  -ms-animation: cssload-spin 690ms infinite linear;
		  -webkit-animation: cssload-spin 690ms infinite linear;
		  -moz-animation: cssload-spin 690ms infinite linear;
  }



	@keyframes cssload-spin {
		100%{ transform: rotate(360deg); transform: rotate(360deg); }
	}

	@-o-keyframes cssload-spin {
		100%{ -o-transform: rotate(360deg); transform: rotate(360deg); }
	}

	@-ms-keyframes cssload-spin {
		100%{ -ms-transform: rotate(360deg); transform: rotate(360deg); }
	}

	@-webkit-keyframes cssload-spin {
		100%{ -webkit-transform: rotate(360deg); transform: rotate(360deg); }
	}

	@-moz-keyframes cssload-spin {
		100%{ -moz-transform: rotate(360deg); transform: rotate(360deg); }
	}

  #carrega-capitol.active {
	opacity: 1;
	z-index: 49;
  }

/* Instruccions */


#instruccions {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 90;
	display: none;
}

#instruccions .overlay {
	opacity: .8;
}

#instruccions .ins-dalt {
	bottom: auto; height: 80px;
	transition: 0.5s all linear;
}

#instruccions .ins-baix {
	top: 80px;
}

#instruccions .instruccions {
	width: 650px;
	height: 300px;
	background: #333;
	border-radius: 10px;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	margin: auto;
	color: #fff;
	z-index: 99;
	text-align: center;
	opacity: 0;
	z-index: 0;
	right: -100px;
	transition: 0.2s all ease-out;
}

#instruccions .instruccions .descripcio, #instruccions .instruccions .descripcio-icona {
	font-size: 18px;
	width: 400px;
	margin: 15px auto;
}

#instruccions .instruccions .descripcio-icona {
	text-align: left;
	position: relative;
	padding-left: 35px;
}

#instruccions .instruccions .descripcio-icona .barra-menu,
#instruccions .instruccions .descripcio-icona .barra-rutes {
	left: 0; top: 2px; right: auto; bottom: auto;
}

#instruccions .instruccions .descripcio-icona .barra-rutes {
	left: 5px;
}

#instruccions .instruccions .descripcio-icona.descripcio-dalt {
	margin-top: 75px;
}

#instruccions.instruccions1 #instruccions1,
#instruccions.instruccions2 #instruccions2,
#instruccions.instruccions3 #instruccions3 {
	opacity: 1;
	z-index: 95;
	right: 0;
}

#instruccions.instruccions2 #instruccions1,
#instruccions.instruccions3 #instruccions2 {
	right: 0;
	left: -100px;
}

#instruccions.instruccions2 .ins-dalt {
	top: 80px;
	height: 0;
	opacity: 0;
}

#instruccions.instruccions3 .ins-dalt {
	top: 0;
	height: 70px;
	right: 100px;
}

#instruccions.instruccions3 .ins-baix {
	top: 70px;
}

#instruccions a.boto-intro {
	display: inline-block;
	padding: 5px 10px;
	background: #fff;
	color: #333;
	border-radius: 5px;
	font-size: 18px;
}

#instruccions a.saltar-intro {
	font-size: 15px;
	color: #fff;
	display: inline-block;
	text-decoration: underline;
	margin-top: 18px;
}

#instruccions .botons {
	position: absolute;
	bottom: 10px; left: 0; right: 0; text-align: center;
}

#instruccions .imatge {
	background-position: center center;
	background-repeat: no-repeat;
	height: 88px;
	margin: 25px auto 15px auto;
}

#instruccions1 .imatge {
	background-image: url(../img/mouse.png);
}

#instruccions2 .imatge {
	background-image: url(../img/temps.png);
}

#instruccions3 .saltar-intro {
	opacity: 0;
}

/* Capitols */

#cap1 #menu-cap, #barra-cap ul.menu .cap1 a:hover, #main-menu .cap1 {
  background-color: #BD7B21;
}

#cap1 .bloc2, #cap1 #carrega-capitol { background-color: rgb(250, 193, 118); }
#cap1 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(250,193,118,0) 0%, rgba(250,193,118,1) 100%);
background: -webkit-linear-gradient(top, rgba(250,193,118,0) 0%,rgba(250,193,118,1) 100%);
background: linear-gradient(to bottom, rgba(250,193,118,0) 0%,rgba(250,193,118,1) 100%);}
#cap1 .menu-cap { background: #54B9C5}
#cap1 #retrat { background: #3B767C}
#cap1 #progressbar div { background: #F6A22E;}


#cap2 .bloc2, #cap2 #carrega-capitol {
	background-color: #A6D0D6;
}
#cap2 #menu-cap, #barra-cap ul.menu .cap2 a:hover, #main-menu .cap2 {
  background-color: #54B9C5;
}
#cap2 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(166,208,214,0) 0%, rgba(166,208,214,1) 100%);
background: -webkit-linear-gradient(top, rgba(166,208,214,0) 0%,rgba(166,208,214,1) 100%);
background: linear-gradient(to bottom, rgba(166,208,214,0) 0%,rgba(166,208,214,1) 100%);}
#cap2 #progressbar div { background: #0CDFF2;}

#cap3 #menu-cap, #barra-cap ul.menu .cap3 a:hover, #main-menu .cap3 {
	background-color: #518EF8;
}

#cap3 .bloc2, #cap3 #carrega-capitol {
	background-color: #4E8BF1;
}

#cap3 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(81,142,248,0) 0%, rgba(81,142,248,1) 100%);
background: -webkit-linear-gradient(top, rgba(81,142,248,0) 0%,rgba(81,142,248,1) 100%);
background: linear-gradient(to bottom, rgba(81,142,248,0) 0%,rgba(81,142,248,1) 100%);}
#cap3 #progressbar div { background: #025FFF;}

#cap4 #menu-cap, #barra-cap ul.menu .cap4 a:hover, #main-menu .cap4 {
	background-color: #4F555F;
}

#cap4 .bloc2, #cap4 #carrega-capitol {
	background-color: #4F5559;
}

#cap4 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(79,85,95,0) 0%, rgba(79,85,95,1) 100%);
background: -webkit-linear-gradient(top, rgba(79,85,95,0) 0%,rgba(79,85,95,1) 100%);
background: linear-gradient(to bottom, rgba(79,85,95,0) 0%,rgba(79,85,95,1) 100%);}
#cap4 #progressbar div { background: #8693A8;}

#cap5 .bloc2, #cap5 #carrega-capitol {
	background-color: #B6A247;
}
#cap5 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(187,163,73,0) 0%, rgba(187,163,73,1) 100%);
background: -webkit-linear-gradient(top, rgba(187,163,73,0) 0%,rgba(187,163,73,1) 100%);
background: linear-gradient(to bottom, rgba(187,163,73,0) 0%,rgba(187,163,73,1) 100%);}
#cap5 #progressbar div { background: #AA9752;}

#cap5 #menu-cap, #barra-cap ul.menu .cap5 a:hover, #main-menu .cap5 {
  background-color: #574F32;
}

#cap6 .bloc2, #cap6 #carrega-capitol {
	background-color: #E5C336;
}
#cap6 #menu-cap, #barra-cap ul.menu .cap6 a:hover, #main-menu .cap6 {
  background-color: #F0BF12;
}
#cap6 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(229,195,54,0) 0%, rgba(229,195,54,1) 100%);
background: -webkit-linear-gradient(top, rgba(229,195,54,0) 0%,rgba(229,195,54,1) 100%);
background: linear-gradient(to bottom, rgba(229,195,54,0) 0%,rgba(229,195,54,1) 100%);}
#cap6 #progressbar div { background: #F2D780;}

#cap7 .bloc2, #cap7 #carrega-capitol {
	background-color: #F2664F;
}
#cap7 #menu-cap, #barra-cap ul.menu .cap7 a:hover, #main-menu .cap7 {
  background-color: #F86851;
}
#cap7 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(249,105,80,0) 0%, rgba(249,105,80,1) 100%);
background: -webkit-linear-gradient(top, rgba(249,105,80,0) 0%,rgba(249,105,80,1) 100%);
background: linear-gradient(to bottom, rgba(249,105,80,0) 0%,rgba(249,105,80,1) 100%);}
#cap7 #progressbar div { background: #A01500;}

#cap8 .bloc2, #cap8 #carrega-capitol {
	background-color: #BFE362;
}
#cap8 #menu-cap, #barra-cap ul.menu .cap8 a:hover, #main-menu .cap8 {
  background-color: #9AB54C;
}
#cap8 .bloc2 .transicio {
background: -moz-linear-gradient(top, rgba(191,227,98,0) 0%, rgba(191,227,98,1) 100%);
background: -webkit-linear-gradient(top, rgba(191,227,98,0) 0%,rgba(191,227,98,1) 100%);
background: linear-gradient(to bottom, rgba(191,227,98,0) 0%,rgba(191,227,98,1) 100%);}
#cap8 #progressbar div { background: #7CA018;}

ul.linksexterns li {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.linksexterns {
	display: block;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	margin: auto;
	height: 438px;
	z-index: 999;
	text-align: center;
}

ul.linksexterns li {
	display: inline
}

ul.linksexterns li a {
	display: inline-block;
	opacity: 0;
	height: 438px; width: 290px;
	margin: 0 20px;
	background-position: center center;
	background-repeat: no-repeat;
	transform: scale(0,0);
	transform-origin: center center;
	transition: 0.4s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.1s opacity linear;

}

.boto-baixar {
	position: absolute;
	bottom: 80px;
	left: 0; right: 0;
	margin: 0 auto;
	width: 138px; height: 138px;
	background: url(../img/baixar.png) center center no-repeat;
	transform: scale(0,0);
	transform-origin: center center;
	opacity: 0;
	transition: 0.4s transform cubic-bezier(0.175, 0.885, 0.270, 1.650), 0.1s opacity linear;
	z-index: 999;
}

ul.linksexterns.active li a, .boto-baixar.active {
	opacity: 1;
	transform: scale(1, 1);
}

ul.linksexterns.active li a:hover, ul.linksexterns.active li a:focus, a:hover.boto-baixar.active, a:focus.boto-baixar.active {
	transform: scale(0.95, 0.95);
}

.d_1_levante { background-image: url(../img/u8/d_1_levante.png); transition-delay: 0s; }
.d_2_elpunt { background-image: url(../img/u8/d_2_elpunt.png); transition-delay: 200ms; }
.d_3_laveu { background-image: url(../img/u8/d_3_laveu.png); transition-delay: 400ms;}
.d_4_vilaweb { background-image: url(../img/u8/d_4_vilaweb.png); transition-delay: 600ms;}
.d_5_ara { background-image: url(../img/u8/d_5_ara.png); transition-delay: 800ms;}
.t_1_dnv { background-image: url(../img/u8/t_1_dnv.png); transition-delay: 0s;}
.t_2_diec { background-image: url(../img/u8/t_2_diec.png); transition-delay: 200ms;}
.t_3_optimot { background-image: url(../img/u8/t_3_optimot.png); transition-delay: 400ms;}
.t_4_softvalencia { background-image: url(../img/u8/t_4_softvalencia.png); transition-delay: 600ms;}
.t_5_softcatala { background-image: url(../img/u8/t_5_softcatala.png); transition-delay: 800ms;}

#cap1 .bloc-img{
	background-image: url(../img/u1_pregunta_bg.jpg);
  background-position: center bottom;
}

#cap1 .bloc-img-ov {
	background-image: url(../img/u1_pregunta_diapo.png);
    background-position: right bottom;
	top: 60px;
}

#cap1 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u1.png);
}

#cap2 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u2.png);
}

#cap3 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u3.png);
}

#cap4 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u4.png);
}

#cap5 #joc_activitat_cont .pissarra-aina, #cap6 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u5.png);
}

#cap7 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u7.png);
}

#cap8 #joc_activitat_cont .pissarra-aina {
	background-image: url(../img/partida/pissarra-aina-u8.png);
	width: 753px;
}

#cap2 .bloc-img{
	background-image: url(../img/u2_pregunta_bg.jpg);
  background-position: center top;
}

#cap3 .bloc-img{
	background-image: url(../img/u3_pregunta_bg.jpg);
  background-position: center top;
}

#cap4 .bloc-img{
	background-image: url(../img/u4_pregunta_bg.jpg);
	background-position: center top;
}

#cap5 .bloc-img{
	background-image: url(../img/u5_pregunta_bg.jpg);
	background-position: left center;
}

#cap5 .cap5_b2_v1 .info-text {
	left: 85%;
}


#cap6 .bloc-img {
	background-image: url(../img/u6_pregunta_bg.jpg);
  background-position: left center;
}

#cap7 .bloc-img {
	background-image: url(../img/u7_pregunta_bg.jpg);
	background-position: left bottom;
}

#cap8 .bloc-img {
	background-image: url(../img/u8_pregunta_bg.jpg);
	background-position: left center;
}

#portrait, #ample { display: none;}

@media (max-width: 1075px) {
	#main-menu ul li a .segle {
		font-size: 25px;
	}
}

@media (max-width: 815px) {
	#main-menu ul li a .segle {
		font-size: 20px;
	}
	#main-menu ul li a .nom {
		font-size: 15px;
	}
}

@media (max-width: 880px) {
	#ample {
		display: block;
		position: fixed; top: 0; left: 0; right: 0; bottom: 0;
		background: #333 url(../img/ample.png) center center no-repeat;
		z-index: 999;
	}
}

@media all and (orientation: portrait) {
	#portrait {
		display: block;
		position: fixed; top: 0; left: 0; right: 0; bottom: 0;
		background: #333 url(../img/portrait.png) center center no-repeat;
		z-index: 999;
	}
}


#peu-pagina {
	background-color: #333;
	color: #ccc;
	padding: 7px;
	font-size: 0.7em;
	border-top: 5px solid #fff;
}

.peu-esq {
	float: left;
}

.peu-dreta {
	float: right;
}

.nav > li {
	display: inline-block;
	list-style: none;
}

.nav > li > a {
	color: #ccc;
	padding: 2px 10px;
}

.nav > li > a:hover, .nav > li > a:focus {
	text-decoration: underline;
}
