body {
    font-size: 15px;
}

a:hover {
    text-decoration: none;
}

.navbar-brand > img {
    margin-top: -6px;
}

#header-tagline {
    margin-left: 2em;
}

@media (max-width: 1200px) {
    #header-tagline {
        display: none;
    }
}

.library {
    padding-top: 2em;
    padding-bottom: 2em;
    background-color: white;
    opacity: 0.9;
    max-width: 800px;
}

.library-book-actions i {
    padding-left: 0.5em;
}

.library-book-actions a {
    text-decoration: none;
}

.no-wrap {
    white-space: nowrap;
}

#library-action-menu {
    /* the padding is required to position the Shepherd popup correctly */
    padding-right: 15px;
    margin-right: 5px;
    margin-bottom: 2em;
}

#texture-logo small {
    white-space: nowrap;
}


/** library cards */

.storylist {
    display: flex;
    flex-wrap: wrap;
    margin-right: 1em;
}

.librarycard {
    padding-right: 0;
    margin: 10px 0;
}

.storylist:after,
.storylist:before {
    display: flex;
}

.librarycard h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.librarycard h3 a {
    font-weight: bold;
}

.librarycard .inner {
    position: relative;
    background-color: #eee;
    padding: 5px;
    margin: 0.5em;
    min-height: 195px;
    height: 100%;
    width: 100%;
    flex: 1;
}

.librarycard .storydata {
    margin-left: 130px;
}

.librarycard .story-actions .btn {
    color: #999;
}

.librarycard .blurb {
    font-family: sans-serif;
    line-height: 1.2em;
    white-space: pre-wrap;
}

.librarycard .cover-art {
    display: block;
    height: 180px;
    width: 120px;
    border: 1px solid gray;
    float: left;
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
}

.librarycard .cover-art img {
    height: auto;
    width: auto;
    border: 1px solid gray;
}

.librarycard .card-cover-image {
    text-align: center;
    border: 0;
}

.librarycard .cover-art.placeholder {
    opacity: 0.3;
    background-image: url('/img/logo/logo-rotated-transparent-120x180.png');
}

.librarycard .genres > a {
    text-transform: lowercase;
    background-color: #999;
}

.librarycard .genres {
    margin-bottom: 10px;
}

.librarycard .story-permalink {
    opacity: 0.5;
}


/** ribbons */

.ribbon {
    position: absolute;
    left: -5px; top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px; height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: sans-serif;
    text-align: center;
    line-height: 20px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    width: 100px;
    display: block;
    background: #79A70A;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px; left: -21px;
}

.ribbon span::before {
    content: "";
    position: absolute; left: 0px; top: 100%;
    z-index: -1;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.ribbon span::after {
    content: "";
    position: absolute; right: 0px; top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.featured.ribbon span {
    color: #000;
    background: linear-gradient(#C9C944 0%, #EBEB1A 100%);
}

.featured.ribbon span::before,
.featured.ribbon span::after {
    border-left: 3px solid #EBEB1A;
    border-top: 3px solid #EBEB1A;
}

.recent.ribbon span {
    color: #fff;
    background: linear-gradient(#2989d8 0%, #1e5799 100%);
}

.recent.ribbon span::before,
.recent.ribbon span::after {
    border-left: 3px solid #1e5799;
    border-top: 3px solid #1e5799;
}


/** pagination */

#find-count {
    display: inline-block;
    position: relative;
    top: 2em;
    left: 1em;
    margin-bottom: 2em;
}


/** info page */

.info-cover-art {
    margin: 0 1em 1em 1em;
    float:right;
    border: 1px solid gray;
}

#story-info-page .blurb {
    font-size: 18px;
    margin: 1em 0;
}


/** genres */

.genre-example {
    background-color: #cd9532;
}


/** my projects */

.delete-story {
    opacity: 0.5;
}

.delete-story:hover {
    color: #f33;
    opacity: 1;
}