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

/* Body */
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

/* Navigation Bar */
nav {
  display: flex;
  align-items: center;
  background-color: #2E3A59;
  padding: 10px 20px;
  color: #fff;
}

nav .logo {
  flex: 1;
  font-size: 24px;
  font-weight: bold;
}

nav .nav-links {
  list-style: none;
  display: flex;
}

nav .nav-links li {
  margin: 0 15px;
}

nav .nav-links a {
  color: #fff;
  text-decoration: none;
}

nav .hamburger {
  display: none;
  cursor: pointer;
}

nav .hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: #fff;
}

/* User Stats Section */
.user-stats {
  padding: 50px;
  text-align: center;
}

.user-info {
  margin-bottom: 30px;
}

.user-info img {
  width: 100px;
  border-radius: 50%;
}

.user-info h1 {
  margin-top: 15px;
}

.stats {
  display: flex;
  justify-content: center;
}

.stat-item {
  margin: 0 20px;
}

.stat-item h2 {
  font-size: 24px;
}

/* Library Section */
.library {
  padding: 50px;
  text-align: center;
}

.library h1 {
  margin-bottom: 30px;
}

.library-search {
  margin-bottom: 30px;
}

.library-search input {
  width: 50%;
  padding: 10px;
  font-size: 16px;
}

.book-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.book-item {
  width: 200px;
  margin: 15px;
  text-align: left;
}

.book-item img {
  width: 100%;
  border-radius: 10px;
}

.book-item h3 {
  margin-top: 10px;
}

.book-item p {
  font-size: 14px;
}

.book-item .download-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #2E3A59;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.book-item .download-button:hover {
  background-color: #1B2438;
}

/* Genres Section */
.genres {
  margin-top: 50px;
}

.genres h2 {
  margin-bottom: 20px;
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.genre-card {
  width: 150px;
  margin: 10px;
  cursor: pointer;
  text-align: center;
}

.genre-card img {
  width: 100%;
  border-radius: 10px;
}

.genre-card h3 {
  margin-top: 10px;
}

/* Auth Section */
.auth-section {
  padding: 50px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.auth-section h1 {
  margin-bottom: 30px;
}

.auth-section form {
  display: flex;
  flex-direction: column;
}

.auth-section input {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
}

.auth-section button {
  padding: 10px;
  background-color: #2E3A59;
  color: #fff;
  border: none;
  cursor: pointer;
}

.auth-section button:hover {
  background-color: #1B2438;
}

.auth-section p {
  margin-top: 20px;
}

.auth-section a {
  color: #2E3A59;
  text-decoration: none;
}

.auth-section a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #2E3A59;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  /* Adjust navigation bar */
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2E3A59;
  }

  nav .nav-links.active {
    display: flex;
  }

  nav .nav-links li {
    width: 100%;
    text-align: left;
    margin: 10px 0;
  }

  nav .hamburger {
    display: block;
  }

  /* Adjust user stats */
  .user-stats .stats {
    flex-direction: column;
  }

  .stat-item {
    margin: 10px 0;
  }

  /* Adjust library search input */
  .library-search input {
    width: 90%;
  }

  /* Adjust book list */
  .book-list {
    flex-direction: column;
    align-items: center;
  }

  .book-item {
    width: 90%;
  }

  /* Adjust genre list */
  .genre-list {
    flex-direction: column;
    align-items: center;
  }

  .genre-card {
    width: 90%;
  }
}

@media (max-width: 480px) {
  nav .logo {
    font-size: 20px;
  }

  .user-info img {
    width: 80px;
  }

  .auth-section {
    padding: 30px;
  }
}
