
body {
  font-family: Arial, sans-serif;
  text-align: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-image: url('./assets/front/building\ campaign\ background1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Headline styling */
.headline {
  font-family: 'Impact', 'Arial Black', sans-serif;
  color: #ffffff;
  background-color: #004225;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-bottom: 5px;
}

/* iPads and small desktops */
@media (max-width: 1024px) {
  body {
    background-image: url('./assets/front/buildingcampaignbackgroundfinal.jpg');
    background-size: cover;
    background-position: top center;
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  body {
  height: 100vh;
  margin: 0;
  padding: 0;
    background-image: url('./assets/front/VerticalBackground1.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
  }
}

h1 {
  margin-top: 20px;
}

#svg-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 500px; /* reserve space for popup */
}

.base-img,
.text-img {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.text-img {
  z-index: 3;
  pointer-events: none;
}

#svg-overlay-container svg {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  z-index: 2;
}

.hoverable:hover {
  fill: #ffd54f !important;
  cursor: pointer;
  opacity: 0.6;
}

/* Popup backdrop */
#popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

#popup-backdrop.hidden {
  display: none;
}

/* ✅ Popup styling (updated for scaling) */
#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid #333;
  padding: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 450px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden; /* prevent scrollbars */
}

#popup.hidden {
  display: none;
}

#close-popup {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

#donation-items {
  list-style: none;
  padding: 0;
  text-align: left;
}

#donation-items li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-group input {
  width: 40px;
  padding: 2px 5px;
  font-size: 14px;
  text-align: center;
}

#give-now {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

#give-now:hover {
  background-color: #45a049;
}

.fully-funded {
  color: #999;
  text-decoration: line-through;
  pointer-events: none;
  opacity: 0.6;
}

/* ✅ Responsive adjustments */
@media screen and (max-width: 600px) {
  #popup {
    width: 95vw;
    padding: 15px;
  }

  #popup h2,
  #popup label,
  #popup input,
  #popup span {
    font-size: 0.95rem;
  }

  .quantity-group input {
    width: 35px;
    font-size: 13px;
  }
}

@media screen and (max-height: 600px) {
  #popup {
    top: 10%;
    transform: translateX(-50%);
  }
}