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

body {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #edebf0;
}

.game {
  width: 640px;
  height: 500px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  perspective: 1000px;
  margin-top: 40px;

}

.card {
  width: calc(25% - 10px);
  height: calc(33.333% - 10px);
  margin: 5px;
  position: relative;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform .5s;
}

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

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

.front,
.back {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  border-radius: 5px;
  background: #7e5ead;
  backface-visibility: hidden;
}

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

a {
  text-decoration: none;
}

.year, .school {
  list-style: none;
  text-decoration: none;
  color: #7e5ead;
  font-size: 40px;
  font-family: 'Forum', sans-serif;
}

.footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

footer {
  padding-top: 20px;
  border-top: 3px solid #7e5ead;
  position: absolute;
  bottom: 20px;
  width: 95%;
  left: 0;
  right: 0;
  margin: 0 auto;

}

.result {
  color: #7e5ead;
  font-size: 30px;
  font-family: 'Forum', sans-serif;
  margin-bottom: 30px;
  padding: 20px;
  border: 2px solid #7e5ead;
}

button {
  width: 300px;
  height: 50px;
  text-decoration: none;
  outline: none;
  border: none;
  background-color: #7e5ead;
  color: black;
  font-size: 20px;
  border-radius: 4px;
  cursor: pointer;
}

.button {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  margin-top: 40px;
}

.button:hover {
  background-color: purple;
  transition: 0.5s;
}


.pop_up{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 3;
  display: none;
}

.pop_up.open {
  display: block;
}

.pop_up_container{
  display: flex;
  width: 100%;
  height: 100%;
}

.pop_up_body {
  position: relative;
  margin: auto;
  font-family: 'Inter';
  line-height: 20px;
  letter-spacing: 2%;
  background-color: white;
  padding: 50px;
  border-radius: 10px;
}

/* main{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: ;
} */