:root{
  --p:20px;
  --thumbW:40vh;
  --thumbH:40vh;
}
body{
  background:#111;
  transition: all 3s;
  overflow-x:hidden;
  display: flex;
  justify-content: center;
  align-content: center;
  height: 100vh;
  align-items: center;
}
body.has-back{
  background-color: #000;
}

main {
  width:100vw;
  height:100vh;
  perspective: 100vw;
  perspective-origin: 50vw 50vh;
}
.card {
  font-family:"Wremena", 'Times New Roman', Times, serif;
  transition: all 3s;
  transform-style: preserve-3d;
  position: absolute;
  left:calc(50% - var(--thumbW) / 2);
  top:calc(50vh - var(--thumbH) / 2);
  font-size:1.2em;
  width:var(--thumbW);
  height:var(--thumbH);
}
.card.is-flipped {
  rotate: y 180deg;
  z-index: 3;
}
.card-face:hover{
  box-shadow:0 0 20px black;
}

.card-face {
  transition: all .2s;
  border-radius:20px;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.card-back {
  cursor: pointer;
  background-image: url(../img/sparkles_front.svg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-front {
  background-image: url(../img/sparkles_back.svg);
  rotate:y 180deg;
  display: flex;
  justify-content: center;
  align-items: center;
}
