@charset "UTF-8";

@import 'sanitize.css';

body {
	min-height: 100vh;
	display: grid;
	grid-template-rows: calc(100% / 3) calc(100% / 3) calc(100% / 3);
	grid-template-columns: calc(100% / 3) calc(100% / 3) calc(100% / 3);
	font-size: 2em;
	font-weight: bold;
	user-select: none;
}
.cell {
	border: 3px #1a237e solid;
	background-color: #eaf2f8;
	display: grid;
	place-items: center;
	position: relative;
}
.sign {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
}
#popup {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	box-shadow: 2px 2px 2px grey;
	background-color: white;
	display: grid;
	place-items: center;
	font-style: italic;
}
#ready {
	color: blue;
}
.play {
	width: 80%;
	box-shadow: 2px 2px 10px rgb(10, 10, 68) inset;
	background-color: blue;
	text-align: center;
	color: white;
}
.roundVictory {
	background-color: green;
}
.crossVictory {
	background-color: red;
}
.equality {
	background-color: gray;
}

/* Smartphone en portrait */
@media all and (min-width: 0px) {
	h1 {
		font-size: 4rem;
	}
	.level {
		width: 100px;
		height: 100px;
		line-height: 100px;
		font-size: 1.5rem;
		margin: 10px;
	}
	#password {
		width: 100px;
	}
}
/* Téléphone miniature */
@media all and (min-width: 0px) {
	#popup {
		width: 50%;
		height: 30%;
		font-size: 0.25em;
	}
}
/* Smartphone en portrait */
@media all and (min-width: 300px) {
	#popup {
		font-size: 0.5em;
	}
}
/* Smartphone en paysage, tablette en portrait, petite tablette en paysage */
@media all and (min-width: 480px) {
	#popup {
		height: 40%;
		font-size: 0.7em;
	}
}
/* Tablette en paysage, ordinateur de taille petite et moyenne */
@media all and (min-width: 960px) {
	#popup {
		width: 40%;
		font-size: 0.8em;
	}
}
/* Ordinateur de grande taille */
@media all and (min-width: 1280px) {
	#popup {
		width: 35%;
		font-size: 1em;
	}
}
