body {
  margin: 0;
  padding: 0;
  background-image: url(34.jpg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
}

canvas {
  border: 3px solid #000;
  background-image: url(45.jpg);
  display: block;
  margin: 60px 0px 7px 0px;
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
}

.horizontal-buttons {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

#controlButtons {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 12px 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  margin-top: 15px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}

#controlButtons button {
  font-size: 22px;
  padding: 8px 15px;
  background: white;
  border: 2px solid black;
  border-radius: 8px;
  cursor: pointer;
}

#controlButtons button:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  canvas {
    width: 90vw;
    height: 70vh;
    border-width: 2px;
  }

  #touchControls {
    flex-direction: column;
    margin-top: 20px;
  }

  .horizontal-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
  }

  #touchControls button {
    font-size: 20px;
    padding: 8px 15px;
    border-radius: 8px;
  }

  body {

    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}