:root {
  --red: #F15D69;
  --header-background-color: #1d2631;
}

*, :after, :before{
  box-sizing: border-box;
}

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto.ttf') format('truetype');
}

html, body {
  margin: 0;
  font-size: 1rem;
  font-family: Roboto;
}

.container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 0.5rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

/* BEGIN colors */
/**
 * Primary color scheme = dark
 * Secondary color scheme = light
 */
html {
  color-scheme: dark;
}

html.secondary-color-scheme {
  color-scheme: light;
}

.bg-1 {
  background-color: #47c0f4;
  color: #000;
}

.bg-1 a[href] {
  color: #000;
}

.secondary-color-scheme .bg-1 {
  background-color: #BAE9FD;
  color: #000;
}

.secondary-color-scheme .bg-1 a[href] {
  color: #000;
}

.bg-2 {
  background-color: #8FA9B8;
  color: #000;
}

.secondary-color-scheme .bg-2 {
  background-color: #fff;
  color: #000;
}

.bg-3 {
  background-color: #0E4A64;
  color: #fff;
}

.secondary-color-scheme .bg-3 {
  background-color: #F2ECE6;
  color: #000;
}

.bg-4 {
  background-color: #1D2631;
  color: #fff;
}

.secondary-color-scheme .bg-4 {
  background-color: #819CAB;
  color: #000;
}

/* END colors */

/* BEGIN buttons */

a.button {
  display: inline-block;
  background: #47c0f4;
  color: #263238;
  border: none;
  border-radius: 20px;
  padding: 0 20px;
  height: 40px;
  line-height: 2.5;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1px 3px 0 #000;
}

a.button:hover, a.button:active {
  background: #29b6f6;
}

a.button-long {
  padding: 0 80px;
}

a.button-black {
  background: #1d2631;
  color: #fff !important;
}

a.button-black:hover, a.button-black:active {
  background: #263238;
}

a.button-red {
  background: #F15D69;
  color: #000;
}

a.button-red:hover, a.button-red:active {
  background: #e94b5c;
}

a.button.button-teal {
  background: #0E4A64;
  color: #fff !important;
}

a.button.button-teal:hover, a.button.button-teal:active {
  background: #145a7a;
}

/* END buttons */

/* BEGIN header */

#header {
  position: relative;
  padding: 1rem 0;
  background-color: var(--header-background-color);
}

#header .container {
  overflow: visible;
}

#header #logo {
  max-width: 130px;
}

#header a {
  color: #fff;
  text-decoration: none;
}

#header a:hover {
  color: var(--red);
}

#header-links-1 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.8rem;
  line-height: 1;
  margin-top: .1rem;
}

#header-links-1 a {
  color: #8c8c8c;
}

#header-links-2 a {
  font-weight: bold;
}

#header-accessibility-icon {
  width: 1.5rem;
  height: 1.5rem;
}

#header-right {
  position: absolute;
  top: 80%;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background-color: var(--header-background-color);
}

/* END header */

#content{
  padding: 20px 0 50px;
}

#footer {
  padding: 10px 20px 80px;
  background-color: var(--header-background-color);
}

#footer h4 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: #fff;
}

#footer .footer-links {
  gap: 0.5rem;
}

#footer a[href] {
  color: #fff;
  text-decoration: none;
}

.diamond {
  width: 15px;
  height: 15px;
  background: var(--red);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0;
  }

  #header {
    padding: 2rem 0;
  }

  #header #logo {
    max-width: 170px;
  }

  #header-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      width: 100%;
  }

  #header-right {
    position: relative;
    top: 0;
    padding: 0;
  }

  #header-links-1 {
    border-bottom: 1px solid #8c8c8c;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  #footer h4 {
    margin-bottom: 1rem;
  }
    .header-actions {
    margin-left: 5rem;
  }
}

@media (min-width: 900px) {
  .container {
    max-width: 900px;
  }
    .header-actions {
    margin-left: 5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
  .header-actions {
    margin-left: 5rem;
  }
}

/* ===== header color theme =====  */

#header-color-mode-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transform: rotate(-90deg);
}

#header-color-mode-icon {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
  transition: transform 0.4s ease;
}

#header-color-mode-btn:focus {
  outline: none;
  box-shadow: none;
}

html.secondary-color-scheme #header-color-mode-icon {
  filter: none;
}

/* ===== Languages ===== */

.lang-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: .5rem;
  line-height: 0;
  cursor: pointer;
}

.lang-compact img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-expanded {
  display: none;
}

.lang-wrap.open .lang-expanded {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: #000;
  padding: 0 .8rem;
  height: 2.1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.lang-wrap.open .lang-compact {
  display: none;
}

.lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-menu {
  position: absolute;
  top: calc(80%);
  right: 0;
  min-width: 8em;
  max-height: 12rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  padding: 6px;
}

html.secondary-color-scheme .lang-compact img {
  filter: none;
}

/* tira os pontinhos da lista */
.lang-menu ul,
.lang-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== Search ===== */

.search-btn{
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  display:inline-flex ;
  align-items:center ;
  justify-content:center ;
}

.search-icon-compact{
  width:1.5rem;
  height:1.5rem;
  filter:brightness(0) invert(1);
  transform: translateY(1px);
}

html.secondary-color-scheme .search-icon-compact{
  filter:none;
}

.search-pill{
  display:inline-flex;
  align-items:center;
  position:relative;
  height:2rem;
  background:#fff;
  border-radius:9999px;
  padding-left:1rem;
  padding-right:2rem;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}

.search-pill.hidden{
  display:none;
}

.search-input{
  width:5rem ;
  border:0;
  outline:0;
  background:transparent;
  color:#000;
  font-size:1rem;
  font-weight:600;
}

.search-icon-btn{
  position:absolute;
  right:.55rem;
  top:50%;
  transform:translateY(-50%);
  width:1rem;
  height:2rem;
  border:0;
  background:transparent;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  filter: brightness(1) invert(1);
}

.search-icon-btn img{
  width:1.5rem;
  height:1.5rem;
}

/* ===== header icons===== */
.header-actions{
  display: flex;
  align-items: center;
  gap: .75rem;

}

.header-actions a, .header-actions button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

html.secondary-color-scheme .header-actions img{
  filter: none;
}

.lang-pill-icon img{
  width:1.5rem;
  height:1.5rem;
  filter: brightness(1) invert(1);
}

.search-wrap.open .search-btn{
  display:none;
}



