body {
    background-color: #F8F8FF;
    margin: 0px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    background-color: #28A745;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100px;
    max-height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

.headerImg {
    height: 90px;
}

.headerImg:hover {
    cursor: pointer;
}

main {
    background-color: #F8F8FF;
    flex: 1;
    min-height: 1080px;
    font-family: Arial;
    font-size: 24px;
    padding-top: 136px;
}

#footer {
    background-color: #145A32;
    width: 100%;
    height: 16vh;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.footerTop {
    display: flex;
    flex: 1;
}

.footerLeft, .footerRight {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footerRight a img {
    height: 50px;
    width: 50px;
    padding: 0 10px;
}

.boxProfiles{
    display: flex;
    flex-direction: column;
}

.boxProfiles p {
    place-self: center;
    padding: 6px;
}

.footerBottom {
    display: flex;
    justify-content: end;
    height: 20px;
}

.footerText {
    font-size: 17px;
    color: white;
    font-family: Arial;
    margin: 0;
}

#homeSection, #discoverySection, #englishSection, #legacySection {
    padding-top: 20px;
    padding-bottom: 20px;
    display: none;
    flex-direction: column;
    align-items: center;
}

#homeSection.active, #discoverySection.active, #englishSection.active, #legacySection.active {
    display: flex;
}

.boxMain, .boxIntroduction {
    display: flex;
    height: fit-content;
    justify-content: center;
    align-items: center;
}

.boxIntroduction {
    flex-direction: column;
    padding: 0% 5%;
    margin-top: 3%;
    margin-bottom: 3%;
}

.boxMain {
    flex-direction: row;
    width: 80%;
    margin-bottom: 90px;
}

.boxImage {
    width: 96%;
    height: 12%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.infoImage {
    width: 320px;
    height: auto;
}

#introductionImage {
    width: 500px;
}

.boxText {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.infoTitle, .infoParagraph {
    justify-content: center;
    align-items: center;
}

.infoParagraph, .pt-text, .pre-pt-text {
    text-indent: 60px;
}

.infoTitle {
    font-size: 30px;
    margin-bottom: 15px;
}

.infoTitle, .gallerySubtitle {
    margin-top: 30px;
}

.infoParagraph {
    padding-left: 3%;
    padding-right: 3%;
}

.pt-text {
    display: none;
}

.pt-text, .pre-pt-text {
    color: #555;
    padding-left: 3%;
    padding-right: 3%;
}

.boxText[data-lang-shown="true"] .pt-text {
    display: block;
}

.toggle-lang {
    background-color: #28A745;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    align-self: center;
    margin-top: 10px;
}

.toggle-lang:hover {
    background-color: #1e7e34;
}

.nav-menu {
    position: fixed;
    right: 0;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background-color: #28a044;
    border: 1px solid #1c7932;
    width: 100%;
    height: 36px;
    z-index: 1000;
}

.nav-menu a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: whitesmoke;
    font-weight: bold;
    font-family: Arial;
}

.nav-menu a:hover {
    background-color: #1c7932; 
}

#listEn, #listPt {
    text-indent: 0;
}

.extraIndent {
    padding-left: 60px;
}

.boxGallery {
    padding-bottom: 40px;
}

.gallerySubtitle {
    font-size: 27px;
}

.contentGallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.contentGallery img {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 576px) {
    main {
        font-size: 18px;
        padding-top: 108px;
    }
    .infoTitle {
        font-size: 24px;
    }
    .gallerySubtitle {
        font-size: 21px;
    }
    .infoParagraph, .pt-text, .pre-pt-text {
        font-size: 16px;
        text-indent: 35px;
    }
    .boxMain{
        flex-direction: column;
    }
    .headerImg {
        height: 64px;
    }
    #header {
        height: 72px;
    }
    .nav-menu {
        top: 72px;
    }
    #introductionImage{
        width: 250px;
    }
    .nav-menu a {
        font-size: 10px;
    }
    .extraIndent {
        padding-left: 35px;
    }
    .contentGallery img {
        width: 125px;
    }
    .footerBottom {
    height: 16px;
    }
    .footerText {
        height: 13px;
    }
    .footerRight a img {
        height: 36px;
        width: 36px;
        padding: 0 8px;
    }
    .footerText {
        font-size: 14px;
    }
}

@media only screen and (max-width: 375px) {
    main {
        font-size: 16px;
        padding-top: 108px;
    }
    .infoTitle {
        font-size: 18px;
    }
        .gallerySubtitle {
        font-size: 15px;
    }
    .infoParagraph, .pt-text, .pre-pt-text {
        font-size: 12px;
        text-indent: 15px;
    }
    .boxMain{
        flex-direction: column;
    }
    .headerImg {
        height: 50px;
    }
    #header {
        height: 64px;
    }
    .nav-menu {
        top: 64px;
    }
    #introductionImage{
        width: 200px;
    }
    .nav-menu a {
        font-size: 8px;
    }
    .extraIndent {
        padding-left: 15px;
    }
    .contentGallery img {
        width: 75px;
    }
    .footerBottom {
    height: 12px;
    }
    .footerText {
        height: 9px;
    }
    .footerRight a img {
        height: 25px;
        width: 25px;
        padding: 0 6px;
    }
    .footerText {
        font-size: 10px;
    }
}