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

.main {
  box-sizing: content-box;
  width: 26.87em;
  padding: 1em 1em;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  margin-top: 6em;
  margin-bottom: 0em;
}

.grid {
  position: relative;
  width: 100%;
  display: grid;
  gap: 0.25em;
}

.stats {
  text-align: center;
  margin-bottom: 1.2em;
  font-size: 20px;
  color: #A0521E;
  font-family: 'Bad Script', cursive;
}

.stats span {
  font-weight: 600;
}

.block-container {
  position: relative;
  width: 6.25em;
  height: 6.25em;
  cursor: pointer;
}

.block-before, .block-after {
  position: absolute;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s ease-out;
  backface-visibility: hidden;
}

.block-before {
  z-index: -1;
  background: rgb(0, 0, 0, 0.3);
  font-size: 2.8em;
  font-weight: 600;
}

.block-after {
  transform: rotateY(180deg);
}

.block-container.flipped .block-before {
  transform: rotateY(180deg);
}

.block-container.flipped .block-after {
  transform: rotateY(0deg);
}

.block-container:hover {
  transform: scale(1.1);
  transition: transform 150ms ease-in;
}

.controls {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  top: 0;
}

button {
  background-color: transparent;
  border: none;
  padding: 1em 1.5em;
  cursor: pointer;
}

button:hover {
  transform: scale(0.9);
  transition: transform 150ms ease-in;
}

#stop {
 
  font-size: 1.1em;
  display: block;
  margin: 1.1em auto 0 auto;
}

.controls button {
  font-size: 1.3em;
  border-color: transparent;
}

.hide {
  display: none;
}

#result h4, #result h2 {
text-transform: uppercase;
font-size: 70px;
margin-right: 11em;
padding-left: 1em;
 background-image: linear-gradient(
   -225deg,
   #231557 0%,
   #44107a 29%,
   #ff1361 67%,
   #fff800 100%
 );
 background-size: 200% auto;
 background-clip: text;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 animation: text 2s linear infinite;
 display: inline-block;

}
@keyframes text {
 to {
   background-position: 200% center;
 }
}

video {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
  }

.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0
}


