/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #121212;
  color: white;
  height: 100vh;
  overflow: hidden;
}

#gameContainer {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Main Menu Styles */
#mainMenu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 20px;
}

#mainMenu.active {
  display: flex;
}

#mainMenu h1 {
  font-size: 48px;
  margin-bottom: 40px;
  color: #4caf50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  letter-spacing: 2px;
}

.playerProfile {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
  width: 300px;
}

.playerAvatar {
  width: 70px;
  height: 70px;
  background-color: #333;
  border-radius: 5px;
  margin-right: 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid #4caf50;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.playerInfo {
  flex: 1;
}

.playerInfo h3 {
  margin-bottom: 10px;
  color: #fff;
}

.playerInfo p {
  margin: 5px 0;
  color: #ccc;
}

.menuButtons {
  display: flex;
  flex-direction: column;
  width: 300px;
}

.menuBtn {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menuBtn:hover {
  background-color: #3e8e41;
  transform: scale(1.05);
}

.smallBtn {
  background-color: rgba(76, 175, 80, 0.7);
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

/* Game Area Styles */
#gameArea {
  display: none;
  width: 800px;
  height: 600px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border: 3px solid #4caf50;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#gameArea.active {
  display: block;
}

.hidden {
  display: none !important;
}

#gameCanvas {
  display: block;
  background-color: #16213e;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.gameUI {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 15px;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.health,
.ammo {
  font-size: 16px;
  font-weight: bold;
  color: #4caf50;
}

.ammo {
  color: #ffd700;
  margin-left: 10px;
}

#menuBtn {
  font-size: 14px;
  padding: 4px 12px;
  background-color: rgba(76, 175, 80, 0.8);
  border: none;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  margin-left: 10px;
}

#menuBtn:hover {
  background-color: rgba(76, 175, 80, 1);
  transform: scale(1.05);
}

.uploadBtn {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.uploadBtn:hover {
  background-color: #3e8e41;
  transform: scale(1.05);
}
