body{
    font-family: 'Noto Sans', sans-serif;
    margin: 0px;
}

h1{
    text-align: center;
    margin: 50px auto 10px auto;
    font-size: 50px;
    cursor: pointer;
    padding: 10px;
}

h2{
    margin: 0px 0 5px 0;
    color: rgb(50,50,50);
    font-size: 24px;
}
h3{
    margin: 0px 0px 10px 0px;
    color: rgb(100,100,100);
    font-weight: 100;
    font-size: 19px;
}

@media (max-width: 1000px) {
    h1{font-size: 30px; text-align: left; margin-top: 15px;}
    h2{font-size: 18px;}
    h3{font-size: 14px;}
}


/*--------------------------------------------*/
/*menu*/

#menu{
    max-width:1200px;
    margin: 0px auto 0px auto;
    padding: 30px;
    color: rgb(130,130,130);
    box-sizing: border-box;
}
@media (max-width: 1000px) {
    #menu{padding: 10px;}
}

#menu > span{
    padding: 3px 8px;
    font-size: 16px;
    border-radius: 10px;
    background-color: rgb(236, 234, 234);
    display: inline-block;
    margin:4px;
    cursor: pointer;
}

#menu > button{
    
    font-family: 'Noto Sans', sans-serif;
    padding: 3px 8px;
    font-size: 16px;
    border-radius: 10px;
    background-color: rgb(236, 234, 234);
    display: inline-block;
    margin:4px;
    cursor: pointer;
    border: 0px;
    color: rgb(130,130,130);
}
@media (max-width: 1000px) {
    #menu > button{
        font-size: 13px;
    }
}

.active {
    background-color: #d7194a !important; /* Example: Blue background for active tags */
    color: white !important;
}


/*--------------------------------------------*/
/*books*/


.container-books {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

.entry-books{
    max-width:270px;
    padding: 0px 40px 40px 40px;
}

.entry-books img{
    max-width: 270px;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .entry-books{
        width: 33.3%;
        padding: 10px;
        box-sizing: border-box;
    }
    .entry-books img{
        width: 100%;
    }
}


.entry-books p{
    margin-top: 0px;
    color: rgb(100,100,100);
}

.years{
    margin: 20px 0px 8px 0px;
    color: rgb(100,100,100);
}

.years > span{
    padding: 2px 5px;
    margin-right: 3px;
    font-size: 0.7em;
}

.years > span:nth-of-type(1){
    background-color:rgb(0,150,50);
    color: white;
}
.years > span:nth-of-type(2){
    background-color: gainsboro;
}

.tags{
    color: rgb(130,130,130);
    font-size: 0.7em;
    display: flex;
    flex-wrap: wrap;
}

.tags > span{
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 3px;
    background-color: rgb(236, 234, 234);
    margin-bottom: 3px;
}




/*--------------------------------------------*/
/*img*/


img {
    opacity: 0; /* Start images as transparent */
    transition: opacity 1s ease-out; /* Smooth transition to full opacity */
}



/*--------------------------------------------*/
/*search*/

#search{
    text-align: center;
    margin-bottom: 50px;
    padding: 10px;
}

@media (max-width: 1000px) {
    #search{margin-bottom: 10px};
}

input{
    font-family: 'Noto Sans', sans-serif;
    padding: 10px;
    padding-left: 20px;
    font-size: 1em;
    border-radius: 10px;
    background-color: rgb(236, 234, 234);
    display: inline-block;
    cursor:text;
    border: 0px;
    color: rgb(130,130,130);
    text-align: left;
    width: 500px;
    max-width: 100%;
    box-sizing: border-box;
}

input:focus {
    background-color: rgb(243, 241, 241);
    border: 0px;
    outline: none;  /* Disables the default focus outline */
    border: none;   /* Removes the border when the input is focused */
}


/*--------------------------------------------*/
/*modal*/

.modal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 0px auto;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
  }

  .modal-content img{
    width: 400px;
    max-width: 100%;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}