.hidden {
    display: none !important;
}

#home-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10000;

    padding: 10px 18px;
    transition: all 0.3s ease;

    font-size: 0.8em;
    color: #6cd58d;
    letter-spacing: 3px;
    text-shadow: 0px 0px 3px #6cd58d, 0px 0px 6px #6cd58d, 0px 0px 3px white;
    filter: drop-shadow( 0 10px white) drop-shadow( 10px 0 white) drop-shadow( 0 -10px white) drop-shadow( -10px 0 white);
}

#home-btn:hover {
    color: rgb(192, 61, 179);
    border-color: var(--color-pink);
    text-shadow: 0 0 6px var(--color-pink);
}


.titre {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#title-image {
    width: 45%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#title-image:hover {
    transform: scale(1.01); 
}

h1 {
    font-size: 5rem;
}

main {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.section-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 200px; 
    flex-shrink: 0; 
    position: fixed; 
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto; 
    padding-left: 25px;
    gap: 40px;
}

.categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 20px;
}

.categories h3 {
    font-size: 1.2em;
    color: rgb(192, 61, 179);
    letter-spacing: 3px;
    font-size: 1.2em;
    text-shadow: 0px 0px 3px var(--color-pink), 0px 0px 6px var(--color-pink), 0px 0px 3px white;
    filter: drop-shadow( 0 20px white) drop-shadow( 20px 0 white) drop-shadow( 0 -20px white) drop-shadow( -20px 0 white);
}

.categories--item {
    cursor: pointer;
    transition: all 0.5s ease;
    margin: 0;
    display: inline-block;
}

.categories--item:hover {
    color: var(--color-purple, #6cd58d);
    letter-spacing: 5px;
}

.categories--item.active {
    text-shadow: 0px 0px 1px rgb(229, 255, 57), 0px 0px 6px rgb(217, 255, 65), 0px 0px 3px rgb(250, 250, 85);
}

.categories--details {
    text-shadow: 0px 0px 1px white, 0px 0px 6px white, 0px 0px 1px white;
    filter: drop-shadow( 0 10px white) drop-shadow( 10px 0 white) drop-shadow( 0 -10px white) drop-shadow( -10px 0 white);
}

.section-grid {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 30px;
    min-height: 100vh;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
    max-width: 1100px; 
    margin: 0 auto;
    align-items: center;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-card img {
    width: 100%;

    object-fit: cover;
    display: block;

    filter: drop-shadow(0 0 0.4rem rgb(255, 251, 226));
    border: double 3px rgb(48, 10, 118);
}

.gallery-caption {
    font-size: 0.5rem;
    text-align: center;
    margin-top: 8px;
    color: #ffffff;
}

.gallery-card:hover {
    transform: scale(1.5);
    z-index: 10;

    .gallery-caption{
        color: var(--color-grey-black);
        text-shadow: 0px 0px 1px white, 0px 0px 3px white, 0px 0px 1px white;
        filter: drop-shadow( 0 5px white) drop-shadow( 5px 0 white) drop-shadow( 0 -5px white) drop-shadow( -5px 0 white);
    }
}








@media (max-width: 700px) {
    #welcome-screen,
    #enter-btn {
        display: none !important;
    }

    #title-image {
        width: 80%;
    }

    main {
        display: flex;
        flex-direction: column;
    }
    .section-left {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        padding-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
        width: 100%;
    }

    .categories h3 {
        text-shadow: 0px 0px 3px var(--color-pink), 0px 0px 3px var(--color-pink), 0px 0px 1px white;
        filter: drop-shadow( 0 10px white) drop-shadow( 10px 0 white) drop-shadow( 0 -10px white) drop-shadow( -10px 0 white);
    }

    .categories--details {
        text-align: center;
    }

    .categories li {
        margin-bottom: 0;
    }

    .categories h3 {
        font-size: 0.8em;
    }

    .categories--item {
        font-size: 0.8em;
    }

    .section-grid {
        margin-top: 20px;
        margin-left: 0;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .gallery-card:hover {
        transform: scale(1.5);
    }

    .gallery-caption{
        font-size: 0.3em;
    }
}