body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Nécessaire pour gérer les positions des éléments */
    overflow: hidden; 
}

.legend {
    position: absolute;
    left: 0;
    top: 0;
    padding: 2vw;
    height: 100vh;
    width: 30vw;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    transform: translateX(0);
    z-index: 1;
    transition: transform 0.5s ease;
    /* background-color: aqua; */
}

.taxonomyTitle {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
}
.taxonomyText{
    text-align:justify;  
    text-justify:inter-word;
    font-size: 1rem;
    line-height: 1.1rem;
}
.taxonomyText p{
    padding-bottom: 0.5rem;
}

.footer{
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.8em;
}

.TaxonomyRevealZone {
    /* background-color: rgb(63, 95, 95); */
    position: fixed;
    left: 0;
    top: 0;
    width: 10vw;
    height: 100vh;
    z-index: 10;
    cursor: pointer;
    display: none;
    /* background-color: rgb(226, 43, 43); */
}
.TaxonomyCloseZone{
    /* background-color: aqua; */
    z-index: 10;
    position: fixed;
    right: 0;
    top: 0;
    width: 50vw;
    height: 100vh;
    cursor: pointer;
    display: none;
    /* background-color: rgba(163, 163, 163, 0.483); */
}
.TaxonomyButton{
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.6rem;
}
.TaxonomyCloseButton{
    z-index: 9;
    position: absolute;
    left: 2vw;
    height: 300px;
    top: 50vh;
    margin-top: -150px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, opacity 0.5s cubic-bezier(0.860, 0.000, 0.070, 1.000);
}
.TaxonomyRevealButton{
    z-index: 9;
    position: absolute;
    left: 2vw;
    height: 300px;
    top: 50vh;
    margin-top: -150px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, opacity 0.1s cubic-bezier(0.860, 0.000, 0.070, 1.000);
}
.TaxonomyButtonArrow{
    font-size: 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.TaxonomyButtonText{
    justify-content: center;
    align-items: center;
    margin-left: -0.2rem;
}





.gallery-container {
    width: 100vw;
    max-width: 70vw;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: right;
    position: absolute;
    right: 0;
    transition: transform 0.5s ease; /* Ajout d'une animation de déplacement */
    z-index: 0;
    /* background-color: blue; */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: right;
    justify-content: right;
    overflow: scroll; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    width: 100%;
    height: 100%;
    margin-right: clamp(1.5px, 0.2vw, 3px);
}

.gallery::-webkit-scrollbar {
    display: none;
}

.pictureFrame {
    position: relative;
    flex-basis: fit-content;
    margin: clamp(1.5px, 0.2vw, 3px);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
}

.pictureSource {
    width: 15vw;
    min-width: 70px;
    max-width: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pictureSource:hover {
    cursor:pointer;
    transform: scale(1.1); 
}

/* Fullscreen image container */
.fullscreen-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Fullscreen image */
.fullscreen-image {
    max-width: 80%;
    max-height: 60%;
    margin: 10px;
}

/* Title or description container */
.fullscreen-title {
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
}
.close-text {
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
}



@media (max-width: 1000px) {
    .gallery-container {
        max-width: 95vw;
        transform: translateX(50vw);
        /* align-items: center;
        justify-content: center; */
    }
    .close-text {
        font-size: clamp(0.5rem, 3.5vw, 1rem);
    }
    .fullscreen-title {
        font-size: clamp(0.5rem, 3.5vw, 1rem);
    }
    .legend{
        /* background-color: aqua; */
        width: 50vw;
        transform: translateX(0vw);
    } 

    .taxonomyTitle{
        font-size: clamp(1rem, 5vw, 1.8rem);
    }
    .taxonomyText{
        font-size: clamp(0.5rem, 2.5vw, 0.9rem);
        line-height: clamp(0.55rem, 2.75vw, 0.99rem);
        /* line-height: 0.66rem; */
    }

    .footer{
        font-size: clamp(0.4rem, 1.6vw, 0.8rem);
        text-wrap: nowrap;
    }
    .footerText{
        text-wrap: nowrap;
    }

    .TaxonomyRevealZone{
        display: none;
        /* background-color: rgba(255, 0, 0, 0.144); */

    }
    .TaxonomyCloseZone{
        display: block;
        /* background-color: rgba(0, 255, 255, 0.205); */
    }
    .TaxonomyRevealButton{
        display: flex;
        opacity: 0;
        transform: translateX(50vw);
    }
    .TaxonomyCloseButton{
        display: flex;
        opacity: 100;
        transform: translateX(50vw);
    }
}
  
