* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  background-image: url('background2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden; /* Ensure no scroll bars appear */
}

.game-container {
  display: flex;
  flex-direction: column; /* Stack vertically on small screens */
  width: 90%; /* Adjust width for responsiveness */
  max-width: 1200px; /* Set a max width for large screens */
  justify-content: space-between;
  gap: 20px; /* Add space between sections */
}

.team-section1 {
  height: 426px;
  position: relative;
  left: -165px;
  bottom: 240px;
  width: 1000px; /* Full width on small screens */
  background-color: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-section2 {
  height: 425px;
  position: relative;
  left: -190px;
  bottom: 265px;
  width: 1000px; /* Full width on small screens */
  background-color: none;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.progress-bars {
  width: 150%; /* Full width on small screens */
  text-align: center;
  position: relative;
  left: -225px;
  top: 535px;
}

.progress-bar {
  background-color: black;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 1000px;
  left: -70px;
  overflow: hidden;
  height: 30px; /* Increased height for visibility */
  position: relative;
}

.progress {
  height: 100%;
  width: 0;
  background-color: green;
  transition: width 0.5s ease; /* Smooth transition for the width change */
}

.upgrades {
  background-color: none;
  padding: 10px;
  border-radius: 8px;
  margin-top: 20px;
}

.character-display img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer; /* Added cursor pointer to indicate it's clickable */
}

h2 {
  color: #d9534f;
}

h3 {
  color: #5bc0de;
}

.upgrade-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  background-color: #424242;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s;
}

.upgrade-btn1 {
  width: 425px;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  background-color: #424242;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s;
}

.upgrade-btn:hover {
  background-color: #272727;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.timer {
  color: #fff;
  position: relative;
  font-size: 20px;
  background-color: none;
  height: 50px;
  border-radius: 5px;
  right: 100px;
  top: 600px;
  font-weight: bold;
  text-align: center;
}

/* Media queries for responsiveness */
@media (min-width: 600px) {
  .game-container {
    flex-direction: row; /* Switch back to horizontal layout on larger screens */
    align-items: flex-start;
  }

  .team-section {
    width: 30%;
    padding: 40px;
  }

  .progress-bars {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .game-container {
    width: 80%;
  }

  .team-section {
    max-width: 350px; /* Slightly larger width for larger screens */
  }

  .progress-bars {
    max-width: 700px; /* Slightly larger width for larger screens */
  }
}

.title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}