.container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
  height: 100%;
}
/* BOARD */

#board {
  width: 40vw;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.board-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.square {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.black {
  background-color: #f95150;
}

.white {
  background-color: #fdfaf9;
}

.selected {
  /* background-color: #eb4242; */
  background-color: hsla(120, 100%, 50%, 0.5);
}

.square img {
  pointer-events: none;
  width: 90%;
  height: 90%;
}

/* PROMOTION POPUP */

.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.promotion-popup-content {
  border-radius: 5px;
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
}

#piece-options {
  display: flex;
  justify-content: center;
  margin: 10px;
}

.promotion-option {
  width: 60px;
  height: 60px;
  margin: 0 10px;
  cursor: pointer;
}

.gameover-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 5px;
  background-color: #ffffff;
  padding: 20px;
  width: 20%;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu;
}

.gameover-popup-content p {
  margin: 0;
}

.gameover-popup-button {
  padding: 10px 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  background-color: #f0f0f0;
}

.gameover-popup-button:hover {
  background-color: #e2e2e2;
}

/* TIMER */

.timer {
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 5px;
  background-color: #f0f0f0;
}

/* MENU */

.menu {
  width: 15vw;
  padding: 1rem;
  background-color: #f0f0f0;
  height: calc(40vw - 2rem);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.menu-button {
  padding: 10px 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  background-color: #ffffff;
}

.menu-button:hover {
  background-color: #e2e2e2;
}

#move-history {
  width: calc(100% - 2rem);
  height: 100%;
  background-color: white;
  border-radius: 5px;
  padding: 1rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.menu-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.popup-content button {
  /* background-color: #04AA6D; Green */
  border: none;

  border-radius: 5px;
  padding: 1rem 2rem;
  margin: 1rem;
  text-align: center;
  display: inline-block;
  font-size: 20px;
}

.confirm-btn {
  background-color: #f95150;
  color: #ffffff;
}

.cancel-btb {
  background-color: #aaaaaa;
  color: #3e3e3e;
}
