
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background-color: #f3f0f9; 
  padding: 20px;
}


header {
  background: #4a148c;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 15px;
  font-size: 2rem;
}


nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.2);
}


main {
  margin: 20px auto;
  max-width: 1000px;
}

h2 {
  color: #4a148c;
  margin-bottom: 12px;
}


.button,
button {
  display: inline-block;
  background: #6a1b9a;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: #8e24aa;
  transform: translateY(-2px);
}


.book-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.book-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex: 1 1 30%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.book-item img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}


form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  margin-top: 15px;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  width: auto;
  min-width: 120px;
}


footer {
  background: #4a148c;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  border-radius: 6px 6px 0 0;
}

footer nav {
  margin-top: 8px;
}

footer nav a {
  color: #ddd;
  margin: 0 6px;
  text-decoration: none;
}

footer nav a:hover {
  color: white;
}


@media (max-width: 768px) {
  .book-list {
    flex-direction: column;
  }

  nav {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}