* {
	margin: 0;
	padding: 0;
	overflow: hidden;
	/* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
	font-family: 'Press Start 2P', cursive;
	text-decoration: none;
    color: white;
}


p {
	max-width: 95vw;
}
canvas {
	position: absolute;
	top: 0;
	left: 0;
	background: url(../images/Sprites/Background/backgroundMobile.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position-x: right;
	background-position-y: bottom;
}
body{
	overflow-x: hidden;
	position: relative;
	height: 100vh;
	width: 100vw;
	image-rendering: pixelated;
	user-select: none;
}

img{
	width: 8vw;
	height: 10vh;
}

input{
	color: white;
	padding: 1vw 1vh;
}




#set01, #set02, #set03 {
	background: rgb(30, 30, 30);
	border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
}

#set01:hover, #set02:hover, #set03:hover {
	background: rgb(50, 50, 50);
}

.ui{
	display: flex;
	align-items: center;
	flex-direction: column;
}

.uiTop{
	position: relative;
	z-index: 100;

	top: 0;
	width: 100vw;
	height: fit-content;
	left: 0;

	display: flex;
	align-items: center;
	justify-content: space-between;
}

.uiTop>p,.uiTop>a{
    background: rgb(30, 30, 30);
	padding: 1vh 3vw;
	margin: 20px 15px;
}

.uiTopCenter{
	background: rgb(38, 41, 43);
	border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
	padding: 1vh 3vw;
	margin: 20px 15px;
	display: flex;
	align-items: center;
	flex-direction: column;
}

.uiDown{
    background: rgb(38, 41, 43);
	border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
	position: absolute;
	z-index: 100;

	bottom: 3vh;
	width: 70vw;
	margin-left: 15vw;
	height: 20vh;
	left: 0;


	display: flex;
	align-items: center;
	text-align: center;
	flex-direction: column;
	justify-content: space-around;
	transition-duration: 1s;
}

#uiLives{
	background: rgb(38, 41, 43);
	border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
	transform-origin: right;
	transition-duration: 1s;
}

#buttonPlay{
	background: rgb(30, 30, 30);
    border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
	font-size: 2vh;
	padding: 3vh 12vw;
}

#HighscoreEndScreen{
	display: none;
	position: absolute;
	font-size: 1.5vh;
	transform: rotate(5deg) translate(10vw,1vh);
}

#buttonPlay:hover {
	background: rgb(50, 50, 50);
}

.uiDown:nth-child(1){
	background-color: wheat;
}

.uiCenter{
    background: rgb(38, 41, 43);
	border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
	position: absolute;
	z-index: 100;

	margin-top: 10vh;
	margin-left: 110vw;
	padding-bottom: 1vh;

	width: 70vw;
	height: fit-content;


	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: flex-start;
	transition-duration: 1s;
}

.Shop{
	display: none;
	height: 50vh;
	width: 60vw;
	margin-top: 1vh;
	overflow:visible;
	align-items: center;
	flex-direction: column;
	justify-content: space-around;
}

.upgrades{
	background: rgb(38, 41, 43);
	display: flex;
	height: 40vh;
	gap: 1vh;
	align-items: center;
	flex-direction: column;
	overflow: visible;
}

.Settings{
    background: rgb(38, 41, 43);
	z-index: 100;

	width: fit-content;
	padding-left: 5px;
	padding-right: 5px;

	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: space-around;
	transition-duration: 1s;
	overflow: visible;
}


.Buy1,.Buy2,.Buy3{
	height: 25vh;
	width: 50vw;
	padding: 0vh 1vw;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: space-around;
	border-radius: 1vh;
	background-color: rgba(0, 0, 0, 0.24);
	transition-duration: .5s;
}

.Buy2{
	margin: 0vh 1.5vw;
}

.Buy1:hover,.Buy2:hover,.Buy3:hover{
	transform: scale(1.1,1.1);
}

.btnMobile{
	position: absolute;
	z-index: 100;

	width: 50vw;
	height: 20vh;

	top: 75vh;
	left: 25vw;

	display:none;
	align-items: center;
	flex-direction: column;
	justify-content: space-around;
}

#btnUp,#btnLeft,#btnDown,#btnRight {
	background: rgb(38, 41, 43);
    border: solid 5px rgb(75, 75, 75);
    border-top: solid 5px rgb(129, 129, 129);
    border-left: solid 5px rgb(129, 129, 129);
	width: 20vw;
	height: 6vh;
}

#btnSettings{
	background-color: transparent;
	width: 6vw;
	aspect-ratio: 1/1;
	margin-left: 1vw;
}

#Buy1Img,#Buy2Img,#Buy3Img{
	aspect-ratio: 1/1;
	width: auto;
	height: 10vh;
}

.uiCenter>h2{
	font-size: 2vh;
	margin-top: 1.5vh;
}

.Settings>input{
	font-size: 2vh;
	width: 60vw;
	height: 6vh;
	margin-top: 2vh;
}

#Highscore{
	margin-top: 1vh;
}

@media only screen and (min-width: 768px)  and (orientation: landscape) and (min-aspect-ratio: 3/6){
	canvas{
		background-color: black;
		background: url(../images/Sprites/Background/background.png);
		background-repeat: no-repeat;
		background-size: cover;
		background-position-x: right;
	}
	#btnSettings{
		aspect-ratio: 1/1;
		height: 5vh;
		width: fit-content;
	}
	.Settings{
		width: 20vw;
	}
	.upgrades{
		display: flex;
		height: 40vh;
		width: 60vw;
		align-items: center;
		flex-direction: row;
	}
	.Buy1,.Buy2,.Buy3{
		width: 17vw;
	}
	#Buy1Img,#Buy2Img,#Buy3Img{
		aspect-ratio: 1/1;
		width: auto;
		height: 15vh;
	}
	#HighscoreEndScreen{
		position: absolute;
		font-size: 2vh;
		transform: rotate(5deg) translate(10vw,0vh);
	}
}