@import url("https://fonts.googleapis.com/css?family=Chivo:700i|Open+Sans");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Open Sans", sans-serif;
}

.board {
  /* max-width: 800px; */
  width: 90vw;
  /* margin: 4rem auto; 
  display: grid;*/
  position: relative;
}

/* include a slightly rotated rectangle of the same size of the board, right behind it */
.board:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  transform: rotate(-2deg) scale(1.02);
  z-index: -5;
}

/* for the heading include a slightly darker background */
.board__heading {
  /* margin to have the heading overlap on the surrounding border */
  margin: -4px;
  margin-bottom: 1.75rem;
  font-family: "Chivo", sans-serif;
  font-size: 1.25rem;
  color: #8f3f3f;
  padding: 0.75rem;
  padding-left: 1.5rem;
}

/* navigation displaying the items evenly in a non-wrapping row */
.board__nav {
  display: flex;
  margin: 1rem 2rem;
  justify-content: space-evenly;
  width: 80%;
  justify-self: center;
}

/* style the buttons to have a bit of whitespace around the text
a background is specified in the script */
.nav--item {
  border: none;
  background: none;
  color: inherit;
  font-size: 0.85rem;
  font-family: inherit;
  text-transform: capitalize;
  border-radius: 30px;
  letter-spacing: 0.05rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

/* on hover and focused slightly decrease the color of the button and add an underline */
.nav--item:hover,
.nav--item:focus {
  color: hsl(0, 0%, 35%);
  text-decoration: underline;
}

/* for the section describing the news items, display the items in a single column layout */
.board__news {
  display: flex;
  margin: 1rem 0 3rem;
  flex-direction: column;
  width: 80%;
  overflow-y: auto;
}

/* minor style changes for the scrollbar */
.board__news::-webkit-scrollbar {
  width: 0.25rem;
}

.board__news::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px hsla(200, 100%, 5%, 0.3);
}

.board__news::-webkit-scrollbar-thumb {
  background: hsl(200, 100%, 10%);
  border-radius: 5px;
}

/* remove the default properties of the anchor links describing the news items */
.news--item {
  text-decoration: none;
  color: inherit;
  margin: 1.25rem 0;
  padding-left: 0.75rem;
  grid-column: 1 / -1;

}

.news--item {
  position: relative;
  /* Adiciona espaço extra na parte inferior para separação visual */
}

/* on hover and when focused slightly decrease the weight of the anchor links */
.news--item:hover,
.news--item:focus {
  color: hsl(0, 0%, 35%);
}

.news--item h3 {
  font-size: 1.4rem;
}

.news--item .date {
  font-size: 0.8rem;
}

.news--item .brief {
  font-size: 0.9rem;
}

/* on smaller viewports */
@media (max-width: 700px) {

  /* change the grid layout to have the heading atop the navigation and section elements */
  .board {
    grid-template-areas: "heading heading" "nav section";
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto 1fr;
  }

  .board__heading {
    grid-area: heading;
  }

  /* position the navigation items atop one another instead of side by side */
  .board__nav {
    grid-area: nav;
    flex-direction: column;
    /* at the top of the container */
    align-self: start;
  }

  .board__nav .nav--item {
    text-align: left;
    margin: 0.75rem 0;
  }

  /* slightly increase the height of the container to include a taller board */
  .board__news {
    grid-area: section;
    width: 90%;

  }
}

/* Adiciona o risco ao lado das notícias */
.news--item::before {
  content: '';
  display: block;
  width: 4px;
  /* Largura do risco */
  height: 100%;
  /* Altura igual à altura da notícia */
  background-color: #66d7ee;
  /* Cor do risco */
  position: absolute;
  left: 0;
  top: 0;
}

/* Estilo para o container das notícias */
.board__news {
  position: relative;
  /* Necessário para que o posicionamento absoluto funcione */
  padding-left: 8px;
  /* Espaçamento para acomodar o risco */
}

/* Estilo para o texto das notícias */
.news--item {
  position: relative;
  /* Necessário para que o risco seja posicionado corretamente */
  padding-left: 12px;
  /* Espaçamento para acomodar o risco e separar do texto */
}

/* Estilo para a data das notícias */
.news--item .date {
  margin-top: 0;
  /* Remove o espaçamento superior */
}