:root {
	--pink: #FAD1D9;
	--blue: #C5F6FF;
	--stroke: #522438; 
	--green: #C2E688;
	--red: #FC6963;
	--light-brow: #846662;
	--gray: #9EA1AF;
   }

body {
	background-color: #18191a;
	text-align: center;
	margin: 0 0 15px;
	color: white;
	font-family: 'Calibri', 'Verdana', sans-serif;
	font-size: 15px;
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

button {
	font-family: 'Calibri', 'Verdana', sans-serif;
}

.screen-wrapper	{
	display: flex;
	width: 360px;
	margin: auto;
	padding-top: calc(360px/3*2);
	margin-top: 1%;
	position: relative;
}
 canvas {
	aspect-ratio: auto 480 / 320;
 }

#screen {
	position: absolute;
	background-color: var(--gray);
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
}


#crash {
	margin-top: 100px;
	margin-bottom: 199px;
}


#sound + p {
	color: #18191a;
	margin-top: -23px !important;
}

input[type=checkbox] {
	margin: -3px 5px 0 0;
}

input[type=checkbox]::after {
	display: inline-block;
	content: "";
	background-color: #765490;
	border: 0 solid rgba(0, 0, 0, 0.3);
	border-width: 1px 1px 2px;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	position: relative;
	top: -3px;
	visibility: visible;
}

input[type=checkbox]:checked::after {
	background-color: #6A4883;
	border-width: 2px 1px 1px;
	box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.2) inset;
}

p:first-child {
	margin-top: 0;
}

a:link, a:visited {
	color: #fcb3f0;
}

.hidden {
	-moz-transform: rotateX(90deg) !important;
	-webkit-transform: rotateX(90deg) !important;
}

.dead {
	display: none;
}

input[type=file] {
	opacity: 0 !important;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: none;
}

input[type=range] {
	width: 100px;
	height: 14px;
	margin: 2px;
}

footer {
	color: black;
	font-size: 12px;
	padding-top: 8px;
}

p {
	margin: 0;
}

label p, #sound p {
	display: inline;
}

ul#links {
	display: block;
	text-align: center;
	padding: 0;
}

ul#links li {
	display: inline;
	list-style-type: none;
}

ul#links li:not(:first-child)::before {
	content: "•";
	margin: 0 0.5em;
}

.gamecontrols {

	width: 100%;
}

.cross, .buttons {
	width: 200px;
	height: 200px;
	margin: 1%;
	position: relative;
}

.buttons {
	margin: 0 0 0 auto;
}

.btn__wrapper {
	position: absolute;
}

.cross__btn, .buttons__btn {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--red);
	border: 6px solid var(--stroke);
	padding: 0;
    box-shadow: 1px 5px 1px grey;	margin: 0 5px;
	transition: .1s ;
	box-sizing: border-box;
}

.active button {
    box-shadow: none;
    transform: translateY(3px);
}

.up, .start {
	top: 0;
	left: 50%;
    transform: translateX(-50%);
}


.left, .select {
	left: 0;
	top: 50%;
    transform: translateY(-50%);
}

.right, .a {
	right: 0;
	top: 50%;
    transform: translateY(-50%);
}

.down , .b {
	bottom: 0;
	left: 50%;
    transform: translateX(-50%);
}

.wrapper {
    position: relative;
}
.installbanner {
    background-color:lightcoral;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: -100px;
    transition: .7s;
    display: none;
}

.fade-in {
    display: block;
    transition: .7s;
    transform: translateY(-100px);
}

.install-btn {
    margin: 10px auto;
    max-height: 40px;
}

@media (min-width: 600px) {
	.gamecontrols {
		display: flex;
		position: absolute;
		top: 25%;
		justify-content: space-between;
	}

	.screen-wrapper {
		width: 480px;
		padding-top: calc(480px/3*2);

	}

	.start, .select {
		right: 20px;
		left: auto;
		transform: translateY(0);
	}

	.start .buttons__btn, .select .buttons__btn {
		width: 85px;
		height: 40px;
		border-radius: 15px;
	}

	.start {
		top: 0;
	}

	.select {
		top: -50px;
	}
}

@media (min-width: 992px) {
	.gamecontrols {
		display: none;
	}
}
