@charset "UTF-8";

/* Configurações globais */

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Century Gothic", Arial, sans-serif;
    color: #03263a;
    background-color: #f2f8fb;
}


/* Cabeçalho */

header {
    display: flex;
    align-items: center;
    padding: 5px 0 5px 8px;
    background-color: #008eb6;
}

header img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

header h1 {
    margin: 0 0 0 3px;
    color: #ffffff;
    font-size: 25px;
}


/* Navegação principal */

.menu-principal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 56px;
    padding: 0 20px;
}

.menu-principal .opcao {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    background-color: #67aed6;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.menu-principal .opcao:hover {
    background-color: #203c5f;
}


/* Navegação entre os conteúdos de cada categoria */

.menu-conteudos {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid #d5e7ef;
    border-radius: 12px;
}

.menu-conteudos .opcao-conteudo {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #67aed6;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
}

.menu-conteudos .opcao-conteudo:hover {
    background-color: #203c5f;
}


/* Conteúdo principal */

main {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
    text-align: center;
}

section {
    margin-bottom: 25px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #d5e7ef;
    border-radius: 12px;
}


/* Títulos, textos e listas */

h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #03263a;
    font-size: 32px;
    text-align: center;
}

h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #03263a;
    font-size: 21px;
}

main p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.6;
}

main ul,
main ol {
    padding-left: 0;
    list-style-position: inside;
    text-align: center;
}

main li {
    margin-bottom: 8px;
    line-height: 1.5;
}


/* Links presentes no conteúdo */

main a {
    color: #047fa1;
    font-weight: bold;
    text-decoration: none;
}

main a:hover {
    color: #203c5f;
    text-decoration: underline;
}


/* Blocos de sintaxe e exemplos */

main pre {
    width: 90%;
    max-width: 750px;
    margin: 20px auto;
    padding: 18px 20px;
    overflow-x: auto;
    color: #ffffff;
    background-color: #67aed6;
    border-radius: 8px;
    text-align: left;
}

main code {
    padding: 2px 5px;
    color: #075f7a;
    background-color: #e6f3f8;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
}

main pre code {
    padding: 0;
    color: #ffffff;
    background-color: transparent;
    border-radius: 0;
}


/* Ícones das tecnologias */

.tecnologias-pagina {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tecnologias-pagina img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}


/* Blocos da atividade prática */

.testador-atividade,
.enunciado-atividade,
.orientacao-console {
    width: 90%;
    max-width: 850px;
}

.enunciado-atividade {
    margin: 0 auto 20px;
    padding: 16px 18px;
    background-color: #e6f3f8;
    border-left: 4px solid #008eb6;
    border-radius: 6px;
    line-height: 1.6;
}

.orientacao-console {
    margin: 25px auto;
    padding: 20px;
    background-color: #f2f8fb;
    border: 1px solid #b8d4e0;
    border-radius: 8px;
}

.orientacao-console h3 {
    margin-top: 0;
}


/* Testador da atividade */

.testador-atividade {
    margin: 25px auto 0;
    padding: 25px;
    background-color: #f8fbfd;
    border: 1px solid #d5e7ef;
    border-radius: 12px;
}

.testador-atividade h3 {
    margin: 25px 0 12px;
    text-align: center;
}

.testador-atividade h3:first-child {
    margin-top: 0;
}

.testador-atividade textarea,
.testador-atividade iframe {
    display: block;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #b8d4e0;
    border-radius: 8px;
}

.testador-atividade textarea {
    padding: 15px;
    overflow-y: auto;
    color: #03263a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: #8399b3 #ffffff;
}

.testador-atividade > button {
    display: block;
    margin: 20px auto 0;
    padding: 12px 24px;
    color: #ffffff;
    background-color: #008eb6;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.testador-atividade > button:hover {
    background-color: #203c5f;
}


/* Elementos auxiliares */

.fonte-conteudo {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #d5e7ef;
    font-size: 14px;
}

kbd {
    display: inline-block;
    padding: 3px 7px;
    color: #ffffff;
    background-color: #03263a;
    border: 1px solid #008eb6;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}


/* Rodapé */

footer {
    width: 100%;
    margin-top: auto;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #047fa1;
    text-align: center;
}

/* Ajustes para telas menores */

@media (max-width: 800px) {
    header {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .menu-principal {
        width: 100%;
        margin-left: 0;
        padding: 5px 0 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu-conteudos {
        flex-wrap: wrap;
    }

    main {
        width: 95%;
    }

    section {
        padding: 20px 15px;
    }

    .testador-atividade,
    .enunciado-atividade,
    .orientacao-console {
        width: 100%;
    }
}