body, html {
  transition: 1s ease-in-out;
  background: url(background.png) fixed;
  -webkit-background-size: cover;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
}

.hidden {
  display: none;
}

.element_down {
  position: relative;
  top: 30px;
}

.element_down1 {
  position: absolute;
  left: 110px;
  top: 60px;
}

.square {
  float: left;
  width: 80px;
  height: 80px;
}

.white_square {
  background-color: #F0D2B4;
}

.black_square {
  background-color: #BA7A3A;
}

.clear_float {
  clear: both;
}

.table {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  margin: 0;
}

.score {
  background-color: #1aaaad;
  color: white;
  display: none;
  font-size: 45px;
  font-weight: 900;
  height: 150px;
  border-radius: 10%;
  left: 0px;
  letter-spacing: 1px;
  margin: 0 auto;
  padding-top: 30px;
  overflow: hidden;
  position: absolute;
  right: 0px;
  text-align: center;
  top: 15%;
  width: 200px;
  z-index: 8;
  font-family: Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif;
  -webkit-transition: 5s ease-in-out;
  -moz-transition: 5s ease-in-out;
  -o-transition: 5s ease-in-out;
  transition: 5s ease-in-out;
}

.checker {
  top: 10px;
  left: 10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  position: absolute;
  border: 4px solid white;
  cursor: pointer;
}

.white_checker {
  background: #CC0000;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.black_checker {
  background: #00001F;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.black_background {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 7;
  display: none;
}

.Button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  text-decoration: none;
  font-size: small;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  border-radius: 6px;
  border: none;
  color: #fff;
  background: linear-gradient(180deg, #4B91F7 0%, #367AF6 100%);
  background-origin: border-box;
  box-shadow: 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.Button:hover {
  box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2), 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
  outline: 0;
}

.Button:active {
  box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.737), 0px 0.5px 1.5px rgba(76, 136, 248, 0.648), 0px 0px 0px 3.5px rgba(82, 124, 215, 0.697);
}

section {
  float: left;
  display: block;
  margin: 10px;
}

@media only screen and (max-width: 640px) {
  .table {
    width: 400px;
    height: 400px;
  }

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

  .checker {
    width: 32px;
    height: 32px;
  }

  .element_down {
    position: absolute;
    top: -40px;
    left: 10px;
  }

  .element_down1 {
    position: absolute;
    top: -40px;
    left: 100px;
  }
}

@media only screen and (max-width: 400px) {
  .table {
    width: 300px;
    height: 300px;
  }

  .square {
    width: 37.5px;
    height: 37.5px;
  }

  .checker {
    width: 24px;
    height: 24px;
  }

  .element_down {
    top: -35px;
    left: 5px;
  }

  .element_down1 {
    top: -35px;
    left: 80px;
  }
}
