body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.nav-wrapper {
  background-color: #2196F3 !important;
}

footer {
  background-color: #2196F3 !important;
}

nav {
  background-color: #2196F3;
  z-index: 1;
}

nav a {
  color: white;
}

nav a.brand-logo {
  font-size: 1.2rem;
  padding: 0;
}

.page-footer {
  background-color: #333;
  margin-top: 2rem;
  z-index: 5;
}

.page-footer h5 {
  margin-top: 0;
  font-size: 1.2rem;
}

.page-footer ul {
  list-style-type: none;
  padding: 0;
}

.page-footer ul li {
  margin-bottom: 1rem;
}

.page-footer a {
  color: #bbb;
}

#news-container-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.loading-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}

.card {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  padding: 20px;
}

.card-img-container {
  height: 50%;
  overflow: hidden;
}

.card-img-top {
  object-fit: cover;
  max-height: 200px;
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.card-img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-title {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 24px;
}

.card-source-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-source {
  font-weight: bold;
}

.card-date {
  font-style: italic;
}

.card-author {
  margin-bottom: 10px;
}

.card-buttons {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 0 10px 10px;
}

.card-button {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 9px 8px 4px;
  cursor: pointer;
  flex-grow: 1;
}

.card-button i {
  margin: 5px;
}

.card-button:not(:last-child) {
  margin-right: 10px;
}

.card-button:hover {
  background-color: #0069d9;
}

.tab-container {
  overflow-x: auto;
  white-space: nowrap;
  margin-top: 10px;
  z-index: 2;
}

.tab {
  display: inline-block;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 5px;
  cursor: pointer;
  user-select: none;
  color: #FFFFFF;
}

.tab:last-child::after {
  content: "";
  margin-left: 0;
}

.tab:nth-child(1){
  background-color: #0074D9;
}

.tab:nth-child(2){
  background-color: #FF4136;
}

.tab:nth-child(3){
  background-color: #2ECC40;
}

.tab:nth-child(4){
  background-color: #FF851B;
}

.tab:nth-child(5){
  background-color: #FFC107;
}

.tab:nth-child(6){
  background-color: #87CEFA;
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  margin-top: 700px;
  animation: pulse 1s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  background-color: #FFC107;
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  background-color: #2196F3;
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  background-color: #4CAF50;
  animation-delay: 0.4s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
#back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
