/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #eee;
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: #000;
  padding: 1rem;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: white;
}

/* Sections */
.archive-section {
  padding: 4rem 2rem;
  min-height: 100vh;
  border-bottom: 1px solid #222;
}

.archive-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Preview Grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

/* Fonts */
.font-preview {
  padding: 1rem;
  background: #222;
  border: 1px solid #333;
  text-align: center;
}

/* Sprites */
.preview-grid img {
  width: 100%;
  height: auto;
  border: 1px solid #333;
}

/* Background previews */
.bg-preview {
  height: 150px;
  background-size: cover;
  background-position: center;
  border: 1px solid #333;
}

/* Audio */
audio {
  width: 100%;
}