#landing {
  position: fixed;
  inset: 0;
  background: url("background1.png") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#landing::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px) brightness(0.7);
  z-index: 0;
}

#landing button {
  position: relative;
  z-index: 1;
  padding: 15px 30px;
  font-size: 20px;
  border: none;
  border-radius: 10px;
  background: #00aaff;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


#gameContainer {
  position: relative; 
  width: 800px;
  height: 500px;
  margin: 50px auto; 
}

#canvas1 {
  width: 100%;
  height: 100%;
  display: block;
  background: #d79c50;
  border: 1px solid black;
}

#joystick {
  position: absolute; 
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  user-select: none;
}

/* Joystick buttons */
#joystick button {
  width: 60px;
  height: 60px;
  margin: 5px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.1s;
}

#joystick button:active {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
}

.middle-row {
  display: flex;
  justify-content: center;
  width: 100%;
}


@media (min-width: 900px) {
  #joystick {
    display: none;
  }
}

/* Fullscreen btn */
#fullscreenBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 700px) {
  #landing button {
    position: absolute;
    top: 20%;
    left: 13%;
  }
}