body{
    background-color: white;
    transition: background-color 1.5s, color 1.5s;


}

#recipeList-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    margin: 10px;
    margin-top: 6vw;

}



.y-middle{
    position: relative;
}
nav{
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px;
    border: 2px solid black;
    border-bottom: 2px solid  darkcyan;
    z-index: 100;

    a{
        color: white;
        text-decoration: none;

        &:hover{
            text-decoration: underline;
        }
    }
}


.night-mode{
    background-color: rgb(30, 30, 30);
    color: rgb(184, 143, 66);
    transition: background-color .5s, color .5s;
}



#root{
    margin-right: 320px;
}

.night-mode .right-panel{
    color: lightblue;
    transition: background-color .5s, color .5s;
}


@media (max-width: 1000px) and (min-width: 600px) {
    body{
        margin: 0%;
    }
    #root{
        margin-right: 0px;
    }

    #recipeList-container{
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    main{
        padding-left: 0%;
        padding-right: 0%;
    }
}

@media (max-width: 1000px) {
    .right-panel{
        display: none;
    }
}


@media  (max-width: 599px) {
    main, #root{
        border: none;
        padding-left: 0px;
        width: 100%;
    }
    #recipeList-container{
        border: none;
        margin: 0;
        margin-top: 6vw;
        display: block;
    }

    .recipe{
        margin-bottom: 30px;
        border-radius: 0px;
        border: none;
        img{
            aspect-ratio: 1/1;
            width: 200%;
        }
    }
}




main{
    padding-right: 4%;
    padding-left: 2%;

}

main>header{
    width: 100%;
    height: 16vw;
    background-image: url("images/header.jpg");
    background-size: cover;
    margin-top: 2vw;
}




.right-panel{
    position: fixed;
    margin-top: 60px;
    top: 0%;
    right: 0%;
    max-width: 300px;
    padding: 16px;
    z-index: -1;
    #ads{
        border: 2px solid black;
        padding: 10px;

        max-height: 300px;
        overflow-y: scroll;
    }
}




footer{
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 0.8em;
    background-color: lightblue;
}


@keyframes slideIn {
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(0);
    }
}


.info{

    background-color: rgb(233, 202, 144);
    color: rgb(30, 30, 30);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 10px;
    margin-bottom: 10px;
    animation: slideIn 1s forwards;
    transition: background-color .5s, color .5s;

    &:hover{
        background-color: rgb(184, 143, 66);
        color: white;
    }
}