html {
	font-size: 62.5%;
}
body {
	box-sizing: border-box;
	background-color: pink;
	font-family: 'Abril Fatface', cursive;
	font-size: 3rem;
	line-height: 4rem;
}
h1, h2, h6, main, .keyboard {
	margin: 0 auto;
	text-align: center;
}
h1 {
	width: 80%;
	font-size: 5rem;
}
h2 {
	width: 50%;
	font-family: 'Poiret One', cursive;
	font-size: 4rem;
}
h6 {
	width: 50%;
	font-family: 'Poiret One', cursive;
	font-size: 2rem;
}
div {
	width: 2rem;
	font-size: 2.5rem;
	display: inline-block;
	margin-left: 8px;
	line-height: 7rem;
}
main {
	width: 95%;
	padding: 0;
	margin: 0 auto;
	white-space: nowrap;
}
button {
	width: 4rem;
	height: 4rem;
	font-family: 'Abril Fatface', cursive;
	font-size: 2rem;
	margin: 3px;
	border-radius: 1.5rem;
	border: 2px solid gray;
	background-color: white;
}
button:hover, #reset:hover, #enter:hover {
	background-color: lightblue;
}
button:focus, input:focus {
	outline:0;
}
input {
	width: 90%;
	margin: 0 auto;
}
.hiddenFont {
	color: pink;
}
.invisible {
	visibility: hidden;
}
.hidden {
	display: none;
}
#hiddenLose {
	display: none;
}
#hiddenWin {
	display: none;
}
img {
	width: 60%;
	height: 40%;
	margin-bottom: 0;
}
.keyboard {
	width: 80%;
}
.bigButtonContainer {
	width: 30rem;
	margin: 7rem 7rem 0 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#reset, #enter, #score {
	max-width: 100%;
	width: 10rem;
	height: 4rem;
	font-family: 'Poiret One', cursive;
	margin: 1rem 0;
	padding: 1rem;
	border-radius: 1rem;
	font-weight: bold;
	font-size: 1rem;
	border: 2px solid grey;
	align-items: center;
	background-color: white;
}
.container {
	display: flex;
	flex-direction: row;
	width: 100%;
	margin: 0;
	justify-content: space-around;
}
.reveal {
	font-family: 'Abril Fatface', cursive;
}
.userInput {
	height: 4rem;
	width: 40rem;
}
.winning, .losing {
	animation: pulse 3s 1;
	font-size: 3rem;
	text-align: center;
	margin: 0 3rem;
	width: 70%;
	padding: 5rem 0 ;
	line-height: 3rem;
	grid-row: 2 / span 1;
	grid-column: 2 / span 1;
}
.winBox, .loseBox {
	animation: pulse 3s 1;
	width: 80%;
	height: 50%;
	position: fixed;
	top: 50%;
	left: 50%;
    transform: translate(-50%, -50%);
	z-index: 1;
	padding: 1rem;
	background-color: white;
	border-radius: 10px;
	align-items: center;
	display: grid;
	grid-template-columns: 10% 1fr 10%;
	grid-template-rows: 10% 1fr 10%;

}

.closeModal {
	width: 2rem;
	height: 2rem;
	background-color: white;
	border: none;
	font-size: 2rem;
	padding: 0;
	grid-row: 1 / span 1;
	grid-column: 3 / span 1;
}
@keyframes pulse {
	0% {
		color: white;
	}
	100% {
		color: black;
	}
}

@media screen and (min-width: 600px) {
	body {
		line-height: 6rem;
	}
	button {
		width: 5rem;
		height: 5rem;
	}
	img {
		width: 50%;
		height: 33%;
	}
	div {
		width: 4rem;
		font-size: 4rem;
	}
	.bigButtonContainer {
		margin-top: 6rem;
	}
	.winBox, .loseBox {
		height: 30%;
	}
	.winning, .losing {
		margin: 0 8rem;
	}
	#reset, #enter, #score {
		font-size: 1.5rem;
		width: 20rem;
		height: 4rem;
	}
}
@media screen and (min-width: 800px) {
	button {
		width: 7rem;
		height: 7rem;
		font-size: 3rem;
	}
	.bigButtonContainer {
		margin-top: 7rem;
	}
	img {
		width: 30%;
		height: 20%;
		margin-left: 5rem;
	}
	.keyboard {
		margin-top: 3rem;
	}
	h1 {
		font-size: 6rem;
	}
	.winBox, .loseBox {
		width: 75%;
		height: 60%;
		padding: 10rem;
		
	}
	.winning, .losing {
		font-size: 7rem;
		line-height: 7rem;

	}
	.closeModal {
		font-size: 4rem;
		width: 4rem;
		height: 4rem;
	}
}
