/* https: //coolors.co/5a7d7c-e8eef2-d6c9c9-232c33 */

:root {
    --lightgreen: #5a7d7c;
    --lightblue: #e8eef2;
    --timber: #d6c9c9;
    --gunmetal: #232c33;

    --serif: "Merriweather",
        serif;
    --sans: "Montserrat",
        sans-serif
}

body {
    padding: 0;
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
}

p,
span,
li {
    font-family: var(--sans);
}

nav {
    text-align: left;
}

#name {
    /* border: 1px solid white; */
    align-content: left;
}

#name h1 {
    font-size: 1.3rem;
    color: white;
}

.off-screen {
    background-color: var(--lightgreen);
    width: 100%;
    max-width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    font-size: 1.5rem;
    color: white;
    transition: .3s ease;
    text-align: left;
    z-index: 2000;
}

.off-screen ul {
    margin-top: 5rem;
    list-style: none;

}

.off-screen li {
    margin-top: 15px;
}

.off-screen.active {
    right: 0;
}

nav {
    padding: 1rem;
    display: flex;
    align-items: baseline;
    background-color: var(--gunmetal);
}

.off-screen ul li a {
    text-decoration: none;
    color: white;
    font-size: large;

}

.ham-menu {
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
    top: 1rem;
}

.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: var(--timber);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    z-index: 3000;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    top: 50%;

    transform: translate(-50%, 50%) rotate(-45deg);
}

.current {
    font-weight: bold;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    text-align: center;
    justify-items: center;
    color: white;
    background-image: linear-gradient(var(--gunmetal), var(--lightgreen));
}

.recipeCard {
    padding: .5rem;
    color: var(--timber);
    padding-bottom: 80px;
}

.genBtn {
    width: 60%;
    max-width: 400px;
    border: none;



    font-weight: bold;
    color: var(--gunmetal);
    left: 10%;
    transform: translateX(-10%);
    padding: 1rem .5rem;
}

.fave {
    width: 20%;
    max-width: 200px;
    padding: .8rem .5rem;
    right: 10%;
    transform: translateX(-10%)
}

.ingredients::-webkit-scrollbar,
.instructions::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

.ingredients::-webkit-scrollbar-thumb,
.instructions::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: linear-gradient(#5a7d7c5e, #232c334c);
    overflow: hidden;
}

.genBtn,
.fave {
    border: none;
    position: fixed;
    bottom: 20px;
    box-shadow: 3px 5px 10px var(--gunmetal);
    z-index: 1000;
    border-radius: .5rem;
    font-family: var(--sans);
    background-color: var(--lightblue);
}

.footer {
    text-align: center;
    font-size: 12px;
    padding: .5rem;
}

#lastmod {
    font-size: 10px;
}

.recipeCard ul {
    text-align: left;
}

.favorite {
    background-color: red;
}

.ingredients {
    max-height: 12rem;
    overflow-y: auto;
    min-height: 10rem;
    border-bottom: 1px solid var(--lightgreen);
}

.instructions {
    max-height: 12rem;
    overflow-y: auto;

    border-bottom: 1px solid var(--lightgreen);
}

.favoritesContainer {
    color: white;

    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.faveCard {
    width: 90%;
    margin: 0 auto;
    padding: .5rem;
    box-shadow: 2px 2px 10px black;

    border-radius: .6rem;

    background: linear-gradient(var(--lightgreen), var(--gunmetal));

}

.fave-dlt {
    padding: .5rem 2rem;
    margin-top: .5rem;
    background: var(--gunmetal);
    color: rgb(241, 68, 68);
    font-weight: bold;
    border: none;
    border-radius: 5px;
    box-shadow: 1px 2px 5px black;
}

.fave-dlt:hover {
    background-color: var(--lightgreen);
    color: var(--gunmetal);
}

.mealImg {
    width: 60%;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    box-shadow: 2px 2px 5px rgb(59, 1, 1);
}

.category {
    font-size: 12px;
    font-weight: bold;
    margin-top: -20px;
}

.ytLink {
    background-color: var(--lightblue);
    padding: 5px 3rem;
    display: block;
    text-decoration: none;
    width: 120px;
    margin: 10px auto;
    font-family: var(--sans);
    border-radius: 5px;
    box-shadow: 2px 2px 5px black;
}



.previewImg {
    width: 80%;

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.previewCard {
    width: 90%;
    margin: .5rem auto;
    padding: .5rem;

    background: linear-gradient(var(--lightgreen), var(--gunmetal));
    box-shadow: 1px 1px 3px black;

    border-radius: 10px;
}

.container>p {
    width: 80%;
    margin: .5rem auto;
    font-size: 12px;
    margin-top: -1rem;
    margin-bottom: 20px;
}

.recMealContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}

footer {
    display: none;
}