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

* {
    font-family: 'Press Start 2P', cursive !important;
    border: none;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: #dfc0d8;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 50px;
    background-size: cover;
    background-position: top;
}

header {
    max-width: 800px;
    background-color: rgba(255, 255, 255, 80%);
    border-radius: 5px;
}

.grid {
    width: 100%;
    max-width: 800px;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 auto;
}

.card {
    width: 100%;
    aspect-ratio: 3/4;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    position: relative;
    transition: all 400ms ease;
    transform-style: preserve-3d;
}

.face {
    width: 100%;
    height: 100%;
    position: absolute;
    background-position: center;
    background-size: cover;
    transition: all 400ms;
}

.front {
    background-position: top;
}

.btn {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btnExit {
    background-color: gray;
    border: 1px solid gray;
}

.buttonExitGame {
    background-color: rgba(255, 255, 255, 80%);
    border-radius: 5px;
    max-width: 800px;
    opacity: 0;
    pointer-events: none;
}

.buttonExitGame.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-title {
    color: var(--color-primary);
}

.back {
    background-image: url('https://d19sswdz7ju4eq.cloudfront.net/736246b2-b16a-43da-b87a-57dfafce6eae/img/CardLogoCEMIG.png');
    backface-visibility: hidden;
}

.revealCard {
    transform: rotateY(180deg);
}

.disableCard {
    filter: saturate(0);
    opacity: 0.5s;
}

@media screen and (max-width: 700px ) {
    .header-player-timer {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 500px) {
    .header-player-timer {
        font-size: 0.9rem;
    }

    .player {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 385px) {
    .header-player-timer {
        font-size: 0.75rem;
    }

    .player {
        font-size: 0.65rem;
    }
}


