.content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    align-content: space-around;
    padding: 1rem 2rem 0;
    
    background: #DDD url('/assets/images/dana-ward-2020-6JffLQi_XqY-unsplash.jpg') no-repeat;
    background-size: cover;
    min-height: 800px;
}

.pub-item-category {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.pub-item-category h1 {
    text-align: center;
    color: white;
    font-weight: 500;
}

.pub-item-set {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: flex-start;
}

.pub-item {
    background-color: white;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    
    max-width: 500px;
    
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.pub-item .cover {
    align-self: start;
    margin-top: 2rem;
}

.pub-item .cover .availability {
    margin-top: 2rem;
    margin-right: 2rem;
    text-align: center;
    font-weight: bold;
    color: #522b93;
}

.pub-item img {
    vertical-align: middle;
    margin-right: 2rem;
    width: 250px;
    height: auto;
    box-shadow: 0 1px 10px black;
}

.pub-item .item-content {
    display: flex;
    flex-direction: column;
    
    margin: 0.5rem 0;
/*    text-align: justify;*/
}

.pub-item .item-content .descr {
    flex: 1;
}

.pub-item .item-content .button {

}

.descr .tabs {
    display: inline-block;
    margin: 0;
    padding: 0 0 0 0.24em;
    width: 100%;
    border-bottom: 0.5px black solid;
}

.descr .tabs li {
    position: relative;
    top: 0.5px;
    font-size: 0.8rem;
    display: inline-block;
    padding: 0.25em 1em 0;
    margin-right: 0.125em;
    border: 0.5px transparent solid;
}

.descr .tabs li.active,
.descr .tabs li.active:hover {
    border-color: black;
    border-bottom-color: transparent;
}

.descr .tabs li:hover {
    border-color: gray;
    border-bottom-color: transparent;
    cursor: pointer;
}

.descr .tabs li.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background-color: white;
} 

.descr .tab-panel {
    display: none;
}

.descr .tab-panel.active {
    display: block;
}

.buy-popup {
    display: none;
    position: absolute;
    
    bottom: 2rem;
    background-color: white;
    border: #522b93 1px solid;
    margin: 0.5rem;
    z-index: 1000;
}

.buy-popup .linkSet {
    margin: 0;
    padding: 0.5rem 1rem;
}

.buy-popup .linkSet li {
    margin: 0.125em 0.25em;
    display: inline;
    white-space: nowrap;
}

.buy-popup .linkSet li.format {
    margin: 0 0 0.5em;
    display: block;
    color: #522b93;
    font-weight: bold;
    border-bottom: #522b93 1px solid;
}

.buy-popup .linkSet li a {
    color: #522b93;
    padding: 0.125em 0.25em;
    text-decoration: none;
}

.buy-popup .linkSet li a:hover {
    color: white;
    background-color: #522b93;
    border-radius: 4px;
}

.buy-popup::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    
    bottom: -20px;
    left: 2rem;
    
    border-top: #522b93 20px solid;
    border-right: transparent 20px solid;
    border-bottom: transparent 0 solid;
    border-left: transparent 20px solid;
}

.buy-popup::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    
    bottom: -19px;
    left: 2rem;
    
    border-top: white 20px solid;
    border-right: transparent 20px solid;
    border-bottom: transparent 0 solid;
    border-left: transparent 20px solid;
}

#popupScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: white;
    opacity: 0.01;
}
