html, body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #000000;
  color: #fff;
}

#loading-screen, #main-menu, #game-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#loading-screen {
  background-color: #000;
  color: #fff;
  font-size: 24px;
}

#main-menu {
  background-color: #000000;
  color: #fff;
  flex-direction: column;
  text-align: center;
  overflow-y: auto;
}

#main-menu button {
  margin: 10px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #FF4500;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#main-menu button:hover {
  background-color: #FF6347;
}

#skin-selection {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 20px;
  width: 90%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  touch-action: pan-x;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#skin-selection::-webkit-scrollbar {
  display: none;
}

.skin-option {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  margin: 0 10px;
  cursor: pointer;
  border: 1px solid transparent;
  touch-action: manipulation;
}

.skin-option.selected {
  border-color: #006eff;
}

#game-container {
  position: relative;
  touch-action: none;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
}

#ui-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 18px;
  z-index: 10;
}

#game-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  text-align: center;
  z-index: 20;
}

#mobile-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 30;
}

#joystick-area, #shoot-joystick-area {
  width: 120px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

#shootButton {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  color: transparent;
  font-size: 16px;
}

/* New styles for landing page */
.container {
  width: 80%;
  margin: auto;
  padding: 20px;
}

h1, h2, h3 {
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  color: #FF4500;
}

p {
  margin-bottom: 10px;
}

a {
  color: #FF4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FF6347;
  text-decoration: underline;
}

#about {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
}

#about ul {
  list-style-type: none;
  padding-left: 20px;
}

#about li {
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  margin-top: 30px;
}

@media (min-width: 768px) {
  #mobile-controls {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  h1 {
    font-size: 2em;
  }
}
