@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --cor0: #477c99;
    --cor1: #0000FF;
    --cor2: #88aec0;
    --cor3: #5890ac;
    --cor4: #a1cce0;
    
    --fonte-padrao: Arial, Verdana, Helvetica, sans-serif;
    --fonte-destaque: 'Bebas Neue', cursive;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

body {
    background-color: var(--cor4);
    font-family: var(--fonte-padrao);
}

header {
    background-image: linear-gradient(to bottom, var(--cor0), var(--cor3));
    padding: 2rem 0;
}

header > h1 {
    color: white;
    font-family: 'Merriweather', serif;
    font-weight: normal;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    padding-left: 10px;
    font-family: 'Merriweather', sans-serif;
}

.menu {
    z-index: 1;
    display: flex;
}
  
.menu li {
    position: relative;
}
  
.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: block;
    padding: 10px 1.5rem;
    transition: background-color .22s ease, color .22s ease;
}
  
.menu a:hover {
    background-color: var(--cor2);
    color: #fff;
}
  
.submenu {
    position: absolute;
    background-color: var(--cor0);
    width: 140px;
    left: 0;
    display: none;
}

.submenu2 {
    position: absolute;
    left: 100%;
    width: 160px;
    top: 0;
    background-color: var(--cor0);
    display: none;
}
  
.menu li:hover > .submenu {
    display: block;
    animation: slideup .3s ease;
}

.submenu li:hover > .submenu2 {
    display: block;
    animation: slideleft .3s ease;
}

.link-arquivos::after {
    content: " ▸";
}

@media (max-width: 1366px) {
    .submenu2 {
        left: auto;
        right: 100%;
    }
    .link-arquivos::after {
        content: "";
    }
    .link-arquivos::before {
        content: "◂";
    }
}
  
@keyframes slideup {
    0% {
      opacity: 0;
      transform: translateY(18px);
}
  
    100% {
      opacity: 1;
      transform: none;
    }
}
  
@keyframes slideleft {
    0% {
      opacity: 0;
      transform: translateX(18px);
    }
  
    100% {
      opacity: 1;
      transform: none;
    }
}

main {
  flex: 1;
  background-color: white;
  min-width: 300px;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 30px;
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.411);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

main  h1 {
    color: black;
    font-family: 'Merriweather', sans-serif;
    font-weight: bold;
    font-size: 2em;
    text-align: center;
}

main h2 {
    color: black;
    text-align: center;
    font-family: 'Merriweather', sans-serif;
    font-weight: bold;
    padding-top: 5px;
}

main p {
    margin: 10px  0px 0px 0px;
    text-align: justify;
    font-size: 1rem;
    line-height: 2em;
    margin-left: 20px;
    margin-right: 20px;
}

main p:first-of-type {
    text-indent: 30px;
}

.conteudo {
    font-weight: bold;
    color: #0000EE;
    background-color: var(--cor4);
    padding: 2px 6px;
}

.conteudo:hover {
    text-decoration: underline;
    color: var(--cor2);
}

#esboco > ul {
    padding: 15px;
    list-style-type: disc;
    list-style-position: inside;
    columns: 4;
}

/* .textos > p {
    margin-top: 7px;
    margin-bottom: 0px;
} */

.textos > ol {
    list-style-position: inside;
    padding-left: 40px;
}

.textos > ol > li {
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 25px;
}

.textos > ol > ol {
    padding-left: 15px;
}

.textos > ol > ol > li {
    margin-top: 7px;
    line-height: 25px;
}

.textos > ul {
    list-style-position: inside;
    padding-left: 40px;
    list-style-type: circle;
}

#loading {
    text-align: center;
}

.loader {
    width: 160px;
    height: 185px;
    position: relative;
    background: #4a7f9c;
    border-radius: 100px 100px 0 0;
}
  .loader:after {
    content: "";
    position: absolute;
    width: 100px;
    height: 125px;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    background-image: radial-gradient(circle, #000 48%, transparent 55%),
      radial-gradient(circle, #000 48%, transparent 55%),
      radial-gradient(circle, #4a7f9c 30%, transparent 45%),
      radial-gradient(circle, #000 48%, transparent 51%),
      linear-gradient(#000 20px, transparent 0),
      linear-gradient(#cfecf9 60px, transparent 0),
      radial-gradient(circle, #cfecf9 50%, transparent 51%),
      radial-gradient(circle, #cfecf9 50%, transparent 51%);
    background-repeat: no-repeat;
    background-size: 16px 16px, 16px 16px, 10px 10px, 42px 42px, 12px 3px,
      50px 25px, 70px 70px, 70px 70px;
    background-position: 25px 10px, 55px 10px, 36px 44px, 50% 30px, 50% 85px,
      50% 50px, 50% 22px, 50% 45px;
    animation: faceLift 3s linear infinite alternate;
}
  .loader:before {
    content: "";
    position: absolute;
    width: 140%;
    height: 125px;
    left: -20%;
    top: 0;
    background-image: radial-gradient(circle, #4a7f9c 48%, transparent 50%),
      radial-gradient(circle, #4a7f9c 48%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 65px 65px;
    background-position: 0px 12px, 145px 12px;
    animation: earLift 3s linear infinite alternate;
}
  
  @keyframes faceLift {
    0% {
      transform: translateX(-60%);
    }
    100% {
      transform: translateX(-30%);
    }
  }
  @keyframes earLift {
    0% {
      transform: translateX(10px);
    }
    100% {
      transform: translateX(0px);
    }
}
    
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30vh;
    z-index: 0;
}

.btn {
    cursor: pointer;
    background-color: DodgerBlue;
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn:hover {
    background-color: RoyalBlue;
}

#myBtn {
    display: none; 
    position: fixed; 
    bottom: 35px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: DodgerBlue;
    color: white; 
    cursor: pointer; 
    padding: 15px; 
    border-radius: 100px; 
    font-size: 18px; 
}
  
#myBtn:hover {
    background-color: RoyalBlue;
}

@media screen and (max-width: 600px) {
    #myBtn {
      bottom: 50px;
      right: 10px;
    }
}

#search-bar {
  display: flex;
  align-items: center;
  margin: 20px auto;
  max-width: 800px;
  width: 100%;
  padding: 10px;
}
#search-input {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
#search-bar button {
  padding: 10px;
  margin-left: 10px;
  font-size: 1rem;
  background-color: var(--cor0);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#search-bar button:hover {
  background-color: var(--cor3);
}
#suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.suggestion-item {
  padding: 10px;
  cursor: pointer;
}
.suggestion-item:hover {
  background: #f0f0f0;
}

/* Responsividade */
@media (max-width: 768px) {
  #search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  #search-bar button {
    margin: 10px 0 0 0;
    width: 100%;
  }
}


#container-principal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
