#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* Layout for API client */
.container {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.section {
  flex: 1;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  text-align: left;
}

/* Alerts */
.alert {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.alert.success {
  background: #e0f7e9;
  color: #2e7d32;
}
.alert.error {
  background: #fdecea;
  color: #c62828;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
th, td {
  border: 1px solid #ddd;
  padding: 0.5rem;
}
tr:hover {
  background: #f1f1f1;
}

/* Code block */
pre {
  background: #272822;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 4px;
  overflow: auto;
}
