/* In Media Queries, use 1em = 16px, rem has bugs in other browsers*/

/* IPAD PRO (1050px) */

@media (max-width: 1050px){
    
    body{
        font-size: 110%;
    }

    .navbar img{
        width: 220px;
        height: auto;
    }

    ul{
        font-size: 1.45rem;
    }
    
    .content-team .image-container img{
        width: 230px;
        height: auto;
    }

    .value button{
        font-size: 1.25em;
    }

    .first p{
        font-size: 1rem;
    }

    .second p{
        font-size: 1rem;
    }

    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){

    body{
        font-size: 50%;
    }

    .hamburger{
        display: block;
    }

    .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);
    }

    .navbar{
        min-height: 50px;
        padding: 0 10px;
    }

    .nav-menu{
        position: fixed;
        left: 100%;
        top: 50px;
        gap: 0;
        z-index: 1;
        flex-direction: column;
        background-color: #01a37d;
        border-top-style: solid;
        border-top-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-item{
        margin: 16px 0;
    }

    .nav-menu.active{
        left: 0;
    }

    .navbar img{
        width: 160px;
        height: auto;
    }

    .slider-container{
        height: 220px;
    }

    .slider-container img{
        height: 220px;
    }
    
    .dotcontainer{
        top: 90%;
        left: 35%;
    }

    .content{
        margin-top: 15px;
    }

    .content h1{
        font-size: 1.5rem;
    }

    .content h2,h3,h4{
        font-size: 1.7rem;
    }

    .content h5{
       font-size: 0.85rem;
    }

    .image-container .details p{
        font-size: 0.65rem;
    }

    .content .about-para p{
        font-size: 0.8rem;
    }

    .content .content-team{
        grid-template-columns: auto auto;
        padding-top: 25px;
    }

    .content-team .image-container img{
        width: 180px;
        height: auto;
    }

    .content .content-donate{
        padding-top: 25px;
    }

    .donate-container{
        grid-template-columns: auto;
        row-gap: 25px;
    }

    .contact-para, .donate-para{
        padding: 10px 0;
    }

    .donate-para p{
        font-size: 0.8rem;
    }

    .donate-container img{
        height: 300px;
        width: auto;
    }

    .payment-container{
        max-width: 350px;
        height: auto;
        padding-bottom: 20px;
    }

    .time-header{
        font-size: 1.1rem;
    }

    .first p{
        font-size: 0.8rem;
    }

    .second p{
        font-size: 0.75rem;
        padding: 0 15px;
    }

    .value{
        grid-template-columns: auto auto;
        row-gap: 20px;
    }

    .value button{
        padding: 10px 10px;
        font-size: 1.5rem;
    }

    .contact-container{
        padding: 0;
    }

    .contact-para p{
        font-size: 0.8rem;
    }

    .contact-container .dbl-field .field{
        width: 100%;
    }

    .socialMedia a{
        font-size: 1.6rem;
    }

    footer p{
        font-size: 0.5rem;
    }

    footer{
        max-width: 430px;
        padding: 10px 20px;
    }

    /* IPHONE X (375px) */

    .navbar{
        padding: 0 10px;
    }
    
    .content-team .image-container img{
        width: 160px;
        height: auto;
    }
}
