html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;

  
}

a{
    color:inherit;
    text-decoration: none;
}


body{
    
    height:100%;
    margin: 0;

    font-family: 'Yu Gothic';
    
}

.container{
    

    min-height: 100%;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    padding: 0 2px;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 0 auto;

    
   
   
   
}


.content { 
    
    flex: 1;
    width: 100%;
    flex-direction: column;
    flex-grow: 1;
    max-width: 40rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
    background-color: #eee;
    
}

header{
    
  display: flex;
  
  flex-direction: row;
  align-items: center;
  gap: 0.5em;

  width: 100%;
  
  
  
    
    
    
}


header .logo{
    
    display: flex;

    font-size: 0.65rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    
 

}

header .navbar{
 
    display: flex;
    gap: 2rem;
    font-size: 0.6rem;
    
    flex-grow: 1;
    justify-content: center;
    border-bottom: solid gray 1.5px;
   
  
}




header nav .navLinks {
  color: inherit;
  text-decoration: none;
  
}

header nav .navLinks:hover {

  text-decoration: underline;

}


.introduction-section{
    height: auto;
    width:100%;

    
    
    font-weight: bold;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 1em;

    
}

.introduction-sectionLeftSide{

    display: flex;
    font-size: 0.5em;
    
}

.introduction-sectionRightSide{
    display: flex;
    font-size: 0.55em;
}










.bookshelf{
    /*background-color: #513917;  light wood background */
    /*border: 15px solid #161010;  dark wood border */
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: row;


  background-image: url('../images/bookshelf.jpg');
  border: 7px solid;
  border-image: url('../images/bookshelf.jpg');
  border-image-slice: 30; /* how to slice the image for corners and edges */
  border-image-repeat: stretch; /* how to fill the border */
  border-image-outset: 0;
  /*border-image-width: 10px; */
}



.bookshelf .filterButton{

    
       
     
      border: 2px solid transparent;
      transition: border 0.2s ease, box-shadow 0.2s ease;
      width: 60px;
      border: none;
      cursor: pointer;
    
      font-size: 0.6em;
     
      
      writing-mode: vertical-rl;
      text-orientation: upright;

      height: 100%;

}



 .slide {
    
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateX(0);
 }

.slide.hide {
  opacity: 0;
  transform: translateX(20px); /* or -20px for upward */
}
.filterButtonSubete{

 
    /*background-image: url('../images/britishLitBook.PNG');
    background-size: cover;          /* scale image to fill button */
    background-position: center;
    background-repeat: no-repeat;
    border: none;   
    max-height: 92%;

     
    
   
 


}

.filterButtonBritishLit{

 
    background-image: url('../images/britishLitBook.PNG');
    background-size: cover;          /* scale image to fill button */
    background-position: center;
    background-repeat: no-repeat;
    border: none;   
    max-height: 85%;


}

.filterButtonNihonLit{

background-image: url('../images/nihonLitBook.PNG');
background-size: cover;          /* scale image to fill button */
background-position: center;
background-repeat: no-repeat;
border: none;  
max-height: 92%;

}

.filterButtonAmericanLit{



background-image: url('../images/americanLitBook.PNG');
background-size: cover;          /* scale image to fill button */
background-position: center;
background-repeat: no-repeat;
border: none;  
max-height: 78%;

}

 .filterbuttonOtherLit{





background-image: url('../images/OtherLitBook.PNG');
background-size: cover;          /* scale image to fill button */
background-position: center;
background-repeat: no-repeat;
border: none;  
max-height: 90%;
  
 }
.filterButton.active{


  box-shadow: 0 0 0 2px gold;
}





.header-wrapper {
  text-align: center;
}

  .book-card {
      display: flex;
      align-items: flex-start;
      background-color: #fafafa;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      max-width: 240px;
      margin: 5px auto;
      font-size: 0.85em;

      /* opacity: 0; */
    transform: translateY(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .book-card.show{

        opacity: 1;
        transform: translateY(0);
    }

    .book-card-img {
      width: 90px;
      height: auto;
      object-fit: cover;
      border-right: 1px solid #eee;
    }

    .book-info {
      padding: 5px;
      flex: 1;
      font-size: 0.2em;
    }

    .book-title {
      font-size: 1.4em;
      font-weight: bold;
      margin: 0 0 5px;
    }

    .book-author {
      font-size: 1em;
      color: #555;
      margin: 0 0 15px;
    }

    .book-summary {
      font-size: 0.95em;
      color: #333;
      line-height: 1.5;
    }

  

    .book-card-container {

    display: flex;
    
    flex-wrap: wrap;
    
    gap: 0.3rem;


 
    }

    .book-btn-link{
     display: inline-block;
    padding: 0.5rem 2rem;
  background-color: #007bff;  /* Bootstrap blue, adjust as needed */
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  width: 100%;
  margin-top: 15px;
    }

    .book-btn-link:hover {
  background-color: #0056b3;
}

    .book-card{
  padding: 0.3rem;
  background-color: #f2f2f2;
  border-radius: 6px;
  width: calc(50% - 1rem);

}



.noResultsMessage{

    display:Flex;
    text-align: center; 
    justify-content: center;
    font-size: 0.8em;

    /* Start hidden and shifted left */
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; /* prevent interaction when hidden */
  
}

.noResultsMessage.show{
    opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.pawContainer{

    justify-content: center;
    display: flex;

}

    .paw {
   
    font-size: 2rem;
    animation-timing-function: ease-in-out;
    user-select: none;
  }

.paw-fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}


 /* Different animations for each paw */
  @keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
  }
  @keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, 20px); }
  }
  @keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 25px); }
  }
  @keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -15px); }
  }



footer {

    padding: 0.3em;
    font-size: 0.5em;
    text-align: center;
    width: 100%;
    background-color: #bbb;

}


/* Responsive: stack vertically on small screens */
@media (max-width: 600px) {
  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }



  .book-info {
    padding: 10px 15px;
  }
}


