* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 2rem 5rem;
}

h1 {
  margin-bottom: 3rem;
  color: rebeccapurple;
}
.game {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: aquamarine;
  border-radius: 20px;
}

.info {
  margin-top: 2rem;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rebeccapurple;
  font-family: Helvetica;
  font-size: larger;
}

.info img {
  width: 0;
  transition: width 1s ease-in-out;
}

#reset {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rebeccapurple;
  background-color: aquamarine;
  border: 2px rebeccapurple solid;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.game-body {
  width: 50%;
  height: 50vh;
  background-color: aliceblue;
  box-shadow: -1px 2px 19px 10px rgba(0, 0, 0, 0.64);
  display: flex;
}

.cols {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nodes {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: aliceblue;
  color: darkslategray;
  font-size: xx-large;
  font-weight: bolder;
}

.col1-node,
.col2-node {
  border-right: 3px groove rebeccapurple;
}

.row1,
.row2 {
  border-bottom: 3px groove rebeccapurple;
}

.nodes:hover {
  cursor: pointer;
  background-color: antiquewhite;
}

@media only screen and (max-width: 1200px) {
  .game-body {
    width: 50%;
  }
  .info {
    width: 30vw;
  }
  #reset {
    width: 8vw;
  }
}

@media only screen and (max-width: 800px) {
  .game-body {
    width: 70%;
  }
  .info {
    width: 40vw;
  }
  #reset {
    width: 10vw;
  }
}

@media only screen and (max-width: 600px) {
  .game-body {
    width: 80%;
  }
  .info {
    width: 50vw;
  }
  #reset {
    width: 12vw;
  }
}

@media only screen and (max-width: 500px) {
  .game-body {
    width: 85%;
  }
  .info {
    width: 60vw;
  }
  #reset {
    width: 15vw;
  }
}

@media only screen and (max-width: 400px) {
  .game-body {
    width: 90%;
    height: 40vh;
  }
  .info {
    width: 60vw;
  }
  #reset {
    width: 15vw;
  }
}

@media only screen and (max-width: 350px) {
  .game-body {
    width: 90%;
    height: 40vh;
  }
  h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .info {
    width: 70vw;
  }
  #reset {
    width: 18vw;
  }
}

@media only screen and (max-width: 300px) {
  .game-body {
    width: 100%;
    height: 30vh;
  }
  h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .info {
    width: 80vw;
  }
  #reset {
    width: 22vw;
  }
}
