html, body {
    margin: 0;
    padding: 0;
}

*
{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

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

a:hover
{
    color: blue;
    text-decoration: underline;
    font-style: italic;
}

li:hover
{
    color: blue;
}

a:active
{
    color: grey;
    text-decoration: underline;
    font-style: italic;
}

header
{
    align-items: center;
    background-color: #d0e0e3;
    border: 10px black solid;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}

header img
{
    max-width: 960px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    object-fit: contain;
}

.cabecalho
{
    width: 100%;
}

#pagename
{
    border: 5px black solid;
    width: calc(100% - 10px);
    text-align: center;
}

#pagename h1
{
    margin-left: auto;
    margin-right: auto;
    padding-top: 0%;
    font-size: 50px;
    width: fit-content;
    background-color: #d0e0e3;
    font-family: Arial;
}

#pagename h2
{
    background-color: #d0e0e3;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    font-family: Arial;
}

.margemtop
{
    margin-top: 10px;
}

#cavaleirospangename
{
    display: flex;
    /* object-fit: cover; */
    /* object-position: 50% 0; */
    /* background-image: url(../imagens/cavaleiros.jpg); */
    /* background-size: cover; */
    /* background-position: center top; */
    width: 100%;
    /* height: 300px; */
}

#cavaleirospangename p
{
    opacity: 0%;
}

#cavaleirospangename img
{
    object-fit: cover;
    object-position: 50% 100%;
    width: 100%;
    max-height: 300px;

}

.sinopse
{
    margin: 10px;
    border: 3px black solid;
    width: calc(100% - 20px);
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-family: Arial;
}

.sinopse p
{
    background-color: #d0e0e3;
    margin: 5px;
    padding: 5px;
}

.content {
    display: flex;
    height: 100vh;
    padding: 0 10px;
}

.leftside,
.rightside
{
    display: flex;
    flex-direction: column;
    width: 200px;
}

.leftside .photo,
.rightside .photo
{
    display: block;
    width: 100%;
}

.leftreferences,
.rightreferences
{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-size: 18px;
    list-style-position: inside;
    /* overflow-y: auto; */
    padding: 7px;
    position: relative;
}

.leftreferences li,
.rightreferences li
{
    line-height: 120%;
    margin-bottom: 3px;
}

.leftreferences .barra,
.rightreferences .barra
{
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    justify-self: center;
    border-bottom: 2px solid black;
    list-style: none;
}

.arealivro
{
    flex-grow: 1;
    border-bottom: 5px solid black;
    border-top: 5px solid black;
    overflow: auto;
    position: relative;
    text-align: center;
}
.arealivro canvas {
    border: solid 1px #333;
}

.leftreferences p 
{
    position: relative;
}

.leftreferences .download-link
{
    position: absolute;
    right: 0;
    vertical-align: middle;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 30px;
    background-image: url(../imagens/icon-download.png);
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: all 0.3s ease-out;
}

.leftreferences .download-link:hover{
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.comments
{
    margin: 30px 10px;
    padding: 0 200px;
}

.comments .fb-comments
{
    border: solid 5px #000;
    display: block;
    margin: 0 auto;
}

@media(max-width: 720px) {
    .content 
    {
        /* flex-direction: column; */
        height: auto;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .arealivro
    {
        order: 1;
        height: 80vh;
        width: 100%;
    }

    .leftside 
    {
        order: 2;
        width: 49%;
    }
    
    .rightside
    {
        order: 3;
        width: 49%;
    }

    .comments
    {
        padding: 0;
    }
}

@media(max-width: 600px) {
    .leftside,
    .rightside 
    {
        margin-bottom: 20px;
        width: auto;
    }
}