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

  html{
    font-size: 62.5%;
  }
  
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url("background.jpg");
    background-size: cover;
  }
  
  h1{
    margin: 30px auto;
    justify-self: center;
    font-size: 5rem;
    font-family: 'Lilita One', Arial, Helvetica, sans-serif;
    color: rgb(255, 223, 80);
    text-shadow: -6px 4px 0 rgb(0, 0, 0);
    padding: 20px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.212);
    border: 2px solid white;
  }

  span{
    font-size: 6rem;
    font-style: italic;
  }
  .memory-game {
    width: 640px;
    height: 670px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
  }
  
  .memory-card {
    width: calc(25% - 10px);
    height: calc(33.333% - 10px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    box-shadow: 2px 2px 10px 2px black;
    border-radius: 25px;
    
  }
  
  .memory-card:active {
    transform: scale(0.97);
    transition: transform .2s;
  }
  
  .memory-card.flip {
    transform: rotateY(180deg);
  }
  
  .front-face,
  .back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
  }

  .front-face {
    transform: rotateY(180deg);
  }

  .back-face{
    border-radius: 20px;
  }

  button{
    width: 10%;
    margin: 20px auto;
    border-radius: 30px;
    padding: 10px;
    font-family: 'Lilita One', Arial, Helvetica, sans-serif;
    background: rgb(211, 50, 211);
    color:white;
    font-size: 2rem;
  }