
/* grille */
#word {
	display: grid;
	grid-template-columns: repeat(var(--word-length), 48px);
	gap: 3px;
	justify-content: center;
	margin: auto;
}

/* cases */
.word-cell {
	width: 48px;
	height: 48px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 22px;
	text-transform: uppercase;
	background: #FFFFFF;
	border: 2px solid #AAAAAA;
	border-radius: 4px;
	color: #000000;
}

/* bonne lettre et bonne position */
.word-cell.good {
	background: #5A84AE; /* #4A78A6; /* #3F6F9F; */
	border: 2px solid #315A82;
	color: #000000;
}

/* bonne lettre mais mauvaise position */
.word-cell.present {
	background: #B7CBD8;
	border: 2px solid #8FAAB9;
	color: #000000;
}

/* lettre absente */
.word-cell.absent {
	background: #FFFFFF;
	border: 2px solid #AAAAAA;
	color: #000000;
}

/* clavier */
#keyboard {
	display: grid;
	grid-template-columns: repeat(10,38px);
	gap: 6px;
	justify-content: center;
	margin: auto;
	max-width: 420px;
}

/* touches */
.key {
	width: 38px;
	aspect-ratio: 1;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	padding: 0;
	background: #D1D1D1;
	border-radius: 4px;
	font-size: 18px;
	cursor: pointer;
}

.used {
	opacity: .4;
}

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

/* messages */
#message {
	margin-left: 0px;
	margin-top: 15px;
}

/* boutons */
.devinermot-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

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

#nouveau, #effacer {
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;
}

#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;
}

.txtmobile {
	display: none;
}

.txtnormal {
	display: block;
}

/* responsive smartphone vertical */
@media only screen and (max-width:700px){
#word {
	grid-template-columns: repeat(var(--word-length), 40px);
	gap: 2px;
}

.word-cell {
	width: 40px;
	height: 40px;
	font-size: 19px;
}

#keyboard {
	grid-template-columns: repeat(7,34px);
	column-gap: 6px;
	row-gap: 4px;
	justify-content: center;
}

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

.key {
	width: 34px;
	aspect-ratio: 1;
	padding: 0;
	font-size: 15px;
	line-height: 1;
}

.txtmobile {
	display: block;
}

.txtnormal {
	display: none;
}
}

/* responsive tablette */
@media only screen and (min-width:701px) and (max-width:900px) {
#word {
	grid-template-columns: repeat(var(--word-length), 44px);
	gap: 2px;
}

.word-cell {
	width: 44px;
	height: 44px;
	font-size: 20px;
}

#keyboard {
	grid-template-columns: repeat(7,36px);
	column-gap: 5px;
	row-gap: 5px;
	justify-content: center;
}

.key {
	width: 36px;
	aspect-ratio: 1;
	padding: 0;
	font-size: 16px;
	line-height: 1;
}

.txtmobile {
	display: block;
}

.txtnormal {
	display: none;
}
}

/* responsive smartphone horizontal */
@media screen and (max-width:900px) and (orientation:landscape) and (max-height:500px) {
#word {
	grid-template-columns: repeat(var(--word-length), 40px);
	gap: 2px;
}

.word-cell {
	width: 40px;
	height: 40px;
	font-size: 19px;
}

#keyboard {
	grid-template-columns: repeat(9,36px);
	column-gap: 5px;
	row-gap: 5px;
	justify-content: center;
}

.key {
	width: 36px;
	aspect-ratio: 1;
	padding: 0;
	font-size: 16px;
	line-height: 1;
}
}
