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

body {
  height: 100vh;
  display: flex;
  background: #000000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  grid-gap: 2rem;
}

section {
  display: grid;
  grid-template-rows: repeat(4, 8rem);
  grid-template-columns: repeat(4, 8rem);
  perspective: 800px;
  grid-gap: 2rem;
}

.container{
  display: flex;
  grid-gap: 5rem;
}

button{
  color: rgb(0, 0, 0);
  background-color: rgba(98, 0, 255, 0.836);
  border: none;
  border-radius: 8px;
  width: 4rem;
  font-size: 1.2rem;
  transition-duration: 0.4s;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.6rem;
}

button:hover {
  background-color: rgb(255, 0, 0);
  color: white;
}

h2{
  color: rgb(98, 0, 255);
  font-family: 'Times New Roman', Times, serif;
}

.card {
  transform-style: preserve-3d;
  transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: rgba(98, 0, 255, 0.575) -10px 10px 13px,
   rgb(98, 0, 255) 0px 0px 12px;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.cardfront,
.cardback {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 10px;
}

.cardback {
  background: rgb(0, 0, 0);
  backface-visibility: hidden;
}

.flipCard {
  transform: rotateY(180deg);
}