:root {
  --max-width: 1100px;
  --border-radius: 12px;
  --font-mono:
    ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

  --foreground-rgb: 0, 0, 0;
  --background-rgb: 255, 255, 255;
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 0;
}

a {
  color: inherit;
  //text-decoration: n;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow: hidden; /* Prevent animations from causing scrollbars */
}

.content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  position: relative; /* For animations that use absolute positioning */
}

.title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  text-align: center;
  position: relative;
  display: inline-block; /* For animations that transform the element */
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}

.select-animation {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  min-width: 150px;
  background-color: white;
}

/* Update the mimic-button style to have a more visible border */
.mimic-button {
  padding: 8px 16px;
  background-color: white;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mimic-button:hover {
  background-color: #f5f5f5;
}

.footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.footer a {
  color: #666;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Add a horizontal line above the footer */
.footer::before {
  content: "";
  display: block;
  width: 100px;
  height: 1px;
  background-color: #eee;
  margin: 0 auto 1rem;
}

/* Add these styles for the categories page */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  background-color: #f5f5f5;
}

.active-tab {
  background-color: #333;
  color: white;
  border-color: #333;
}

.demo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  margin: 2rem 0;
  border: 1px dashed #ccc;
  border-radius: 12px;
  overflow: hidden;
}

.demo-element {
  padding: 2rem;
  background-color: #f0f0f0;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.animation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.animation-button {
  padding: 0.75rem;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.animation-button:hover {
  background-color: #e5e5e5;
}

.navigation-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.navigation-links a {
  color: #0070f3;
  text-decoration: none;
}

.navigation-links a:hover {
  text-decoration: underline;
}

/* Add these styles for the playground page */
.playground-content {
  max-width: 1000px;
}

.playground-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .playground-layout {
    grid-template-columns: 1fr;
  }
}

.controls-panel {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.9rem;
  font-weight: 500;
}

.number-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.play-button {
  margin-top: 1rem;
  padding: 10px 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.play-button:hover {
  background-color: #555;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preview-container {
  height: 300px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.animated-element,
.static-element {
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.code-snippets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .code-snippets {
    grid-template-columns: 1fr;
  }
}

.code-block {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
}

.code-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.code-block pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Add these styles for the navbar */
.navbar {
  background-color: white;
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.navbar-link {
  color: #666;
  transition: color 0.2s;
}

.navbar-link:hover {
  color: #333;
}

@media (max-width: 600px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-links {
    width: 100%;
    justify-content: space-between;
  }
}
