/* este arquivo contém regras para a caixa de pesquisa que devem ser bem
* comuns, por isso é interessante isolá-las para que possam ser reutilizadas
*/
#caixa-pesquisa {
    background-color: rgba(0, 150, 0, 0.9);
    overflow: auto;
    
    /*
    * Esta propriedade é importante para evitar que as publicidades fiquem
    * por cima da caixa de pesquisa.
    */
    z-index: 1;
}

/* esta regra é importante para evitar que as equações
 * MathJax se sobreponham a caixa de pesquisa*/
.MathJax {
    z-index: -1;
}

#tela-pesquisa-link-calc-mmc:visited {
  color: blue;
}

#tela-pesquisa-link-calc-mat:visited {
  color: blue;
}

#tela-pesquisa-link-ajuda {
    color: rgba(10, 10, 10, 0.8);
    text-decoration: none;
}

#tela-pesquisa-link-ajuda:visited {
    color: rgba(10, 10, 10, 0.8);
}

#caixa-botao-fechar {
    display: flex;
    width: 98%;
    justify-content: flex-end;
    margin-bottom: 3%;
}

.caixa-materia-assuntos {
    display: flex;
    margin-top: 3%;
}


.materia-assuntos {
    display: flex;
    font-family: 'cursive';
    font-size: 1.3em;
}

#tela-de-pesquisas-links > span {
    font-family: 'cursive';
    font-size: 1.4em;
}

@media(max-width: 768px) {
    #caixa-pesquisa {
        width: 100vw;
        height: 100vh;
        padding-left: 5%;
    }

    #ferramentas {
        position: fixed;
        bottom: 0;
        right: 0;
    }

    #entrada-texto-caixaps {
        width: 90%;
    }

    .caixa-materia-assuntos {
        flex-direction: column;
        justify-content: space-between;
    }

    .materia-assuntos {
        flex-direction: row;
        margin-top: 7%;
        margin-bottom: 3%;
        align-items: center;
        justify-content: space-between;
        width: 90%;
        background-color: rgba(199, 199, 199, 0.9);
        border-bottom: 13px solid rgba(100, 100, 100, 0.9);
    }

    .anos-vestibulares {
        justify-content: space-around;
    }
    
    #bt-pesquisar-qs {
        width: 90%;
    }

    #tela-de-pesquisas-links {
        margin-top: 8%;
        margin-bottom: 8%;
    }

    #tela-pesquisa-link-calc-mmc, #tela-pesquisa-link-calc-mat { 
        display: block;
        margin-top: 4%;
    }

    #tela-pesquisa-link-ajuda {
        display: block;
        margin-top: 8%;
    }
}

.formulario-pesquisa {
	display: grid;
	grid-template-columns: 100%;
}

#caixa-parametros-pesquisa {
    display: flex;
}

.anos-vestibulares {
    margin-top: 5%;
}

#bt-pesquisar-qs {
    margin-bottom: 3%;
}

@media (min-width: 768px) {
    #caixa-pesquisa {
        width: 80%;
        border-radius: 5px;
        padding: 0px 20px 10px 20px;
        max-height: 95vh;
    }

    #caixa-parametros-pesquisa {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
    }

    #entrada-texto-caixaps {
        width: 100%;
    }
    
    
    .caixa-materia-assuntos {
        flex-direction: row;
    }

    .materia-assuntos {
        flex-direction: column;
        font-size: 1.4em;
        margin-right: 4%;
    }

    .materia-assuntos > div {
        margin-bottom: 5%;
    }

    .anos-vestibulares {
        flex-direction: row;
    }

    .anos-vestibulares > div {
       text-align: center;
       margin-right: 10%;
   }

    #tela-de-pesquisas-links {
        margin-top: 5%;
        margin-bottom: 3%;
    }

    #caixa-botao-fechar {
        width: 100%;
    }

    #tela-pesquisa-link-calc-mmc, #tela-pesquisa-link-calc-mat { 
        display: block;
        margin-top: 2%;
    }

    #tela-pesquisa-link-ajuda {
        display: block;
        margin-top: 4%;
    }
}

