:root {
	--main-bg-color: #9F2015;
	/* RED DARK */
	--main-bg2-color: #BA411B;
	/* RED */
	--main-bg3-color: #F6F6F6;
	/* GRAY LIGHTER */
	--main-bg4-color: #E8E8E8;
	/* GRAY LIGHT */
	--main-bg5-color: #333;
	/* GRAY DARK */
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#990100+37,333333+100 */
	background: var(--main-bg-color);
	/* Old browsers */
	background: -moz-radial-gradient(center, ellipse cover, var(--main-bg-color) 37%, var(--main-bg5-color) 100%);
	/* FF3.6-15 */
	background: -webkit-radial-gradient(center, ellipse cover, var(--main-bg-color) 37%, var(--main-bg5-color) 100%);
	/* Chrome10-25,Safari5.1-6 */
	background: radial-gradient(ellipse at center, var(--main-bg2-color) 37%, var(--main-bg-color) 100%);
	/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#990100', endColorstr='#333333', GradientType=1);
	/* IE6-9 fallback on horizontal gradient */
	transition: all 1s;
}

body.dark {
	margin: 0;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#990100+37,333333+100 */
	background: var(--main-bg-color);
	/* Old browsers */
	background: -moz-radial-gradient(center, ellipse cover, #002c2b 37%, #222 100%);
	/* FF3.6-15 */
	background: -webkit-radial-gradient(center, ellipse cover, #002c2b 37%, #222 100%);
	/* Chrome10-25,Safari5.1-6 */
	background: radial-gradient(ellipse at center, #002c2b 37%, #222 100%);
	/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#002c2b', endColorstr=' #222', GradientType=1);
	/* IE6-9 fallback on horizontal gradient */
}

*, h1 {
	font-family: 'Lato';
	font-weight: 300;
}

a {
	color: var(--main-bg3-color);
}

.glossary button {
	margin: 0 20px 0 0;
	font-size: 13px;
	color: var(--main-bg3-color);
	display: none;
	-webkit-tap-highlight-color: transparent;
	opacity: 0.85;
}

.glossary button:hover {
	color: white;
	opacity: 1;
}

.help {
	display: none;
	padding: 0;
	margin-right: 20px;
	height: 25px;
}

.help-icon {
	height: 22px;
}

.help button, .help-icon button, .back-icon button {
	padding: 0;
	transition: all .25s;
	opacity: 0.7;
}

.help button:hover, .help-icon button:hover, .back-icon button:hover {
	opacity: 1;
}

.help button img {
	padding: 0;
	max-height: 25px;
	height: 25px;
}

.help-icon button img {
	padding: 0;
	max-height: 22px;
	height: 22px;
}

/* #game{display:none} */

#game {
	transition: margin .6s;
}

.intro {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--main-bg3-color);
}

.intro ul {
	list-style-type: none;
	color: var(--main-bg3-color);
	margin: 0;
	padding: 0 0 20px;
}

.intro button, #final {
	padding: 10px 30px;
	font-size: 16px;
	background-color: var(--main-bg4-color);
	color: black;
	border-radius: 10px;
	transition: all .3s;
	text-decoration: none;
	
}

.intro button:hover, #final_buto:jhover {
	background-color: var(--main-bg3-color);
}

.text_intro {
	width: 500px;
	text-align: center
}

#texte_final {
	display: none;
	width: 900px;
	height: 80px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 150px;
	margin: auto;
	padding: 20px;
	max-width: 100%;
	max-height: 100%;
	pointer-events: all;
	transition: all 1s;
	transform: translate(0px, 100px);
	z-index: 18;
	color: var(--main-bg3-color);
	font-size: 16px;
	text-align: center;
}

#seleccionats .possiblesestil {
	padding: 0 5px
}

#titol_possibles {
	padding: 0 20px
}

#video_final {
	display: none;
	transition: opacity 1s;
	width: 100%;
	height: 100%;
	pointer-events: all;
	z-index: 20;
	position: absolute;
	float: left;
	background-color: #777777;
	/* SVG fallback for IE 9 (could be data URI, or could use filter) */
	background-image: url(fallback-gradient.svg);
	/* Safari 4, Chrome 1-9, iOS 3.2-4.3, Android 2.1-3.0 */
	background-image: -webkit-gradient(linear, left top, right top, from(#aaaaaa), to(#555555));
	/* Safari 5.1, iOS 5.0-6.1, Chrome 10-25, Android 4.0-4.3 */
	background-image: -webkit-linear-gradient(left, #aaaaaa, #555555);
	/* Firefox 3.6 - 15 */
	background-image: -moz-linear-gradient(left, #aaaaaa, #555555);
	/* Opera 11.1 - 12 */
	background-image: -o-linear-gradient(left, #aaaaaa, #555555);
	/* Opera 15+, Chrome 25+, IE 10+, Firefox 16+, Safari 6.1+, iOS 7+, Android 4.4+ */
	background-image: linear-gradient(to right, #aaaaaa, #555555);
	margin: 0px;
	overflow: hidden;
}

#capa_protectora_de_clicks {
	visibility: hidden;
	width: 100%;
	height: 100%;
	/*background-color: green;*/
	pointer-events: all;
	z-index: 19;
	position: absolute;
	float: left;
}

#tot, #tot_help {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	display: none;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 9999;
	background-color: rgba(0, 0, 0, 0.4);
}

#menu {
	position: fixed;
	left: 0;
	top: 0;
	background-color: var(--main-bg5-color);
	width: 100%;
	color: var(--main-bg3-color);
	font-weight: bold;
	text-align: center;
	z-index: 99999;
	transition: all 1s;
	display: flex;
	justify-content: space-between;
}

#menu h1 {
	padding-left: 20px;
	font-size: 16px;
}

#texte {
	visibility: hidden;
	position: absolute;
	height: 200px;
	width: 1000px;
	float: left;
	z-index: 10;
}

#possibles {
	animation-name: moute;
	animation-delay: 2s;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-timing-function: ease-in-out;
	background-color: rgba(255, 255, 255, 0.7);
	position: absolute;
	min-height: 20px;
	max-width: 370px;
	/* float: right; */
	right: 0px;
	transition: all 1s;
	padding: 10px 0;
	/*     pointer-events: none; */
	border-bottom-left-radius: 20px;
	top: 60px;
	right: 30px;
	border-radius: 10px;
	border: 3px solid var(--main-bg-color);
	z-index: 400;
	display: none;
	overflow: hidden;
	height: 20px;
	transition: all 0.6s;
}

#textes, #textes_help {
	background-color: rgba(255, 255, 255, 0.8);
	position: relative;
	border-radius: 10px;
	border: 3px solid var(--main-bg-color);
	padding: 20px;
	text-align: justify;
	width: 80%;
	max-width: 800px;
	max-height: 70%;
	opacity: 0;
	transition: opacity 1s;
	/* transition-delay: 1s; */
	z-index: 400;
}

#boto_surt, #boto_surt_help {
	position: absolute;
	width: 30px;
	height: 30px;
	right: -15px;
	top: -15px;
	/* text-align: center; */
	/* padding: 3px; */
	border-radius: 100%;
	pointer-events: all;
	justify-content: center;
	align-items: center;
	font-size: 12px;
	line-height: 0;
	color: white;
	border: 2px solid var(--main-bg-color);
	transition: all .3s;
	background-color: black;
}

#textes_dins, #textes_dins_help {
	/* padding-top: 50px; */
	text-align: center
}

#textes_dins p {
	text-align: left;
}

#textes_dins img {
	width: 50px;
}

#textes_dins h2 {
	margin: 5px 0;
	font-size: 15px;
}

#textes_dins h3 {}

#textes_dins iframe {}

.videoWrapper {
	position: relative;
	padding-bottom: 39.25%;
	/* 16:9 */
	/* 	padding-bottom: 56.25%; */
	/* 16:9 */
	padding-top: 25px;
	height: 0;
}

.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#boto_surt:hover, #boto_surt_help:hover {
	background: var(--main-bg2-color);
	color: var(--main-bg3-color)
}

#prova {
	visibility: hidden;
}

#seleccionats {
	width: 150px;
	height: 50px;
	background-color: rgba(255, 255, 255, 0.7);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	padding-top: 20px;
	pointer-events: none;
	border-radius: 10px;
	z-index: 400;
	border: 3px solid var(--main-bg-color);
	display: flex;
	justify-content: center;
	display: none;
	transition: all .6s;
}

#selector_llenguatges {
	padding: 10px;
}

#selector_llenguatges button {
	color: var(--main-bg3-color);
	transition: all .3s;
	font-size: 14px;
}

#selector_llenguatges button:hover, #selector_llenguatges .actiu {
	font-weight: 900;
}

.menu_lang_so {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

#boto_random, #boto_comentaris {
	bottom: 20px;
	position: absolute;
	z-index: 11;
	background-size: cover;
	opacity: 0.58;
	transition: all .6s;
	display: none;
	/* padding: 6px; */
}

#boto_random {
	background-image: url(../img/shuffle.svg);
	right: 20px;
	width: 29px;
	height: 29px;
}

#boto_comentaris {
	background-image: url(../img/chat.svg);
	left: 20px;
	width: 31px;
	height: 31px;
}

#boto_random:hover, #boto_comentaris:hover {
	opacity: 0.8;
}

#boto_so {
	background-image: url(../img/boto_so.png);
	background-size: cover;
	width: 20px;
	height: 20px;
	opacity: 0.7;
	transition: all .3s;
}

#boto_so:hover {
	opacity: 1
}

#boto_tanca_video_final {
	background-image: url("../img/White_left_arrow.png");
	left: 20px;
	width: 40px;
	height: 40px;
	top: 20px;
	position: absolute;
	z-index: 11;
	background-repeat: no-repeat;
	opacity: 0.7;
}

.element {
	border: 0px solid rgba(0, 0, 0);
	text-align: center;
	cursor: default;
	width: 1000px;
	height: 500px;
	pointer-events: none;
	display: flex;
	justify-content: center;
	margin: auto;
	user-select: none;
}

.element img {
	position: absolute;
	pointer-events: all;
	align-self: center;
	text-align: center;
	-moz-transition: ease-in-out 0.5s;
	-webkit-transition: ease-in-out 0.5s;
	transition: ease-in-out 0.5s;
}

.element .imatge2 {
	opacity: 0;
}

.element .info {
	opacity: 0;
	color: var(--main-bg3-color);
	/*background-color: green;*/
	font-size: 100px;
	position: absolute;
	border: 0px;
	/*
	width:500px;
	height:300px;
*/
	pointer-events: none;
	z-index: 1;
	transition: opacity 1s;
	/*transition-delay: 1s;*/
}

.element .info .media_text span, .element .info .media span {
	font-weight: 900
}

.element:hover .info {
	opacity: 1;
	pointer-events: all;
	z-index: 20;
}

.element .info .info2 {
	/*display:none;*/
	color: var(--main-bg3-color);
	font-size: 80px;
	margin-top: 400px;
	/*margin-left:500px;*/
	/*background-color: red;*/
	position: absolute;
	width: 100%;
	/*height:100%;*/
	padding: 20px 20px 20px 20px;
	/*-webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);*/
}

.element .subelement {
	cursor: pointer;
	/*visibility: hidden;*/
	color: var(--main-bg3-color);
	font-size: 70px;
	border: 0px;
	/*opacity:0;*/
	pointer-events: all;
	position: absolute;
	align-self: flex-start;
	text-align: center;
	/*-moz-transition: -moz-transform 1s;
	-webkit-transition: -webkit-transform 1s;*/
	transition: all 1s 0s;
	/*-webkit-transform: translate(-100px, 150px);*/
	transform: translate(-150px, 150px) scale(0.1);
	/*background-color: red;*/
	padding: 20px;
}

.subelement img {
	position: static;
	padding-top: 70px;
}

.element:hover .subelement {
	opacity: 0.5;
	pointer-events: all;
	/*padding:5px;*/
	/*transform: scale(1.2);*/
}

.subelement:hover {
	transform: scale(1.2);
}

.element:hover .reflexio {
	-webkit-transform: translate(-400px, 0px);
	transform: translate(-400px, 0px)
}

.element:hover .interpretacio {
	-webkit-transform: translate(-550px, 0px);
	transform: translate(-550px, 0px);
	opacity: 0.5;
}

.element:hover .media:hover {
	opacity: 1
}

.element:hover .fonaments:hover {
	opacity: 1
}

.element:hover .reflexio:hover {
	opacity: 1
}

.element:hover .interpretacio:hover {
	opacity: 1
}

.element:hover .media {
	-webkit-transform: translate(-125px, -150px);
	transform: translate(-125px, -150px);
	opacity: 0.5;
}

.element:hover .media_text {
	-webkit-transform: translate(20px, -150px);
	transform: translate(20px, -150px);
	opacity: 0.5;
}

.element:hover .subelement1 {
	-webkit-transform: translate(30px, -75px);
	transform: translate(30px, -75px);
	opacity: 0.5;
}

.element:hover .fonaments {
	-webkit-transform: translate(100px, 0px);
	transform: translate(100px, 0px);
	opacity: 0.5;
}

.linia_possibles {
	padding: 5px 10px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	/*     border-bottom: 1px solid #990100; */
	transition: all .3s;
}

.linia_possibles:last-child {
	border: none;
}

.linia_amagada {
	display: none;
	opacity: 0;
}

.possiblesestil {
	display: flex;
	/*     justify-content: center; */
	align-items: center;
	width: 30px;
	height: 30px;
}

#possibles h2 {
	font-size: 14px;
	text-align: center;
	margin: 0 0 10px;
	color: #9F2015;
	cursor: pointer;
	font-weight: 400;
}

.possiblesestil img {
	max-width: 100%;
	max-height: 100%;
}

.formula, .resultat {
	display: flex;
	align-items: center;
}

.imatge_petita img {
	max-width: 20px;
	max-height: 20px;
}

.signe {
	padding: 0 5px;
	font-weight: 900;
}

.nom_possible {
	padding-left: 20px;
	font-weight: 700;
	line-height: 50px;
	width: 100px;
	opacity: 0;
}

.check_possible {
	margin-top: 10px;
	float: right;
	line-height: 50px;
	width: 30px;
	height: 30px;
	/*filter:brightness(70%);*/
	opacity: 0;
}

#final {
	background: white;
	border-radius: 5px;
	padding: 10px 15px;
}

button {
	color: var(--main-bg5-color);
	background: none;
	/*outline: 1px solid rgba(0,0,255,0.75);*/
	border: 0px;
	padding: 5px 10px;
	cursor: pointer;
}

button:hover {
	color: var(--main-bg5-color);
}

button:active {
	color: var(--main-bg5-color);
}

@keyframes moute {
	0% {
		transform: scale(1);
	}
	10% {
		transform: scale(1.1);
	}
	20% {
		transform: scale(1);
	}
}

/* Llegenda amb tots */

.textes_llegenda {
	display: grid;
	grid-template-columns: repeat(6, auto);
	height: 72vh;
	overflow: scroll;
	grid-column-gap: 40px;
	grid-row-gap: 30px;
	padding: 0 25px;
}

.textes_llegenda::-webkit-scrollbar {
	width: 7px;
}

.textes_llegenda::-webkit-scrollbar-thumb {
	background-color: rgba(159, 32, 21, 0.6);
	border-radius: 10px;
}

.textes_llegenda::-webkit-scrollbar-corner {
	background-color: transparent;
}

.textes_llegenda div {
	grid-column-end: span 3;
}

.textes_llegenda div:first-child, .textes_llegenda div:nth-child(2), .textes_llegenda div:nth-child(3) {
	grid-column-end: span 2;
}

.textes_llegenda p {
	text-align: center!important;
}

#possibles .linia_possibles img.blink {
	cursor: pointer;
	animation: img-blink 3s ease-in-out 0s infinite alternate;
}

@keyframes img-blink {
	0% {
		filter: brightness(1.3);
		transform: scale(1.2);
	}
	20% {
		filter: brightness(1);
		transform: scale(1);
	}
	100% {
		filter: brightness(1);
		transform: scale(1);
	}
}

.flex-row {
	display: flex;
}

.comentari-personal {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding-top: 10px;
	padding-bottom: 30px;
	background-color: #414141;
	opacity: 1;
	transition: all .9s ease-in-out;
}

.comentari-personal.amagat {
	transform: translate(0px, 350px);
	padding-top: 0;
	padding-bottom: 0;
}

.comments-container {
	/*display: none;*/
	background-color: var(--main-bg5-color);
	/*background: linear-gradient(180deg, rgba(51,51,51,1) 0%, rgba(176,176,176,1) 100%);*/
	max-width: 0px;
	width: 100%;
	height: calc(100vh - 47px);
	margin-top: 47px;
	overflow: hidden;
	position: fixed;
	/* Fixed Sidebar (stay in place on scroll) */
	z-index: 5;
	color: white;
	/* Stay on top */
	font-size: 15px;
	transition: all 0.6s;
}

.comments-container h2 {
	font-size: 1.17em;
	text-align: center;
	font-weight: 400;
}

.comments-container h4 {
	font-size: 1.06em;
	font-weight: 400;
}

.comments-container input, .comments-container textarea {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	border: none;
	color: white;
	box-sizing: border-box;
	padding: 17px;
	font-size: 0.9em;
}

.comments-container input::placeholder, .comments-container textarea::placeholder {
	color: white;
	opacity: 0.6;
}

.comments-container .comentari-personal .button {
	margin-top: 8px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.comments-container .comentari-personal button {
	background-color: rgba(255, 255, 255, 0.7);
	padding: 12px 80px;
	font-size: 0.9em;
	border-radius: 10px;
	transition: all .3s;
}

.comments-container .comentari-personal button:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

.comments-container .comment-text {
	margin-top: 10px;
	resize: none;
	color: white;
}

.w-85 {
	max-width: 85%;
	margin: 0 auto;
}

.external-comments {
	max-height: calc(100% - 365px);
	overflow-y: auto;
	transition: all .3s;
	z-index: 1;
}

.external-comments.full{
	max-height: calc(100% - 52px);
}

.external-comments .comment-user h4 {
	margin-bottom: 0;
}

.external-comments p {
	margin-top: 3px;
	white-space: pre-line;
}

.external-comments::-webkit-scrollbar {
	width: 7px;
	background-color: transparent;
}

.external-comments::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
}

.external-comments::-webkit-scrollbar-corner {
	background-color: transparent;
}

.morecontent span {
	display: none;
}

.morelink {
	display: block;
}

.header-reflexions {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 25px;
}

.header-reflexions .help-icon {
	margin-left: 10px;
}

.comments-container .back-icon button {
	width: 21px;
	height: 21px;
	position: absolute;
	top: 47%;
	right: 6px;
	margin: 0;
	padding: 0;
}

.comments-container .back-icon img {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.comments-container .popup-reflexions {
	max-height: 0;
	overflow: hidden;
	transition: all 1.8s;
	opacity: 0.8;
}

.comments-container .popup-reflexions p {
	margin-top: 0;
}

.comments-container .popup-reflexions.active{
	max-height: 100%;
}

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

#pendent-publicacio {
	font-size: 1.17em;
}