@import url('https://fonts.googleapis.com/css2?family=Black+And+White+Picture&family=Press+Start+2P&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	color: #fff;
	width: 100vw;
	height: 100vh;
}

#gameContainer {
	background-color: #1e1f34;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
}
h1 {
	font-size: 40px;
	margin-bottom: 20px;
	font-family: 'Press Start 2P', cursive;
	text-shadow: #fc0 1px 0 20px, #ff9d00 1px 0 20px;
	text-align: center;
	line-height: 1.5;
}

h2 {
	margin-bottom: 20px;
	font-size: 40px;
	font-family: 'Press Start 2P', cursive;
	text-shadow: #fc0 1px 0 20px, #ff9d00 1px 0 20px;
}
section {
	min-height: 100vh;
	position: fixed;
	top: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #1e1f34;
	transition: transform ease 1s;
}
#welcome {
	z-index: 1000;
}
.play {
	transform: translateY(-100%);
}

.instructions {
	font-size: 22px;
	max-width: 600px;
	margin-bottom: 20px;
}
.instructions div {
	margin-bottom: 20px;
}
.play-btn {
	font-size: 30px;
	text-transform: uppercase;
	padding: 20px 40px;
	border: 4px solid black;
	background-color: orange;
	font-family: 'Press Start 2P', cursive;
	border-radius: 60px;
	cursor: pointer;
}
.play-btn:hover {
	transform: translateY(2px);
}
#score {
	font-size: 20px;
	margin-bottom: 20px;
	text-transform: uppercase;
	font-family: 'Press Start 2P', cursive;
	text-align: center;
}
.fence {
	background-image: url(./src/fence.webp);
	width: 1200px;
	height: 60px;
}
.playground-container {
	width: 1224px;
	height: 688px;
	display: flex;

}
.fence-side {
	width: 12px;
	height: 100%;
background-image: url(./src/fence-side.webp);

}
.fence-bottom {
background-image: url(./src/fence-bottom.webp);
height: 28px;
}

.playground {
min-width: 1200px;
height: 600px;
background-color: #3d4357;
position: relative;
background-image: url(./src/ground.webp);
}

.ghost {
	position: absolute;
	/* background-color: blue; */
	width: 70px;
	height: 90px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
}
.ghost-image {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.pumpkin {
	position: absolute;
	width: 60px;
	height: 60px;
background-image: url(./src/pumpkin1.webp);
background-size: contain;
background-repeat: no-repeat;
background-position: bottom center;
z-index: 50;

}
.stone {
	position: absolute;
	width: 124px;
	height: 40px;
background-repeat: no-repeat;
background-position: bottom center;
}
.dead {
}

.ghost {
  animation: soar infinite ease 3s;
}

.ghost-shadow {
  background-color: #282c3a;
  height: 15px;
  width: 60px;
  margin-top: 8px;
  border-radius: 50%;
  animation: cast-shadow infinite ease 3s;
	opacity: 0.7;
}

@keyframes soar {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -30%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cast-shadow {
  0% {
    width: 60px;
  }
  50% {
    width: 40px;
  }
  100% {
    width: 60px;
  }
}

#game-over {
	top: 100vh;
	transition: top ease 1s;
}
.red {
	text-shadow: #e91e63 1px 0 20px, #ff4a4a 1px 0 20px;
  font-size: 60px;
}
h3 {
	font-size: 30px;
	text-transform: uppercase;
	font-family: 'Press Start 2P', cursive;
margin-bottom: 20px;
}