*{
    box-sizing: border-box;
}
body{
    font-family: Arial, Tahoma, sans-serif;
    background-color: black;
}

.control-buttons{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
     background-color: rgba(3, 47, 244, 0.459); 
}
.control-buttons span{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50% , -50%);
    background-color: #f44336;
    color: #fff;
    padding: 15px 25px;
    font-size: 30px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
}

.info-container{
    width: 1080px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: #123;
    color: #fff;
    font-size: 24px;
    overflow: hidden;
    border: 2px solid gold;
}
.info-container .name{
    width: 50%;
    float: left;
}
.info-container .tries{
    float: right;
    width: 50%;
    text-align: right;
}


.memory-game-blocks{
    display: flex;
    width: 1100px;
    flex-wrap: wrap;
    margin: 20px auto;
}

.memory-game-blocks.on-clicking{
    pointer-events: none;
}

.memory-game-blocks .game-block{
    height: 200px;
    transition: transform .5s;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    flex: 1 0 200px;
    margin: 0 10px 20px;
}

.memory-game-blocks .game-block .front{
    background-color: #333;
    line-height: 200px;
}
.memory-game-blocks .game-block .front::before{
    content: '?';
    color: #fff;
    font-size: 140px;
    font-weight: bold;
}

.memory-game-blocks .game-block .back{
    background-color: #607D8B;
    transform: rotateY(180deg);
}

.memory-game-blocks .game-block .back img{
    width: 140px;
    height: 140px;
    margin-top: 30px;
    
}

.memory-game-blocks .game-block .face{
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    backface-visibility: hidden;
    border: 5px solid gold;
}

.memory-game-blocks .game-block.is-flipped,
.memory-game-blocks .game-block.has-match{
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    transform: rotateY(180deg);
    pointer-events: none;
}

@media (max-width: 1100px) {
    .info-container{
        width: 90%;
    }

    .memory-game-blocks {
        width: 90%;
    }
}

@media (max-width: 768px){
    .info-container {
        width: 95%;
        flex-direction: column;
        text-align: center;
        font-size: 20px;
        padding: 15px;
    }

    .info-container .name {
        width: 100%;
        float: none;
        margin-bottom: 10px ;
    }

    .info-container .tries {
        width: 100%;
        float: none;
        text-align: center;
    }

    .memory-game-blocks {
        width: 95%;
    }

    .memory-game-blocks .game-block {
        height: 150px;
        flex: 1 0 150px;
        margin: 0 5px 15px;
    }

    .memory-game-blocks .game-block .front::before{
        font-size: 100px;
    }

}

@media (max-width: 768px) {
    .memory-game-blocks .game-block .back img{
        width: 100px;
        height: 100px;
        margin-top: 25px;
    }

    .control-buttons span{
        font-size: 24px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .info-container {
        font-size: 18px;
    }

    .memory-game-blocks .game-block {
        height: 120px;
        flex: 1 0 120px;
        margin: 0 3px 10px;
    }

    .memory-game-blocks .game-block .front::before {
        font-size: 80px;
    }

    .memory-game-blocks .game-block .back img{
        width: 80px;
        height: 80px;
        margin-top: 20px;
    }

    .memory-game-blocks .game-block .face{
        border: 3px solid gold;
    }

    .control-buttons span{
        font-size: 20px;
        padding: 12px 25px;
    }
}