* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: genty;
  src: url("fonts/genty/GentyDemo-Regular.ttf");
}

@font-face {
  font-family: quicksand;
  src: url("fonts/quicksand/Quicksand-SemiBold.ttf");
}

body {
  height: 90vh;
  display: flex;
  flex-direction: column;
  background: #000000;
}

.dimbg{
 

}

header {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin:25px auto;
}

footer {
  display: flex;
  background-color: #93278F;
  font-family: quicksand;
  color:#ffffff;
  padding: 25px 20px;
}

footer a {
  color:#ffffff;
  text-decoration: none;
}
h1 {
  color: #ffffff;
  font-family: genty;
  font-size: 3rem;
}

h2 {
  color: #6dc941;
  font-family: quicksand;
  font-size: 2rem;
  line-height: 10px;
}

.memory-game {
  width:840px;
  margin:20px auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  perspective: 1000px;
}

.memory-card {
  width: 200px;
  height: 300px;
  margin: 5px;
  position: relative;
  box-shadow: 1px 1px 1px rgba(0,0,0,.3);
  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform .5s;
}

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

.memory-card:active {
  transform: scale(0.97);
  transition: transform .2s;
}

.front-face,
.back-face {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}

.front-face {
  transform: rotateY(180deg);
}

#you-win{
  position: absolute;
  left: 0; 
  right: 0; 
  margin-left: auto; 
  margin-right: auto; 
  z-index: 999;
  text-align: center;
}

#you-win h2 {
  text-align: center;
    background-color: #ff5734;
    color: #FFF;
    padding: 23px !important;
    font-size: 1.5em !important;
    border-radius: 10px;
}

#you-win p{
  text-align: center;
  font-family: quicksand;
}


.emburlogo{
  text-align: center;
    width: 47%;
    margin: 0 auto;
    display: block;

}

#mc_embed_signup{left: 0; 
  right: 0; 
  margin-left: auto; 
  margin-right: auto; 
  background:#fff; border:2px solid #6dc941;font:14px Helvetica,Arial,sans-serif; width: 320px; border-radius: 10px; padding: 10px 0;
}

#mc_embed_signup .button {
  background-color: #ff5734 !important;
}

.pop{
  animation: pop 0.3s linear 1;
  background: rgba(0, 0, 0, 0.7);
  height: 100vh;
}


@keyframes pop{
  50%  {transform: scale(1.2);}
}

.hidden {
  display: none;
}



@media (min-width: 390px) and (max-width: 810px){
  .memory-game {
    width:320px;
  }
}