:root {
  --bg-card: #16213e;
  --bg-dark: #1a1a2e;
  --python-blue: #306998;
  --python-yellow: #ffd43b;
  --text-light: #eee;
  --text-muted: #aaa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: black;
  color: var(--text-light);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    avenir next,
    avenir,
    segoe ui,
    helvetica neue,
    helvetica,
    Cantarell,
    Ubuntu,
    roboto,
    noto,
    arial,
    sans-serif;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  margin: 0 auto;
  max-width: 700px;
}

header {
  margin-bottom: 2rem;
  text-align: center;
}

h1 {
  color: var(--python-yellow);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: var(--python-yellow);
}

a:hover {
  text-decoration: underline;
}

#loading {
  color: var(--text-muted);
  padding: 3rem;
  text-align: center;
}

.spinner {
  animation: spin 1s linear infinite;
  border: 4px solid var(--bg-card);
  border-radius: 50%;
  border-top-color: var(--python-yellow);
  height: 40px;
  margin: 0 auto 1rem;
  width: 40px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pep-card {
  background: var(--bg-card);
  border: 2px solid var(--python-yellow);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.pep-number {
  color: var(--python-yellow);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
}

.pep-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.error {
  background: var(--bg-card);
  border-radius: 12px;
  color: #ff8888;
  padding: 2rem;
  text-align: center;
}

footer {
  border-top: 1px solid #333;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 3rem auto 0;
  max-width: 700px;
  padding-top: 2rem;
  text-align: center;
}

footer a {
  color: var(--text-muted);
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}
@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    animation: none;
  }
  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }
  .pep-number {
    font-size: 3.5rem;
  }
}
