:root {
   --background-color: #ffffff;
   --color: #051438;
   --color-light: #abc8cd;
   --color-box: #f7f7f7;
   --color-borderbox: #ced0d6;
   --color-border-att: #c57164;
   --color-border-ok: #107723;

   --header-height: 64px;
   --header-background: #5e8891;

   --aside-width: 320px;
   --aside-background: #ffffff;

   --main-background: #ffffff;
   --main-padding: 20px;
   --main-padding-right: calc((var(--aside-width) + 100% + var(--main-padding)) - 1366px); 

   --group-height: 28px;
   --group-hover: rgba(0,103,160, 0.2);
   --group-selected: rgba(180,180,180, 0.2);
   --group-selected-color: #004bd5;

   --transition-time: 0.3s;
   
   --font-color: #4c4b4b;
   --font-dark: #282726;
   --font-title: #456b73;
   --font-links: #10677a;
   --font-links-over: #0000ff;
   
}

@supports (interpolate-size: allow-keywords) {
   :root {
      interpolate-size: allow-keywords;
   }
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   overflow: hidden;

}

body {
   display: grid;
   grid-template-columns: var(--aside-width) calc(100vw - (var(--aside-width)));
   grid-template-rows: var(--header-height) calc(100vh - (var(--header-height)));
   grid-template-areas: 
      "header header"
      "aside main";
   width: 100vw;
   height: 100vh;
   font-family: "Google Sans Flex", sans-serif;
   background-color: var(--background-color);
   color: var(--font-color);
   font-size: 1rem;
   font-weight: 400;
   line-height: 30px;

   
}

header {
   grid-area: header;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 8px;
   border-bottom: 1px solid #c1c1c1;
   background-color: var(--header-background);
}

main {
   grid-area: main;
   background-color: var(--main-background);
   padding: var(--main-padding);
   overflow-y: auto;  
}   

aside {
   display: flex;
   flex-direction: column;
   align-items: center;
   border-right: 1px solid #c1c1c1;
   background-color: var(--aside-background);
   transition: width var(--transition-time) ease-out;
   overflow-y: auto;  

}

/* ----------------------------------------------------------------------------------- maior que 1024 -- */

@media only screen and (min-width: 1025px) {

   aside {
      grid-area: aside;
   }   

   #btn-menu {
      display: none;
   }

}

/* -------------------------------------------------------------------------- igual ou maior que 1366 -- */

@media only screen and (min-width: 1366px) {

   main {
      padding-right: var(--main-padding-right);
   }

}

/* ----------------------------------------------------------------------------------------- ate 1024 -- */

@media only screen and (max-width: 1024px) {

   body {
      grid-template-columns: 100vw;
      grid-template-rows: var(--header-height) 1fr;
      grid-template-areas: 
         "header"
         "main";
      width: 100vw;
      height: 100vh;
      height: 100svh;
   }   

   aside {
      position: fixed;
      top: var(--header-height);
      left: 0;
      bottom: 0;
   }

   aside.closed {
      width: 0;
      transition-duration: 0s;
   }
   
   aside.opened {
      width: var(--aside-width);
   }
   
   #btn-menu {
      display: block;
   }

   #title-menu img {
      display: none;
   }
}

aside * {
   white-space: nowrap;
   opacity: 0;
   transition: opacity 0s ease-out var(--transition-time);
   visibility: hidden;
}

aside.opened * {
   opacity: 1;
   transition: opacity 0s;
   visibility: visible;
}

.grupo-title,
.grupo-items,
.grupo-home {
   user-select: none;
   overflow: hidden;
   flex-shrink: 0;
}

.grupo-title,
.grupo-home {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
   height: var(--group-height);
   line-height: var(--group-height);
   padding: 20px 10px 20px 12px;
   color: var(--font-dark);
   font-weight: 500;
   cursor: pointer;
}

.grupo-title:hover,
.grupo-home:hover {
   background-color: var(--group-hover);   
}

.grupo-title span {
   width: 20px;
   aspect-ratio: 1;
   border-radius: 50%;
   background-color: transparent;
   background-image: url('./imagens/chevron.svg');
   background-repeat: no-repeat;
   background-position: center;
   background-size: 16px 16px;
   transition: transform var(--transition-time) ease-out;
}

.grupo-title:has(+ .grupo-items.view) span {
   transform: rotate(-180deg);
}

.grupo-items {
   display: flex;
   flex-direction: column;
   width: 100%;
   height: 0;
   transition: height var(--transition-time) ease-out;
}

.grupo-items.view {
   height: auto;
}

.grupo-item {
   height: var(--group-height);
   line-height: var(--group-height);
   padding: 5px 10px 30px 24px;
}

.grupo-item.selected {
   color: var(--group-selected-color);
   background-color: var(--group-selected);
}

.grupo-item:hover {
   background-color: var(--group-hover);   
}

#header-left,
#header-right {
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100%;
}

.icon-menu, .icon-x {
   height: 100%;
   aspect-ratio: 1;
   border: 0;
   background-color: transparent;
   background-repeat: no-repeat;
   background-position: center;
}

#btn-menu {
   background-size: 24px 24px;
}

#btn-menu.icon-menu {
   background-image: url('./imagens/menu.svg');
}

#btn-menu.icon-x {
   background-image: url('./imagens/x.svg');
}

#title-menu {
   padding-left: 12px;
   display: flex;
   justify-content: center;
   align-items: center;

}

.content {
   display: none;
}

.content.show {
   display: block;
}

/* NOVOS CSS DAQUI PARA BAIXO */


#header-left img {
   width: auto;
   height: calc(var(--header-height) - 20px);
}


#titulo-nome {
  font-size: 1.2rem;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 500;
  padding: 0 10px 0 0;
}


h1 {
  display: block;
  font-size: 1.3em;
  font-weight: 500;
}

h2 {
  display: block;
  font-size: 1.2em;
  font-weight: 450;
}

.explbox {
  background-color: var(--color-box);
  border-radius: 16px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-borderbox);
  padding: 30px 30px;
}


a:link, a:visited {
  color: var(--font-links);
  text-decoration: none;
  font-weight: 450;
}

a:hover {
  color: var(--font-links-over);
}

.content .title {
  color: var(--font-title);
  font-weight: 500;
  font-size: 1.2rem;
}

.observ {
  background-color: var(--color-box);
  border-radius: 16px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-border-att);
  padding: 15px;
  margin-top: 10px;
}

.conclusao {
  background-color: var(--color-box);
  border-radius: 16px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--color-border-ok);
  padding: 15px;
  margin-top: 10px;
}


details > summary {
  padding: 4px;
  margin: 10px 0 0 0;
  background-color: #eeeeee;
  border: none;
  box-shadow: 1px 1px 2px #bbbbbb;
  cursor: pointer;
}

details > p {
  padding: 4px;
  margin: 10px;
  
}

.m-textbox img {
   width: 80%;
   margin: 30px auto;
   display: block;
   border-radius: 5px;
   box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

#rodape {
  color: var(--font-color);
  font-weight: 500;
  font-size: 0.8rem;
}