/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 10 version
*/

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

* {
    /*reset css*/
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    font-family: 'Press Start 2P', cursive;
    /* background-color: rgba(0, 255, 0, .1) */
}

body {
    width: 100vw;
    height: 100vh;
    background-color: #121212;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 90%;
    max-width: 500px;
    background-color: #121212;
}

.tela {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .25em;
}

.infos {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-item-align: start;
    align-self: flex-start;
    max-width: 132px;
    width: 28vw;
    padding: 1em 0;
    gap: 3em;
}

.infos>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1em;
    padding: 1em 0;
}

.infos>div>p {
    font-weight: 700;
    font-size: .85em;
    color: #9E9E9E;
}

.infos>div>span {
    font-size: 1.5em;
    color: #9E9E9E;
}

#debug {
    opacity: 0.2;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

label {
    padding: 1em;
    font-size: .6em;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

label:hover #debug {
    opacity: 1;
}

label:hover {
    color: #9E9E9E;
    font-size: .6em;
}

#cvspxm {
    border: solid 1px red;
    border-radius: .25em;
    width: 5em;
    height: 5em;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
    image-rendering: pixelated;
}

#canvas {
    width: 70vw;
    max-width: 330px;
    border: solid 1px red;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-pixelated;
    image-rendering: pixelated;
}

.controle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 90%;
    max-width: 500px;
    gap: .50em;
}

.controle>div {
    width: 100%;
    padding: .50em;
}

.button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    float: left;
    margin-right: 2px;
    background-color: #bbb;
    line-height: 40px;
    padding: 0 20px;
    font-weight: bold;
    border: solid 5px #000;
    border-width: 0 4px 5px 0;
    border-radius: 5px;
    border-color: transparent #ddd #999 transparent;
    background-clip: padding-box;
    color: #121212;
    font-size: 2em;
    transition: 50ms ease;

}

.espaco {
    height: 40px;
    width: 100%;
}

.game {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    height: 40px;
    width: 100%;
    margin-bottom: 10px;
}

.game>button {
    padding: 10px;
    height: 30px;
    touch-action: manipulation;
}

.game>button.pausar>i {
    border: 7px solid transparent;
    border-top: 7px solid #121212;
    border-right: 7px solid #121212;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: relative;

}

.game>button.pausar>i::after {
    content: "";
    position: absolute;
    top: -6px;
    right: 1px;
    width: 4px;
    height: 17px;
    background-color: #121212;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.game>button.mute>i {
    position: relative;
    border: 7px solid transparent;
    border-top: 7px solid #121212;
    border-left: 7px solid #121212;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.game>button.mute>i::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #121212;
    left: -10px;
    top: -10px;
    position: absolute;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.game>button.mute>i::before {
    content: '';
    border-top-right-radius: 50px;
    position: absolute;
    width: 7px;
    height: 7px;
    border-top: 7px double #121212;
    border-right: 7px double #121212;
    left: -2.5px;
    top: -2.5px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.game>button.reset>i {
    width: 15px;
    height: 15px;
    background-color: #121212;
}

.setas>div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: .25em;
}

.seta {
    height: 40px;
}

.seta>i {
    position: relative;
    height: 0px;
    width: 0px;
    border: 12px solid;
    border-color:
        #121212 #121212 transparent transparent;
}

.seta>i::after {
    content: '';
    position: absolute;
    top: 0px;
    right: 0px;
    display: block;
    height: 12px;
    width: 16px;
    background-color: #121212;
    transform:
        rotate(-45deg) translate(2px, 1px);
}

i[data-button-key="ArrowUp"] {
    transform: rotate(-45deg);
}

i[data-button-key="ArrowLeft"] {
    transform: rotate(-135deg);
}

i[data-button-key="ArrowRight"] {
    transform: rotate(45deg);
}

i[data-button-key="ArrowDown"] {
    transform: rotate(135deg);
}

i[data-button-key="Space"] {
    position: relative;
    width: 25px;
    height: 25px;
    border: 5px solid #121212;
    border-radius: 50%;
    border-right-color: transparent;
    transform: rotate(-90deg);
}

i[data-button-key="Space"]::after {
    content: "";
    position: absolute;

    border: 12px solid #121212;
    top: -6px;
    left: 7.5px;

    border-bottom-color: #121212;
    border-top-width: 0;
    border-right-width: 0;
    border-left-color: transparent;
}

.button:active {
    border-width: 0 2px 3px 0;
    margin-right: 4px;
    position: relative;
    left: 2px;
    top: 3px;
    transform: scale(.9);
}


hr {
    width: 99%;
    margin: 1em 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), color-stop(#ccc), to(#ddd));
    background-image: -o-linear-gradient(#ddd, #ccc, #ddd);
    background-image: linear-gradient(#ddd, #ccc, #ddd);
}