html,
body {
    background: #faf1e9;
    color: #6f5229;
    font-family: 'Libre Baskerville', serif;
    padding: 0;
    margin: 0;
}

dd {
    padding: 0;
    margin: 0;
}

dd strong {
    display: block;
}

dt {
    color: #887c9a;
    font-size: 1.2rem;
    padding: 0.6rem 0 0;
    margin: 0;
}

dl {
    padding: 0 0 0.6rem;
    margin: 0;
}

button,
.button,
.delete,
input,
textarea {
    background: transparent;
    color: #7a65a3;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    padding-right: 0;
    padding-left: 0;
    border: solid 0;
    border-bottom-width: 2px;
    width: 100%;
}

button,
.button,
.delete {
    background: #2798ef;
    color: #faf1e9;
    text-align: center;
    border-radius: 0.6rem;
    cursor: pointer;
}

.button {
    display: block;
    text-decoration: none;
}

.delete {
    background: #cb1f5e;
}

form {
    padding: 0;
    margin: 0;
}

form strong {
    background: #cb1f5e;
    color: #faf1e9;
    padding: 0 0.5rem 0.5rem;
    border-radius: 0 0 0.3rem 0.3rem;
    margin: 0 1rem;
}

form strong::before {
    content: "☝ ";
    font-size: 2rem;
}

header {
    background: #7a65a3;
    color: #faf1e9;
    text-align: center;
    padding: 0.5rem;
}

header::before {
    content: url(book.svg);
    display: block;
    width: 80px;
    padding: 0 0 0.3rem;
    margin: 0 auto;
}

header a {
    color: #faf1e9;
    font-weight: bold;
}

header aside {
    background: #fff645;
    color: #6f5229;
    font-family: 'Montserrat', sans-serif;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    margin-left: 10rem;
    width: 8rem;
    position: absolute;
    left: 50%;
    top: 78px;
}

header aside:after {
    content: "";
    border: 9px solid transparent;
    border-right-color: #fff645;
    margin-top: -9px;
    height: 0;
    width: 0;
    position: absolute;
    right: 100%;
    top: 50%;
    pointer-events: none;
}

header button {
    background: #a48cbb;
    color: inherit;
    font: inherit;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 0.5rem;
    width: auto;
}

header button:hover,
header button:active {
    background: #c29bd9;
}

header button::after {
    content: '▼';
    font-size: 0.75em;
    padding-left: 0.5em;
}

header p {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
}

header ul {
    background: #faf1e9;
    color: #c29bd9;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-align: left;
    list-style: none;
    box-shadow: 7px 8px 12px -7px rgba(0,0,0,0.49);
    -webkit-box-shadow: 7px 8px 12px -7px rgba(0,0,0,0.49);
    -moz-box-shadow: 7px 8px 12px -7px rgba(0,0,0,0.49);
    opacity: 0.9;
    padding: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 0 0 -8em;
    width: 16em;
    position: absolute;
    left: 50%;
    z-index: 10;
}

header ul a {
    display: block;
    background: #faf1e9;
    color: #887c9a;
    text-decoration: none;
    padding: 0.5rem;
    margin: -0.5rem;
}

header ul a:hover,
header ul a:active {
    background: #c29bd9;
    color: #faf1e9;
}

header ul li {
    background: #958aa6;
    color: #faf1e9;
    padding: 0.5rem 0.5rem;
}

h1 {
    font-size: 1rem;
    padding: 0;
    margin: 0 0 0.3em;
}

h2 {
    font-weight: normal;
    padding: 0;
    margin: 0;
}

h3,
#author {
    color: #6f5229;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0;
    margin: 0.2em 0 0.9em;
}

#loading {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-top: 30vh;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
}

#loading > div,
#loading > div:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}
#loading > div {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(163,101,162, 0.2);
    border-right: 1.1em solid rgba(163,101,162, 0.2);
    border-bottom: 1.1em solid rgba(163,101,162, 0.2);
    border-left: 1.1em solid #a365a2;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


p {
    padding: 0;
    margin: 0 0 0.2em;
}

article,
section {
    padding: 0.5rem;
    border: solid 0;
    border-bottom-width: 2px;
}

article {
    position: relative;
}

article.book {
    padding-left: calc(180px + 1rem);
    overflow-x: hidden;
    overflow-y: auto;
}

article.book img,
article.book .textual-cover {
    border-radius: 0.5rem;
    margin-left: calc(-180px - 0.5rem);
    float: left;
}

article.book .textual-cover {
    background: #887c9a;
    background: linear-gradient(0deg, #887c9a 0%, #7a65a3 100%);
    color: #a8974d;
    text-align: center;
    width: 180px;
    min-height: 230px;
    overflow: hidden;
}

article.book .textual-cover span,
article.book .textual-cover strong {
    display: block;
    text-shadow: 0 0.5px 0 rgba(255,255,255,.2), 0 -1px 0 rgba(0,0,0,.1);
}

article.book .textual-cover span {
    font-size: 0.9rem;
}

article.book .textual-cover strong {
    display: block;
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
    padding: 20px 10px;
}

section {
    font-family: 'Montserrat', sans-serif;
}

article h2,
#title {
    font-family: 'Libre Baskerville', serif;
    color: #7a65a3;
    font-size: 2rem;
    font-weight: normal;
    line-height: 1.2em;
}

article h2 {
    padding-right: 6rem;
}

section h2 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 0.3em;
}

article p,
#review {
    color: #a365a2;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
}

article p.author {
    color: #6f5229;
    font-weight: bold;
    font-size: 1.3rem;
}

article small,
#certificate p small {
    display: block;
    background: #a365a2;
    color: #faf1e9;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    text-align: center;
    width: 4.8rem;
    height: 4.8rem;
    position: absolute;
    top: 1.3rem;
    right: 1.4rem;
    z-index: 1;
    transform: rotate(30deg);
}

article small:before,
#certificate p small:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 4.8rem;
    height: 4.8rem;
    background: #a365a2;
    transform: rotate(135deg);
}

article small span,
#certificate p small span {
    display: block;
    transform: rotate(-20deg);
}

article small strong {
    display: block;
    font-size: 2.3rem;
    padding-top: 0.9rem;
}

#pages {
    color: #a365a2;
    font-size: 2.3rem;
    font-weight: bold;
}

article time {
    display: block;
    color: #887c9a;
    font-weight: normal;
    font-size: 1.2rem;
    padding-left: 1.1em;
}

.edit {
    background: url(edit.svg) no-repeat left top;
    background-size: contain;
    text-indent: -999em;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
}

#certificate {
    background: #fff;
    overflow: hidden;
    width: 1080px;
    height: 656px;
    position: relative;
}

#certificate article {
    text-align: center;
    padding: 0;
    border: none;
    height: 180px;
    float: left;
    overflow: hidden;
}

#certificate article.book {
    width: 180px;
}

#certificate article.book img,
#certificate article.book .textual-cover {
    border-radius: 0;
    margin: 0;
}

#certificate article.book img {
    width: 100%;
}

#certificate article.name {
    background: #faf1e9;
    color: #6f5229;
    font-family: 'Libre Baskerville', serif;
    font-weight: normal;
    font-size: 7rem;
    padding-top: 1.3rem;
    box-sizing: border-box;
    width: 720px;
}

#certificate article.achievement {
    background: #faf1e9;
    color: #6f5229;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 0.8;
    width: 360px;
}

#certificate article.achievement span {
    background: #7a65a3;
    color: #faf1e9;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    line-height: 1;
}

#certificate article.achievement strong {
    display: block;
    color: #7a65a3;
    font-size: 8rem;
    line-height: 1;
    margin-top: -0.5rem;
}

#certificate header p,
#certificate header ul {
    display: none;
}

#certificate p {
    color: #cfcee7;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    line-height: 0.9;
    position: absolute;
    top: 140px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#certificate p small {
    top: -100px;
    right: 10%;
}

#certificate p small span strong {
    font-size: 3.4rem;
    letter-spacing: -0.05em;
    padding-top: 1.1rem;
    margin-left: -0.5rem;
}

