body{
    margin: 0;
    width: 100%;
    font-family: 'Merriweather', serif;
}

h1{
    background-color: lightslategray;
    color: white;
    margin: 0;
    padding: 25px;
    font-size: 30px;
    font-family: 'Georgia', serif;
    text-align: center;
    font-variant: small-caps;
}

header > div{
    display: block; 
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    color: black;
    background-color: gainsboro;
    margin: 0;
    box-sizing: border-box;
}

header > div a{
    text-decoration: none;
    color: black;
}

header > div a:hover{
    color: cadetblue;
}

section{
    width: 75%;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; 
}

article{
    border-bottom: 2px solid #948677;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

article h2{
    font-size: 32px;
    color: steelblue;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 2px solid #948677;
    padding-bottom: 20px;
}

div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;      
    justify-content: space-around;
    gap: 10px;
    margin: 20px 0;
}

article img{
    width: 30%;          
    height: auto;
    display: block;
    cursor: pointer;
    border: 1px solid #ddd;
}

article p{
    font-size: 17px;
    margin: 20px;
    text-align: justify;
}

span{
    font-weight: bold;
    color: coral;
    font-size: 20px;
    font-variant: small-caps;
}

#mitologia{
    display: block;
    background-color: darkcyan;
    color: white;
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    font-family: Georgia, serif;
    font-size: 20px;
    width: 100px;
    margin: 20px auto;
    text-decoration: none;
}

footer p{
   background-color: rgb(198, 230, 241);
   border-radius: 12px;
   width: 60%;           /* Footer más recogido también */
   text-align: center;
   margin: 0 auto;
   padding: 10px;
}

/* MEDIA QUERY */
@media (max-width: 480px){
    section{
        width: 95%;
    }

    div{
        flex-direction: column;
        align-items: center;
    }

    article img{
        width: 90%;      
    }

    footer p{
        width: 90%;
    }
}