body {
    max-width: 900px;
    margin: 15px auto;
    background-color: rgb(246, 246, 246);
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    padding: 0;
}

.container {
    display: flex;
    flex-flow: column;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    align-items: center;
    padding: 30px;
    margin: 15px auto;
    max-width: 900px;
}

header {
    width: 100%;
    margin: auto;
    border-radius: 5px;
    align-items: center;
    border-bottom: 1px solid #eee;
}

header h1 {
    text-align: center;
    margin-top: 5px;
}

header p {
    text-align: center;
}

header ul {
    display: flex;
    justify-content: center;
    padding: 10px 0px;
    gap: 15px;
    list-style-type: none;
}

header ul a {
    font-size: 15px;
}

a {
    text-decoration: none;
    color: black;
}

header ul a:hover {
    font-weight: 700;
    transition: 0.2s;
}

header ul li {
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 4px;
    border: 1px solid gray;
}

header ul li:hover {
    border: 1px solid rgb(209, 208, 208);
}

section {
    width: 100%
}

section h2 {
    padding: 15px 0px;
    border-bottom: 2px solid blue;
}

.imagens {
    width: 100%;
    text-align: center;
}

.imagemLivro {
    width: 40%
}

.imagensContato {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.imagensContato a{
    text-align: center;

}

.fotoPerfil {
    width: 30%;
}

.videosList {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.videoPlay {
    display: flex;
    align-items: center;
}

.videoPlay img {
    padding-right: 15px;
}

.video-link {
    font-weight: 700;
}

.video-p {
    width: 60%;
}

.video-image {
    width: 30%;
}

.video-link:hover {
    cursor: pointer;
    color: rgb(5, 5, 158)
}

.video {
    width: 0px;
    height: 0px;
    opacity: 0;
    visibility: hidden;
    padding: 0px;
    transition: opacity 1s, visibility 1s, height 1s, width 1s;

}

.video.mostrar {
    width: 100%;
    height: auto;
    opacity: 1;
    visibility: visible;
}

.video video {
    width: 90%;
    max-height: 500px;
}

footer {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.btn-site {
    display: inline-flex;
    /* flex + respeita tamanho */
    align-items: center;
    justify-content: center;
    /* alinhamento vertical */
    gap: 6px;
    /* espaço entre itens internos */
    padding: 0px 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 18px;
    border: 1px solid #000;
    min-width: 40%;
    /* borda válida */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-blue {
    background-color: #0a2a66;
    color: #ffffff;
}

.btn-blue:hover {
    background-color: #08306f;
    transform: translateY(-1px);
}

.contato {
    display: 'flex';
    width: '100%';
    justify-content: 'center';
}

@media (min-width:650px) and (max-width: 900px) {
    body {
        width: 90%;
        margin: 15px auto;
    }

    header ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    header ul li {
        text-align: center;
    }

    .video video {
        width: 98%;
        max-height: 450px;
    }

    .video {
        width: 0px;
        height: 0px;
        opacity: 0;
        visibility: hidden;
        padding: 10px;
        transition: opacity 1s, visibility 1s, height 1s, width 1s;
    }

    .video.mostrar {
        width: 100%;
        height: auto;
        opacity: 1;
        visibility: visible;
        transition: opacity 2s, visibility 2s, height 2s, width 2s;
    }

    .fotoPerfil {
        width: 40%
    }
}

@media (min-width:400px) and (max-width:650px) {
    ul {
        padding: 5px;
        margin-left: 5px;
    }

    header ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    header ul li {
        text-align: center;
    }

    section h2 {
        padding: 10px 0px;
    }

    .video {
        width: 0px;
        height: 0px;
        opacity: 0;
        visibility: hidden;
        padding: 5px;
        transition: opacity 1s, visibility 1s, height 1s, width 1s;
    }

    .video.mostrar {
        width: 100%;
        height: auto;
        opacity: 1;
        visibility: visible;
        transition: opacity 2s, visibility 2s, height 2s, width 2s;
    }

    .video video {
        width: 98%;
        max-height: 400px;
    }

    .imagemLivro {
        width: 70%
    }

    .fotoPerfil {
        width: 50%
    }

}

@media (max-width:400px) {
    ul {
        padding: 0;
        margin: 0;
    }

    header ul {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    header ul li {
        text-align: center;
    }

    section h2 {
        padding: 5px 0px;
    }

    .video-link {
        width: 100%;

    }

    .video {
        width: 0px;
        height: 0px;
        opacity: 0;
        visibility: hidden;
        padding: 3px;
        transition: opacity 1s, visibility 1s, height 1s, width 1s;
    }

    .video.mostrar {
        width: 100%;
        height: auto;
        opacity: 1;
        visibility: visible;
        transition: opacity 2s, visibility 2s, height 2s, width 2s;
    }

    .video video {
        width: 98%;
        max-height: 400px;
    }

    .imagemLivro {
        width: 90%
    }

    .fotoPerfil {
        width: 60%
    }
}