body {
  background: linear-gradient(0deg, #6139a5 0%, #4570df 100%);
  height: 90vh;
  margin: 0;
  padding: 0;
}
main {
  margin-top: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#instructions {
  position: absolute;
  left: 150px;
  top: 150px;
  width: 20vw;
  font-family: cursive;
  font-size: large;
}
.center {
  display: flex;
  justify-content: space-between;
}
.big-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 50px;
}

#game-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

#game-board {
  display: grid;
  grid-template-columns: repeat(10, 30px); /* 10 багана */
  grid-template-rows: repeat(20, 30px); /* 20 мөр */
  gap: 1px;
  background-color: #333;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

#next-shape-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#next-shape {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  grid-template-rows: repeat(4, 30px);
  gap: 1px;
  background-color: #333;
  padding: 5px;
}

.cell {
  width: 30px;
  height: 30px;
  background-color: #444;
}

.cell.active {
  background-color: var(--color, #f39c12); /* Санамсаргүй өнгө */
}

.cell.fixed {
  background-color: var(--color, #e74c3c); /* Санамсаргүй өнгө хадгалах */
}

.cell.shadow {
  background-color: rgba(243, 156, 18, 0.3);
}

#score-container {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-top: 10px;
  text-align: center;
  margin: 10px;
}
button {
  align-items: center;
  appearance: none;
  background-image: radial-gradient(
    100% 100% at 100% 0,
    #5adaff 0,
    #5468ff 100%
  );
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, rgba(58, 65, 111, 0.5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  /* transition: box-shadow 0.15s, transform 0.15s; */
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 18px;
}

button:focus {
  box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
}

button:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
  transform: translateY(-2px);
}

button:active {
  box-shadow: #3c4fe0 0 3px 7px inset;
  transform: translateY(2px);
}
#hold-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hold-shape {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  grid-template-rows: repeat(4, 30px);
  gap: 1px;
  background-color: #333;
  padding: 5px;
}

.hold-cell {
  width: 30px;
  height: 30px;
  background-color: #444;
}

.hold-cell.active {
  background-color: var(--color, #f39c12);
}
