/*GLOBALS*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400&display=swap');

body *{
  box-sizing: border-box;
}

button{
  border-radius: 2.5px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato';
  color:#333;
  background: #FFFFFF;
  min-height: 100vh;
  display: flex;
  flex-flow: column nowrap;

  /*Colors*/
  --primary_color : #0853A2;
  --secondary_color : #D2E2F2;
  --accent_color: #3370b1;
  --auxiliar_color: #6494c3;
  --text_primary_color : #FFFFFF;
  --text_secondary_color : #858585;

  /*Sizes*/
  --margin: 10em;
}

body>main {
  width: calc(100% - var(--margin));
  flex-grow: 1;
  margin: 1em calc(var(--margin) / 2) 1em calc(var(--margin) / 2);
}

.display_none, *[hidden] {
  display: none !important;
}

.hide {
  display: inline-block;
  width: 0px;
  height: 0px;
  visibility: 0;
}

div.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0em 0.2em;
}
div.dropdown>span {
  padding: 0em 0.2em;
}
div.dropdown.on_hover:hover, div.dropdown:focus {
  background: var(--accent_color);
}
div.dropdown>ul {
  position: absolute;
  right: 0;
  top: 0;
  list-style-type: none;
  padding: 0;
  max-height: 0px;
  overflow: hidden;
  background: var(--auxiliar_color);
}
div.dropdown.on_hover:hover>ul, div.dropdown:focus>ul {
  max-height: fit-content;
  max-height: -moz-fit-content;
  overflow: auto;
}
div.dropdown>ul>li {
  padding: 0.3em;
  min-width: 10em;
  cursor: pointer;
}
div.dropdown>ul>li:hover {
  background: var(--accent_color);
}

div.dropdown::after {
  content: "v";
  font-size: small;
  padding: 0em 0.2em;
}
/*GLOBALS*/

/*STARTING STYLE FOR COMPONENTS*/
body>div.modals_container {
  display: none;
}

[tooltiptext] {
  position: relative;
}
*[tooltiptext]::after {
  position: absolute;
  display: block;
  top: 110%;
  left: 110%;
  background: #10349ac7;
  padding: 0.2em;
  z-index: 1;
  color: white;
}
*[tooltiptext]:hover::after {
  content:attr(tooltiptext);
}
*[tooltiptext]:after:hover {
  display: none;
}

/*STARTING STYLE FOR COMPONENTS*/

@media all and (max-width: 800px) {
  body>main {
    margin: 1em 0.5em 1em 0.5em;
    width: calc(100% - 1em);
  }
}
@media all and (max-width: 500px) {
  main {
    margin-left: 0;
  }
}
