/* Root variables for easy styling */
:root{
    --headercolor: #d3a069;
    --textheadercolor:#fffefc;
    --bgcolor: #fffefc;
    --textcolor: #07071c;
    --titlesize: 5.5rem; /* For main title on index.html */
    --h1size: 4rem; 
    --h2size: 2rem;
    --psize: 1.5rem;
    --titlesize: 5.5rem;
    --pixelfont: "Pixelify Sans", sans-serif;
}
 body{
    margin: 0;
    background-color: var(--bgcolor);
} 

.title{
    background-color: var(--headercolor);
    width: auto;
    height: 30%;
    padding: 2rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.title h1{
    color: var(--textcolor);
    font-size: var(--titlesize);
    font-family: var(--pixelfont);
    text-align: center;
    font-weight: Bold;
}
.title h2{
    color: var(--textcolor);
    font-size: var(--h2size);
    font-family: var(--pixelfont);
    text-align: center;
}


.recipe-list{
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.recipe-list ul{
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10rem;
}
.recipe-list li{
display: inline-block;
}
.recipe-list a{
    display: inline-block;
    width: 15rem;
    height: 15rem;
}
.recipe-list img{
    width: 100%;
    height: 100%;
}
.recipe-list h2{
    text-align: center;
    font-family: var(--pixelfont);
    font-size: var(--h2size);
    color: var(--textcolor);
    margin-top: 0.5rem;
    text-decoration: none;
}
.recipe-list a {
    text-decoration: none;
    color: inherit;
}

/* media query for responsive design */
@media (max-width: 900px) {
    .title h1 {
        font-size: 3rem;
    }
    .title h2 {
        font-size: 1.2rem;
    }
    .recipe-list ul {
        gap: 3rem;
    }
    .recipe-list a {
        width: 10rem;
        height: 10rem;
    }
}

@media (max-width: 600px) {
    .title {
        padding: 1rem;
    }
    .title h1 {
        font-size: 2rem;
    }
    .title h2 {
        font-size: 1rem;
    }
    .recipe-list ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .recipe-list a {
        width: 90vw;
        max-width: 15rem;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}