@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-width: 100%;
    background-image: url(../assets/img/memory-card/retro.jpg);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /* center instead of central*/
}

.navbar {
    background-color: #010107;
    overflow: auto;
    font-family: 'Press Start 2P', cursive;
}

.navbar a {
    float: left;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 17px;
}

.navbar a:hover {
    background-color: #f011cb;
}

@media screen and (max-width: 500px) {
    .navbar a {
        float: none;
        display: block;
    }
}

.memory-game {
    width: 640px;
    height: 500px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
}

.memory-card {
    width: calc(25% - 10px);
    height: calc(33.333% - 10px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
}

.memory-card:active {
    transform: scale(0.95);
    transition: transform .2s;
}

.memory-card.flip {
    transform: rotateY(180deg) !important;
}

.front-face,
.back-face {
    width: 100%;
    height: 100%;
    padding: 20px;
    position: absolute;
    border-radius: 5px;
    background: #f507c9;
    backface-visibility: hidden;
    
}

.front-face {
    transform: rotateY(180deg);
}



#playMuteBTN {
    font-family: "Press Start 2P";
    background: linear-gradient(to right bottom, #165488, #659FCE);
    border: none;
    padding: 5px;
    outline: none;
}

#play-again {
    margin-top: 10px;
    font-family: "Press Start 2P";
    background: linear-gradient(to right bottom, #165488, #659FCE);
    border: none;
    padding: 5px;
    outline: none;
}

.container {
    display: flex;
    justify-content: space-between;
}

#sound {
    margin-right: 30px;
    margin-top: 20px;
}

#flex-container {
    display: flex;
    flex-grow: inherit;
}