/* Harmish Shah, 100810138 */
/* Matching Game Style */


:root {
    --front: green;
    --back: #f1c40f;
    --shadow: 0 1px 50px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* background: url(../img/background.svg) no-repeat center center fixed; */
    background-color: #2b2b2b;
    /* overflow-y: hidden; */
    width: 100vw;
    height: 100vh;
}

#Splash, #win {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

#obj {
    position: absolute;
    top: 0%;
    width: 100vw;
    height: 100vh;
    visibility: hidden;
}

.gameBoard {
    width: 100vw;
    height: 100vh;
    visibility: hidden;
    display: grid;
    grid-gap: 20px;
    padding: 25px;
    grid-template-columns: repeat(4, 1fr);
    background: url(../img/background.svg) no-repeat center center fixed;
    background-size: cover;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    min-width: 0%;
    perspective: 800px;
    -webkit-perspective: 800px;
    cursor: pointer;
}

.faces {
    width: 110px;
    height: 135px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 4px solid var(--front);
    border-radius: 8px;
    position: absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: var(--shadow);
}

.face > * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.front {
    background-color: var(--front);
}

.back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background-color: var(--back);
}

#win {
    position: absolute;
    visibility: hidden;
    top: 0%;
}

@media only screen and (max-width: 768px) {

    .gameBoard {
        grid-template-columns: repeat(3, 1fr);
    }
}