@font-face {
  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
}

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

html {
  height: 100%;
  width: 100%;
  padding: 0;
}

body {
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  padding: 0;
}

.memo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 60%;
  min-height: 90vh;
  margin: 0;
  background-color: #ccf3f0;
  box-shadow: 0px 3px 15px #00000029 inset, 0px 7px 15px #00000029;
  border: 11px solid #ffffff;
  border-radius: 30px;
  color: #042b60;
  font-weight: bold;
  background-image: url(../assets/bg1.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.memo-board-inner {
  margin: 20px auto;
  width: 80%;
  height: 80%;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.memo-board {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.button_return {
  position: absolute;
  right: 30px;
  top: 30px;
  background: none;
  border: none;
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.button_return > a > i {
  font-size: 30px;
  color: #042b60;
}

.memo-tile {
  cursor: pointer;
  background-image: url('../assets/game-memocardback.svg');
  aspect-ratio: 1;
  min-height: 140px;
  min-width: 140px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 30px;
}

.memo-tile:hover {
  transform: scale(1.15);
}

.memo_completed_overlay {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.memo_completed_popup {
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00c0b5;
  box-shadow: 0px 3px 39px #00000029;
  border: 11px solid #ffffff;
  padding: 35px 20px;
  border-radius: 50px;
}

.memo_completed_popup > span {
  color: #fff;
  font: normal normal normal 2.5rem Paytone One;
  text-align: center;
}

.button_next {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 35px;
  text-align: center;
  font: 28px Paytone One;
  color: #ffffff;
  background: #042b60;
  box-shadow: 0px 3px 14px #00000029;
  border: 11px solid #ffffff;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.button_next > a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .memo {
    width: 100%;
    min-height: 100%;
    padding: 10px;
  }

  .memo-board-inner {
    margin-top: 80px;
    position: relative;
    overflow: visible;
    width: 95%;
    min-height: 100%;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    grid-gap: 10px;
    grid-template-rows: repeat(7, 1fr);
  }

  .memo_completed_popup {
    width: 90%;
  }
}
