:root{
    /* Dark mode */
    --font-family:"Courgette", cursive; /* "Poetsen One", sans-serif; */
    --backgorund-color: #1f1f1f;
    --font-color: #ffffff;
    --footer-color: #2c2c2c;
    --footer-border: #4a4a4a;
    --contraster-color:aqua;
    --contraster-color2:teal;
    --fontSizeH1:2rem;
    --fontSizeH2:1.5rem;
    --fontSizeP:1.4rem;


    /* Light mode */
    /*--background-color: #ffffff; 
    --font-color: #333333; 
    --footer-color: #f8f4e6; 
    --footer-border: #c0c0c0; 
    --contraster-color: #008080; 
    --contraster-color2: #008000;  */
}

body {
    font-family:  "Roboto" , 'Montserrat' , sans-serif;      
    font-weight: bolder;
    /* margin: 0; */
    padding: 0;
    background-color: var(--backgorund-color);
    color: var(--font-color);
}  
 
.font-reader {
    font-family: var(--font-family);
    font-weight: 400;
    font-style: normal;
    color: var(--font-color);
}
  

main {
    padding: 20px;
    margin-bottom: 22vh;
}

article {
    margin-bottom: 1%;
    /* margin-bottom: 30px; */
    /* display: flex;
    flex-direction: column; */
}

article h2 {
    font-size: var(--fontSizeH2);
}

article p {
    font-size: var(--fontSizeP);
    line-height: 1.6;
}

footer {
    background-color: var(--footer-color);
    text-align: center;
    padding-top: 10px;
    bottom: 0;
    width: 100%;
    border-top: 2px solid var(--footer-border);
}

footer p {
    font-size: 0.8rem;
}


.chapter{
    border: 5px solid var(--contraster-color);
    border-radius: 25px;
    margin-right: 2%;
    min-width: 30%;
    max-width: fit-content;
    height: fit-content;
}

.chapterSpecial{
    border: 5px solid var(--contraster-color);
    border-radius: 25px;
    margin-right: 2%;
    width: 47%;
    height: fit-content;
    /* margin-bottom: 5%; */
}

.chapterSmall{
    border: 5px solid var(--contraster-color);
    border-radius: 25px;
    margin-right: 2%;
}

#logo{
 color: var(--contraster-color);   
}

img {
    border: 15px solid;
    border-radius: 10%;
    width: 50%;
    display: block;
    margin: auto;
}

/* Estilo do header */

/* Restante do seu CSS existente */

/* Restante do seu CSS existente */

header {
    background-color: var(--footer-color);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid var(--footer-border);
}

header h1 {
    font-size: var(--fontSizeH1);
    margin: 0;
}


nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permitir que os itens se ajustem ao tamanho da tela */
    top: 80px; /* Altura do cabeçalho */
    left: 0;
    width: 100%;
    background-color: var(--footer-color);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* .container {
    display: block;
} */

nav ul li {
    border: white 3px solid;
    border-radius: 10px;
    min-width: 30%;
    max-width: fit-content;
    height: fit-content;
    margin-right: 2%;
    margin-bottom: 2%; /* Espaçamento entre os itens */
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: var(--font-color);
    font-size: 1rem;
    width: 100%;
}

nav ul li a:hover {
    background-color: var(--footer-border);
}

nav ul li a:active {
    background-color: var(--footer-border);
}

button{
    color: var(--font-color) !important;
    background-color: var(--footer-border);
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

button:hover {
    background-color: var(--contraster-color2);
}

button:active {
    background-color: var(--footer-color);
}

/* img:active{
    transform: scale(1.5,1.5);
} */

.ilustrated{
    color: var(--contraster-color) !important;
}

.btns{
    display: flex;
    justify-content: center;
    margin-bottom: 2%;
}

/* loader css spinner */
.loader {
    width: calc(100px - 14px);
    height: 50px;
    border-radius: 50px;
    background: 
     radial-gradient(farthest-side,#0000 calc(100% - 15px),#ccc calc(100% - 14px) 99%,#0000) left,
     radial-gradient(farthest-side,#0000 calc(100% - 15px),#ccc calc(100% - 14px) 99%,#0000) right;
    background-size: calc(50% + 7px) 100%;
    background-repeat: no-repeat;
    position: relative;
    animation: l10-0 1s infinite linear;
    margin: auto;
  }
  .loader:before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto; 
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: teal;
    transform-origin: -14px 50%;
    animation: l10-1 0.5s infinite linear;
  }
  @keyframes l10-0 { 
      0%,49.99% { transform:scaleX(1)}
      50%,100% { transform:scaleX(-1)} 
  }
  @keyframes l10-1 { 
      100% { transform:rotate(1turn)} 
  }

  #lblDarkMode{
    margin-right: 1%;
  }


  #search {
    position: relative;
    display: inline-block;
}

#busca {
    padding-left: 30px; /* Espaço à esquerda para o ícone */
    background-image: url('./imgs/btns/lupa.png');
    background-repeat: no-repeat;
    background-position: 3% center; /* Posicionamento do ícone */
    background-size: 20px; /* Tamanho do ícone */
}


/* Dialog */

dialog::backdrop {
    background-color:rgba(0, 128, 128, 0.8);
    filter: blur(1.7rem);
    z-index: 1;
}

dialog {
    overflow-x: hidden;
    z-index: 1;
    border-radius: 25px;
    background-color: var(--footer-border);
    width: 100%;
    height: fit-content;
    text-align: center;
    font-size: small;
}

dialog figure {
    /* margin: auto; */
    margin-left: -40%;
    width: 180%;
    height: 180%;
    /* transform: scale(2,2); */
}

dialog p {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    justify-content: center;
}

.dialogBtns{
    width: 80%;
    height: 10%;
    margin: auto;
    margin-top: 3%;
    /* position: fixed;
    bottom: 0; */
    font-size: 1rem;
}

/* .dialogBody {
    margin: auto;
    width: 100%;
    font-size: 1rem;
} */


select{
    text-align: center;
}


.divCenter{
    display: flex;
    justify-content: center;
    padding: 10px;
}

.voltar{
    text-decoration: none;
}

#eraseData{
    
    background-color: red;

}

#buttonBar{
    overflow: hidden;
    all: unset;
    width: 100%;
    position:fixed;
    bottom: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
}

#buttonBar ul{
    display: flexbox;
    width: 100%;
    flex: 1;
}

#buttonBar ul li{
    all: unset;
    text-align: center;
    width: 20%;
}

#buttonBar ul li button{
    all: unset;
    border: #ffffff solid 2px;
    width:99%;
    height: 100%;
    /* margin-bottom: 5px; */
}

#buttonBar ul li button:hover {
    background-color: var(--contraster-color2);
}

#buttonBar ul li button:active {
    background-color: var(--footer-color);
}

#buttonBar ul li button:disabled{
    background-color:greenyellow;
}

#buttonBar ul li select{
    /* all: unset; */
    background-color: var(--backgorund-color);
    color: var(--font-color);
    border: #ffffff solid 2px;
    border-radius: 0%;
    width:99%;
    height: 100%;
    /* margin-bottom: 5px; */
}

#buttonBar.hidden {
      transform: translateY(100%);
    }