.startButton {
  width: 300px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  background-image: url("../img/elements/button_start.png");
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.tryAgainButton {
  width: 250px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  background-image: url("../img/elements/button_try.png");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  top: 70%;
}

.newGameButton {
  width: 260px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  background-image: url("../img/elements/button_new.png");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  top: 70%;
}

.startButton:hover {
  background-image: url("../img/elements/button_start_hover.png");
}

.tryAgainButton:hover {
  background-image: url("../img/elements/button_try-hover.png");
}

.newGameButton:hover {
  background-image: url("../img/elements/button_new-hover.png");
}

.helpButton {
  width: 150px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  background-image: url("../img/elements/button_help.png");
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.helpButton:hover {
  background-image: url("../img/elements/button_help_hover.png");
}

.keyButton {
  width: 60px;
  height: 60px;
}

.moveButton {
  width: 180px;
}

.keyButtonSmall {
  width: 30px;
  height: 30px;
}

.moveButtonSmall {
  width: 90px;
}

.soundButton,
.soundOnButton,
.expandButton {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0);
  border: none;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.soundButton {
  background-image: url("../img/elements/button_sound-off.png");
}

.soundButton:hover {
  background-image: url("../img/elements/button_sound-off-hover.png");
}

.soundOnButton {
  background-image: url("../img/elements/button_sound-on.png");
}

.soundOnButton:hover {
  background-image: url("../img/elements/button_sound-on-hover.png");
}

.expandButton {
  background-image: url("../img/elements/button_expand.png");
}

.expandButton:hover {
  background-image: url("../img/elements/button_expand-hover.png");
}

.mobileButtonRow {
  display: none;
}

@media (max-width: 1050px) {
  .startButton {
    width: 225px;
    height: 75px;
  }

  .helpButton {
    width: 100px;
    height: 75px;
  }

  .tryAgainButton {
    width: 190px;
    height: 75px;
    top: 60%;
  }

  .newGameButton {
    width: 195px;
    height: 75px;
    top: 60%;
  }

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

  .moveButton {
    width: 150px;
  }
}

@media (max-height: 500px) {
  .keyButton {
    width: 40px;
    height: 40px;
  }

  .moveButton {
    width: 130px;
  }
}

@media screen and (pointer: coarse) {
  .mobileButtonRow {
    display: flex;
    align-items: end;
    justify-content: space-between;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .mobileButtonSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

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

  .soundButton,
  .soundOnButton {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 50px;
    height: 50px;
  }

  .expandButton {
    display: none;
  }
}

@media only screen and (max-width: 960px) {
  .mobileButtonRow {
    display: flex;
    align-items: end;
    justify-content: space-between;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .mobileButtonSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

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

  .soundButton,
  .soundOnButton {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 50px;
    height: 50px;
  }

  .expandButton {
    display: none;
  }
}

@media (max-width: 600px) {
  .startButton {
    width: 150px;
    height: 50px;
  }

  .helpButton {
    width: 75px;
    height: 50px;
  }

  .tryAgainButton {
    width: 125px;
    height: 50px;
    top: 60%;
  }

  .newGameButton {
    width: 130px;
    height: 50px;
    top: 60%;
  }

  .keyButton {
    width: 40px;
    height: 40px;
  }

  .moveButton {
    width: 130px;
  }
}
