/*
Palette: #255721 #4A4444 #ebeadf
*/
html {
    scroll-behavior: smooth;
}
body {
    font-family: Nunito;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #000000;
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: Nunito;
    color: #255721;
}
p{
    font-size: 20px;
}

a {
    font-size: 18px;
    text-decoration: none;
    color: #000000;
    cursor: pointer;
}
.container {
    width: 80%;
    margin: 0 auto;
    height: max-content;
}

h1 {
    font-size: 30px;
}

.container-nav {
    width: 80%;
    margin: 0 auto;
    height: fit-content;
}


header {
    background-color: #ffffff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 3px 4px 0 rgba(0,0,0,.2);
    z-index: 99;
}

header img {
    height: 70px;
    padding: 5px 0;
}
nav {
    display: flex;
    height: fit-content;
    justify-content: space-between;
    align-items: center;


    

}
nav ul {
    list-style: none;
    padding: 0;
    float: right;
    display: flex;
    gap: 20px;
    justify-tracks: right;
    
}

.icon {
    display: none;
}

nav ul li {
    display: inline;
    
}

nav ul li a {
    color: #000000;
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    display: block;
    background: black;
    transition: 300ms;
}

nav ul li a:hover::after {
    width: 100%;
}

.show , .hide{
    display: none;
}

.hero {
    background-image: url(assets/fixed-image1.jpg);
    padding-top: 100px;
    text-align: center;
    height: 500px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.container-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    align-items: center;
    height: 100%;
}

.hero h2, h1{
    color: white;
    margin: 0;
    padding: 20px 20px;
}

.text-box {
    background-color: #00000057;
    margin: 0;

    width: fit-content;
    border-radius: 5px;
    box-shadow: 0 3px 4px 0 rgba(0,0,0,.2);
    
}

.hero h1 {
    font-size: 40px;
}

.hero button {
    background-color: #ffffff;
    border-style: solid;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-family: Nunito;
    font-weight: 700;
    cursor: pointer;
}

.hero button::after {
    content: '';
    width: 100%;
    transform: scale(0);
    height: 2px;
    display: block;
    background: black;
    transition: 300ms;

}
.hero button:hover::after {
    transform: scale(1);
}

section {
    padding: 50px 0;
    text-align: center;
}


.about h1{
    color: #255721;
    text-align: left;
    font-size: 36px;
    padding: 20px 0;
}

.about h2 {
    color:#000000;
    font-size: 24px;
    text-align: left;
}

.about p {
    font-size: 20px;
    padding: 20px 0;
    text-align: left;
}

.container-about {
    width: 60%;
    margin: 0 auto;
    height: max-content;
}
.double-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 40px;
    justify-content: center;
    flex-direction: row;
    justify-items: center;
}

.about img {
    width: 100%;
    border-radius: 5px;
    margin: 30px 0;
}

.programs {
    background-color: #ebeadf;

}

.programs h1 {
    color: #000000;
    font-size: 36px;
}



.container-programs {
    width: 60%;
    margin: 0 auto;
    height: max-content;
    max-width: 90%;
}

.programs img {
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1;
    scale: 1.07;
    height: 100%;
    width: 100%;
    transition: all ease-in-out 0.3s;
}

.programs img:hover {
    scale: 1.1;
}

.image-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}


.training-box {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 0.5fr;
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    justify-items: center;
    text-align: center;
    gap: 30px;
    width: fit-content;
    justify-content: space-evenly;


}


.training-box-text {
    background-color: white;
    display: block;
    width: 80%;
    text-align: center;
    border-radius: 5px;
    color: #000000;

    height: fit-content;
}

.training-box-text h2, p {
    padding: 20px;
    margin: 0;
    color: #000000;
}

.training-box-text p {
    margin-bottom: 20px;
}

.test {
    background-color: #255721;
}

.test p, h1 {
    color: #FFFFFF;
}

.container-test {
    width: 40%;
    margin: 0 auto;
    height: max-content;
}

.test img {
    width: 100px;
}


p.attr#attr{
    font-size: 12px;
    padding: 10px 0;
    margin: 0;
    color: #FFFFFF;

}

footer {
    background-color: #4A4444;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0;
    height: fit-content;


}

footer a {
    color: #ffffff;
}

footer img {
    height: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.container-footer {
    width: 80%;
    margin: 0 auto;
    height: max-content;
}

footer h1 {
    margin: 0;
    padding: 10px 0;
}

.social-box {
    height: fit-content;
    display: inline;
}

.social-wrap {
    padding: 10px 0;
}

.footer-section p {
    color: #FFFFFF;
    padding: 10px 0;
    font-size: 18px;
}

@media screen and (max-width: 750px) {
    .double-section {
        grid-template-columns: 1fr ;
        grid-template-rows: 1fr 1fr;
    }

    .container, .container-about, .container-footer, .container-nav, .container-programs, .container-test {
        width: 90%;
    }

    .programs img:hover {
        scale: 1.07;
    }

    .about h1 {
        text-align: center;
        font-size: 30px;
    }
    .about-section {
        text-align: center;
        
    }

    .about p, .about h2 {
        text-align: center;
        }


    .double-section {
        gap: 0;
        justify-items: left;
    }
    .image-box {
        width: 100%;
        height: fit-content;
        align-self: flex-end;
    }
    .training-box {
        height: fit-content;

    }
    .training-box-text {
        width: 100%;
    }
    .training-section {
        margin-bottom: 60px;
    }
    .menu{
        flex-direction: column;
        position: absolute;
        background-color: #FFFFFF;
        width: 100%;
        top: 0;
        left: 0;
        margin-top: 80px;
        padding-bottom: 20px;

        box-shadow: 0 3px 4px 0 rgba(0,0,0,.2);
        transform: translateY(-350px);
        opacity: 0;
        z-index: 7;
        animation-name: animation1;
        animation-duration: 0.5s;
        animation-iteration-count: 1;
        animation-fill-mode: both;

        

    }

    .show {
        display: flex;
        animation-name: animation;
        animation-duration: 0.3s;
        animation-iteration-count: 1;
        animation-fill-mode: both;
        
    }

    @keyframes animation {
        0% {
            transform: translateY(-350px);
            opacity: 0;
        }
        40% {
            opacity: 1;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    @keyframes animation1 {
        0% {
            transform: translateY(0);
            opacity: 1;
        }
        60% {
            opacity: 0;
        }
        100% {
            transform: translateY(-350);
            opacity: 0;
        }
    }

    .menu li {
        display: block;
        text-align: right;
        padding-right: 20px;

    }
    nav img {
        height: 50px;
        z-index: 9999;

    }
    nav {
        display: flex;
        transition: all 0.3s;

    }
    nav ul li a::after {
        display: none;
    }




    .icon {
        display: inline-block;
        position: absolute;
        right: 0;
        padding-right: 20px;

        cursor: pointer;
        z-index: 9999;
        

    }


    .bar1, .bar2, .bar3 {
        width: 20px;
        height: 3px;
        background-color: #333;
        margin: 3px 0;
        transition: 0.3s;
      }
      
      .change .bar1 {
        transform: translate(0, 6px) rotate(-45deg);
      }
      
      .change .bar2 {opacity: 0;}
      
      .change .bar3 {
        transform: translate(0, -6px) rotate(45deg);
      }

      .hero button::after {
        display: none;
      }
      .hero button {
        color: #000000;
        text-decoration: none;
      }
      .hero {
        background-attachment: scroll;
      }
    
}

@media screen and (max-width: 1700px) {
    .container-programs {
        width: 90%;
        
    }
    
}