* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  body {
    background-color: rgb(236, 206, 32);
  }
  
  .head {
    max-width: 480px;
    border: 2px solid black;
    background-color: #333;
    margin: auto;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    font-family: "Orbitron", sans-serif;
    color: rgb(236, 206, 32);
  }
  
  .score {
    margin-top: 10px;
  }
  
  .container {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
    margin: auto;
    padding: 10px;
    
  }
  .cell div {
    height: 50px;
    border-radius: 4px;
  }
  
  .cell {
    position: relative;
    cursor: pointer;
  }
  
  .front {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #a6a6a6;
    background-color: rgba(0, 0, 0, 0.7);
    transform: rotateY(90deg);
  }
  
  .back {
    background-color: #333 ;
  }
  
  img {
    height: 40px;
    width: 50px;
  }
  
  .flip {
    transform: rotateY(0deg);
  }
  .match {
    transform: rotateY(0deg);
  }
  
  .show {
    transform: rotateY(0deg);
  }
  
  @media screen and (min-width: 770px) {
    .head {
      max-width: 760px;
    }
  
    .container {
      grid-template-columns: repeat(4, auto);
    }
  
    .cell div {
      height: 170px;
    }
  }