/* 1. Estilos para o Body */
body {
    background-color: #f0f0f0;
    color: #222;
    background-image: url('https://www.transparenttextures.com/patterns/45-degree-fabric-light.png');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* 2. Título principal (h1) */
h1 {
    background-color: rgba(0, 0, 128, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    margin: 0 0 20px 0;
    border-radius: 5px;
}

/* 3. Subtítulo (h2) */
h2 {
    background: linear-gradient(to right, #0077ff, #00c3ff);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin: 0 0 20px 0;
}

/* 4. Parágrafos (p) */
p {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    line-height: 1.6;
}

/* Primeiro parágrafo */
p:nth-of-type(1) {
    background-color: lightyellow;
    color: #333;
}

/* Segundo parágrafo */
p:nth-of-type(2) {
    background-color: lightgreen;
    color: #222;
}

/* Terceiro parágrafo */
p:nth-of-type(3) {
    background-color: rgba(255, 255, 255, 0.6);
    color: #222;
}

/* 5. Div de destaque (.fundo-diferente) */
.fundo-diferente {
    background-image: url('https://www.transparenttextures.com/patterns/diagmonds-light.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    padding: 40px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 6. Rodapé (footer) */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}