:root {
      --bg-light: #f4f4f4;
      --text-light: #333;
      --bg-dark: #121212;
      --text-dark: #f4f4f4;
      --card-bg-light: #fff;
      --card-bg-dark: #1e1e1e;
      --accent: #0077ff;
    }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

header {
  padding: 1rem 2rem;
  background-color: var(--card-bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  transition: background-color 0.3s;
}

body.dark header {
  background-color: var(--card-bg-dark);
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
}

#searchInput {
  width: 90%;
  max-width: 500px;
  padding: 0.5rem;
  margin: 1rem auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#apiList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.api-card {
  background-color: var(--card-bg-light);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, background-color 0.3s;
}

.api-card:hover {
  transform: translateY(-5px);
}

body.dark .api-card {
  background-color: var(--card-bg-dark);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}



footer {
  position: relative;
  width: 100%;
  background: var(--card-bg-light);
  min-height: 100px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  color: white;
}

footer .social_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
}

footer .social_icon li {
  list-style: none;
}

footer .social_icon li a {
  font-size: 1.5rem;
  color: #ccc;
  margin: 0 10px;
  transition: 0.5s;
}

svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: #fff; /* or any color */
}


footer .social_icon li a:hover {
  transform: translateY(-10px);
  color: var(--accent);
}

footer p {
  margin-top: 15px;
  font-size: 1em;
  color: #666;
  text-align: center;
}


.dark footer {
  background: #121212;
}

.dark footer .menu li a,
.dark footer .social_icon li a {
  color: #999;
}

.dark footer .menu li a:hover,
.dark footer .social_icon li a:hover {
  color: #fff;
}

.dark footer p {
  color: #eee;
}
