
/* ============================= */
/* GRILLE                        */
/* ============================= */

#word {
	display: grid;
	grid-template-columns: repeat(var(--grid-columns), 58px);
	gap: 5px;
	justify-content: center;
	margin: auto;
}

/* ============================= */
/* CASES                         */
/* ============================= */

.word-cell {
	width: 58px;
	height: 48px;
	padding: 0px 2px;
	box-sizing: border-box;

	display: flex;
	align-items: center;
	justify-content: center;

	background: #FFFFFF;
	border: 2px solid #AAAAAA;
	border-radius: 4px;

	font-size: 12px; /* 11px; */
	font-weight: bold;

/*	white-space: nowrap;
	line-height: 1;
	overflow: hidden; */
	white-space: normal;
	line-height: 1.05;
	overflow: hidden;
}

.word-cell:hover {
	border-color: #0066CC;
	transform: scale(1.03);
}

.word-cell.selected {
	border: 3px solid #0066CC;
	box-shadow: 0px 0px 0px 2px #D7E9FF;
}

.word-cell.correct {
	opacity: 0.20;
	cursor: default;
	transform: none;
	border-color: #AAAAAA;
}

.word-cell.wrong {
	animation: couleurmot-shake 0.25s;
}

/* ============================= */
/* ANIMATION ERREUR              */
/* ============================= */

@keyframes couleurmot-shake {

	0% {
		transform: translateX(0px);
	}
	25% {
		transform: translateX(-4px);
	}
	50% {
		transform: translateX(4px);
	}
	75% {
		transform: translateX(-4px);
	}
	100% {
		transform: translateX(0px);
	}
}

/* ============================= */
/* CLAVIER DES COULEURS          */
/* ============================= */

#keyboard {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: auto;
	max-width: 500px;
}

/* ============================= */
/* TOUCHES                       */
/* ============================= */

.key {
	min-width: 82px;
	height: 42px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	padding: 0px 10px;
	border-radius: 5px;
	font-size: 15px;
	cursor: pointer;
	border: 2px solid #AAAAAA;
	background: #FFFFFF;
}

.key:hover:not(.used) {
	background: #F0F0F0;
}

.key.used {
	opacity: 0.45;
	cursor: default;
}

/* ============================= */
/* MESSAGE                       */
/* ============================= */

#message {
	margin-left: 0px;
	margin-top: 15px;
	min-height: 24px;
}

/* ============================= */
/* BOUTON NOUVEAU JEU             */
/* ============================= */

.couleurmot-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.couleurmot-buttons button {
	padding: 10px 16px;
	cursor: pointer;
}

#nouveau {
width: auto;
height: auto;
margin-bottom: 10px;
padding: 14px 16px !important;
border-radius: 8px;
border: 2px solid #2B7CFF;
background:
linear-gradient(
#FFFFFF,
#EEF6FF
);
cursor: pointer;
font-weight: 550;
font-size: 15px;
}

/* ============================= */
/* CHOIX DE LA GRILLE            */
/* ============================= */

#gridSize {
	font-size: 14px;
	font-weight: bold;
	padding: 5px;
	outline: none;
	border-color: #0066CC;
	box-shadow: 0px 0px 0px 0.5px #0066CC;
	border-radius: 3px;
}

#gridSize:hover {
	background-color: #F0F0F0;
	color: #FF0000;
}

/* ============================= */
/* TEXTES                        */
/* ============================= */

.txtmobile {
	display: none;
}

.txtnormal {
	display: block;
}

/* ============================= */
/* SMARTPHONE VERTICAL           */
/* ============================= */

@media only screen and (max-width:700px) {
	#word {
		grid-template-columns: repeat(var(--grid-columns), 43px);
		gap: 3px;
	}
	.word-cell {
		width: 43px;
		height: 42px;
		padding: 0px 1px;
/*		font-size: 9px;*/
/*		font-size: 8px;*/
		font-size: 7px;
	}
	#keyboard {
		gap: 5px;
		max-width: 330px;
	}
	.key {
		min-width: 70px;
		height: 40px;
		padding: 0px 6px;
		font-size: 13px;
	}

	#nouveau {
	padding: 16px 14px !important;
	}

	.txtmobile {
		display: block;
	}
	.txtnormal {
		display: none;
	}
}

/* ============================= */
/* TABLETTE                      */
/* ============================= */

@media only screen and (min-width:701px) and (max-width:900px) {
	#word {
		grid-template-columns: repeat(var(--grid-columns), 50px);
		gap: 4px;
	}
	.word-cell {
		width: 50px;
		height: 44px;
		padding: 0px 1px;
/*		font-size: 10px; */
		font-size: 9px;
	}
	#keyboard {
		max-width: 420px;
	}
	.key {
		min-width: 75px;
		height: 40px;
		font-size: 14px;
	}
	.txtmobile {
		display: block;
	}
	.txtnormal {
		display: none;
	}
}

/* ============================= */
/* SMARTPHONE HORIZONTAL         */
/* ============================= */

@media screen and (max-width:900px) and (orientation:landscape) and (max-height:500px) {
	#word {
		grid-template-columns: repeat(var(--grid-columns), 45px);
		gap: 3px;
	}
	.word-cell {
		width: 45px;
		height: 38px;
		padding: 0px 1px;
		font-size: 9px;
	}
	#keyboard {
		max-width: 500px;
	}
	.key {
		min-width: 72px;
		height: 36px;
		font-size: 13px;
	}
}

/* ============================= */
/* Écran ordinateur         */
/* ============================= */

@media screen and (min-width:901px) {
	#word {
		grid-template-columns: repeat(var(--grid-columns), 45px);
		gap: 4px;
	}
	.word-cell {
		width: 45px;
		height: 38px;
		padding: 0px 1px;
		font-size: 12px;
	}
