html body {
  margin: 0px;
}

body {
  background: #f4f4f4;
  color: #333;
  min-height: 100vh;
  min-width: 100vw;
}

.header {
  background: #003366;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
}

.navbar a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

.navbar a.active,
.navbar a:hover {
  text-decoration: underline;
}

.hero {
  background: linear-gradient(180deg, rgba(149, 174, 218, 0.85), rgba(11, 61, 145, 0.65));
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
}

.featured {
  padding: 40px 20px;
  text-align: center;
}

.featured h2 {
  margin-bottom: 25px;
  font-size: 28px;
}

a.book-link {
  display: block;
  width: 100%;
  height: 100%;
  color: initial;
  text-decoration: none;
}

a.book-link:hover {
  display: block;
  width: 100%;
  height: 100%;
  color: initial;
  text-decoration: none;
}

a.book-link:visited {
  display: block;
  width: 100%;
  height: 100%;
  color: initial;
  text-decoration: none;
}

.book-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.book-card {
  background: white;
  padding: 15px;
  width: 200px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.book-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 10px;
}

.book-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.item-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
  background: white;
  margin-bottom: 20px;
  border-top: 1px solid #ddd;
}

.item-container ul {
  list-style: none;
  padding: 0;
  text-align: center;
  font-size: 18px;
}

.item-container ul li {
  margin: 8px 0;
}

section h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: #2c3e50;
}

section p {
  max-width: 800px;
  margin: auto;
  font-size: 18px;
  text-align: center;
}

.rules-preview .btn {
  display: inline-block;
  padding: 12px 25px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
}

.rules-preview .btn:hover {
  background: #2980b9;
}

.genre {
  background: rgb(255, 255, 255);
  border-radius: 12px;
  padding: 18px;
  box-shadow: #424242;
  margin-bottom: 18px;
}

.genre-header {
  margin-bottom: 12px;
}

.genre-header h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
}

.genre-desc {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.book-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.book-card-detailed {
  width: calc(33.333% - 9.333px);
  min-width: 200px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(12, 18, 30, 0.06);
  display: flex;
  flex-direction: column;
}

.cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.meta {
  padding: 12px;
}

.title {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.author {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 13px;
}

.tag {
  padding: 0% 10px;
  border-radius: 6px;
  background-color: #0b3d91;
  font-size: 12px;
  color: wheat;
  font-weight: 600;
}

main.rules {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rule-section {
  display: block;
  width: 80%;
  background-color: rgba(200, 200, 255, 0.4);
  margin-left: 10px;
  margin-bottom: 1rem;
  padding: 1rem 1rem;
  border-left: 4px solid rgba(0, 255, 76, 0.911);
  border-radius: 8px;
}

.rule-section h2 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #083344;
}

.rule-section ul {
  margin-left: 1rem;
  color: #111827;
}

.rule-section li {
  margin-bottom: 0.45rem;
  color: #6b7280;
}

.contact-container {
  max-width: 850px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-card {
  background: #eef0ff;
  padding: 20px;
  border-left: 5px solid #3b4cca;
  margin-bottom: 30px;
  border-radius: 6px;
}

.contact-card p {
  margin: 6px 0;
}


.book-container {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  max-width: 900px;
  margin: 30px auto;
  display: flex;
  gap: 30px;
}

.book-cover img {
  width: 220px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.book-info h1 {
  margin-top: 0px;
}

.book-info p {
  margin: 5px 0 12px;
}

.available {
  color: green;
  font-weight: bold;
}

.unavailable {
  color: red;
  font-weight: bold;
}

.footer {
  background: #003366;
  text-align: center;
  color: white;
  padding: 15px;
  margin-top: 40px;
}