*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Segoe UI, sans-serif;
  background:#f1f5f9;
  color:#0f172a;
}

/* HEADER */
header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background:linear-gradient(135deg,#0c0435,#3305ff);
  padding:22px;
  color:white;
}

nav{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;

}


nav h1{font-size:24px;}
nav a{
  color:white;
  margin:0 10px;
  text-decoration:none;
  font-weight:600;
}

/* HERO */
.hero{
  background:white;
  padding:10px 5px;
  text-align:center;
}
.hero h2{font-size:42px;}
.hero p{font-size:18px;color:#475569;margin-top:10px;}

/* SLIDER */
.slider{
  max-width:1100px;
  
  margin:30px auto;
  overflow:hidden;
}
.slides{
  display:flex;
  animation:slide 15s infinite;
}
.slide{
  min-width:100%;
  text-align:center;
}
.slide img{
  width:100%;
  height: 100%;
  object-fit: cover;
  border-radius:12px;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
}

@keyframes slide{
  0%{transform:translateX(0)}
  33%{transform:translateX(-100%)}
  66%{transform:translateX(-200%)}
}



/* BOOK GRID */

.books{
  max-width:1200px;
  margin:auto;
  padding:20px 10px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap: 20px;}
  

.book{
  background:white;
  padding:_15px;
  border-radius:14px;
  text-align:center;
  text-decoration:none;
  color:inherit;
  box-shadow:0 10px 25px rgba(0,0,0,.1);
}
.book img{
  width:100%;
  min-height: 200px;
  max-height: 300px;
  min-width: 100px;
  object-fit:cover;
  border-radius:10px;
}
.book:hover{
  transform:translateY(-6px);
  transition:.3s;
}

/* RESPONSIVE */
@media(max-width:1024px){
  .books{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){

  .hero h2{font-size:30px;}
}

/* PAGE */
.page{
  max-width:900px;
  margin:60px auto;
  background:white;
  padding:40px;
  border-radius:14px;
}



/* FORM */
form input, form textarea{
  width:100%;
  padding:12px;
  margin:10px 0;
  border-radius:6px;
  border:1px solid #cbd5e1;
}
form button{
  background:#2563eb;
  color:white;
  border:none;
  padding:12px 30px;
  border-radius:6px;
}

/* FOOTER */
footer{
  background:#03fc18;
  color:rgb(253, 6, 6);
  text-align:center;
  padding:20px;
  margin-top:60px;
}

