body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

* {
    box-sizing: border-box;
    /* background-color: rgba(0, 0, 0, 0.251); */
}

h1 {
    position: relative;
    /* display: block; */
    font-family: 'Amatic SC', cursive;
    font-size: 4em;
    margin: 0;
}

.titleBurn::before {
    content: "";
    position: absolute;
    height: 40px;
    width: 40px;
    bottom: 60px;
    right: 35px;
    background-image: url("images/fire.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: flicker 1s ease-in-out infinite;
}

h2 {
    font-family: 'Amatic SC', cursive;
    font-size: 2em;
    margin: 0 0 10px 0;
    transition: all 1s;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-color: black; */
    width: 90%;
    height: 70%;
    max-width: 490px;
    max-height: 520px;
    transition: all 1s;
}

#card-grid {
    display: grid;
    grid: repeat(6, 1fr) / repeat(5, 1fr);
    grid-gap: 10px 10px;
    perspective: 1000px;
}

button {
    background-color: rgb(255, 132, 0);
    color: white;
    font-family: "Oxygen", sans-serif;
    font-size: 1.3em;
    border-radius: 10px;
    padding: 10px;
    border: none;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vw;
    width: 10vw;
    min-width: 60px;
    min-height: 60px;
    max-width: 80px;
    max-height: 80px;
    transition: all 0.4s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    border: 2px solid grey;
}

.card-front {
    background-color: white;
}

.card-back {
    background-color: white;
    transform: rotateY(180deg);
}

.card-image {
    width: 80%;
}

.flip {
	transform: rotateY(-180deg);
    /* -webkit-animation: flip 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
	        animation: flip 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both; */
}

.invisible {
    visibility: hidden;
}

.transparent {
    opacity: 0;
}

.untouchable {
    pointer-events: none;
}

.burning::after {
    content: "";
    position: absolute;
    height: 10vw;
    width: 10vw;
    min-width: 60px;
    min-height: 60px;
    max-width: 80px;
    max-height: 80px;
    background-image: url("images/fire.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* animation: flicker 1s infinite forward both; */
    animation: flicker 1s ease-in-out infinite;
}

@keyframes flicker {
    0% {
        transform: scale(1);
    }
    50%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}

/* @-webkit-keyframes flip {
    0% {
      -webkit-transform: rotateY(0);
              transform: rotateY(0);
    }
    100% {
      -webkit-transform: rotateY(-180deg);
              transform: rotateY(-180deg);
    }
  }
  @keyframes flip {
    0% {
      -webkit-transform: rotateY(0);
              transform: rotateY(0);
    }
    100% {
      -webkit-transform: rotateY(-180deg);
              transform: rotateY(-180deg);
    }
  } */
  
