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

body {
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  font-family: 'Bebas Neue', cursive;
  color: #fff;
  font-size: 64px;
}

main {
  display: flex;
  height: 90vh;
  justify-content: space-evenly;
}

.state {
  display: grid;
  grid-template-columns: 0.1fr 0.1fr;
  grid-template-rows: 0.1fr 0.1fr;
  align-content: center;
  row-gap: 200px;
}

.moves {
  justify-self: center;
}

.high-score__table {
  width: 280px;
  padding-top: 90px;
}

.high-score {
  display: flex;
  justify-content: center;
}

.high-score__items {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 35px;
}

.game {
  width: 640px;
  height: 640px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1000px;
  align-self: center;
}

.game__card {
  position: relative;
  width: calc(20% - 10px);
  height: calc(25% - 10px);
  margin: 5px;
  transform-style: preserve-3d;
  transform: scale(1);
  transition: transform .5s;
  cursor: pointer;
}

.game__card:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

.game__back-card,
.game__front-card {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 5px;
  background: #203aad;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
}

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

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

footer {
  background-color: #000;
  width: 100%;
  position: absolute;
  display: grid;
  grid-template-columns: 0.1fr 1fr 0.1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
  padding: 7px 50px 7px 50px;
  gap: 20px;
  bottom: 0;
  left: 0;
  right: 0;
}

.github {
  color: #fff;
  background-image: url('./assets/icons/github.svg');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 35px;
  height: 35px;
  filter: invert(1);
}

.year {
  color: #fff;
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
}

.rsschool-item {
  background-image: url('./assets/icons/rs_school.svg');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 110px;
  height: 80px;
  filter: invert(1);
}

.start__modal {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

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

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 70%;
  padding: 5px;
}

.result {
  font-size: 54px;
}

.btn {
  font-size: 40px;
  cursor: pointer;
  transition: 0.5s;
}

.btn:hover,
.btn:focus {
  color: #5cf;
}