.ruslibContainer {
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  width: 100%;
}

.ruslibPic {
  width: 100%;
  height: auto;
}

.ruslibPicViewCategory {
  font-weight: 300;
}

.ruslibPicViewTitle {
  font-weight: 500;
}

.ruslibControlPanel {
  display:flex;
  flex-wrap: nowrap;
  width:100%;
  /*border:solid 1px blue; */
}

  .ruslibButton {
    background-color: white;
    border: none;
    cursor:pointer;
    padding-left:5px;
    padding-right:5px;
  }

  .ruslibButton:hover {
    background-color: lightblue;
    border: none;
  }

  .ruslibSelect {
    border: none;
    cursor:pointer;
    padding: 0px;
    margin: 0px;
    height: 1.5rem; 

    box-sizing: border-box;
  }

  .ruslibSelect:hover {
    text-decoration: underline;
  }

#ruslibContent  .ruslibPicViewList {
    /* columns: 3; */
    list-style-type: none;
    margin-left: 0px;
    /* display: table ????????????????*/
    width: 100%;
    padding-left: 0px;
  }

  #ruslibContent  .ruslibPicViewList li {
    padding-bottom: 1.5rem;
    /* display: table-cell ?????????????? */
    width:25%;
    display: inline-block;
    vertical-align:top;
  }

  #ruslibContent .ruslibPicViewList img {
    width: 100%;
    height: auto;  
    /*border: solid 1px lightgray;*/
  }
  

  @media(max-width: 992px) {
    #ruslibContent .ruslibPicViewList li {
        /*columns: 2;*/
        width:33%;
    }
    .ruslibControlPanel {
      flex-wrap: wrap;
    }    
  }

  @media(max-width: 480px) {
    #ruslibContent .ruslibPicViewList li {
        /* columns: 1; */
        width: 50%;
    }
  }

  .hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #0087ca;
  }
  
  .hover-underline-animation:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
    background-color: #0087ca;
  }
  
  .hover-underline-animation:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }


   /* The Modal (background) */
   .ruslibModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
     background-color: rgb(0,0,0); /* Fallback color */
     background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  } 

  #ruslibCategoryModalContent .categoryList {
    list-style: decimal;
    width: 100%;
    columns: 3;
  }

  #ruslibCategoryModalContent .categoryList li {
    cursor: pointer;
  }

  #ruslibCategoryModalContent .categoryList li:hover {
    text-decoration: underline;
  }

  #ruslibAuthorModalContent .categoryList {
    list-style: decimal;
    width: 100%;
    columns: 4;
  }

  #ruslibAuthorModalContent .categoryList li {
    cursor: pointer;
  }

  #ruslibAuthorModalContent .categoryList li:hover {
    text-decoration: underline;
  }

  .modalBookDescription {
    display: flex;
    flex-wrap: nowrap;
  }

  @media(max-width: 992px) {
    .modalBookDescription {
      display: flex;
      flex-wrap: wrap;
    }
  }