*{
    padding: 0;
    margin: 0;
}

body{
    font-family: 'Righteous', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #c7cdd3;
}

#gameStart{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    color: white;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top:0
}

#play{
    padding: 20px;
    font-size: 20px;
    background-color: yellow;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}

#play:active{
    transform: scale(0.95);
}

.card{
    width: 150px;
    height: 150px;
    position: relative;

    transform-style: preserve-3d;
    transition: transform .5s;
    cursor: pointer;
}

.card_back, .card_front{
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.45);
    backface-visibility: hidden;
}

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

.card_front{
    transform: rotateY(180deg);
    background-color: #e6e6e6;
}

.card_back{
    color: #101c2c;
    background-color: #05c3ff;
    font-size: 30px;
}

#gameOver{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    color: white;
    font-size: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    top:0
}

#restart{
    padding: 20px;
    font-size: 20px;
    background-color: yellow;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}

#restart:active{
    transform: scale(0.95);
}

#gameBoard{
    max-width: 700px;
    display: grid;
    grid-template: 1fr 1fr 1fr 1fr/1fr 1fr 1fr 1fr;
    gap: 20px;
}

.icon{
    width: 120px;
    height: 120px;
}

img{
    width: 150px;
    height: 150px;
}

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

    #gameStart{
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        color: white;
        font-size: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        top:0
    }


    .card{
        width: 80px;
        height: 80px;
    }

    .icon{
        width: 60px;
        height: 60px;
    }

    img{
        width: 80px;
        height: 80px;
    }


}

