html, body {
    margin: 0;
    padding: 0;
}

.j-bookshelf {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.j-bookshelf.j-color-background {
    background-image: url(images/transparent-solidcolor.png);    
}

.j-bookshelf .j-item {
    position: relative;
    display: inline-flex;
    width: 150px; /* this number is used in bookshelf.class.php */
    height: 230px; /* this number is used in bookshelf.class.php */
    cursor: pointer;
    flex-direction: column-reverse;
    align-items: center;
}

.j-bookshelf .j-item a {
    width: 120px;
    position: absolute;
    bottom: 9px;
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
}

.j-bookshelf .j-item a img {
    max-width: 100%;
    max-height: 100%;
}

.j-mag-title-block {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    height: 46px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
}

.j-bookshelf .j-item a:hover .j-mag-title-block {
    color: #9FC6FF;
}

.j-mag-title-block div:first-of-type {
    font-weight: 600;
}

.j-mag-title-block div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 6px;
    box-sizing: border-box;
    font-family: roboto, sans-serif;
    font-size: 14px;
}
