/* LIBRARY SECTION STYLES */
.library-section {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.library-section h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* GRID LAYOUT */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.library-card {
  background-color: var(--secondary-color);
  border: 0.0625rem solid #334155; /* 1px */
  border-radius: 0.5rem; /* 8px */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.library-card h2 {
  font-size: 1.2rem;
}

.library-card img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem; /* 4px */
}

.card-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border: 0.125rem solid var(--text-color); /* 2px */
  font-size: 1rem;
  border-radius: 0.25rem; /* 4px */
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-accent {
  background-color: var(--accent-color);
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: 1rem;
  border-radius: 0.25rem; /* 4px */
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.btn-accent:hover {
  opacity: 0.8;
}
.btn-accent:visited {
  color: #000;
}

@media (max-width: 64rem) {
  /* 1024px */
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 43.75rem) {
  /* 700px */
  .library-grid {
    grid-template-columns: 1fr;
  }
  .card-buttons {
    justify-content: space-evenly;
  }
}

@media (max-width: 28.125rem) {
  /* 450px */
  .card-buttons {
    margin: auto;
    max-width: 6.25rem; /* 100px */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .card-buttons button,
  .card-buttons a {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}
.indicator-link {
  color: var(--accent-color);
}
.indicator-link:visited {
  color: var(--visited-link-color);
}
footer {
  background-color: var(--primary-color);
}
