*
{
    font-family: "Nunito", sans-serif;
}

body
{
    margin: 0;
    padding: 0;

    height: 100vh;
}

#example
{
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    margin: 1vh;
    border: 0.4vh red solid;
    color: red;
    background-color: black;

    position: absolute;

    display: none;
}

main
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    width: auto;

    border: 0.4vh greenyellow solid;
    border-radius: 1vh;

    margin: 1vh;
    padding: 1vh;
}

.grid
{
    display: grid;
    grid-gap: 1vh;

    width: 100%;
}

.grid_header_content
{
    padding: 1vh;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;
}

.grid_content
{
    border: 0.4vh green solid;
    padding: 1vh;

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;
}

.image_listing
{
    height: 100%;
    width: 100%;

}

header
{
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    background: green;
    color: white;

    text-transform: uppercase;

    width: 100%;

    position: fixed;
    margin-bottom: 1000px;

}

#grid_header_top
{
    display: grid;

    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;

    padding: 2vh;

    margin: 1vh;

    width: 75%;
}

#home_button a
{
    padding: 1vh;

    background-color: white;
    border-radius: 1vh;

    /* border: 0.4vh cyan solid; */

    color: black;

    border: ridge 0.4vh rgb(0, 103, 0);

    text-decoration: none;

    box-shadow: 3px 3px 3px black;

    text-align: center;
}

ul{ margin: 0px; padding: 0px}

#menu_principal
{
    width: 60%;

    /* border: 0.4vh blue solid; */

    margin: 1vh;

    display: none;
}

#menu_principal ul
{
    list-style: none;

    display: grid;

    grid-template-columns: repeat(1, 3fr);
    grid-template-rows: 1, 1fr;

    gap: 1vh;
    padding: 0vh;
    margin: 1vh;
    
}

#menu_principal ul li
{

    background-color: white;
    border-radius: 1vh;

    border: ridge 0.4vh rgb(0, 103, 0);

    padding: 1vh;
    margin: 1vh;

    box-shadow: 3px 3px 3px black;
    text-align: center;

}

#menu_principal ul li a
{
    color: black;
    text-decoration: none;
    margin: 1vh;
}

.button
{
    cursor: pointer;
    background-color: white;
    border-radius: 1vh;
    border: ridge 0.4vh rgb(0, 103, 0);

    box-shadow: 3px 3px 3px black;
}

.menuIcon
{
    width: 48px;
}

footer
{
    display: flex;

    justify-content: center;

    background: green;
    color: white;

    bottom: 0px;

    position: fixed;
    width: 100%;
}

#main_grid
{
    grid-template-columns: 1fr;
}

/* Page form_recherche */

#submitButton
{
    color: white;

    background-color: black;
}

#searchForm
{
    display: flex;
    flex-direction: column;

    width: 50vw;
    gap: 1vh;
    
    text-align: center;

    margin: 1vh;
    padding: 1vh;

    border: 0.4vh green solid;
    border-radius: 1vh;
    
}

/* Page reponse_recherche */

#result
{
    color: grey;

    margin: 1vh;

    /* border: 0.4vh magenta solid; */

    text-decoration: underline;

    padding: 1vh;
}

#listeGestion
{
    display: flex;
    flex-direction: column;
    list-style: none;
}


#listeGestion li
{
    margin: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

#listeGestion li a
{
    color: white;
    text-decoration: none;
}

.iconLinkContainer
{
    display: flex;
    justify-content: center;
}

.iconLink
{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 2vh;
    justify-content: center;

    color: black;
    padding-top: 2vh;
    padding-bottom: 2vh;
    text-decoration: none;
}

.addLink
{
    border: 0.6vh dashed green;
    background-color: lightgreen;
    width: 100%;
}

.backLink
{
    border: 0.6vh dashed grey;
    background-color: lightgrey;
    width: 100%;
}
.formContainer
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-crop 
{
    height: 200px;

    aspect-ratio: 1 / 1;
    
    object-fit: cover;
    object-position: center;

    
}

.radiused
{
    border-radius: 1vh;
    background-color: green;
    padding: 1vh;
}
table
{
    border: none;
}

table thead tr th 
{
    font-weight: bolder;
    background-color: green;
    color: white;

}

table tbody tr td a
{
    text-decoration: none;
    color: green;
    font-weight: bold;
}

.tableContainer
{
    display: flex;
    justify-content: center;
}

.topSpace
{
    height: 43vh;
}

/* Responsive pour PC */

@media screen and (min-width: 576px) 
{

    #menu_principal ul
    {
        list-style: none;

        display: grid;

        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1, 1fr;
        
    }

    #searchForm
    {
        width: 25vw;
    }

    #menu_principal
    {
        display: block;
    }

    #grid_header_top
    {
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: 1fr;
    }

    #listeGestion
    {
        flex-direction: row;
    }

    .stackedInputsContainer
    {
        display: flex;
        justify-content: space-evenly;
        margin: 1vh
    }

    .stackedInputs
    {
        margin: 1vh;
    }

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

    .addLink
    {
        width: 50%;
    }

    .backLink
    {
        width: 50%;
    }

    .topSpace
    {
        height: 31vh;
    }


}

/* Obligé de faire comme ça car mes lignes sont trop larges et la page n'est autrement pas responsive entre 576px et 1090px (des colonnes sont coupées en 2) */

@media screen and (min-width: 738px)
{
    #main_grid
    {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1090px)
{
    #main_grid
    {
        grid-template-columns: repeat(3, 1fr);
    }
}