@charset "utf-8";
/*

    ## #####  ##     ##
    ## ##  ## #### ####
    ## #####  ## ### ## --- CSS Document
##  ## ##  ## ##  #  ##
  ##   #####  ##     ##     JB Simon MARTINEZ © 2022 - jb.martinez.net


							--> conception Mobile First : du Mobile vert les grands écrans
*/

@font-face { /*--- Appel d'un police de caractère personnel ---*/
	font-family: "calculator";
	src: url("../font/Calculator.woff") format("woff"),
		 url("../font/Calculator.woff2") format("woff2");
}


body {
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	background-image: url("../img/background.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	width: 99%;
	height: 98vh;
}


img {
	width: 150%;
	height: auto;
	vertical-align: bottom;
}

ul {
	padding: 0;
}

li {
	list-style-type: none;
}

#app {
	position: relative;
	display: block;
	width: 96%;
	height: auto;
	transform: translateX(-1rem);
}

#app > div:nth-child(1) {
    -webkit-filter: drop-shadow(-30px 10px 4px rgba(0,0,0,0.5));
	filter: drop-shadow(-30px 10px 4px rgba(0,0,0,0.5));
}

#app > div:nth-child(2) {
	position: absolute;
	z-index: 1;
	top: 5.3rem;
	left: 13%;
	width: 72%;
	height: auto;
	text-align: right;
	font-family: "calculator";
	font-size: 3.5rem;
	opacity: 0.75;
	overflow: hidden;
}

#app > ul {
	position: absolute;
	z-index: 1;
	top: 11rem;
	left: 4%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	/*justify-content: space-between;*/
	width: 100%;
	height: auto;
	overflow: hidden;
}

#app > ul li {
	margin: 0.15rem 0.1rem;
	width: 2.8rem;
	height: auto;
}

#app > ul li:nth-child(1) {
	width: 5.5rem;
	height: 1.8rem;
}

#app button {
	position: relative;
	width: 2.8rem;
	height: 2rem;
	background: linear-gradient(to bottom right, rgba(0,0,0,0.75), rgba(255,255,255,0.1));
	border-radius: 10px;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	border: none;
	color: rgba(255,255,255,0.75);
	font-size: 1rem;
	font-family: 'Roboto', sans-serif;
}

#app button::after {
	position: absolute;
	z-index: -1;
	top: -0.1rem;
	left: -0.1rem;
	content: "";
	width: 100.5%;
	height: 100.5%;

	border-radius: 10px;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}

#app button:hover {
	color: rgba(255,255,255,1);
	text-shadow: #FC0 1px 0 10px;
}

#app button:hover::after {

}

#app button:active {
	background: linear-gradient(to bottom right, rgba(255,255,255,0.25), rgba(0,0,0,0.5));
	color: rgba(255,255,255,1);
	text-shadow: #FC0 1px 0 10px;
}

#app button:active::after {
	background: linear-gradient(to bottom right, rgba(0,0,0,0.75), rgba(255,255,255,0.1));
}

#app li:nth-child(2), #app li:nth-child(3), #app li:nth-child(4), #app li:nth-child(5) {
	margin: 0 0.15rem;
}

#app li:nth-child(2) button, #app li:nth-child(3) button, #app li:nth-child(4) button, #app li:nth-child(5) button {
	height: 1.5rem;
	font-size: 1rem;
}

#app li:nth-child(28) button {
	width: 5.8rem;
}


/* WIDE SCREEN : Phone (phone) à partir de 576px */
@media (min-width: 576px) {

	img {
		width: 150%;
		height: auto;
		vertical-align: bottom;
	}

	#app {
		width: 50%;
	}

	#app > ul {
		top: 11rem;
		left: 6%;
		width: 100%;
	}

	#app > ul li {
		margin: 0.27rem 0.1rem;
	}

}


/* WIDE SCREEN : Tablette et Ordinateur (mobile) à partir de 992px */
@media (min-width: 992px) {

	img {
		width: 100%;
		height: auto;
		vertical-align: bottom;
	}

	#app {
		width: 42%;
		transform: translateX(0);
	}

	#app > div:nth-child(2) {
		top: 4.8rem;
		left: 13%;
		width: 45%;
	}

	#app > ul {
		top: 9.5rem;
		left: 1.75%;
		width: 70%;
	}

	#app > ul li {
		margin: 0.2rem 0.08rem;
		width: 2.8rem;
	}

	#app button {
		width: 2.9rem;
		height: 2rem;
		font-size: 1rem;
	}

	#app > ul li:nth-child(1) {
		width: 5.5rem;
		height: 1rem;
	}

	#app li:nth-child(2), #app li:nth-child(3), #app li:nth-child(4), #app li:nth-child(5) {
		margin: 0.2rem 0.10rem;
	}

	#app li:nth-child(2) button, #app li:nth-child(3) button, #app li:nth-child(4) button, #app li:nth-child(5) button {
		height: 1.5rem;
		font-size: 1rem;
	}

	#app li:nth-child(28) button {
		width: 6rem;
	}


}

/* WIDE SCREEN : Tablette et Ordinateur (desktop) à partir de 1200px */
@media (min-width: 1200px) {

	#app {
		width: 48%;
	}

	#app > div:nth-child(2) {
		top: 7.5rem;
		left: 13%;
		width: 44%;
	}

	#app > ul {
		top: 13rem;
		left: 2.5%;
		width: 70%;
	}

	#app > ul li {
		margin: 0.2rem;
		width: 3.5rem;
	}

	#app button {
		width: 3.5rem;
		height: 2.5rem;
		font-size: 1rem;
	}

	#app > ul li:nth-child(1) {
		width: 8rem;
		height: 2.6rem;
	}

	#app li:nth-child(2), #app li:nth-child(3), #app li:nth-child(4), #app li:nth-child(5) {
		margin: 0.10rem;
	}

	#app li:nth-child(2) button, #app li:nth-child(3) button, #app li:nth-child(4) button, #app li:nth-child(5) button {
		height: 2rem;
		font-size: 1rem;
	}

	#app li:nth-child(28) button {
		width: 7.5rem;
	}

}

/* WIDE SCREEN : Tablette et Ordinateur (desktop) à partir de 1400px */
@media (min-width: 1400px) {

	#app {
		width: 38%;
	}

	#app > ul {
		left: 3%;
	}

	#app > ul li {
		margin: 0.3rem 0.2rem;
	}

}

/* WIDE SCREEN : Tablette et Ordinateur (desktop) à partir de 1900px */
@media (min-width: 1900px) {

	#app {
		width: 35%;
	}

	#app > div:nth-child(2) {
		top: 8.2rem;
		left: 13%;
		width: 44%;
	}

	#app > ul {
		top: 15rem;
		left: 3%;
		width: 68%;
	}

	#app > ul li {
		margin: 0.2rem;
		width: 4rem;
	}

	#app button {
		width: 4rem;
		height: 3.2rem;
		font-size: 2rem;
	}

	#app > ul li:nth-child(1) {
		width: 8.5rem;
		height: 2.6rem;
	}

	#app li:nth-child(2), #app li:nth-child(3), #app li:nth-child(4), #app li:nth-child(5) {
		margin: 0.15rem;
	}

	#app li:nth-child(2) button, #app li:nth-child(3) button, #app li:nth-child(4) button, #app li:nth-child(5) button {
		height: 2rem;
		font-size: 1rem;
	}

	#app li:nth-child(28) button {
		width: 8.8rem;
	}

}
