/* In Media Queries, use 1em = 16px, rem has bugs in other browsers*/

/* IPAD PRO (1050px) */

@media (max-width: 1050px) {
  /*--------- IMAGE SLIDE SHOW ---------*/

  body {
    font-size: 110%;
  }

  .navbar img {
    width: 220px;
    height: auto;
  }

  ul {
    font-size: 1.45rem;
  }

  .slideshow-container {
    max-width: 1050px;
    padding: 0 23px 0;
    padding-bottom: 5px;
    height: 800px;
  }

  .mySlides img {
    height: 540px;
  }

  /*--------- ABOUT ---------*/

  #about .slideshow-container {
    height: 950px;
  }

  .content .article h1 {
    padding-top: 50px;
  }

  #about .content .about-image {
    top: 30px;
    left: 5px;
  }


  /* ----- ACCORDION ----- */

  #accordion .slideshow-container {
    height: 840px;
  }

  .accordion-box h4 {
    padding-bottom: 30px;
  }

  footer {
    max-width: 1050px;
  }
}

/* IPAD AIR (820px) */
/* SAMSUNG TAB A9 (800px) */

@media (max-width: 820px) {
  body {
    font-size: 95%;
  }

  .nav-menu {
    gap: 15px;
  }

  .navbar img {
    width: 180px;
    height: auto;
  }

  ul {
    font-size: 1.2rem;
  }

  li {
    margin-left: 35px;
  }

  .slider-container {
    height: 440px;
  }

  .slider-container img {
    height: 440px;
  }

  .dotcontainer {
    top: 94%;
    left: 43%;
  }

  .content {
    margin: 30px auto 0;
  }

  .content .about-para p {
    font-size: 0.95rem;
    padding-top: 5px;
  }

  .donate-para p {
    font-size: 0.95rem;
  }

  .contact-para p {
    font-size: 0.95rem;
  }

  .content h1 {
    font-size: 2.3rem;
  }

  .content h2,
  h3,
  h4 {
    font-size: 2.5rem;
  }

  .content .content-team {
    justify-content: space-around;
    grid-template-columns: auto auto;
    row-gap: 30px;
  }

  .donate-container {
    font-size: 1.3em;
  }

  .payment-container {
    width: 420px;
  }

  .value button {
    font-size: 0.9em;
  }

  .first p {
    font-size: 0.95rem;
  }

  .second p {
    font-size: 0.9rem;
  }

  .contact-container {
    max-width: 820px;
  }

  footer {
    max-width: 820px;
  }
}

/* IPAD MINI (768px) */

@media (max-width: 768px) {
  body {
    font-size: 90%;
  }

  .nav-menu {
    gap: 10px;
  }

  .navbar img {
    width: 180px;
    height: auto;
  }

  ul {
    font-size: 1.2rem;
  }

  .dotcontainer {
    top: 94%;
    left: 43%;
  }

  .content .about-para p {
    font-size: 0.95rem;
  }

  .donate-para p {
    font-size: 0.95rem;
  }

  .contact-para p {
    font-size: 0.95rem;
  }

  .content .content-team {
    column-gap: 10px;
    justify-content: space-around;
  }

  .content-team .image-container img {
    width: 220px;
    height: auto;
  }

  .donate-container img {
    height: 380px;
  }

  .payment-container {
    height: 380px;
    font-size: 1.525rem;
  }

  .first p {
    font-size: 0.9rem;
  }

  .second p {
    font-size: 0.85rem;
  }

  footer {
    max-width: 768px;
  }
}

/* IPHONE 14 PRO MAX (430px) */

@media (max-width: 430px) {
  /*--------- NAVIGATION---------*/
  .nav-container {
    column-gap: 12px;
  }

  .nav-menu {
    width: 386px;
    position: fixed;
    left: 100%;
    top: 70px;
    column-gap: 0;
    z-index: 1;
    flex-direction: column;
    background-color: #ffffffef;
    box-shadow: 2px 0 5px #4e4e4ed0;
    transition: 0.3s;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .nav-menu li a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
    padding: 5px;
  }

  .hamburger .bar {
    width: 24px;
    height: 5px;
    margin: 5px;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /*--------- SLIDE SHOW ---------*/
  #slideShow {
    width: 415px;
    height: 935px;
  }

  .twoPics {
    height: 730px;
    grid-gap: 10px;
    grid-template-columns: auto;
  }

  .twoPics img {
    height: 350px;
  }

  .imageMeta {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 175px;
  }

  #slideShow .text {
    width: 410px;
    height: 115px;
    font-size: 1rem;
  }

  /*--------- ABOUT ---------*/
  #about {
    width: 415px;
    height: 1210px;
    margin: 0 auto 25px;
  }

  #about .content {
    flex-direction: column;
    row-gap: 20px;
  }

 h1 {
    font-size: 2.2rem;
    margin-left: 0;
    text-align: center;
  }

 h2 {
    font-size: 1.5rem;
    margin-left: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .content .article {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;  
    font-size: 1.2rem;
  }

  #about .content .about-image img {
    width: 310px;
  }

  /* ----- ACCORDION ----- */
  #accordion {
    width: 415px;
    margin: 0 auto 25px;
  }

  .accordion-box h4 {
    font-size: 2rem;
  }

  .accordion-box h5 {
    font-size: 1.1rem;
  }

  .accordion-box .answer p {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.95rem;
    
  }

  /*--------- CONTACT ---------*/

  #contact {
    height: 430px;
  }

  #contact .contactTitle h2 {
    font-size: 2rem;
  }

  #contact .contactTitle p {
    font-size: 1rem;
  }

  #contact .contactInfo img {
    display: block;
    width: 70%;
    margin: auto;
  }

  /*--------- FOOTER ---------*/

  footer .copyright p {
    font-size: 0.85rem;
  }

  /*--------- BACK TO TOP ---------*/

  .to-top {
    bottom: 0.5rem;
    right: 1rem;
  }
}

/* IPHONE 6/7/8 PLUS,IPHONE XR / PIXEL 7 / GALAXY A51/71/ S20 (414PX) */

/* AVERAGE ALL ANDROID MOBILE PHONES (414PX) */

@media (max-width: 414px) {
  /*--------- NAVIGATION ---------*/

  .nav-menu {
    width: 370px;
  }

  /*--------- SLIDE SHOW ---------*/
  #slideShow {
    max-width: 412px;
    height: 750px;
  }

  .twoPics {
    height: 540px;
  }

  .twoPics img {
    height: 265px;
  }

  .imageMeta {
    justify-content: space-between;
    height: 175px;
  }

  #slideShow .text {
    width: 400px;
    height: 100px;
    font-size: 0.9rem;
  }

  /*--------- ABOUT ---------*/

  #about {
    width: 400px;
    height: 1280px;
    margin: 0 auto 15px;
  }

  #about .content {
    height: 820px;
    flex-direction: column;
  }

  #about h1 {
    font-size: 2.3rem;
    margin-left: 0;
    text-align: center;
  }

  #about h2 {
    font-size: 1.5rem;
    margin-left: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .content .article {
    font-size: 1rem;
    line-height: 1.15;
  }

  #about .content .about-image img {
    width: 280px;
  }

  /* ----- ACCORDION ----- */
  #accordion {
    width: 400px;
  }

  /*--------- CONTACT ---------*/
}
/* GALAXY S8 (360PX) */

/*--------- NAVIGATION ---------*/

@media (max-width: 360px) {
  #navigation {
    margin: 0 auto;
  }

  #navigation .logo img {
    height: 65px;
  }

  #navigation .nav-container {
    height: 80px;
  }

  .nav-menu {
    width: 315px;
  }

  .hamburger {
    display: block;
    padding: 5px;
  }

  .hamburger .bar {
    width: 20px;
    height: 4px;
    margin: 3px;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /*--------- SLIDE SHOW ---------*/

  #slideShow {
    max-width: 350px;
    height: 755px;
    margin: 0 auto 15px;
  }

  .twoPics {
    max-width: 350px;
    height: 570px;
    grid-gap: 10px;
    grid-template-columns: auto;
  }

  .twoPics img {
    width: 100%;
    height: 280px;
    margin: 0 auto;
  }

  .imageMeta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 125px;
  }

  #slideShow .text {
    width: 340px;
    height: 92px;
    font-size: 0.65rem;
  }
  
  .prev,
  .next {
    padding 7px 10px;
    font-size: 0.85rem;
}

  /*--------- ABOUT ---------*/

  #about {
    width: 350px;
    height: 1080px;
  }

  #about h1 {
    font-size: 1.8rem;
    margin-left: 0;
    text-align: center;
  }

  #about h2 {
    font-size: 1.3rem;
    margin-left: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .content .article {
    font-size: 0.82rem;
  }

  #about .content .about-image img {
    width: 250px;
  }

  /* ----- ACCORDION ----- */
  #accordion {
    width: 350px;
    height: 680px;
  }

  .accordion-box h4 {
    font-size: 1.6rem;
  }

  .accordion-box h5 {
    font-size: 0.95rem;
  }

  .accordion-box .answer p {
    font-size: 0.75rem;
  }

  /*--------- CONTACT ---------*/

  #contact {
    height: 400px;
  }

  #contact .contactTitle h2 {
    font-size: 1.6rem;
  }

  #contact .contactTitle p {
    font-size: 0.78rem;
  }

  #contact .contactInfo img {
    display: block;
    width: 70%;
    margin: auto;
  }

  /*--------- FOOTER ---------*/

  footer .copyright p {
    font-size: 0.85rem;
  }
}
