@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro&family=Fredoka:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,800;0,900;1,300;1,400&family=Roboto&display=swap');

/*
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro&family=Fredoka:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,800;0,900;1,300;1,400&family=Roboto&display=swap" rel="stylesheet">
*/

/*
font-family: 'Be Vietnam Pro', sans-serif;
font-family: 'Fredoka', sans-serif;
font-family: 'Montserrat', sans-serif;
font-family: 'Roboto', sans-serif;
*/

:root {
  --height-barra: 8vh;
}

* {
  box-sizing: inherit;
}

html, body {
	display: grid;
  margin: 0;
	height: 100%;
	font-family: 'Montserrat', sans-serif;
	/*flex-direction: column;
    justify-content: center;*/
}

dialog {
  border: none;
  border-radius: 15px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.6rem;
  max-width: 400px;
}
dialog::backdrop {
  background-color: hsla(0, 0%, 0%, 0.5);
}

input{
	border-radius: 10px;
}

select{
	border-radius: 10px;
}

.barra-superior{
	/*position: absolute;
	top: 0;
	width: 100%;*/
	display: grid;
	column-gap: 10px;
	grid-template-columns: 1fr 2fr 1fr;
	align-items: center;
	text-align: center;
	padding: 10px 0;
	background-color: lightgrey;
	border-radius: 0 0 20px 20px;
	/* margin: -8px; */
}

.titol{
	font-family: 'Montserrat', sans-serif;
	font-size: 40px;
	font-weight: bold;
}

.lletra{
  text-decoration: underline;
	font-family: 'Fredoka', sans-serif;
	font-size: 40px;
	padding: 0 10px;
}

.marcador{
	display: grid;
	column-gap: 10px;
	grid-template-columns: 2fr 1fr;
	align-items: center;
	text-align: center;
	padding: 10px 0;
}

.comptador-intents{
	font-family: 'Montserrat', sans-serif;
	font-size: 30px;
}

.intent{
   display: table;
   margin: 15px auto;
}

.paraula-intent{
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    font-size: 60px;
    padding: 10px;
}

.avis-error{
	/* display: none; */
	opacity: 0;
	font-family: 'Be Vietnam Pro', sans-serif;
	font-size: 20px;
	text-align: center;
	color: Crimson;
	transition: opacity 1s;
	padding: 0 10px;
}

.mostra-avis{
	opacity: 1;
}

.teclat{
  padding: 5px;
}

.fila-teclat{
  display: flex;
}

.tecla {
  font-family: 'Fredoka', sans-serif;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  padding: 3px 2px;
  height: 60px; /* 60px - Modificar depenent */
  margin: 3px;
  letter-spacing: 0.5px;
  color: #3a3a3a;
  background-color: #f7f7f7;
  flex: 1;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}

.extra {
	flex: 1.625;
}

.hyperspan{
	position:absolute;
	width:100%;
	height:100%;
	left:0;
	top:0;
	color: #3a3a3a;
	line-height:60px;
}

.icon-teclat{
	display: inline-block;
	vertical-align: middle;
}

#configuracio{
	position: fixed; /* Sit on top of the page content */
	display: none; /* Hidden by default */
	width: 100%; /* Full width (cover the whole page) */
	height: 100%; /* Full height (cover the whole page) */
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5); /* Black background with opacity */
	z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
	align-items: center;
    justify-content: center;
}

#ajuda{
	position: fixed; /* Sit on top of the page content */
	display: none; /* Hidden by default */
	width: 100%; /* Full width (cover the whole page) */
	height: 100%; /* Full height (cover the whole page) */
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5); /* Black background with opacity */
	z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
	align-items: center;
    justify-content: center;
}

#resultats{
	position: fixed; /* Sit on top of the page content */
	display: none; /* Hidden by default */
	width: 100%; /* Full width (cover the whole page) */
	height: 100%; /* Full height (cover the whole page) */
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5); /* Black background with opacity */
	z-index: 1; /* Specify a stack order in case you're using a different order for other elements */
	align-items: center;
    justify-content: center;
}

.pagina-alternativa{
	background-color: lightgrey;
	border-radius: 10px;
	width: 75%;
	height: 75%;
	
	display: flex;
	align-items: center;
    justify-content: center;
	flex-direction: column;
}

.icon-enrere{
	padding: 0;
}

.text-ajuda{
	/*display: flex;
	flex-direction: column;*/
	font-family: 'Montserrat', sans-serif;
	/*text-align: center;
	align-items: center;
    justify-content: center;*/
	padding: 20px 40px;
	overflow: auto;
	/*height: 75%;*/
}
.text-configuracio{
	font-family: 'Montserrat', sans-serif;
	/*text-align: center;*/
	padding: 20px 40px;
	overflow: auto;
	/* height: 75%; */
}

.text-resultats{
	font-family: 'Montserrat', sans-serif;
	display: flex;
	align-items: center;
    justify-content: center;
	flex-direction: column;
}

.subtitol-seccio{
	font-weight: bold;
	padding-top: 10px;
}

.boto-estandar{
	font-family: 'Montserrat', sans-serif;
	text-align: center;
	text-decoration: none;
	padding: 10px;
	background-color: grey;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	color: white;
	font-size: 1rem;
	margin: 10px;
	font-weight: bold;
}

.boto-reinicia{
	text-align: center;
	text-decoration: none;
	padding: 10px;
	background-color: grey;
	border-radius: 10px;
	color: white;
	margin: 10px;
	font-weight: bold;
	transition: all .25s linear;
}
.boto-reinicia:hover{
	-webkit-box-shadow: 1px 2px 4px rgba(0,0,0,.5);
    -moz-box-shadow: 1px 2px 4px rgba(0,0,0,.5);
    box-shadow: 1px 2px 4px rgba(0,0,0,.5);
}

.titol-resultat{
	color: white;
	font-size: 50px;
	font-weight: bold;
	padding: 10px;
}

.camp-paraula-correcta{
	font-size: 25px;
	color: white;
	padding: 0 10px;
	padding-top: 10px;
}

.graella-resultats{
	color: white;
	font-weight: bold;
	display: grid;
	column-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
	align-items: center;
	text-align: center;
	padding: 10px;
	border: 2px solid white;
	border-radius: 10px;
	margin: 20px;
}

.numeros-resultats{
	font-size: 30px;
	color: grey;
}

.esborrar-estadistiques > div{
	font-weight: bold;
}
.esborrar-estadistiques > menu{
	align-items: center;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, 1fr);
	justify-content: center;
	margin: 0;
	padding: 1rem;
	padding-bottom: 0;
}
.esborrar-estadistiques > menu > button:first-child{
	background-color: hsl(0, 60%, 40%);
}


#paraula-correcta{
	font-weight: bold;
	font-size: 25px;
	color: white;
	padding-bottom: 20px;
}

@media screen and (orientation:portrait) {
	.titol{
		font-family: 'Montserrat', sans-serif;
		font-size: 30px;
		font-weight: bold;
	}
	
	.marcador{
		display: grid;
		column-gap: 5px;
		grid-template-columns: 1fr;
		align-items: center;
		text-align: center;
		padding: 5px 0;
	}
	
	.avis-error{
		opacity: 0;
		font-family: 'Be Vietnam Pro', sans-serif;
		font-size: 15px;
		text-align: center;
		color: Crimson;
		transition: opacity 1s;
	}
	.mostra-avis{
		opacity: 1;
	}
	
	.paraula-intent{
		font-family: 'Fredoka', sans-serif;
		text-align: center;
		font-size: 40px;
		padding: 20px 10px;
	}
	
	.comptador-intents{
		font-family: 'Montserrat', sans-serif;
		font-size: 20px;
	}
	
	.lletra{
		text-decoration: underline;
		font-family: 'Fredoka', sans-serif;
		font-size: 35px;
		padding: 0 5px;
	}
	
	.graella-resultats{
		grid-template-columns: 1fr 1fr;
	}
	
	.pagina-alternativa{
		width: 95%;
		height: 85%;
	}
	
	.titol-resultat{
		font-size: 35px;
	}
}

/* Mode fosc */

.fosc{
	background-color: #1f1f1f; 
    color: #f1eded; 
}

.fosc .tecla{
	background-color: black;
	color: #f1eded;
}

.fosc .tecla a span{
	color: #f1eded;
}

.fosc .titol span{
	color: #1f1f1f; 
}

.fosc .tecla span img{
	filter: invert(100%);
}

.fosc .pagina-alternativa{
	background-color: #1f1f1f;
}