html {
  background: url('https://sun9-32.userapi.com/c858124/v858124284/11f0b2/YOx_AlvG-9M.jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 30px;
}
h2 {
  font-family: 'FuturaPTWebDemi', "Helvetica Neue", Arial, sans-serif;
}
body {
  display: flex;
  justify-content: center;
  color:#292F36;
}

.wrapper {
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  max-width: 880px;
  perspective: 1000px;
}

.card {
  width: 140px;
  height: 190px;
  position: relative;
  border: solid 1px;
  border-radius: 5px;
  transform-style: preserve-3d;
  transition: 0.5s;
  perspective: 1000px;
}

.face, .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  backface-visibility: hidden;
}

.face {
  padding: 0;
  background: url('https://document-export.canva.com/DADtmCp-e9s/8/thumbnail/0001-4342011569.png') center no-repeat;
}

.back {
  text-align: center;
  padding: 0;
  min-width: 140px;
  transform: rotateY(180deg);
}


.flipped {
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  transition: 0.5s;
}

.congrats {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font: 2em 'FuturaPTWebDemi',"Helvetica Neue",Arial,sans-serif;
    transition: .5s;
}

.curtain {
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: white;
  opacity: 0.8;
  z-index: 5;
}

.congrats .text { 
  text-align: center;
  background-color: white;
  padding: 50px 100px;
  border-radius: 15px;
  opacity: 1;
  z-index: 10;
}

.congrats button {  
  margin-top: 10vh;
}

button {
  padding: 15px 25px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  outline: none;
  color: #fff;
  background-color: #4ECDC4;
  border: none;
  border-radius: 15px;
  box-shadow: 0 7px #999;
}

button:hover {background-color: #FA198B}

button:active {
  background-color: #005A95;
  box-shadow: 0 3px #666;
  transform: translateY(4px);
}