body {
  display: grid;
  place-items: center;
  background: rgb(45, 81, 119);
  text-align: center;
  margin: auto;
  max-width: 60vw;
}

h1,
h2 {
  text-align: center;
  margin: 1.25rem 0;
  color: #CFCA43;
  font-family: "Press Start 2P", system-ui;
}

#board {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  grid-template-columns: repeat(7, 1fr);
  padding: 1rem;
  background-color: #18293a;
  border-radius: 5%;
  margin: auto;
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes growIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.tile {
  height: 3.5rem;
  width: 3.5rem;
  background-color: whitesmoke;
  border-radius: 50%;
  position: relative;
  border: 0.06rem solid gray;
  margin: 0.2rem;
  transition: background-color 0.3s ease;
  transform-origin: center;
}

.redPiece {
  background-color: rgb(184, 10, 10);
  animation: growIn 0.3s ease-out;
}

.yellowPiece {
  background-color: rgb(235, 235, 52);
  animation: growIn 0.3s ease-out;
}

.button {
  cursor: pointer;
  text-decoration: none;
  outline: none;
  font-family: "Press Start 2P", cursive;
  font-size: 1.25rem;
  line-height: 1.5em;
  letter-spacing: 0.1em;
  text-shadow: 0.125rem 0.06rem #0066a2, -0.125rem 0.125rem 0.06rem #0066a2, 0.125rem -0.125rem 0.06rem #0066a2, -0.125rem -0.125rem 0.06rem #0066a2, 0rem 0.125rem 0.06rem #0066a2, 0rem -0.125 0.06rem #0066a2, 0rem 0.25rem 0.06rem #004a87, 0.125rem 0.25rem 0.06rem #004a87, -0.125rem 0.25rem 0.06rem #004a87;
  border: none;
  margin: 1.56rem 1.56rem 2.18rem;
  background: repeating-linear-gradient(45deg, #215389, #215389 0.31rem, #093550 0.31rem, #093550 0.625rem);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.93rem 0.625rem;
  box-shadow: 0 0.375rem 0 #266b91, 0 0.5rem 0.063rem 0.063rem rgba(0, 0, 0, 0.3), 0 0.625rem 0 0.313rem #12517d, 0 0.75rem 0 0.313rem #1a6b9a, 0rem 0.938rem 0rem 0.313rem #0c405e, 0 0.938rem 0.06rem 0.375rem rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}
.button:hover {
  position: relative;
  top: 0.125rem;
  box-shadow: 0 0.25rem 0 #CFCA43, 0 0.375rem 0.063rem 0.063rem rgba(0, 0, 0, 0.3), 0 0.5rem 0 0.313rem #CFCA43, 0 0.625rem 0 0.313rem #1a6b9a, 0 0.813rem 0 0.313rem #0c405e, 0 0.813rem 0.063rem 0.375rem rgba(0, 0, 0, 0.3);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay--visible {
  visibility: visible;
  opacity: 1;
}
.overlay__content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}
.overlay__message {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}
.overlay__button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #0066a2;
  color: white;
  border: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}
.overlay__button:hover {
  background-color: #004a87;
}

.overlay--hidden {
  display: none;
}

@media screen and (max-width: 375px) {
  #board {
    transform: scale(0.7);
    width: 300px;
    height: 470px;
  }
  .tile {
    padding-bottom: 90%;
    height: 2rem;
    width: 2rem;
  }
}
@media only screen and (min-width: 376px) and (max-width: 576px) {
  #board {
    transform: scale(0.9);
    width: 300px;
    height: 470px;
  }
  .tile {
    padding-bottom: 90%;
    height: 2rem;
    width: 2rem;
  }
}
@media only screen and (min-width: 577px) and (max-width: 768px) {
  #board {
    width: 400px;
    height: 445px;
    gap: 0.313rem;
    padding: 10px;
  }
  .tile {
    height: 3rem;
    width: 2.9rem;
    padding-bottom: 25%;
  }
}
@media only screen and (min-width: 769px) and (max-width: 992px) {
  #board {
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
    padding: 0.938rem;
  }
  .tile {
    height: 4rem;
    width: 3.5rem;
    padding-bottom: 35%;
    /* Maintain perfect square for larger screens */
  }
}/*# sourceMappingURL=style.css.map */