/* html */
html, body {
    height: 95%;
    font-family: 'Press Start 2P', cursive;
}

html {
    background-color: #E9CDDC;
    font-size: 62.5%;
}

body {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.6rem;
}

/* Game */
canvas {
    display: block;
    background: url('./img/bg.png');
    background-size: cover;
}

.container {
    position: relative;
    border: solid 24px #F3ECF0;
}

.output {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1em;
}

.game-view {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
}

.image-sprites,
.image-level {
    display: none;
}

/* Menu */
.menu__container {
    position: absolute;
    left: 50%;
}

.menu {
    position: relative;
    left: -50%;
    width: 960px;
    height: 576px;
    z-index: 10;
    background-color: rgb(255, 192, 203);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    user-select: none;
}

.how-to-play {
    position: relative;
    display: none;
    left: -50%;
    z-index: 20;
}

.menu__game-title {
    font-size: 5rem;
    text-align: center;
}

.menu__button:hover {
    color: white;
    cursor: pointer;
}

.menu__how-to-play_img {
    position: absolute;
    -webkit-user-drag: none;
    user-select: none;
}

.menu__how-to-play_close {
    position: absolute;
    width: 30px;
    padding: 1rem;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
}

/* Pause and End screen */
.pause, .end-screen {
    position: relative;
    left: -50%;
    width: 960px;
    height: 576px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.2);
    color: #FFF;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    user-select: none;
}

.pause__title, .end-screen__title{
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pause__button:hover, .end-screen__button:hover {
    cursor: pointer;
    color: rgb(255, 192, 203);
}

.end-screen__time {
    margin-bottom: 3rem;
}

/* Buttons */
.menu__button, .pause__button, .end-screen__button {
    margin-top: 1rem;
}

/* Timer */
.game-timer {
    display: none;
    position: absolute;
    top: 2rem;
    left: 2rem;
}

/* Editor */
.menu-editor__container {
    position: absolute;
    left: 50%;
}

.menu-editor{
    display: none;
    position: relative;
    left: -50%;
    width: 960px;
    height: 576px;
    z-index: 10;
    user-select: none;
}

.menu-editor__ui{
    display: none;
    position: absolute;
    left: 50%;
}

.menu-editor__ui__container{
    display: flex;
    position: relative;
    left: -50%;
    width: 960px;
    height: 576px;
    z-index: 9;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    user-select: none;
}

.menu-editor__left{
    position: relative;
    left: -55%;
    text-align: right;
    height: 100%;
}

.menu-editor__right{
    position: relative;
    left: 53%;
    top: 40%;
    text-align: left;
}

.menu-editor__name, .menu-editor__play{
    padding-bottom: 2rem;
}

.menu-editor__tiles{
    position: relative;
    top: 0;
    padding-bottom: 10rem;
}

.menu-editor__tiles__text{
    padding-bottom: 1rem;
}

.menu-editor__tiles__tilesList{
    -webkit-user-drag: none;
    user-select: none;
}

.aspect-ratio-popup{
    display: none;
    position: absolute;
    z-index: 101;
    background-color: #E9CDDC;
}

.aspect-ratio-popup__text{
    justify-content: center;
    align-items: center;    
    text-align: center;
    margin: 0 100px 0 100px;
}

@media only screen and (max-width: 1435px), (max-height: 635px){
    .aspect-ratio-popup{
        display: flex;
        width: 100vw;
        height: 120vh;
        justify-content: center;
        align-items: center;
    }
}