*{
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
:root{
  --directionX: 1;
  --directionY: 0;
}
body {
  background-image: url("./background.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
}

#cells-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
#cells {
  position: relative;
  display: flex;
  flex-flow: column;
  height: 875px;
  width: 875px;
  left: -300px;
  justify-content: center;
  align-items: center;
}
.row {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.cell{
  position: relative;
  display: flex;
  margin: 25px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur( 4px );
  background-color: #fff1;
  border: 1px solid #fff4;
  border-bottom: 1px solid #ccc4;
  border-right: 1px solid #ccc4;
  border-radius: 50%;
  height: 70px;
  width: 70px;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff;
  text-shadow: 2px 2px 7px #0006;
  box-shadow: 7px 7px 15px #4772;
  transition: all 0.5s;
}
.useable {
  background-color: #fff4;
  border-color: #fff6;
  border-bottom-color: #ccc6;
  border-right-color: #ccc6;
}
.powing{
  background-color: #af85;
  border-color: #efd6;
  border-bottom-color: #bc96;
  border-right-color: #bc96;
}

#director-container {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
#directors {
  position: relative;
  height: 830px;
  width: 830px;
}
.director {
  position: absolute;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 1px solid #dfe6;
  border-bottom: 1px solid #9cb6;
  border-right: 1px solid #9cb6;
  background-color: #af85;
  box-shadow: 5px 5px 15px #4772;
  transition: all 0.5s;
}
.director:nth-child(1) {
  top:  calc(400px + -375px * var(--directionX));
  left: calc(100px +  375px * var(--directionY));
}
.director:nth-child(2) {
  top:  calc(400px +  375px * var(--directionY));
  left: calc(100px +  375px * var(--directionX));
}
.director:nth-child(3) {
  top:  calc(400px +  375px * var(--directionX));
  left: calc(100px + -375px * var(--directionY));
}

#scoreboard-container {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
#scoreboard {
  position: relative;
  height: 100px;
  width: 150px;
  left: 400px;
  border: 1px solid #fff4;
  border-right: 1px solid #ccc4;
  border-bottom: 1px solid #ccc4;
  background-color: #fff1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur( 4px );
  padding: 15px;
  padding-left: 30px;
  font-size: 20px;
  border-radius: 15px;
  font-size: 22px;
  color: #fff;
  text-shadow: 2px 2px 7px #0006;
  box-shadow: 7px 7px 15px #4772;
  display: flex;
  justify-content: center;
  flex-flow: column;
}

@media screen and (max-width: 1499px) {
  #cells {
    left: -150px;
  }
  .cell {
    height: 50px;
    width: 50px;
    font-size: 18px;
    margin: 20px;
  }
  .director:nth-child(1) {
    top:  calc(400px + -275px * var(--directionX));
    left: calc(250px +  275px * var(--directionY));
  }
  .director:nth-child(2) {
    top:  calc(400px +  275px * var(--directionY));
    left: calc(250px +  275px * var(--directionX));
  }
  .director:nth-child(3) {
    top:  calc(400px +  275px * var(--directionX));
    left: calc(250px + -275px * var(--directionY));
  }
  #scoreboard {
    left: 350px;
  }
}


@media screen and (max-width: 959px) {
  #cells {
    top: -100px;
    left: 0px;
  }
  .cell {
    height: 40px;
    width: 40px;
    font-size: 14px;
    margin: 10px;
  }
  #directors {
    position: relative;
    height: 430px;
    width: 430px;
  }
  .director:nth-child(1) {
    top:  calc(100px + -200px * var(--directionX));
    left: calc(200px +  200px * var(--directionY));
  }
  .director:nth-child(2) {
    top:  calc(100px +  200px * var(--directionY));
    left: calc(200px +  200px * var(--directionX));
  }
  .director:nth-child(3) {
    top:  calc(100px +  200px * var(--directionX));
    left: calc(200px + -200px * var(--directionY));
  }
  #scoreboard {
    left: 0px;
    top: 250px;
  }
}


@media screen and (max-width: 480px) {
  #cells {
    top: -100px;
    left: 0px;
  }
  .cell {
    height: 35px;
    width: 35px;
    font-size: 14px;
    margin: 7px;
  }
  #directors {
    position: relative;
    height: 320px;
    width: 320px;
  }
  .director {
    height: 20px;
    width: 20px;
  }
  .director:nth-child(1) {
    top:  calc( 50px + -150px * var(--directionX));
    left: calc(150px +  150px * var(--directionY));
  }
  .director:nth-child(2) {
    top:  calc( 50px +  150px * var(--directionY));
    left: calc(150px +  150px * var(--directionX));
  }
  .director:nth-child(3) {
    top:  calc( 50px +  150px * var(--directionX));
    left: calc(150px + -150px * var(--directionY));
  }
  #scoreboard {
    left: 0px;
    top: 200px;
  }
}