@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

html {
    scroll-behavior: smooth;
}

.hoverable:hover {
    transform:scale(1.05);
    transition: transform 0.3s ease;
}

.nav-link {
    text-decoration-line: underline;
    color: black;
    font-size: 1.2rem;
    font-weight: bold;
}

.book {
    --bh: 35vh;
    height: var(--bh);
    align-content: center;
    min-width: calc(var(--bh) * .6);
    text-align: center;
    min-height: 360px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.book img {
    height: 100%;
    border-radius: 5px;
}

.books {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

body {
    background: no-repeat;
    background-image: linear-gradient(peachpuff, rgb(255, 140, 0));
    font-family: "Special Elite", system-ui;
    font-weight: 400;
    font-style: normal;
}

html, body {
    height: 100%;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.title {
    width: 100%;
    text-align: center;
    align-content: center;
    min-height: fit-content;
    background: linear-gradient(to left, transparent 0%, white 20%, white 50%, white 80%, transparent 100%);
}

.section-title {
    align-content: center;
    text-align: center;
    text-decoration: underline;
}

.section {
    border-radius: 5px;
    font-size: 1.30rem;
    padding: 0 10vw 1.5rem 10vw;
    line-height: 1.5;
}

.section:nth-child(even of .section) {
    background: rgba(0, 150, 200);
}

.intermission {
    height: 200px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#intermission1 {
    background-image:url("resources/typewriter.webp");
}

#intermission2 {
    background-image:url("resources/inkwell.webp");
}

header {
    margin-bottom: 3vh;
}

#bio {
    overflow: auto;
}

#bio-pic {
    float: left;
    margin-right: 20px;
    border-radius: 5px;
    width: 30vw;
    height: auto;
    min-width: 300px;
}

.site-footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 150, 200);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem;
}

.social-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.book-text {
    display: none;
}

#bio-text {
    display: block;
}

/* EMAIL OBFUSCATOR
 * This is shown to block email address scraping.
 * Based on http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared/
 *
 * Use the following to list an email address:
 <span class=email>info@<span>null</span>example.com</span>
 */

span.email span {
    display:none;
}
