/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.logoContainer button {
    color: #729a86;
    position: absolute;
    background-color: rgba(255, 255, 255, 0);
    right: 5px;
    top: 5px;
}

header,
footer {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 10px 0;
    text-align: center;
}

footer p{
    padding-left: 10px;
    padding-right: 10px;
}
header img{
    max-width: 500px;
}

@media (max-width: 400px) {
    header img {
        max-width: 100%;
        width: 100%;
        padding: 20px 0;
    }
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner h1 {
    font-size: 2em;

}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav a {
    color: #729a86;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 10px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #e6e6e6;
}

.container {
    width: 100vw;
    margin: auto;
    overflow: hidden;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.donateButton {
    background-color: #729a86;
    color: white;
}

.donateButton:hover {
    background-color: #575757;
}


.button {
    background-color: #729a86;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.button:hover {
    background-color: #53b886;
}

footer {
    margin-top: 20px;
    background-color: #575757;
    color: white;
}

footer div {

    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    width: 90vw;
    margin-left: 5vw;
    justify-content: space-around;
    color: #729a86;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}

footer div a {
    white-space: nowrap;
    color: #729a86;
    text-decoration: none;
}

/* text and image */
.textAndImage {
    display: flex;
    background-color: var(--black);
    color: white;
    width: 100vw;
}

.textAndImage div {
    text-align: center;
    align-self: center;
}

.textAndImage video,
.textAndImage img {
    max-height: 50vh;
}

.textAndImage img,
.textAndImage .img {
    width: 60vw;

    object-fit: cover;
}



.textAndImage div p {
    text-align: justify;
    font-size: 25px;
    margin-right: 10%;
    margin-left: 10%;
}

.show-menu {
    display: none;
    font-size: 1.5em;
    background: none;
    border: none;
    color: #729a86;
    cursor: pointer;
}

@media (max-width: 860px) {
    nav {
        display: flex;
        gap: 0px;
        font-size: 15px;
    }
}

@media (max-width: 730px) {
    nav {
        display: flex;
        gap: 0px;
        font-size: 12px;
    }
}

@media (max-width: 1000px) {
    .textAndImage {
        display: block;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    .textAndImage video,
    .textAndImage img,
    .textAndImage .img {
        margin-left: 5vw;
        margin-right: 5vw;
        width: 90vw;

        object-fit: cover;
    }

    .textAndImage div p {
        text-align: start;
    }
}


@media (max-width: 610px) {
    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav a {
        padding: 10px;
        border-bottom: none;
    }

    .show-menu {
        display: block;
    }

    #donateButtonContainer {
        display: block;
    }

    .banner h1 {
        font-size: 1.3em;
    }

    nav.active {
        display: flex;
    }
}

.textAnimation {
    opacity: 0;
    transition: 0.7s;
}

.animationFromTheLeft {
    transform: translate(-50px);

}

.animationFromTheBottom {
    transform: translate(0, 50px);
}

.active {
    opacity: 1;
    transform: translate(0, 0);
}

.section {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;


    transition: all 1s ease;
    /* Transition effect */
}

.section .title {
    display: flex;
    justify-content: space-between;
    /* Align items on the same line */
    align-items: flex-start;
}


.section h2 {
    margin-bottom: 10px;
}

.section {
    width: calc(80vw - 40px);
    margin-left: 10vw;
}

@media (max-width: 560px) {
    .section {
        width: calc(95vw - 40px);
        margin-left: 2.5vw;
    }
}

@media (max-width: 420px) {
    .section h2 {
        font-size: medium;
    }
}


.description {
    display: none;
}

.show-more {
    margin-top: 10px;
}

.show-more button {
    background-color: #729a86;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    /* Button color transition */
}

@media (max-width:420px) {
    .show-more button {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.show-more button:hover {
    background-color: #5bae85;
    /* Darker blue on hover */
}

#mainImg {
    width: 20vw;
    margin: 20px;
    margin-left: 40vw;
}

@media (max-width:850px) {
    #mainImg {
        width: 30vw;
        margin: 20px;
        margin-left: 35vw;
    }
}

@media (max-width:550px) {
    #mainImg {
        width: 40vw;
        margin: 42px;
        margin-left: 30vw;
    }
}

h1 {
    margin-top: 30px;
    text-align: center;
    width: 100vw;
    font-size: 32px;
    font-weight: bold;
    padding: 5px;
}
.infolettre{
    padding: 10px 20px;
    background-color: white;
    max-width: 95vw;
    margin-left: 50vw;
    width: 400px;
    transform: translate(-50%);
    border-radius: 5px;
}
.infolettre button{
    background-color: #729a86;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: white;
}
.infolettre input{
    width: calc(100% - 130px);
    border: 1px solid black;
    outline: none;
    border-radius: 5px;
}
.infolettre input.selected{
    outline: none;
}