/* Styles for base page layout */
section {
    display: grid;
    width: 100%;
    height: 100vh;
    grid-template-areas:
        "head head"
        "nav  main"
        "nav  foot";
    grid-template-rows: 150px 1fr 40px;
    grid-template-columns: 150px 1fr;
}

section > header {
    grid-area: head;
    color: greenyellow;
    /* background-image: url("../images/ocean-water.jpg"); */
    background-color: darkblue;
}
section > header > div {
    height: 100%;
}
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    text-align: left;
    margin-left: 10rem;
    margin-right: 0;
    font-size: 3rem;
    height: 100%;
}
.header-text > p {
    padding: 1rem 0;
    /* margin: auto; */
}
section > nav {
    grid-area: nav;
    background: lightgray;
    padding-top: 50px;
    font-size: 1rem;
}
.nav-list {
    padding-left: 0;
    list-style-type: none;
    text-align: center;
}
.nav-list > li {
    display: block;
    margin-bottom: 1rem;
    cursor: pointer;
    color: darkblue;
    text-decoration: none;
}
.nav-list > li:hover {
    text-decoration: underline;
}
section > main {
    grid-area: main;
    background-color: white;
    text-align: center;
    padding: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
section > footer {
    grid-area: foot;
    background-color: white;
    font-size: 0.75rem;
    padding-top: 12px;
    margin: auto;
    margin-top: 24px;
}
.flash {
    margin: 1em 0;
    padding: 1em;
    background: #cae6f6;
    border: 1px solid #377ba8;
}
main {
    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    section {
        display: grid;
        width: 100%;
        height: 100vh;
        grid-template-areas:
            "head head"
            "nav  nav"
            "main main"
            "foot foot";
        grid-template-rows: 35px 50px 1fr 40px;
        grid-template-columns: 150px 1fr;
    }
    section > nav {
        padding-top: 12px;
        padding-inline-start: 0;
    }
}

.recipes-list {
    padding-bottom: 20px;
}

.recipe-page {
    display: block;
    width: 100%;
    font-size: 1.5rem;
}
.recipe-wrapper {
    display: grid;
    gap: 10px;
    width: 100%;
    /* height: 100%; */
    grid-template-areas:
        "ingredients image"
        "method method";
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    font-size: 1.25rem;
    /* text-align: center;
    max-width: 50rem; */
}
.ingredients-wrapper {
    grid-area: ingredients;
    padding-left: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.image-wrapper {
    grid-area: image;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-wrapper img {
    display: block;
    border-radius: 1%;
    width: 70%;
    margin: auto;
    border: 1px solid white;
}
.method-wrapper {
    grid-area: method;
    padding-bottom: 20px;
}

.method-wrapper h2 {
    margin-top: 0.5rem;
    padding-left: 10rem;
}
.method-wrapper h3 {
    margin-top: 0.5rem;
    padding-left: 10rem;
}
.method-wrapper ol {
    padding-left: 17.5rem;
}

.recipe-wrapper ul {
    /* display: inline-block; */
    list-style-type: none;
    text-align: left;
    max-width: 35rem;
    /* margin: auto; */
}
.recipe-wrapper ul ul {
    list-style-type: circle;
    text-align: left;
}
.recipe-wrapper ol {
    text-align: left;
    list-style-type: none;
    counter-reset: elementcounter;
    /* padding-left: 0; */
}

/* .recipe-wrapper ol li:before {
    content: "Step " counter(elementcounter) " :  ";
    counter-increment: elementcounter;
    font-weight: bold
} */
.recipe-wrapper ol li {
    counter-increment: elementcounter;
}
.recipe-wrapper ol li::marker {
    content: "Step " counter(elementcounter) " :  ";
    font-weight: bold;
}

/* .recipe-wrapper img {
    display: block;
    border-radius: 50%;
    width: 20%;
    margin: auto;
    border: 1px solid blue;
} */
.recipe-wrapper h2 {
    text-align: left;
}
.recipe-wrapper p {
    text-align: left;
}
.recipe-wrapper h3 {
    text-align: left;
}
.selection-page-wrapper ul {
    list-style: none;
    text-align: left;
}
.selection-page-wrapper ul li {
    padding-top: 0.5rem;
}
.selection-page-wrapper ul img {
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    width: 4rem;
    margin: auto;
    border: 1px solid white;
}
.selection-page-wrapper a {
    display: inline-block;
    vertical-align: middle;
    padding-left: 1rem;
}
