@charset "UTF-8";

* {
    margin: 0px;
    padding: 0px;
    font-family: 'Press Start 2P', cursive;
}

body {
    background-color: rgb(22, 30, 94);
    background-image: linear-gradient(180deg, rgb(22, 30, 94), rgb(85, 18, 83));
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 10px;
}

h1 {
    font-size: 2.5em;
}

.text {
    grid-column: span 4;
}

.text, h1 {
    color: rgb(242, 242, 206);
    text-align: center;
    padding: 60px;
    margin-bottom: 50px;
    filter: drop-shadow(0px 0px 3px rgb(234, 234, 234));
}

.game {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 200px));
    grid-template-rows: repeat(2, minmax(100px, 200px));    
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.706);
    max-width: 440px;
    padding: 20px;
    border-radius: 55px;
    grid-column: 2 / 4;
    justify-self: center;
    margin: 0px;
}

.square {
    display: flex;
    border-radius: 40px;
    border: solid 10px black;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.363);
    cursor: pointer;
    transition: width 5s, height 5s;
}

.square:hover {
     width: 175px;
    height: 175px; 
    margin: auto;
}

.square:active {
    box-shadow: 0px 0px 20px white;
}

.red {
    background-color: rgba(142, 0, 0, 0.801);
}
.red:hover {
    background-color: red;
}

.green {
    background-color: rgb(0, 128, 0,0.801);
}
.green:hover {
    background-color: rgb(0, 255, 0);
}

.blue {
    background-color: rgba(0, 0, 111, 0.801);
}
.blue:hover {
    background-color: rgb(28, 28, 255);
}

.yellow {
    background-color: rgba(163, 163, 0, 0.801);
}
.yellow:hover {
    background-color: yellow;
}

.lost {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    position: absolute;
    max-width: 600px;
    max-height: 300px;
    background-color: rgba(156, 156, 156, 0.755);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 10px solid white;
    z-index: 2;
}

.lostH1 {
    font-size: 5em;
    text-align: center;
    margin: 0px;
    padding: 30px;
}

.pLost {
    font-size: 1em;
    text-align: center;
    margin: 0px;
    padding: 30px;
}

footer {
    font-size: 1em;
    margin-bottom: 0px;
    grid-column: span 4;
}

.tabela {
    grid-column: 4;
    background-color: rgba(255, 255, 255, 0.706);
    padding: 20px;
    border-radius: 30px;
    max-width: 240px;
    height: 115px;
    justify-self: start;
}

.h1Num {
    font-size: 1.5em;
    margin: 10px;
    padding: 10px;
}

.num {
    color: white;
    text-align: center;
    font-size: 1. 5em;
    margin-bottom: 10px;
}

.lost2 {
    background-color: rgba(86, 0, 0, 0.396);
    width: 100vw;
    height: 100vh;
    position: absolute;
    visibility: hidden;
    backdrop-filter: blur(3px);
    z-index: 1;
}

@media (max-width: 470px) {

    .game {
        height: 340px;
        width: 340px;
        gap: 20px;
    }

    .square {
        border: solid 6px black;
    }

    .square:hover {
        max-width: 135px;
        max-height: 135px;
    }

    .lost {
        max-width: 300px;
        padding: 20px;
        border: solid white 7px;
        border-radius: 30px;
    }

    .lostH1 {
        font-size: 1.8em;
        margin: 10px;
        padding: 0px;
    }

    .pLost {
        font-size: .9em;
        margin: 0px;
        padding: 0px;
    }
}

@media (max-width: 960px) {
    body {
        grid-template-columns: 12fr;
        grid-template-rows: 1fr;
        height: 100%;
    }

    .text {
        margin-bottom: 0px;
    }

    .game {
        grid-column: span 4;
        order: 3;
    }

    .tabela {
        margin: auto;
        grid-column: span 4;
        order: 2;
        height: 80px;
        width: 180px;
        padding: 10px;
    }

    .h1Num {
        font-size: 1.2em;
        padding: 0px;
    }

    .tabela p {
        font-size: .9em;
    }

    footer {
        order: 3;
    }
  }