
#snakeBoard {
	--snake-size: 20;
	width: min(100%,500px);
	aspect-ratio: 1/1;
	margin: 0px auto;
	display: grid;
	grid-template-columns: repeat(var(--snake-size),minmax(0,1fr));
	grid-template-rows: repeat(var(--snake-size),minmax(0,1fr));
	gap: 1px;
	padding: 5px;
	box-sizing: border-box;
	background-color: #eeeeee;
	border: 1px solid #bbbbbb;
	border-radius: 4px;
	user-select: none;
}

.snake-cell {
	min-width: 0;
	min-height: 0;
	background-color: #ffffff;
}

.snake-part {
	background-color: #2f8a36;
	border-radius: 22%;
}

.snake-head {
	background-color: #166f20;
	border-radius: 32%;
}

.snake-food {
	position: relative;
	background-color: #e53935;
	border-radius: 50%;
}

.snake-food::after {
	content: "";
	position: absolute;
	width: 28%;
	height: 28%;
	top: 9%;
	left: 9%;
	border-radius: 50%;
	background-color: #ffffff;
}

#snakeBoard.game-over {
	opacity: 0.82;
}

.snake-buttons {
	margin-top: 15px;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.snake-direction-controls {
	width: 180px;
	margin: 18px auto 0;
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 7px;
}

.snake-direction-controls button {
	min-width: 0;
	min-height: 48px;
	font-size: 20px;
	line-height: 1;
	border-radius: 8px;
	border: 2px solid #2B7CFF;
	background:
    	linear-gradient(
        	#FFFFFF,
        	#EEF6FF
      	);
cursor: pointer;
}

#commencer, #pauseBtn, #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;
}

#gridSize, #speed {
    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, #speed:hover {
    background-color: #F0F0F0;
    color: #FF0000;
}

.devinernum {
	margin-left: 0px;
	margin-right: 0px;
	margin-top: -10px;
	margin-bottom: -10px;
}

.txtmobile {
	display: none;
}

.txtnormal {
	display: block;
}

@media only screen and (max-width:700px) {
#snakeBoard {
	width: 100%;
	max-width: 100%;
	padding: 4px;
}

.snake-direction-controls {
	width: 195px;
}

.snake-direction-controls button {
	min-height: 54px;
	font-size: 23px;
}

@commencer, #pauseBtn, #nouveau {
	padding: 16px 14px !important;
}

.txtmobile {
	display: block;
}

.txtnormal {
	display: none;
 }
}

@media only screen and (min-width:701px) and (max-width:900px) {
.txtmobile {
	display: block;
}

.txtnormal{
	display: none;
 }
}
