*{
    margin: 0;
    padding: 0;
    text-align: justify;
}

:root{
    font-family: "Alice", serif;
    line-height: 150%;
    color: #573A37;
}

body{
    background-image: url(assets/feijoada.png);
    background-size: cover;
}

.recipe-card{
    box-sizing: border-box;
    max-width: 800px;
    width: 80%;
    padding: 24px;
    background-color: #fff;
    border-radius: 24px;
    margin: 48px auto;
}

.recipe-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

header{
    padding: 24x;
}p{
    margin-top: 12px;
    margin-left: 16px;
}

section{
    margin-top: 24px;
}

h1{
    line-height: 140%;
    font-size: 40px;    
}

h2{
    font-size: 24px;
}

h1,h2{
    color: #291B1A;
    margin-bottom: 4px;
    line-height: 150%;
}

h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #573A37;
    font-size: 1.2rem;
    display: block;
}


.ingredients h3 {
    margin-left: 16px;
}
.ingredients input, .instructions ol {
    margin-left: 32px;
}

.ingredient-item input[type="checkbox"] {
    vertical-align: middle; 
    cursor: pointer;
}
.ingredient-item label {
    vertical-align: middle; 
    cursor: pointer;
}
.ingredient-item input:checked + label {
    text-decoration: line-through;
    color: #ccc;
}

footer {
    background-color: rgba(61, 43, 31, 0.7);
    padding: 20px auto;
    text-align: center;
    color: #f4f1ea;
    max-width: 800px;
    width: 80%;
    margin: 48px auto;
}
footer a {
    color: #f4f1ea;
    text-decoration: none;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .recipe-card {
        width: 92%;
        padding: 20px;
        margin: 20px auto;
        
    }

    h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
        text-align: left;
    }

    h2 {
        font-size: 18px; 
        margin-top: 15px;
    }

    h3 {
        font-size: 1rem; 
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .intro-text {
        font-size: 0.85rem; 
        line-height: 1.4;
        margin-left: 8px;
        padding: 0 5px;
    }

    .ingredient-item label {
        font-size: 0.85rem; 
        line-height: 1.3;
    }

    .ingredients h3, 
    .ingredients .ingredient-item, 
    .instructions ol {
        margin-left: 8px;
    }

    .instructions li {
        font-size: 0.85rem;
        margin-bottom: 10px;
        margin-left: 16px;
    }

    footer {
        font-size: 0.8rem;
        margin: 20px auto;
        padding: 15px;
    }
}