@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,700,900');

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    font-size: 2.5em; /* Tamanho de fonte base para mobile */
}

p {
    margin-top: 5px;
    font-size: 1em; /* Tamanho de fonte relativo */
    letter-spacing: 0.5px;
    line-height: 1.5em;
    color: black;
    width: 100%; /* Largura total para melhor leitura */
}

.pvideo {
    margin-top: 5px;
    font-size: 1em;
    letter-spacing: 0.5px;
    line-height: 1.5em;
    color: black;
    width: 100%;
}

td {
    font-size: 1em;
    letter-spacing: 0.5px;
    line-height: 1.5em;
    text-align: center;
    width: 100%;
    background-color: lightyellow;
    padding: 5px;
    margin: 10px 0; /* Margem reduzida para mobile */
    box-shadow: 3px 3px #888888; /* Sombra mais suave */
}

.boxamarelo, .boxverde {
    font-size: 1em;
    letter-spacing: 0.5px;
    line-height: 1.5em;
    text-align: center;
    width: 100%;
    padding: 5px;
    box-shadow: 3px 3px #888888;
    margin: 10px 0; /* Margem reduzida para mobile */
}

.boxamarelo {
    background-color: lightyellow;
}

.boxverde {
    background-color: lightgreen;
}

a:link, a:visited {
    color: blue;
    padding: 2px 3px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

a:hover {
    background-color: yellow;
    color: red;
    font-weight: bold;
}

a:active {
    background-color: white;
    color: red;
}

a.imagem:link, a.imagem:visited {
    color: blue;
    padding: 2px 3px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
}

a.imagem:hover {
    background-color: white;
    color: red;
    font-weight: bold;
}

a.imagem:active {
    background-color: white;
    color: red;
}

h4 {
    font-size: 2em; /* Tamanho de fonte reduzido */
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

img {
    width: 80%; /* Largura total para melhor ajuste */
    max-height: 350px; /* Altura máxima reduzida */
    border-radius: 5%;
    object-fit: cover;
    overflow: hidden;
}

.imgamazon, .imganuncio {
    width: 100%;
    height: auto; /* Altura automática para manter a proporção */
    border-radius: 5%;
    overflow: visible;
}

.imgcapa {
    width: 100%;
    border-radius: 5px;
    border: 4px dotted darkgreen;
    padding: 3px;
}

.imgvideo {
    width: 80%;
    overflow: hidden;
}

.video {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.video::after {
    padding-top: 56.25%;
    display: block;
    content: '';
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video img {
    width: 100%;
    overflow: hidden;
}

#container {
    width: 90%; /* Largura total para mobile */
    max-width: 900px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px; /* Padding lateral para evitar colagem nas bordas */
}

#titulo {
    margin: 5px 0;
    padding: 5px;
    border: 1px;
    text-transform: uppercase;
    color: darkgreen;
    font-size: 1.5em; /* Tamanho de fonte reduzido */
    font-weight: 700;
    border-top: 1px solid darkgreen;
}

#navigation {
    width: 100%; /* Largura total para mobile */
    max-width: 100%;
    float: none; /* Remover float para melhor disposição */
    padding: 0;
    border: 1px solid #69C;
    margin-bottom: 10px; /* Margem inferior para separar do conteúdo */
}

#content {
    padding: 0;
    margin-left: 0; /* Remover margem lateral */
    width: 100%; /* Largura total para mobile */
}

#telegram {
    display: none;
}

#footer {
    margin-top: 5px;
    height: auto; /* Altura automática para melhor ajuste */
    padding: 10px 0; /* Padding vertical para melhor espaçamento */
    clear: left;
    font-size: 1em; /* Tamanho de fonte reduzido */
    color: darkgreen;
    text-align: center; /* Centralizar texto */
}

/* estilo para a lista de respostas do QUIZ */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

ul li:hover {
    background-color: #e0e0e0;
}

/* estilo para a resposta correta do QUIZ */
.resposta {
    display: none;
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

/* estilo para o texto que revela a resposta do QUIZ */
.mostrar-resposta {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.mostrar-resposta:hover {
    color: darkblue;
}

/* Media Queries para ajustes adicionais em telas menores */
@media (max-width: 480px) {
    body {
        font-size: 14px; /* Tamanho de fonte ainda menor para telas muito pequenas */
    }

    h4 {
        font-size: 1.5em;
    }

    #titulo {
        font-size: 1.2em;
    }

    #footer {
        font-size: 0.9em;
    }
}

 /* Esconde o tooltip padrão */
    a[title] {
        position: relative;
        text-decoration: none;
        color: blue;
    }

    /* Exibe o tooltip personalizado quando o link é clicado */
    a[title]:focus::after {
        content: attr(title);
        position: absolute;
        top: 100%;
        left: 0;
        background-color: yellow;
        padding: 5px;
        border: 1px solid #ccc;
        white-space: nowrap;
        z-index: 1;
    }