/* Common CSS for futuristic design in blue tone with improved readability */

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #3a66a7; /* Brighter blue background */
  color: #ffffff;
  line-height: 1.6;
}

.header {
  background-color: #d0e7ff; /* Light header area */
  color: #3a66a7;
  padding: 20px;
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.content {
  background-color: #ecf0f1; /* Main content container background */
  color: #3a66a7;
  padding: 20px;
  border-radius: 8px;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: #0077cc;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  background-color: #00aaff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0088cc;
}

/* Book-specific styles */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-image {
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  color: #2c3e50;
  font-size: 1.3em;
  font-weight: bold;
  margin: 10px 0;
  line-height: 1.4;
}

.card-description {
  color: #7f8c8d;
  font-size: 0.9em;
  margin: 10px 0;
  line-height: 1.5;
}

.card-link {
  margin-top: 15px;
}

.card-link a {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.card-link a:hover {
  background-color: #2980b9;
  text-decoration: none;
}

/* Book detail page styles */
.book-detail .card {
  max-width: 600px;
  margin: 0 auto;
  flex-direction: row;
  text-align: left;
  align-items: flex-start;
}

.book-detail .card-image {
  margin-right: 20px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.book-detail .card-content {
  align-items: flex-start;
}

/* Navigation styles */
.nav-links {
  margin-top: 30px;
  text-align: center;
}

.nav-links a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}
