@font-face {
  font-family: "AvenirNextLTPro-Bold";
  src: url("webfonts/372B1D_0_0.eot");
  src: url("webfonts/372B1D_0_0.eot?#iefix") format("embedded-opentype"),
    url("webfonts/372B1D_0_0.woff2") format("woff2"),
    url("webfonts/372B1D_0_0.woff") format("woff"),
    url("webfonts/372B1D_0_0.ttf") format("truetype");
}
@font-face {
  font-family: "AvenirNextLTPro-Regular";
  src: url("webfonts/372B1D_A_0.eot");
  src: url("webfonts/372B1D_A_0.eot?#iefix") format("embedded-opentype"),
    url("webfonts/372B1D_A_0.woff2") format("woff2"),
    url("webfonts/372B1D_A_0.woff") format("woff"),
    url("webfonts/372B1D_A_0.ttf") format("truetype");
}

body {
  background-color: #eeeae5;
  font-family: AvenirNextLTPro-Regular, "Gill Sans", "Gill Sans MT",
    "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
  font-weight: normal;
  padding: 1rem;
}
h1 {
  font-family: AvenirNextLTPro-Bold, "Gill Sans", "Gill Sans MT", "Myriad Pro",
    "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
  font-weight: normal;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
b {
  font-family: AvenirNextLTPro-Bold, "Gill Sans", "Gill Sans MT", "Myriad Pro",
    "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
  font-weight: normal;
  letter-spacing: -0.025em;
}
input:not([type="radio"]),
select {
  display: block;
  width: calc(100% - 1em);
  padding: 0.75em;
  font-size: 1.25em;
  margin: 0.5rem 0;
  box-sizing: border-box;
}
input[type="submit"] {
  width: calc(100% - 1em);
}
input,
select,
textarea {
  border-radius: 0;
  font-family: AvenirNextLTPro-Regular, "Gill Sans", "Gill Sans MT",
    "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
  background-color: rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5em;
  -webkit-appearance: none;
  outline: none;
  position: relative;
  border: 0.2em solid transparent;
  color: #333;
}
input[type="radio"] {
  -webkit-appearance: radio;
  appearance: radio;
}
form :focus {
  border: 0.2em solid #333;
}

input[type="submit"] {
  background-color: #333;
  color: white !important;
  font-family: AvenirNextLTPro-Bold, "Gill Sans", "Gill Sans MT", "Myriad Pro",
    "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
  font-weight: normal;
  letter-spacing: -0.025em;
}

h1,
p {
  text-align: center;
  position: relative;
  z-index: 99999999;
  pointer-events: none;
}

body {
  margin: 0;
  padding: 0;
  background: #eeeae5;
  height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.cards {
  display: grid;
  place-items: center;
  min-height: 20em;
  height: 70vmin;
  width: 100vw;
  perspective: 600px;
}

.card {
  box-shadow: 0 0 0.3em rgba(0, 0, 0, 0.25);
  width: 35vmin;
  height: 50vmin;
  min-width: 12em;
  min-height: 16em;
  max-width: 30em;
  max-height: 45em;
  background-color: #efefef;
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0em) scale(1) rotateX(180deg)
    rotateZ(180deg);
  overflow: hidden;
  transition: all 2s ease-in-out;
}

canvas {
  height: 160%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  backface-visibility: hidden;
  background-color: white;
}

.card:hover {
  transition: box-shadow 0.5s;
  box-shadow: 0.5em 0.5em 2em rgba(0, 0, 0, 0.125) !important;
}

.card.active {
  transition: all 2s ease-in-out !important;
  /* animation: swap 1s ease-in-out 0s 1;*/
  transform: translate3d(-50%, -50%, 5em) scale(1) rotateX(8deg) rotateZ(-5deg) !important;
  left: 50% !important;
  top: 50% !important;
  box-shadow: 0 3em 5em rgba(0, 0, 0, 0.4);
  z-index: 99999;
}

.card.active * {
  backface-visibility: hidden;
}

.card a {
  position: absolute;
  bottom: 1em;
  right: 1em;
  z-index: 999;
}
