
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #e5e8ec;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}


header {
  background: linear-gradient(90deg,#00030b,#000c13);
  color: #fff;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #616364;
  position: relative;
  display: flex;
  align-items: flex-start;   
  justify-content: space-between;
}

.logo {
  flex: 0 0 auto; 
}

.logo-img {
  height: 130px;   
  width: 130px;
  object-fit: contain;
}

.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 20px;           
}

.header-center pre.ascii-banner {
  margin: 0;
  font-size: 16px;       
  font-weight: 700;      
  text-transform: none;  
  font-family: monospace;
  line-height: 1.2;
  color: #00ffcc;        
  background-color: #00000000;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
}





.menu-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #052966;      
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px #073788;
  transition: all .3s ease;
  z-index: 1001;
}

.menu-button:hover{
    background:#2d6ddd;
    transform:scale(1.08);
}

.menu-button span{
    position:absolute;
    width:24px;
    height:3px;
    background:#fff;        
    border-radius:3px;
    transition:.3s;
}

.menu-button span:nth-child(1){
    transform:translateY(-8px);
}

.menu-button span:nth-child(2){
    transform:translateY(0);
}

.menu-button span:nth-child(3){
    transform:translateY(8px);
}



.menu-button.active span:nth-child(1){
    transform:rotate(45deg);
}

.menu-button.active span:nth-child(2){
    opacity:0;
}

.menu-button.active span:nth-child(3){
    transform:rotate(-45deg);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}


#searchBox {
  padding: 12px 18px;
  width: 100%;
  max-width: 500px;
  border-radius: 25px;
  border: 2px solid #cbd5e1;
  outline: none;
  font-size: 1rem;
  color: #2656af;
  background: #0043591a;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  caret-color: #007bff;
}

#searchBox:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  outline: 2px solid rgba(0, 123, 255, 0.2);
  outline-offset: 2px;
}

#searchBox::placeholder {
  color: #6c757d;
}


.side-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.5s ease;
  z-index: 1000;
  overflow-y: auto;
}

.side-panel.open {
  right: 0;
}

.panel-content {
  padding: 20px;
}

.panel-content h2 {
  color: #0e3071;
  margin-bottom: 20px;
}


.collapsible-section {
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-header {
  background: #f8f9fa;
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.section-header:hover {
  background: #e9ecef;
}

.arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.collapsible-section.active .arrow {
  transform: rotate(180deg);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px;
  background: #fff;
}

.collapsible-section.active .section-content {
  max-height: 200px; 
  padding: 15px;
}

.section-content ul {
  list-style: none;
  padding: 0;
}

.section-content li {
  padding: 5px 0;
  color: #6c757d;
}


.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #092963;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 1s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #0e3071;
  transform: scale(1.1);
}


main {
  flex: 1;
  padding: 20px;
}

.book-list {
      display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px;
}

@media (max-width: 992px) {
    .book-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .book-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .book-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .books-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .books-container {
        grid-template-columns: 1fr;
    }
}


.book {
  width: 15rem;   
  height: 17rem;  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(87, 88, 93, 0.164);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.book img {
  width: 8rem;     
  height: 8rem;    
  object-fit: contain; 
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}


.book:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 25px #007bff00;
}


.book h3 {
  color: #007bff;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: capitalize;
}


.book p {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 20px;
  font-style: italic;
}


.book a {
  display: inline-block;
  margin: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: #345590;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #007bff;
  font-size: 0.95rem;
}

.book a:hover {
  background: #316cd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}


footer {
  text-align: center;
  padding: 30px 0;
  font-size: 1rem;
  background: #343a40;
  color: #adb5bd;
  letter-spacing: 0.5px;
  border-top: 1px solid #495057;
  margin-top: auto;
}


@media (max-width: 768px) {
  header {
    padding: 30px 20px;
  }
  .menu-button {
    top: 15px;
    right: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  .book-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .book {
    padding: 20px;
  }
  #searchBox {
    width: 90%;
  }
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
  }
  .side-panel {
    width: 250px;
    right: -250px;
  }
}

body.menu-open {
    overflow: hidden;
}


.side-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    transition: right 0.5s ease;
    z-index: 1000;
}

.side-panel.open {
    right: 0;
}
body.menu-open{
    overflow:hidden;
}

.side-panel{
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}

.logo-img {
  height: 140px;   
  width: 140px;    
  object-fit: contain;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  color: #11306e;
  font-size: 32px;
  text-align: center;
  margin: 40px 0 20px;
}