body {
  margin: 0;
  height: 100vh;
  background-image: url(./Media/mortal-kombat.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid black;
}

.tic-tac-toe {
  display: grid;
  grid-template-rows: repeat(3, 180px);
  grid-template-columns: repeat(3, 180px);
  justify-content: center;
  margin-top: 3%;
}

.box {
  border: 2px solid rgb(177, 14, 226, 0.5);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box-1,
.box-2,
.box-3 {
  border-top: 0;
}

.box-3,
.box-6,
.box-9 {
  border-right: 0;
}

.box-7,
.box-8,
.box-9 {
  border-bottom: 0;
}

.box-1,
.box-4,
.box-7 {
  border-left: 0;
}

.box:hover {
  transform: scale(1.02);
  border: 4px solid rgb(177, 14, 226);
}

span {
  color: rgb(177, 14, 226);
  font-size: 6.5em;
  text-shadow: 4px 3px black;
  font-family: "Rye", cursive;
}

#reset {
  display: block;
  margin: 40px auto;
  background-color: rgb(177, 14, 226);
  width: 300px;
  height: 30px;
  color: black;
  border: 2px solid black;
  cursor: pointer;
  font-size: 16px;
  font-family: "Rye", cursive;
  z-index: 2;
}

#reset:hover {
  transform: scale(1.1);
}

h1 {
  color: rgb(177, 14, 226);
  font-family: "Rye", cursive;
  font-size: 3vw;
}

#headers {
  display: flex;
  justify-content: space-between;
}

.title {
  text-shadow: 1px 1px white;
}

.player1 {
  margin-left: 20px;
  font-size: 3.2vw;
  text-shadow: 4px 4px rgb(56, 92, 250);
  color: white;
}

.player2 {
  margin-right: 20px;
  font-size: 3.2vw;
  text-shadow: 4px 4px black;
  color: white;
}

#modal1,
#modal2 {
  width: 100%;
  height: 100%;
  background-color: rgb(6, 38, 97, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  display: none;
}

video {
  width: 80vw;
  height: 80vw;
  display: block;
  margin: -20px auto;
}

#tie {
  position: absolute;
  font-size: 6vw;
  left: 0;
  right: 0;
  top: 40%;
  text-align: center;
  color: white;
  display: none;
  text-shadow: 4px 4px rgb(177, 14, 226);
  animation: right 6s linear infinite;
}

@keyframes right {
  0% {
    transform: translateX(-92%);
  }
  100% {
    transform: translateX(92%);
  }
}

@media only screen and (max-device-width: 1250px) {
  body {
    background-image: url(./Media/mortal-kombat-lg.jpg);
  }

  .tic-tac-toe {
    margin-top: -3%;
  }

  #headers {
    margin-top: 7%;
  }

  .title {
    position: absolute;
    top: 0;
    left: 25%;
    font-size: 3em;
  }

  .player1 {
    font-size: 4vw;
  }

  .player2 {
    font-size: 4vw;
  }
}

@media only screen and (max-device-width: 900px) {
  body {
    background-image: url(./Media/mortal-kombat-md.png);
  }

  .tic-tac-toe {
    margin-top: 2%;
  }

  h1 {
    font-size: 2em;
  }

  .title {
    left: 22%;
    font-size: 5vw;
  }

  .player1 {
    font-size: 5vw;
  }

  .player2 {
    font-size: 5vw;
  }
}

@media only screen and (max-device-width: 570px) {
  body {
    background-image: url(./Media/mortal-kombat-sm.jpeg);
  }

  .tic-tac-toe {
    display: grid;
    grid-template-rows: repeat(3, 31vw);
    grid-template-columns: repeat(3, 31vw);
    margin-top: 3%;
  }

  span {
    font-size: 21vw;
  }

  h1 {
    font-size: 2em;
  }

  #headers {
    margin-top: 15%;
  }

  .title {
    width: 100%;
    left: 0;
    text-align: center;
    font-size: 7.5vw;
  }

  .player1 {
    font-size: 5vw;
  }

  .player2 {
    font-size: 5vw;
  }

  #tie {
    font-size: 9vw;
  }

  #reset {
    width: 70vw;
    height: 50px;
    font-size: 26px;
  }
}
