
#moves {
    margin-top: 0px;
    font-weight: bold;
    font-size: 1.1em;
}

#game {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
}

.tile {
    background: #3498DB;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
	border-radius: 8px;
	border: 2px solid #2B7CFF;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.tile:hover {
    background: #2980B9;
}

.tile.empty {
    background: transparent;
    cursor: default;
}

.controls {
    margin-top: 15px;
}

#message {
    margin: 15px auto;
    padding: 10px;
    width: 240px;
    text-align: center;
    font-weight: bold;
    border-radius: 6px;
    display: none;  /* caché par défaut */
}

#message.win {
    background-color: #B9D5FF;
    color: #000000;
}

#message.info {
    background-color: #444444;
    color: #FFFFFF;
}

#undo, #newGame {
	width: auto;
	height: auto;
    padding: 14px 12px !important;
	border-radius: 8px;
	border: 2px solid #2B7CFF;
	background: linear-gradient(#FFFFFF,#EEF6FF);
    cursor: pointer;
	font-weight: 600;
}

button {
    font-size: 1em;
    margin: 10px;
    cursor: pointer;
}

.arrows {
    font-size: 1.6em;
}

.arrows button {
    width: 34px;
    height: 34px;

    padding: 0px;
	margin: 5px;
	
    text-align: center;
    line-height: 24px;
	
	box-sizing: border-box;

	border-radius: 8px;
	border: 2px solid #2B7CFF;
	background: linear-gradient(#FFFFFF,#EEF6FF);

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.arrows-horizontal button:first-child {
    margin-right: 16px;
}

.arrows-horizontal button:last-child {
    margin-left: 16px;
}

.help {
    margin-top: 10px;
    color: #555;
}

/* mobile */
@media only screen and (max-width:700px){
	#undo, #newGame {
	padding: 16px 12px !important;
  }
	.colonnemilieu {
	width: 99.9999%;
	margin-left: 0px;
	margin-right: 0px;
	padding-left: 0px;
	padding-right: 0px;
  }
}
