
/*****************************************************************************

Monte da Rosada
Ficheiro de estilos - CSS

Por Rui Melo, 2020-2021, facebook/ruimelo73

*****************************************************************************/

/*****************************************************************************
DEFINIÇÕES GERAIS
*****************************************************************************/

html, body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
}

#contentor {
  float: none;
  display: block;
  width: 90%;
  height: 90%;
  margin: auto;
  padding: 0px;
}

/*****************************************************************************
TAMANHOS, FONTES E ESTILOS DE TIPOS DE LETRA
*****************************************************************************/

/* Fontes e estilos: */
#corpo, #rodape, .cascata_painel, .cascata_botao {
  font-family: Arial;
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
}

/* Tamanhos: */
#corpo, .cascata_painel { font-size: 16px; }
.cascata_botao { font-size: 24px; }

/* Ajustamentos: */

@media screen and (min-width: 800px) {
  #corpo, .cascata_painel { font-size: 24px; }
  .cascata_botao { font-size: 32px; }
}

@media screen and (max-width: 1024px) {
  #corpo, .cascata_painel { font-size: 14px; }
  .cascata_botao { font-size: 20px; }
}

@media screen and (max-width: 800px) {
  #corpo, .cascata_painel { font-size: 12px; }
  .cascata_botao { font-size: 16px; }
}

/*****************************************************************************
CORPO DE CONTEÚDOS
*****************************************************************************/

/* Geral */

#corpo {
  float: none;
  display: block;
  /* width: 100%; */
  height: 100%;
  margin: auto;
  padding: 0px;
  border-radius: 15px;
}

/* Imagem de fundo: */

#corpo {
  background: url("img/index_1.jpg") no-repeat;
  background-size: cover;
  background-color: #ABAECD;
  background-repeat: no-repeat;
}

/* Paragráfos */
#corpo p {
  text-align: justify;
  margin-top: 0px;
  margin-bottom: 6px;
}

/* Listas */
#corpo li {
  text-align: justify;
  font-size: -0.9em;
  margin-bottom: 4px;
}

/* Hiperligações: */
#corpo a, #corpo a:active, #corpo a:visited {
  text-decoration : none;
  font-style : normal;
  font-weight : normal;
  color : #344D9F;
}
#corpo a:hover {
  text-decoration : none;
  color : #ABAECD;
  background-color : #344D9F;
}

/* Títulos */
#corpo h1, #corpo h2, #corpo h3 {
  font-family: Arial Black, Arial;
  font-weight: bold;
  font-style: normal;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 16px;
  margin-bottom: 16px;
}
#corpo h1 {
  font-size: 18px;
  color: #800000;
  margin-top: 0px; /* os h1 estão sempre no topo dos textos */
}
#corpo h2 {
  font-size: 16px;
  font-style: italic;
  color: #505050;
}
#corpo h3 {
  font-size: 14px;
  color: #707070;
}

/* Separadores */
#corpo hr {
  margin-top: 24px;
  margin-bottom: 24px;
}

/*****************************************************************************
AUXILIARES
*****************************************************************************/

.clearfix {
  clear: both;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
  vertical-align: middle;
}

#lm {
  display: table;
  margin: auto;
  /* border: red 1px solid; */
  vertical-align: middle;
}

/*****************************************************************************
LOGO
pequeno: 174x173
*****************************************************************************/

#logo {
  float: left;
  padding: 10px;
  /* border: blue 1px solid; */
}

/* Ajustamentos: */
@media only screen and (max-width: 1024px) { #logo img { width: 150px; } }
@media only screen and (max-width: 800px) { #logo img { width: 125px; } }
@media only screen and (max-width: 640px) { #logo img { width: 100px; } }
@media only screen and (max-width: 320px) { #logo img { width: 75px; } }

/*****************************************************************************
MENU
*****************************************************************************/

#menu {
  float: left;
  padding: 10px;
  /* border: black 1px solid; */
}

/*****************************************************************************
RODAPÉ
*****************************************************************************/

#rodape {
  float: none;
  padding: 5px;
  font-size: 14px;
  text-align: center;
  margin: auto;
  color: #344D9F;
}

/* Hiperligações: */
#rodape a, #rodape a:active, #rodape a:visited {
  text-decoration : none;
  font-style : normal;
  font-weight : normal;
  color : #ABAECD;
}

#rodape a:hover {
  text-decoration : none;
  color : #ABAECD;
  background-color : #344D9F;
}

/* Ajustamentos: */
@media only screen and (max-width: 1024px) { #rodape { font-size: 12px; } }
@media only screen and (max-width: 800px) { #rodape { font-size: 10px; } }
@media only screen and (max-width: 640px) { #rodape { font-size: 8px; } }

/*****************************************************************************
CASCATAS
*****************************************************************************/

/* Botão */

div.cascata {
  float: left;
  width: 100%;
  margin: auto;
  padding: 0px;
}

button.cascata_botao, a.cascata_botao {
  background-color: #ABAECD;
  color: #344D9F;
}

button.cascata_botao {
  /* cursor: zoom-in; */
  display: block;
  padding: 6px;
  margin: auto;
  text-align: center;
  border: solid 1px #344D9F;
  outline: none;
  transition: 0.3s;
  opacity: 0.9;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
button.cascata_botao:hover {
  background-color: #344D9F;
  color: #ABAECD;
  border: solid 1px #ABAECD;
}

button.cascata_botao.active {
  color: #ABAECD;
  background-color: #344D9F;
  text-align: center;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

button.cascata_botao.active:after {
  /* content: "\2796"; */ /* Unicode character for "minus" sign (-) */
  color: #ABAECD;
}

button.cascata_botao:after {
  /* content: '\02795'; */ /* Unicode character for "plus" sign (+) */
  color: #800000;
  float: right;
  margin-left: 6px;
  /* cursor: zoom-in; */
}

/* Painel: */

div.cascata_painel {
  text-align: center;
  margin-top: 0px;
  margin-bottom: 4px;
  background-color: #ABAECD;
  color: #344D9F;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease-in-out;
  opacity: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

div.cascata_painel.show {
  display: block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  max-height: 1500px;
  padding: 12px;
  margin-bottom: 12px; /* empurra o botão seguinte para dar mais espaço */
  border: 1px solid #344D9F;
  /* max-height: 9000px;/* Whatever you like, as long as its more than the height of the content (on all screen sizes) */
}

/****************************************************************************/
