@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

:root {
    --serif-font: "Alegreya";
    --sans-serif-font: "Lexend Deca";
    --general-font: var(--sans-serif-font);
    --handwritten-font: "Finger Paint";
    --title-font: "Permanent Marker";
    --title-dropcap-font: var(--handwritten-font);
    --quote-font: "Pangolin";
    --quote-attribution-font: "Indie Flower";
    --general-font-color: black;
    --general-font-size: 15px;
    --general-line-height: 20px;
    
    --page-background-color: white;
    --horizontal-rule-color: black;
    
    --page-number-size: 12px;
    --page-number-font: var(--handwritten-font);
    
    /* --highlight-bg-color: #F2F2F2; */
    --highlight-bg-color: #E5E5E5;
    
    /* Book Details */
    --page-width: 8.5in;
    --page-height: 11in;
    --top-margin: 0.6in;
    --bottom-margin: 0.6in;
    --outer-margin: 0.6in;
    --inner-margin: 0.76in;
    
    --cover-border: 0.1in;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--general-font), Arial, sans-serif;
}

body {
    padding: calc(var(--outer-margin) / 2);
}

#splash-screen {
    background-color: var(--page-background-color);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: opacity 0.4s, visibility 0.4s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

header {
    background: var(--general-font-color);
    color: var(--page-background-color);
    padding: 1rem;
    font-size: 1.1rem;
}

hr {
    height: 3px;
    border: none;
    color: var(--horizontal-rule-color);
    background-color: var(--horizontal-rule-color);
}

ul {
    padding-left: 0;
}

ul li {
    list-style-position: inside;
    border-left: 3px solid var(--horizontal-rule-color);
    padding-left: 4px;
}

li:not(:last-child) {
    margin-bottom: 0.25em;
}

ul { list-style-type: ""; }

.nav-container {
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo flush left */
.logo {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 1.6em;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a, nav span {
    text-decoration: none;
    color: var(--page-background-color);
    font-size: 24px;
    font-weight: bold;
}

nav a:hover, nav span:hover {
    color: #CCC;
    cursor: pointer;
}

/* Hamburger */
.menu-toggle {
    display: none;
}

.menu-icon {
    position: absolute;
    right: 0;
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
}

section {
    max-width: 50%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.boxgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.boxitem {
    border: 4px solid #000;
    padding: 1rem;
}

.boxitem.borderless {
    border: none;
}

.boxitem.unpadded {
    padding: 0;
}

.boxitem h3 {
    margin-bottom: 0.5rem;
}

.clickbox {
    cursor: pointer;
}

.clickbox:hover {
    background-color: #EEE;
}

.contact-name {
    display: inline;
}

.contact-logo {
    display: inline-block;
}

#artist-image {
    max-width: 100%;
    max-height: 3in;
    margin-top: 0%;
    margin-bottom: auto;
    margin-left: 25%
}

.artwork {
    max-height: 3in;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

.artwork-desc {
    max-height: 3in;
    overflow-y: scroll;
}

.fantasy-heading-image {
    max-width: 60%;
    margin-left: 20%;
}

#baa-header-logo {
    max-width: clamp(1in, 100%, 2in);
    margin-left: calc((100% - clamp(1in, 100%, 2in)) / 2);
    margin-top: 1em;
}

@media (max-width: 2400px) {
    .fantasy-heading-image {
        max-width: 80%;
        margin-left: 12.5%;
    }
}

@media (max-width: 1700px) {
    #artist-image {
        margin-left: 12.5%;
    }

    .fantasy-heading-image {
        max-width: 100%;
        margin-left: 0%;
    }
} 

@media (max-width: 1024px) {
    section {
        max-width: 75%;
    }

    #artist-image {
        max-width: 100%;
        margin-top: 0%;
        margin-bottom: auto;
        margin-left: 0%;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .logo {
        position: static;
    }

    nav {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--general-font-color);
        display: none;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .menu-icon {
        display: block;
    }

    .menu-toggle:checked + .menu-icon + nav {
        display: block;
    }

    section {
        max-width: 100%;
        margin: 2rem 0;
        padding: 0;
    }
}

@media (max-width:480px) {
}

@media (max-width:360px) {
    .artwork-desc {
        max-height: 100%;
    }
}

[bm-025] {
    margin-bottom: 0.25em;
}

[bm-05] {
    margin-bottom: 0.5em;
}

[bm-075] {
    margin-bottom: 0.75em;
}

[bm-1] {
    margin-bottom: 1em;
}

[bm-2] {
    margin-bottom: 2em;
}

[tm-025] {
    margin-top: 0.25em;
}

[tm-05] {
    margin-top: 0.5em;
}

[tm-075] {
    margin-top: 0.75em;
}

[tm-1] {
    margin-top: 1em;
}

[tm-2] {
    margin-top: 2em;
}