body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #10151d;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #1f2735;
  color: white;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

#user-info {
  color: #e2ddf1;
  font-size: 1.2em;
  text-align: center;
  margin-top: 20px;
}

button {
  margin: 5px;
  padding: 10px 20px;
  background-color: #1f2735;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

button:active {
  background-color: #003d80;
  transform: translateY(0);
}

h1 {
  text-align: center;
  padding: 20px;
  background-color: #1f2735;
  color: #fff;
  margin: 0;
}

.categories {
  text-align: center;
  margin: 20px 0;
}

#news {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.article {
  background-color: #272725;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(130, 47, 47, 0.1);
  margin: 20px;
  max-width: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure elements are spaced correctly */
  color: whitesmoke;
}

.article img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  border-bottom: 1px solid #1f2735;
}

.article h2 {
  font-size: 1.2em;
  margin: 0;
  padding: 10px;
  background-color: #1f2735;
  color: #ffffff;
}

.article p.content,
.article p.description {
  display: none; /* Hide the content and description paragraphs */
}

.article a {
  text-decoration: none;
  color: whitesmoke;
}

.article a:hover h2 {
  text-decoration: underline;
}

.article-footer {
  text-align: center;
  padding: 10px 0;
}

.article-footer p {
  margin: 0 0 5px 0; /* Add padding above the Save Article button */
}

.article a[target="_blank"] {
  display: block;
  text-decoration: underline; /* Underline for "Read More" link */
  text-align: center;
  padding: 10px 0;
}

.article-details {
  padding: 20px;
  color: whitesmoke;
}

.article-details img {
  width: 100%;
  height: auto;
}

.article-details h1 {
  font-size: 2em;
  margin: 20px 0;
  color: whitesmoke;
}

.article-details p {
  font-size: 1.2em;
  line-height: 1.6;
  color: whitesmoke;
}

.article-details a {
  display: block;
  margin-top: 20px;
  font-size: 1.2em;
  color: #c7bebe;
}

/* Added CSS for saved articles heading */
.saved-articles-heading {
  color: #ffffff; /* Make the "Saved Articles" heading white */
  text-align: center;
  margin-top: 20px;
}

.saved-articles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.saved-article-tile {
  background-color: #272725;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(130, 47, 47, 0.1);
  margin: 10px;
  padding: 10px;
  width: 150px; /* Ensure the tiles are not too wide */
  height: 150px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure elements are spaced correctly */
  color: whitesmoke;
}
.saved-article-tile img {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  flex-shrink: 0; /* Prevent image from shrinking */
}
.saved-article-tile h3 {
  font-size: .7em;
  margin: 5px 0;
  padding: 0 5px;
  color: #ffffff;
  text-align: center;
}
.saved-article-tile a {
  font-size: .8em;
  text-decoration: underline; /*Saved Article Read More Underline*/
  color: whitesmoke;
  text-align: center; /* Center the link text */
  padding-bottom: 5px; /* Add padding at the bottom */
}

.saved-article-tile a:hover h3 {
  text-decoration: underline;
}

/* Navigation buttons styling */
.navigation-buttons {
  display: flex;
  justify-content: flex-start;
  padding: 10px 20px;
}

/* Notification styles */
#notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: black;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  text-align: center;
  font-size: 1.2em;
}

#notification.show {
  opacity: 1;
}
