/* General */
.button-error {
    background: rgb(202, 60, 60);
    color: white;
}

.align-right {
    text-align: right;
}

a {
    color: #3b8bba;
    text-decoration: none;
}

a:hover {
    color: #086397;
}

.success {
    background-color: rgba(78, 255, 78, 0.342);
}

.errorlist {
    background-color: rgba(255, 113, 78, 0.342);
}

.active-category {
    font-weight: bold;
}

/* Recipes list */
.single_recipe_outer {
    margin-top: 20px;
}
.single_recipe_inner {
    box-shadow: 0px 0px 40px #dddddd;
    border-radius: 10px;
    margin:5px;
    position: relative;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}
.recipe_title_container {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 20%;
    background-color: rgba(255, 255, 255, 0.8);
}
.recipe_title_container h4 {
    padding: 10px;
    margin: 0;
}
#search_container {
    float:right;
    text-align: right;
}
#search_container form {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
#search_container input[type="text"] {
    flex-grow: 1;
}
#search_container input[type="submit"] {
    flex-basis: 45px;
    flex-grow: 0;
}

/* Edit recipe form */
div.fieldWrapper {
    margin-bottom: 5px;
}
input.pure-button {
    margin-bottom: 5px;
}
textarea#id_description,input#id_title, input#id_portions {
    width: 100%;
    box-sizing: border-box;
}
.ingredient_row{
    display: flex;
}
.ingredient_row input {
    min-width: 5px;
}
.ingredient_row input[name=ingredient] {
    flex: 6;
}
.ingredient_row input[name=quantity] {
    flex: 3;
}
.ingredient_row input[name=unit] {
    flex: 2;
}
.ingredient_row input[type="button"] {
    flex-basis: 30px;
    flex-grow: 0;
}
.move_buttons_container {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8em;
}
.move_buttons_container input {
    margin: 0 3px 0 0;
    padding: 0 3px 0 3px;
    height: 50%;
}

/* View single recipe */
div#recipe_description{
    border-top: 1px solid rgba(129, 129, 129, 0.3);
    border-bottom: 1px solid rgba(129, 129, 129, 0.3);
    margin-bottom: 20px;
}