*{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  overflow-x: hidden;
}

html{
  scroll-behavior: smooth;
}

#donate-intro{
  background-image: url(Service_Medicine_Donate_Feedback_page_images/2003822.webp);
  background-size: cover;  /* Ensures the image covers the full screen */
  background-position: center;  /* Centers the image */
  background-repeat: no-repeat;  /* Prevents the image from repeating */
  height: 100vh;  /* Makes the body take up the full height of the viewport */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#donate-intro .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay with 50% opacity */
  z-index: 1;
}

.donate-intro2{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

a{
  text-decoration: none;
}

nav{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 7vh;
  width: 100%;
  background-color: rgb(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  position: fixed;
  z-index: 3;
}

.navbar-white {
  color: white;
}

.menu a.navbar-white {
  color: white;
}


.menu{
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

.menu a{
  color: white;
  font-family: "Inria Serif", serif;
  font-weight: 500;
  font-size: 2vw;
}


.heading h1{
  font-family: "Inria Serif", serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  color: white;
  text-shadow: 0px 4px 5px black;
  font-size: 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.intro-para{
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
}

.para{
  width: 80vw;
  color: white;
  font-family: "Inria Serif", serif;
  font-size: 2vw;
  text-shadow: 0px 4px 5px black;
  text-align: center;
  letter-spacing: 2px;
  line-height: 1.3;
  padding: 1.5%;
  border-radius: 18px;
  background-color: rgb(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  box-shadow: 0px 4px 5px rgb(0, 0, 0, 0.6);
}

#donate-reason {
  background-image: url(Service_Medicine_Donate_Feedback_page_images/AdobeStock_279281349-min-scaled.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative; /* Ensure the section is positioned properly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#donate-reason .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Overlay with transparency */
  z-index: 1; /* Ensure it is behind the content */
}

.donate-reason2 {
  position: relative; /* Position it above the overlay */
  z-index: 2; /* Higher z-index to place it above the overlay */
  text-align: center; /* Center align the heading */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 2vh;
  height: 100vh;
}

.donate-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 columns */
}

/* Card Styles */
.card {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 3px solid white;
  width: 35vw;
  height: 20vh;
  border-radius: 18px;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  font-family: "Inria Serif", serif;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.4);
  margin: 10px;
}

.card:hover{
  transform: scale(1.01);
  transition: 2s;
}

#card_part1{
  display: flex;
}

#card_part2{
  display: flex;
}

#card_part3{
  display: flex;
}

#payment{
  background-image: url(Service_Medicine_Donate_Feedback_page_images/wp8254718.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative; /* Ensure the section is positioned properly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#payment .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Overlay with transparency */
  z-index: 1; /* Ensure it is behind the content */
}

.payment2{
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100vh;
  gap: 2vh;
}

.payment_card{
  border: 3px solid white;
  width: 75vw;
  height: 70vh;
  border-radius: 18px;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(1.5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.payment_gateway{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  height: 85%;
}

.payment_gateway p{
  font-family: "Inria Serif", serif;
  color: white;
  font-size: 3.5vw;
  text-shadow: 0px 4px 5px black;
}

form{
  display: flex;
  flex-direction: column;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

input[type="number"]{
  text-align: center;
  width: 65vw;
  height: 100%;
  padding: 2%;
  background-color: rgb(255, 255, 255, 0.3);
  border: 3px solid white;
  border-radius: 8px;
  color: rgb(26, 26, 26);
  font-family: "Inria Serif", serif;
  font-size: 2vw;
  font-weight: 600;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"]:focus{
  outline: none;
}

.buttons{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buttons p{
  font-size: 2.5vw;
}

button{
  width: 25vw;
  height: 8vh;
  font-size: 2.5vw;
  font-family: "Inria Serif", serif;
  background-color: #7D9104;
  border: 2.5px solid white;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Hide QR code initially */
.QR {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  align-items: center;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 1.5vw;
  backdrop-filter: blur(5px);
  box-shadow: 0px 0.5vw 1.5vw rgba(0, 0, 0, 0.2);
  padding: 4vw;
}

/* Show QR code when active */
.QR.active {
  display: flex;
}

/* Responsive Close Button */
.closeQR {   
  margin-top: 2vh;   
  padding: 1.5vh 3vw;   
  border: none;   
  background-color: red;   
  color: white;   
  font-size: 2vw;   
  border-radius: 1vw;   
  cursor: pointer;   
  width: 20vw;   
  height: 8vh;   
  text-align: center;   
  display: flex;   
  justify-content: center;   
  align-items: center;   
  overflow: hidden; /* Ensures no overflow */
}


.closeQR:hover {
  background-color: darkred;
}

.QR p{
  font-size: 3vw;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  padding: 2%;
  color: rgb(22, 22, 22);
  letter-spacing: 1px;
}

.QR img {
  width: 20vw;
}

/* Footer Styling */
.copyright{
  width: 100%;
  padding-top: 2.5%;
  padding-bottom: 2.5%;
  background-color: #385A0C;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Verdana;
  font-size: 15px;
  flex-direction: column;
  gap: 10px;
}

.copyright a{
  color: white;
  text-decoration: underline;
}

@media (min-width: 0px) and (max-width: 500.99px){
  /* body{
    border: 10px solid white;
  } */
  #donate-intro{
    height: 50vh;
  }
  #donate-intro .overlay{
    height: 50vh;
  }
  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }
  .card{
    font-size: 3vw;
    height: 20vh;
    width: 40vw;
  }
  input[type="number"]{
    height: 50px;
    font-size: 3vw;
  }
  button{
    height: 50px;
    width: 120px;
    font-size: 15px;
  }
  .QR img {
    width: 50vw;
  }
  .closeQR{
    height: 5.5vh;
    font-size: 3vw;
    overflow-y: hidden;
  }
}

@media (min-width: 501px) and (max-width: 600.99px){
  /* body{
    border: 10px solid red;
  } */
  #donate-intro{
    height: 60vh;
  }
  #donate-intro .overlay{
    height: 60vh;
  }
  .card-container {
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
  }
  input[type="number"]{
    height: 50px;
    font-size: 3vw;
  }
  .QR img {
    width: 30vw;
  }
  .closeQR{
    height: 6vh;
  }
}

@media (min-width: 601px) and (max-width: 700.99px){
  /* body{
    border: 10px solid yellow;
  } */
  #donate-intro{
    height: 70vh;
  }
  #donate-intro .overlay{
    height: 70vh;
  }
  .card-container {
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
  }
  input[type="number"]{
    font-size: 3vw;
  }
  .QR img {
    width: 30vw;
  }
  .closeQR{
    height: 6vh;
  }
}

@media (min-width: 701px) and (max-width: 800.99px){
  /* body{
    border: 10px solid pink;
  } */
  #donate-intro{
    height: 80vh;
  }
  #donate-intro .overlay{
    height: 80vh;
  }
  .card-container {
    grid-template-columns: repeat(1, 1fr); /* 2 cards per row */
    justify-content: center;
  }
  input[type="number"]{
    height: 50px;
    font-size: 3vw;
  }
  .QR img {
    width: 30vw;
  }
  .closeQR{
    height: 6vh;
  }
}

@media (min-width: 801px) and (max-width: 1000.99px){
  /* body{
    border: 10px solid brown;
  } */
  .card-container {
    grid-template-columns: repeat(1, 1fr); /* 2 cards per row */
    justify-content: center;
  }
  .QR img {
    width: 30vw;
  }
  .closeQR{
    height: 7vh;
  }
}

@media (min-width: 1001px) and (max-width: 1200.99px){
  .card-container {
    grid-template-columns: repeat(1, 1fr); /* 2 cards per row */
    justify-content: center;
  }
  .QR img {
    width: 30vw;
  }
  .closeQR{
    height: 7vh;
  }
}

@media (min-width: 1201px) and (max-width: 1400.99px){
  .card-container {
    grid-template-columns: repeat(1, 1fr); /* 2 cards per row */
    justify-content: center;
  }
  .QR img {
    width: 30vw;
  }
  .closeQR{
    height: 8vh;
  }
}

@media (min-width: 1401px){
  #card_part1{
    display: block;
  }
  
  #card_part2{
    display: block;
  }
  
  #card_part3{
    display: block;
  }
  .card{
    width: 25vw;
  }
  .menu a{
    font-size: 1.2vw;
  }
}
