body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding: 0;
  padding-top: 60px;
  padding-bottom: 45px; /* Adjust this value based on your new footer height */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: white;
}

#billionaireInfo {
  display: flex;
  align-items: center;
}

#billionaireSelect {
  margin-right: 10px;
  padding: 5px;
  border: 1px solid #dddfe2;
  border-radius: 3px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background-color: white;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab {
  background-color: transparent;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s;
  font-weight: bold;
  color: #6e8efb;
}

.tab.active {
  background-color: #6e8efb;
  color: white;
}

.tab:hover {
  background-color: #e4e6eb;
}

.main-content {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 2px solid #dddfe2;
  border-radius: 8px;
}

.item-info {
  padding: 15px;
}

.item-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.item-price {
  color: #4267B2;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f0f2f5;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content p {
  margin: 3px 0;
}

.footer-info {
  font-size: 0.7em;
  text-align: right;
}

.footer-info p {
  font-size: 1em;
  font-weight: bold;
}

.share-buttons {
  display: flex;
  align-items: center;
}

.share-buttons button {
  background-color: #4267B2;
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-left: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.9em;
}

.share-buttons button:hover {
  background-color: #365899;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

@media screen and (max-width: 768px) {
  header, footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-tabs {
    flex-wrap: wrap;
  }

  .tab {
    margin-bottom: 5px;
  }
}

/* Add these styles */
#showReceiptBtn, #resetPurchasesBtn {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#showReceiptBtn:hover, #resetPurchasesBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.billionaire-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #dddfe2;
  border-radius: 8px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.quantity-btn {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quantity-btn.minus {
  background: linear-gradient(135deg, #a777e3, #6e8efb);
}

#quantity-${itemName} {
  margin: 0 10px;
  font-weight: bold;
  font-size: 18px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.action-buttons button {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 0 10px;
}

.action-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
