﻿body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin: 0;
    background-color: #e2e2e2;
}

body > * {
    padding: 20px 10%;
}

.banner-image {
    width: 100%;
}
.banner-image  img {
    width: 100%;
    margin-bottom: 23px;
}

.warning-text {
    text-align: center;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    border: 1px solid black;
    padding: 13px;
    background-color: #ccc;
}

.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

    .row.no-gutters > [class^="col-"],
    .row.no-gutters > [class*=" col-"] {
        padding-right: 0;
        padding-left: 0;
    }

.recipe-narrative {
    margin-bottom: 23px;
}

main {
    margin-top: 13px;
}

button {
    cursor: pointer;
}

.searchButton {
    height: 42px;
    width: 100%;
}

.nav-toolbar {
    position: absolute;
    top: 13px;
}
.w3-panel {
    width: 100%;
    padding: 13px;
    font-size: .8em;
    background-color: #e2e2e2 !important;
}
.w3-panel-text {
    position: relative;
    left: 8px;
    color: darkslategrey
}

.material-icons {
    float: left;
    position: relative;
    left: -8px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
}

h1 {
    color: #435896;
    text-align: center;
}

p, input {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

input[type="checkbox"] {
    vertical-align: middle;
}

header {
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    height: inherit;
}

.search {
    display: flex;
    align-items: center;
    max-width: 30em;
    margin: 0 auto;
    background: #F5F5F5;
    opacity: 0.78;
    color: #666666;
    border: 1px solid #999999;
    border-radius: 2px;
    padding: 6px 12px;
}

    .search input {
        flex: 1;
        font-family: Open Sans;
        font-size: 14px;
        line-height: 20px;
        border: none;
        background: inherit;
    }

    .search input:focus {
        outline: none;
    }

    .recipe {
        margin-bottom: 192px;
    }

.recipe-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
    grid-gap: 20px;
}

.recipe-list-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

    .recipe-list-item a {
        text-decoration: none;
        color: inherit;
    }

    .recipe-list-item:hover {
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    }

.recipe-card {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
}

    .recipe-card img {
        width: 100%;
    }

.recipe-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0px 8px 0px 8px;
}

.recipe-id {
    font-size: 9px;
    text-align: right;
    position: relative;
    bottom: 0px;
    right: 13px;
}

.recipe-backlink {
    text-align: center;
}

.recipe-backlink > a:hover {
    text-decoration: none;
 }

.recipe-card-name {
    margin: 1rem 0 1rem 0;
}

.recipe-card-source {
    margin-top: 0;
}

.recipe-card .star-rating {
    margin-top: auto;
    justify-content: flex-end;
}

.recipe-details-container {
    margin: 0 auto;
    width: 800px;
}

.back-link {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    color: #435869;
    text-decoration: none;
    background-color: white;
    color: #435869;
    border: 1px solid #435869;
    padding: 8px;
    border-radius: 5px;
    margin: 0 auto;
}

.source-and-servings {
    text-align: center;
    text-transform: uppercase;
    color: #212A31;
    text-align: center;
    margin: 5px 0;
}

.recipe > .star-rating-avg {
    text-align: center;
    margin: 5px auto;
}

.recipe-banner {
    display: block;
    width: 100%;
}

    .recipe-banner img {
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        max-width: 1800px;
    }

.recipe-details {
    padding: 0 5%;
}

    .recipe-details ul {
        list-style: none;
        padding: 0;
    }

.tag {
    font-size: 0.8em;
    background-color: #eaeaea;
    text-transform: uppercase;
    padding: 0 4px;
}

button {
    padding: 6px 25px;
    font-family: Playfair Display;
    color: white;
    background-color: #435869;
    border-radius: 2px;
    border: 0;
}

button:hover {
    background-color: #334452;
}

button:active {
    background-color: #26343f;
}

.review-editor {
    margin-bottom: 10px;
}

input.invalid, textarea.invalid, div.invalid {
    border: 1px solid red;
}

.validation-errors {
    color: red;
    font-size: 0.8em;
}

.reviews .rating
{
    display: none;
}

footer {
    background: #435869;
    font-family: 'Open Sans', sans-serif;
    color: white;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 13px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/*
    This file is to show how CSS and other static resources (such as images) can be
    used from a library project/package.
*/

.star-rating {
    --percent: calc(var(--star-rating) / 5 * 100%);
    font-size: 1.5em;
    display: inline-block;
}

    .star-rating .stars {
        position: relative;
        display: inline-block;
    }

        .star-rating .stars::before {
            position: absolute;
            content: "☆☆☆☆☆";
            color: #666666;
        }

        .star-rating .stars::after {
            position: absolute;
            top: 0;
            left: 0;
            content: "★★★★★";
            color: #feac25;
            width: var(--percent);
            overflow: hidden;
        }

    .star-rating .rating {
        font-size: 1.4ex;
        color: #605E5C;
        position: relative;
        top: -1px;
    }

    .star-rating input {
        display: none;
    }

    .star-rating label {
        float: right;
    }

        .star-rating label:before {
            content: "☆";
            color: #666666;
            cursor: pointer;
        }

    .star-rating input:checked ~ label:before,
    .star-rating:not(:checked) > label:hover:before,
    .star-rating:not(:checked) > label:hover ~ label:before {
        content: "★";
        color: #feac25;
    }

.reviews textarea {
    display: block;
    padding: 6px 8px;
    margin-bottom: 5px;
    width: 100%;
    border: 1px solid #605E5C;
    border-radius: 2px;
    font-family: Open Sans, sans-serif;
    font-size: 0.8em;
    color: #605E5C;
    box-sizing: border-box;
}

.reviewer {
    font-size: .9em;
    font-style: italic;
    position: relative;
    top: -4px;
}