* {
  font-family: sans-serif;
}

main {
  font-weight: bold;
  line-height: 50px;
  display: grid;
  grid-template-columns: 400px 400px;
  justify-content: center;
  user-select: none;
}

#grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50px 50px 50px 50px 50px 50px 50px;
  grid-template-rows: 50px 50px 50px 50px 50px 50px 50px;
  width: 350px;
  padding: 10px;
  justify-content: center;
  background-image: url(https://img.freepik.com/premium-photo/seamless-wood-texture-background_105762-34.jpg);
  border: solid 3px black;
  border-radius: 10px;
}

#board {
  grid-column: 1;
  margin: 0 auto;
  width: 400px;
}

#decoration {
  position: relative;
  float: right;
  bottom: 60px;
  right: 30px;
  font-size: x-large;
  font-family: 'Comic sans ms';
  width: auto;
  opacity: 0.5;
}

.block {
  text-align: center;
  width: 50px;
  height: 50px;
  border: solid 1px black;
  box-sizing: border-box;
  color: #5e0f0fd4;
  background-color: #fc919187;
}

.oldAnswerLine {
  padding-left: 10px;
  font-weight: normal;
}

.filled {
  box-sizing: border-box;
  filter: grayscale(80%) brightness(0.8);
}

.shape {
  background-color: #84222270;
  color: transparent;
  box-sizing: border-box;
  border: none;
  filter: brightness(0.8);
}

.borderBit {
  width: 50px;
  height: 50px;
}

#Column1 {
  grid-column: 1;
}

#Column2 {
  grid-column: 2;
}

#Column3 {
  grid-column: 3;
}

#Column4 {
  grid-column: 4;
}

#Column5 {
  grid-column: 5;
}

#Column6 {
  grid-column: 6;
}

#Column7 {
  grid-column: 7;
}

.today {
  filter: grayscale(50%) brightness(0.8);
}

.today.shape {
  filter: grayscale(90%) brightness(1);
  color: black;
  border: dotted 2px white;
}

.topLeft {
  border-radius: 5px 0 0 0;
  box-shadow: -2px -2px black;
}

.topRight {
  border-radius: 0 5px 0 0;
  box-shadow: 2px -2px black;
}

.botLeft {
  border-radius: 0 0 0 5px;
  box-shadow: -2px 2px black;
}

.botRight {
  border-radius: 0 0 5px 0;
  box-shadow: 2px 2px black;
}

.top {
  box-shadow: 0 -2px black;
}

.bottom {
  box-shadow: 0 2px black;
}

.left {
  box-shadow: -2px 0 black;
}

.right {
  box-shadow: 2px 0 0 black;
}

.blockTop {
  border-top: solid 2px brown;
}

.blockBottom {
  border-bottom: solid 2px brown;
}

.blockLeft {
  border-left: solid 2px brown;
}

.blockRight {
  border-right: solid 2px brown;
}

#remaining {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 400px;
  grid-column: 2;
  align-content: center;
}

#remaining div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

#remText {
  grid-column: 1 / 2;
  grid-row: 1;
}

#victory {
  opacity: 0;
}

#victoryIMG {
  opacity: 0;
}

form {
  display: flex;
  align-items: center;
}

input[type=text] {
  line-height: 30px;
  height: 30px;
  margin: 5px;
  padding-left: 10px;
}

input[type=button] {
  margin: 5px;
  height: 36px;
}

@media (max-width: 800px) {
  main {
    display: flex;
    flex-wrap: wrap;
  }

  #board {
    height: 360px;
  }

  #remaining {
    height: 270px;
  }

  #remText {
    margin: 0;
  }

  #victory {
    margin-top: 15px;
  }
}

div#navText {
  line-height: 30px;
  margin: 0 auto;
  width: fit-content;
  margin-bottom: 20px;
}

#linkDiv {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
  user-select: none;
}

#lock-move {
  padding: 5px;
  width: fit-content;
  border-radius: 5px;
  background-color: white;
  color: black;
}

#lock-move.active {
  background-color: blueviolet;
  color: white;
}

.locked {
  touch-action: none;
}

.buttonHolder {
  width: 100%;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
}