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

body {
  background: #faf8ef;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
}

.title {
  text-align: center;
  margin-right: 40%;
}

.header {
  color: #8d7f72;
  margin: 20px 0;
}

.score_cont {
  float: right;
  gap: 20px;
  margin-bottom: 10px;
}

.main-content {
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  display: flex;
}

.scoreboard {
  color: #fff;
  background: #bbada0;
  border-radius: 2%;
  height: 5%;
  padding: 2%;
}

.scoreboard h4 {
  background-color: #cdc1b4;
  margin: 0 2%;
  padding: 4%;
}

.current_score, .best_score {
  color: #fff;
  background-color: #8f7a66;
  border-radius: 5px;
  margin: 0 0 10px;
  padding: 8px;
}

.btn {
  color: #fff;
  cursor: pointer;
  background: #8f7a66;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px 20px;
}

.btn-board {
  display: none;
}

#new_game:hover {
  background: #9f8b79;
}

.game_cont {
  --cell-size: 15vmin;
  --cell-gap: 1vmin;
  grid-template-columns: repeat(4, var(--cell-size));
  grid-template-rows: repeat(4, var(--cell-size));
  gap: var(--cell-gap);
  display: grid;
  position: relative;
}

.cell {
  color: #333;
  background: #cdbfb4;
  border-radius: .5vmin;
  justify-content: center;
  align-items: center;
  font-size: 4vw;
  font-weight: bold;
  display: flex;
}

.tile {
  top: calc(var(--y) * (var(--cell-size)  + var(--cell-gap)));
  left: calc(var(--x) * (var(--cell-size)  + var(--cell-gap)));
  width: var(--cell-size);
  height: var(--cell-size);
  border-radius: .5vmin;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7.5vmin;
  font-weight: bold;
  transition: all .1s;
  animation: .2s show;
  display: flex;
  position: absolute;
}

@keyframes show {
  0% {
    opacity: .5;
    transform: scale(0);
  }
}

.merge {
  animation: .1s merge;
  animation-iteration-count: 1 ease-out;
}

@keyframes merge {
  100% {
    transform: scale(1);
  }
}

table {
  width: 100%;
}

th, td {
  color: #fff;
  text-align: left;
  background: #cdc1b4;
  padding: .8rem;
}

th {
  color: #fff;
  background: #bbada0;
}

footer {
  color: #fff;
  text-align: center;
  background: #8d7f72;
  width: 100%;
  margin-top: auto;
  padding: .5% 0;
}

.footer-content {
  justify-content: space-evenly;
  align-items: center;
  display: flex;
}

.footer-content ul {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
}

.footer-content ul li {
  margin: 0;
  padding: 0;
  font-size: smaller;
}

p {
  font-size: smaller;
}

#player_name {
  color: #8d7f72;
  background-color: #faf8f5;
  border-radius: 6%;
  width: 90%;
  margin-bottom: 8%;
  padding: 4%;
  font-size: .9rem;
}

.navbar {
  background-color: #8d7f72;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  display: flex;
  position: relative;
}

.menu {
  display: flex;
}

.menu li {
  padding-left: 30px;
  list-style-type: none;
}

.menu li a {
  text-align: center;
  transition: all .15s ease-in-out;
  display: inline-block;
  position: relative;
}

.menu li a:after {
  content: "";
  background-color: #fff;
  width: 0;
  height: 1px;
  transition: all .15s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
}

.menu li a:hover:after {
  width: 100%;
}

.open-menu, .close-menu {
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
  position: absolute;
}

.open-menu {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.close-menu {
  top: 20px;
  right: 20px;
}

#check {
  display: none;
}

@media (width <= 768px) {
  .menu {
    z-index: 100;
    background-color: #8d7f72;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100vh;
    transition: all .2s ease-in-out;
    position: fixed;
    top: 0;
    right: -100%;
  }

  .btn-board {
    display: block;
  }

  .scoreboard {
    display: none;
  }

  .showBoard {
    display: block;
  }

  .menu li {
    border-bottom: 1px solid #bbada0;
    width: 100%;
    margin-top: 40px;
  }

  .menu li a {
    padding: 8px;
  }

  .open-menu, .close-menu {
    display: block;
  }

  #check:checked ~ .menu {
    right: 0;
  }

  .main-content {
    flex-direction: column;
    align-items: center;
  }

  .scoreboard {
    width: 100%;
    margin-top: 20px;
  }

  #second_player_board, h6 {
    display: none;
  }

  #new_game, .score {
    font-size: 14px;
  }
}

.left {
  display: flex;
}

h6 {
  color: #fff;
  margin: auto auto auto -40%;
  font-size: 2rem;
}

img {
  width: 20%;
}

.logo {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.right {
  justify-content: space-around;
  align-items: flex-end;
  margin-right: 2%;
  display: flex;
}

.right a {
  color: #fff;
  margin-left: 5rem;
  text-decoration: none;
}

.score_cont {
  flex-direction: row;
  display: flex;
}

@media (width >= 769px) and (width <= 1024px) {
  .game_cont {
    width: 100%;
  }

  .score, #new_game {
    font-size: 1.6vw;
  }

  h6 {
    display: none;
  }

  img {
    width: 30%;
  }

  .menu a {
    font-size: smaller;
  }

  .menu ul {
    justify-content: space-evenly;
    align-items: center;
    display: flex;
  }

  .main-content {
    flex-direction: column;
    align-items: center;
  }
}

@media (width >= 1025px) {
  .game_cont {
    width: 100%;
  }

  .score, #new_game {
    font-size: .8vw;
  }

  img {
    width: 20%;
  }
}
/*# sourceMappingURL=index.b2625c6b.css.map */
