* {
    margin: 0;
    padding: 0;
}

body {

    background-image: url(img/hogwarts.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Playfair Display', serif;
    color: black;
}

.contenedor {

    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 150px 225px auto auto 100px 200px;
}

.contenedor div {
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(66, 66, 66);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .25);
}

.header {
    background-image: url(img/estrellas.jpg);
    background-color: rgb(0, 0, 0);
    width: auto;
    grid-column: 1/5;
}

.header img {
    float: left;
    width: 250px;
    height: 100%;
}

.harry {
    background-image: url(img/bosqueprohibido.jpg);
    background-repeat: no-repeat;
    background-position: auto;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}

.hermione {
    width: 100%;
    height: 100%;
    margin-bottom: -4px;
}

.ron {
    width: 100%;
    height: 100%;
    margin-bottom: -4px;
}

.dumbledore {
    width: 100%;
    height: 100%;
}

.contenedor .pjs {

    text-align: center;
    font-size: 30px;
    text-shadow: 1px 1px 1px black;

    grid-column: 1/5;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;

}

a {
    color: yellow;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}


.contenedor .pjs .pjsh .pjsg .pjsr .pjsa {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgb(10, 10, 14);
    width: 30%;
    height: 75px;
    padding: 10px;
    margin: 50px;
}

.contenedor .pjs .pjsh {

    background-image: url(img/harry\ potter.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 10px;
    width: 25%;

}

.contenedor .pjs .pjsg {

    background-image: url(img/hermione.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 10px;
    width: 25%;

}

.contenedor .pjs .pjsr {

    background-image: url(img/ron.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 10px;
    width: 25%;

}

.contenedor .pjs .pjsa {

    background-image: url(img/dumbledore.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 10px;
    width: 25%;

}



.contenedor .pjs .pjsh:hover,
.pjsg:hover,
.pjsr:hover,
.pjsa:hover {
    box-shadow: 1px 1px 10px 5px rgba(255, 255, 255, 1);
    transition: box-shadow 1s ease;
    color: white;
    background-color: rgb(43, 107, 226);
    cursor: pointer;
}

.contenedor .contenido {
    background-image: url(img/textura-de-la-hoja-del-libro-viejo-71276426.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-shadow: 1px 1px 1px black;

    grid-column: 1/3;
    grid-row: 3/6;

    margin-left: 10px;
    padding: 10px;
    font-size: 25px;
}

.contenedor .sidebar {

    grid-column: 3/5;
    grid-row: 3/6;

    margin-right: 10px;
    height: auto;
}

.contenedor .footer {
    background-image: url(img/32019.jpg);
    color: white;
    box-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 1);
    transition: box-shadow 0.3s ease;


    margin-top: 10px;
    padding: 20px;
    font-size: 20px;
    grid-column: 1/5;
    grid-row: 6/7;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contenedor .footer .textofooter {
    padding: 10px;
    border: 2px solid whitesmoke;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.contenedor .footer .textofooter:hover {

    box-shadow: 1px 1px 10px 5px rgba(255, 255, 255, 1);

}

.contenedor .footer p .links {
    color: white;
    padding: 10px;
    margin: 10px;
    border: 2px solid whitesmoke;
    border-radius: 10px;
    float: right;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.contenedor .footer p .links:hover {
    cursor: pointer;
    box-shadow: 1px 1px 10px 5px rgba(255, 255, 255, 1);

}

@media screen and (max-width: 600px) {


    .contenedor {

        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 150px 200px 225px auto auto 100px 200px;
    }

    .contenedor .contenido {
        background-image: url(img/textura-de-la-hoja-del-libro-viejo-71276426.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        text-shadow: 1px 1px 1px black;
        grid-column: 1/5;
        grid-row: 4/7;
        margin: 10px;
        padding: 10px;
        font-size: 15px;
    }

    .header img {
        width: 250px;
        height: auto;
    }



    .contenedor nav {

        color: yellow;


        text-align: center;
        font-size: 20px;
        text-shadow: 1px 1px 1px black;


        display: flex;
        grid-area: pjs;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;



    }

    .contenedor .sidebar {

        grid-column: 2/4;
        grid-row: 3/4;
    
        margin: 10px;
        height: auto;
    }

    .contenedor .pjs {

        text-align: center;
        font-size: 30px;
        text-shadow: 1px 1px 1px black;

        grid-column: 1/5;
        grid-row: 2/3;
        
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-content: center;
        justify-content: space-evenly;
    
    }

    

    .contenedor nav .pjsh {

        background-image: url(img/harry\ potter.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;


        font-size: 20px;
        border: 1px solid rgb(10, 10, 14);
        width: 30%;
        height: 50px;
        padding: 10px;
        margin: 10px;
    }


    .contenedor nav .pjsg {

        background-image: url(img/hermione.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;

        font-size: 20px;
        border: 1px solid rgb(10, 10, 14);
        width: 30%;
        height: 50px;
        padding: 10px;
        margin: 10px;
    }

    .contenedor nav .pjsr {

        background-image: url(img/ron.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;

        font-size: 20px;
        border: 1px solid rgb(10, 10, 14);
        width: 30%;
        height: 50px;
        padding: 10px;
        margin: 10px;
    }

    .contenedor nav .pjsa {

        background-image: url(img/dumbledore.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;

        font-size: 20px;
        border: 1px solid rgb(10, 10, 14);
        width: 30%;
        height: 50px;
        padding: 10px;
        margin: 10px;
    }

    .contenedor .footer {
        background-image: url(img/32019.jpg);
        color: white;
        box-shadow: 0 0.1rem 0.4rem rgba(255, 255, 255, 1);
        transition: box-shadow 0.3s ease;

        padding: 5px;
        font-size: 12px;

        grid-row: 7/8;
    

        display: flex;
        justify-content: space-between;
        align-items: center;
    }





}