@import "https://fonts.googleapis.com/css?family=Press%20Start%202P";

* {
  margin: 0;
  padding: 0;
}

html, body {
  justify-content:center;
  align-items:center;
  text-align: center;
  font-family: 'Press Start 2P';
  font-size: 1rem;
  line-height: 2;
  height: 100%;
  text-transform: uppercase;
  background: black;
  flex-direction: column;
}

.card{
    position: relative;
    height: 500px;
    width: 250px;
    background: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: 1s;
    border: 1px solid white;
    margin: 15px;
}


.card-face{
    position: absolute;
    heigth: 100%;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


#card-front{
   background-size: cover;
}

#card-back{
    background-size: cover;
    transform: rotateY(180deg);
}

.card.flip{
    transform: rotateY(180deg);
}

.warning{
    background: red;
}

.caution{
    background: orange;
}
