/* Couleurs du titre */
#header-title {
    background: linear-gradient(to bottom,rgb(245,245,220),rgb(245,245,220),rgb(0, 0, 253));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} 

/* Corps de la page */
#myBody {
    background-image:linear-gradient(to bottom right, rgba(57, 57, 219, 0.75), rgba(150, 216, 255, 0.8), rgba(216, 72, 216, 0.75));
}

/* La zone contenant les filtres et le texte "Filtres :" */
#filter {
    width: 80%;
    height: fit-content;
    background-color: aliceblue;
    margin-top: 9%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid black;
}

/* La liste des boutons */
#filter #filtres {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 1%;
    border-top: 2px solid black;
    /*border-bottom: 2px solid black;*/
    background-color: rgb(224,224,224);
}

/* Le texte "Filtres :" */
#filter p {
    margin-right: 0;
    padding: 0;
    height: fit-content;
    width: 100%;
    font-size: x-large;
    text-align: center;
    background-color: rgb(192,192,192);
}

/* Les boutons de filtres */
#filter button {
    font-size: large;
    width: 15%;
    border-radius: 20px;
    padding: 5px;
    margin: 0 0 1% 5%;
    cursor: pointer;
}

/* Couleurs des boutons */
#filter button.purple {
    border: 2px solid blueviolet;
    background-color: rgba(137, 43, 226, 0.2);
}
#filter button.green {
    border: 2px solid green;
    background-color: rgba(73, 226, 43, 0.2);
}
#filter button.blue {
    border: 2px solid blue;
    background-color: rgba(70, 43, 226, 0.2);
}
#filter button.red {
    border: 2px solid red;
    background-color: rgba(226, 43, 43, 0.2);
}

/* Couleurs du texte des boutons au survol */
#filter button:hover {
    color: white;
}

/* Couleurs des boutons au survol */
#filter button.purple:hover {
    background-color: blueviolet;
}
#filter button.green:hover {
    background-color: green;
}
#filter button.blue:hover {
    background-color: blue;
}
#filter button.red:hover {
    background-color: red;
}

/* Couleurs du texte des boutons quand sélectionnés */
#filter button.colored {
    color: white;
}

/* Couleurs des boutons quand sélectionnés */
#filter button.colored.purple {
    background-color: blueviolet;
}
#filter button.colored.green {
    background-color: green;
}
#filter button.colored.blue {
    background-color: blue;
}

/* Couleurs des boutons quand désélectionnés */
.colorLess {
    color: black;
}

/* La zone contenant les projets */
#projs {
    display: flex;
    width: 90%;
    justify-content: space-between;
    margin-top: 5%;
    flex-wrap: wrap;
}

/* La zone précédente étant divisée en 2 colonnes */
#projs .column {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 50%;
    align-items: center;
}

/* Chaque projet */
#projs .project {
    align-items: center;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    width: 40%;
    height: fit-content;
    padding: 2%;
    margin: 2%;
    text-align: center;
    border: 1px solid black;
    transition: 0.5s;
}

/* Projet caché */
#projs .project.hidden {
    display: none;
}

/* Projet survolé */
#projs .project:hover {
    width: 42%;
}

/* Lien sur un projet */
#projs .project a {
    text-decoration: none;
    color: black;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Titre et tags d'un projet */
#projs .project h3, #projs .project .tags {
    width: 90%;
    padding: 2% 0;
    border-bottom: 1px solid black;
    display: flex;
    flex-wrap: wrap;
}

/* Titre d'un projet */
#projs .project h3 {
    font-family: cursive;
}

/* Tags d'un projet */
#projs .project .tags {
    list-style-type: none;
    display: flex;
    justify-content: left;
    gap: 5%;
}

/* Chaque tag d'un projet */
#projs .project .tags li {
    font-size: large;
    width: 40%;
    border-radius: 20px;
    padding: 2px;
    margin-bottom: 1%;
}

/* Couleurs des tags */
#projs .project .tags li.purple {
    border: 2px solid blueviolet;
    background-color: rgba(137, 43, 226, 0.2);
}
#projs .project .tags li.green {
    border: 2px solid green;
    background-color: rgba(73, 226, 43, 0.2);
}
#projs .project .tags li.blue {
    border: 2px solid blue;
    background-color: rgba(70, 43, 226, 0.2);
}
#projs .project .tags li.red {
    border: 2px solid red;
    background-color: rgba(226, 43, 43, 0.2);
}

/* Image d'un projet */
#projs .project img {
    max-width: 90%;
    max-height: 33vh;
    object-fit: contain;
    padding: 2% 0;
}

/* Description d'un projet */
#projs .project .specs {
    text-align: justify;
    max-width: 90%;
    margin-left: 5%;
    list-style-type:circle;
}

@media only screen and (max-width:768px)  {

    #filter button {
        width: 24%;
    }

    #projs {
        flex-direction: column;
        align-items: center;
    }

    #projs .column {
        width: 100%;
    }

    #projs .project {
        width: 80%;
    }

    #projs .project:hover {
        width: 82%;
    }
}

@media only screen and (max-width:500px)  {

    #filter button {
        width: 40%;
        font-size: medium;
        padding: 2px;
    }

    #projs .project {
        width: 90%;
    }

    #projs .project:hover {
        width: 92%;
    }

    #projs .project h3 {
        font-size: large;
    }

    #projs .project .tags li {
        font-size: medium;
    }

    #projs .project .specs {
        font-size: small;
    }
}

@media only screen and (max-width:300px)  {

    #filter button {
        width: 80%;
        font-size: small;
        margin: 1% 0 1% 0;
    }

    #filter #filtres {
        justify-content: center;
    }

    #filter p {
        font-size: large;
    }

    #projs .project h3 {
        font-size: medium;
    }

    #projs .project .tags {
        justify-content: center;
    }

    #projs .project .tags li {
        width:80%;
        margin: 1% 0;
        font-size: small;
    }
}