@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

body {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	height: 100vh;
	overflow: hidden;
	background-size: 400% 400%;
	animation: gradient 7s ease infinite;
	background: linear-gradient(-45deg, #064195, #042a5f);
	color: white;
}

a {
	position: absolute;
	top: 2vh;
	left: 50%;
	transform: translateX(-50%);
}

img {
	width: clamp(150px,11vw,380px);
	height: auto;
	transform-origin: top;
	transition: transform 0.5s;
}

img:hover {
	transform: scale(1.5);
}

fieldset {
	transition: all 0.5s;
	border: 2px solid white;
	border-radius: 12px;
}

fieldset:focus-within, fieldset:hover {
	transform: scale(2);
	transition: all 0.5s;
}

fieldset small {
	color: #ff9e81;
	font-family: LexendR;
	overflow-wrap: break-word;
	font-size: 10px;
	text-align: center;
}

legend {
	font-family: Agency_Black;
/*	font-size: 36px;*/
}

form:not(#oublie) {
	width: 142px;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	font-family: Agency_Gras;
	transition: all 0.5s;
/*	width: 25vw;
	height: 50vh;*/
}

form:not(#oublie) > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 95%;
}

label {
	font-size: 12px;
}

input:not(input[type="submit"]) {
	font-family: "Gill Sans", sans-serif;
	font-size: 12px;
	border: solid 2px black;
	border-radius: 8px;
	outline: none;
	text-align: center;
	width: 100%;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
}

input[type="submit"] {
    width: auto;
    padding: 3px;
    cursor: pointer;
    font-family: Agency_Gras;
    border: 5px solid #777;
    color: white;
    background: #777;
    transition: all 0.5s;
}

input[type="submit"]:hover {
	background: white;
	color: #777;
}

#oublie {
	text-align: center;
}

input.mdp_oublie {
	font-size: 7px;
    padding: 0.5vh 0.5vw;
    border: 1px solid #4d0085;
    width: auto;
    height: auto;
    background: #4d0085;
}

input.mdp_oublie:hover {
	color: #4d0085;
	background: white;
}

form:focus-within:not(#oublie), fieldset:hover form:not(#oublie) {
	width: 10vw;
	height: 27vh;
	transition: all 0.5s;
}

form:focus-within:not(#oublie) input[type="submit"]:not(.mdp_oublie), fieldset:hover input[type="submit"]:not(.mdp_oublie){
	border: 2px solid #777;
}

@media all and (max-width: 1218px) {
	fieldset:focus-within, fieldset:hover {
		transform: scale(1.5);
		transition: all 0.5s;
	}
	form:not(#oublie) {
		width: 100%;
	}
	form:focus-within:not(#oublie) {
		width: auto;
	}
}

@media all and (max-width: 1016px) {
	body {
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
	}
	a {
		position: static;
		text-align: center;
		transform: translateX(0);
		margin-top: 2vh;
	}
	fieldset + fieldset {
		margin-bottom: 5vh;
	}
	fieldset:focus-within, fieldset:hover {
		transform: scale(1.2);
		transition: all 0.5s;
	}
	fieldset:hover form:not(#oublie) {
		width: auto;
	}
	form:not(#oublie) {
		margin: 0;
	}
}