.news__section {
  background-color: var(--white-color);
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 4rem;
  border-bottom: 1px solid rgb(0, 0, 0, 0.2);
  position: relative;
  transition: all 500ms ease;
}

#news__button-close{
  position: absolute;
  right: 7.5%;
  cursor: pointer;
}

#news__button-close i{
  color: var(--secondary-color);
}


.news-headlines{
  list-style: none;
  
}

.news-headlines-li{
  /* font-size: 0.875rem; */
  color: var(--secondary-color);
  font-weight: 600;
  padding: 0 1rem;
  text-align: center;
  display: none;
  animation: news-move 5s infinite;
}

.news-headlines-li.active{
  display: block;
}



@keyframes news-move {
  0% {
    transform: translateY(200%);
  }
  
  15% {
    transform: translateY(0);
  }

  80% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(200%);
  }
}

/* Tablets */
@media (min-width: 768px){
  .news__section {
    height: 3rem;
  }
}

/* laptops */
@media (min-width: 1000px){
  .news__section {
    height: 2rem;
  }
}

/* Big screens */
@media (min-width: 1500px){
  .container{
      width: 70%;
      margin-inline: auto;
  }
  
  .margin-constant{
      margin-top: 8rem;
  }
}


