.container
    {
        overflow-y: auto;
    }
.inContainer {

	flex-direction: row;
	align-items: flex-start;
	    overflow: hidden;
}

.box{
	width: calc(50% - 20px);
    margin: 10px;
}

.card {
    position: relative;
}

i.material-symbols-outlined{
        font-size: 12px;
}

#ingredients {
    width: calc(60% - 10px);
    display: flex;
    flex-direction: row;
    margin: 5px;
    overflow: auto;
    height: calc(100% - 10px);
    flex-wrap: wrap;
}

#add_ingredient {
    width: calc(40% - 10px);
    display: flex;
    margin: 5px;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.delete-button {
    position: absolute;
    top: 25%;
    right: 0px;
    background: var(--main-color-secondaire);
    color: var(--main-color-body);
    border: none;
    border-radius: 1em;
    cursor: pointer;
    height: 20px;
    width: 20px;
    font-size: x-small;
    text-align: center;
}

.edit-button {
    position: absolute;
    top: 25%;
    right: 25px;
    background: var(--main-color-secondaire);
    color: var(--main-color-body);
    border: none;
    border-radius: 1em;
    cursor: pointer;
    height: 20px;
    width: 20px;
    font-size: x-small;
    text-align: center;
}

.select2  {
    width: 100% !important;
    text-align: center;
    display: flex;
    margin-left: 10% !important;
    flex-direction: column;
}

.select2-dropdown
{
  background-color: transparent;
    border: none;
}

.select2-results {
  background-color: var(--vanille);
  width: 90%;
}




#ingredient-form{
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
}

@media screen and (max-width: 950px) {

    .inContainer {
       flex-direction: column-reverse;
       align-items: center;
       overflow: auto;
    }

    #add_ingredient {
        width: calc(100% - 10px);
        align-items: center;
        height: auto;
    }
     #ingredients {
        width: calc(100% - 10px);
    }


}
@media screen and (max-width: 450px) {

    .box {
        width: calc(100% - 20px);   
    }

    #ingredients {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    }

    
}