/*This code was genarated and upgraded with the help of chatgpt*/
/* Global Styles */
body {
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  padding: 0px;
  background-color: #f4f4f4;
  box-sizing: border-box;
}

/* Header and Navigation */
header {
  background-color: #333;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

header h1 {
  color: #000000; /* Fix for header title color */
  margin: 0;
}

nav {
  background-color: #333;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 0.5rem;
  padding: 0 0.5rem;
  border-right: 1px solid white;
}

nav ul li:last-child {
  border-right: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

nav ul li a:hover {
  color: #e0e0e0;
}

/* Active Page Indicator */
nav ul li a.active {
  border-bottom: 2px solid white;
}

/* Main Content Title */
main h1 {
  color: #333;
}

/* API Data Display Area */
#data {
  margin-top: 20px;
  background-color: #E3BC9A;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  main h1 {
    font-size: 1.5em;
  }

  #data {
    padding: 5px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    border-right: none;
    border-bottom: 1px solid white;
    width: 100%;
    text-align: center;
  }

  nav ul li:last-child {
    border-bottom: none;
  }
}
