html, body {
  overflow-x: hidden; /* Disable horizontal scrolling */
  touch-action: none; /* Disable zooming and sliding gestures */
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 20px;
  background-color: #f0f0f0;
  overscroll-behavior-x: none; /* Prevent overscrolling horizontally */
}

#app {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  background: #007bff;
  color: white;
  cursor: pointer;
}

button:disabled {
  background: gray;
  cursor: not-allowed;
}

#progress {
  width: 100%;
  height: 20px;
  background: #ddd;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #007bff;
  transition: width 0.3s ease;
}

button:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

#restartButton {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

#restartButton:hover {
  background: #ff3333;
}

#restartButton:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left Section */
.item-left {
  display: flex;
  align-items: center;
}

.item-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

.item-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #ddd;
}

.item-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.progress-bar {
  width: 300px;
  max-width: 300px;
  height: 40px;
  background-color: #ddd;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin: 10px auto;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.3s ease-in-out;
}

.progress-text {
  margin-top: 5px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.progress-text.reached {
  color: #4caf50;
}

/* Right Section */
.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.item-income {
  font-size: 16px;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 10px;
}

.item-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 10px;
}

.buy-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.buy-button:hover {
  background-color: #45a049;
}

.item-number {
  background-color: #436cc5;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.icon {
  width: 5px;
}

.will-add-bitcoins {
  background-color: #e28229;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #app {
    padding: 10px;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .item-left {
    width: 100%;
    margin-bottom: 10px;
  }

  .progress-bar {
    width: 100%; /* Take up the full width on mobile */
  }

  .item-right {
    width: 100%;
    align-items: flex-start; /* Align buttons to the left on mobile */
  }

  .item-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    width: 100%;
  }

  button {
    width: 100%; /* Make buttons full-width on mobile */
    text-align: center;
  }
}
