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

/*For Responsive*/
@media (min-width: 768px) {
  .info-container,
  .memory-game-blocks {
    width: 740px;
  }
}
@media (min-width: 992px) {
  .info-container,
  .memory-game-blocks {
    width: 960px;
  }
}
@media (min-width: 1200px) {
  .info-container,
  .memory-game-blocks {
    width: 1170px;
  }
}

.control-buttons {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: rgba(3, 169, 244, 0.9);
  & 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: 6px;
    cursor: pointer;
  }
}

.info-container {
  margin: 20px auto 0;
  background-color: #f6f6f6;
  padding: 20px;
  font-size: 24px;
  overflow: hidden;
  border: 2px solid #2196f3;
  .name {
    float: left;
    width: 50%;
  }
  .tries {
    float: right;
    width: 50%;
    text-align: right;
  }
}
.memory-game-blocks {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
  .game-block {
    height: 200px;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    flex: 1 0 200px;
    margin: 0 10px 20px;
    .front {
      background-color: #333;
      line-height: 200px;
    }
    .front:before {
      content: "!";
      color: #fff;
      font-size: 140px;
      font-weight: bold;
    }
    .back {
      background-color: #607d8b;
      transform: rotateY(180deg);
      & img {
        width: 140px;
        height: 140px;
        margin-top: 30px;
      }
    }
    .face {
      position: absolute;
      width: 100%;
      height: 100%;
      text-align: center;
      backface-visibility: hidden;
      border: 5px solid #2196f3;
    }
  }
}
.memory-game-blocks.no-clicking {
  pointer-events: none;
}

.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;
}

.popup {
  position: fixed;
  background-color: #009688;
  padding: 100px 20px;
  width: 80%;
  top: 10%;
  left: 10%;
  text-align: center;
  font-size: 40px;
  border: 1px solid #ccc;
  color: #fff;
}
