@import url('https://fonts.googleapis.com/css2?family=Karla&family=La+Belle+Aurore&family=Playfair+Display:ital@1&display=swap');

/* ---------- GLOBAL LAYOUT ---------- */
* {
    box-sizing: border-box;
}

html {
    width: 100vw;
    display: flex;
    justify-content: center;
}

body {
    max-width: 1000px;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 242, 222);
    color: rgb(60, 59, 59);
    overflow-x: hidden;
}

header {
    overflow: clip;
    max-height: 100dvh;
    border-top: 1px solid  rgb(255, 242, 222);
    /* border-bottom: none; */
}

header>img {
    position: relative;
    width: 100%;
    margin-top: -55px;
    margin-bottom: -20px;
    margin-left: auto;
    margin-right: auto;
    z-index: -1;
    object-fit: cover;
}

a:link,
a:visited {
    text-decoration: none;
    text-align: center;
    color: rgb(60, 59, 59);
}

/* ---------- TYPOGRAPHY ---------- */

h1 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: -27px;
    padding-bottom: 0;
}

h2 {
    font-family: 'La Belle Aurore', cursive;
    margin-bottom: -20px;
    padding-bottom: 0;
}

h2.logo {
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    font-size: 2.5rem;
    color: rgb(255, 242, 222);
}

h3 {
    font-family: 'Karla', sans-serif;
    font-size: 1.1rem;
}

.logo {
    position: relative;
    top: -20px;
    text-align: center;
    letter-spacing: 0.3rem;
    font-size: 3rem;
}

p {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 21px;
    font-weight: 300;
}

p::first-line {
    font-size: 2rem;
    font-family: 'La Belle Aurore', cursive;
    line-height: 2rem;
}

/* ---------- LAYOUT GRIDS ---------- */

.container {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

#grid1 {
    width: 30%;
    flex: 1;
    background-color: rgba(70, 58, 19, 0.264);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#grid2 {
    padding: 24px;
    padding-top: 0;
    width: 60%;
    flex: 3 2;

}

.grid {
    width: 100%;
    padding: 5px;
}

/* ---------- IMAGES / DECORATION ---------- */

#pearl {
    width: 25vw;
    min-width: 350px;
    float: left;
    margin: 15px;
    margin-left: 0px;

    border-radius: 50%;
}

.line {
    width: calc(100%);
    margin: 10px;
    height: 1px;
    padding: 10px;
    border-bottom: 1px solid rgb(60, 59, 59);
}

.shadow {
    box-shadow: 0 0 50px rgb(60, 59, 59);
}

img {
    max-width: 100%;
}

iframe {
    width: 100%;
    height: 500px;
}

/* ---------- SIDEBAR ---------- */

#sidebar {
    position: relative;
    width: 100%;
    padding: 0;
}

#sidebar>ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    width: 100%;
    gap: 6px;

}

#sidebar>ul>li {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    background-color: rgb(255, 242, 222);
    color: pink;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    border: 1px solid black;
}

/* ---------- MOBILE NAV ---------- */

#mobileNav {
    display: none;

}


.mobileli,
footer {
    width: 100%;
    text-align: center;
    list-style-type: none;
}

footer {
    width: 100%;
    text-align: center;
}

/* ---------- MISC ---------- */

#ulIcons {
    visibility: hidden;
    z-index: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    align-items: center;

}

.hidden {
    display: none;
}

.visible {
    visibility: visible !important;
    margin-top: 40px;
}

#moreBut,
#lessBut {
    text-align: right;
    margin-right: 100px;
    padding: 0;
    margin-top: -30px;
}

#moreBut:hover,
#lessBut:hover {
    cursor: pointer;
}

/* ---------- BOOK BLOCKS ---------- */

#book {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#book>h1 {
    padding-bottom: 12px;
}

#bookMobile {
    visibility: hidden;
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
    flex-direction: column;
}

#bookMobile>img {
    max-width: 250px;
}

/* ---------- GENERIC COLUMN ---------- */

.column {
    display: flex;
    flex-direction: column;
}

.column>.book {
    padding-bottom: 24px;
    text-align: center;
}

/* ---------- MOBILE OVERRIDES ---------- */

@media (max-width: 580px) {
    .container {
        flex-direction: column;
    }

    #grid2 {
        width: 100% !important;
        padding-top: 0;
    }

    #grid1 {
        display: none !important;
    }

    .logo {
        font-size: 2rem !important;
    }

    h2.logo {
        font-size: 2.25rem !important;
    }

    header>img {
        margin-top: -45px !important;
    }

    .icons {
        visibility: visible !important;
        width: 60px;
        height: 60px;
        padding: 10px;

    }

    .linkWords {
        display: none !important;
    }

    ul {
        justify-content: space-evenly !important;
    }

    #ulWords {
        display: none !important;
    }



    #bookMobile {
        visibility: visible !important;
    }

    #fader {
        position: fixed;
        bottom: -70px;
        height: 110px;
        width: 100vw;
        background-color: rgb(255, 242, 222);
        border: 1px solid black;
        visibility: visible;
    }

    #sidebar {
        display: none !important;
    }

    #pearl {
        width: calc(100%);
        min-width: 0px;
        float: none;
        padding: 0px;
        margin: 0;

    }

    #mobileNav {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100vw;
        z-index: 999;
        background-color: rgb(255, 242, 222);
        padding: 0;
        padding-bottom: 6px;
    }
}