@font-face {
    font-family: HollywoodSF;
    src: url(varka-shrine/HOLLYWOOD-STARFIRE.ttf);
}

@font-face {
    font-family: AScribe;
    src: url(varka-shrine/antiquarian-scribe.otf);
}

@font-face {
    font-family: StAQ;
    src: url(varka-shrine/Saint-AndrewsQueen.ttf);
}

:root {
    cursor: url(varka-shrine/cursor.png), auto;
    background-image: url(varka-shrine/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    background-color: #6C7821ff;
    box-sizing: border-box !important;
}

a {
    z-index: 1;
    position: relative;
    display: inline-block;
    margin: 0 var(--spacing, 0px);
    cursor: url(varka-shrine/link.png), auto;
    color: #000;
    transition: margin .3s ease;
    &:hover {
        text-decoration-style: dotted;
        text-decoration-color: #666;
        transition: .3s ease;
    }
}

h2 {
    margin: 1.3cqw 0 .66cqw 0;
    padding: 1.7cqw 5cqw 0 1.5cqw;
    width: fit-content;
    line-height: 3.7cqw;
    font-size: 5.23cqw;
    font-weight: normal;
    font-family: AScribe, Arial, Helvetica, sans-serif;
    background-image: url(varka-shrine/header.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 .3cqw .15cqw #00000070);
}

#vcl-h2 {
    margin: 1.3cqw auto .66cqw;
}

p {
    margin-top: 1.17cqw;
    line-height: 2.87cqw;
    font-family: HollywoodSF, 'Times New Roman', Times, serif;
    &:last-of-type {
        margin-bottom: 0;
    }
}

img {
    display: block;
    margin: 0 auto;
    width: 60%;
}

table {
    width: 100%;
    font-family: HollywoodSF, 'Times New Roman', Times, serif;
    border-spacing: 0;
}

tr:nth-child(odd) {
    background-color: #00000020;
}

td:last-child {
    text-align: right;
}

.scribble {
    font-size: 3rem;
    font-family: StAQ, Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#page {
    aspect-ratio: 2803 / 3716;
    padding: 2.72cqw 1.05cqw 4.18cqw 8.35cqw;
    width: 81.36cqw;
    height: 107.84cqw;
    font-size: 2cqw;
    background-image: url(varka-shrine/journal.png);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

nav {
    margin-bottom: 1.2cqw;
    padding: 0 2.4cqw;
    height: 5.27cqw;
    font-size: 4.80cqw;
    font-family: AScribe, Arial, Helvetica, sans-serif;
    background-image: url(varka-shrine/tape.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    & a:not(:last-of-type) {
        padding-right: 2.36cqw;
    }
}

#main {
    overflow-y: scroll;
    display: block;
    padding: 1.05cqw 2.1cqw;
    max-height: 93.88cqw;
    font-size: 2.5cqw;
    border: 1.4cqw solid transparent;
    border-image: url(varka-shrine/page-border.png) 4% 20 22 round;
    & a {
        font-family: HollywoodSF, 'Times New Roman', Times, serif;
    }
}

#col1, #col2 {
    flex: 50%;
}

#v-pic {
    filter: drop-shadow(0 .3cqw .15cqw #00000070);
}

#sticker {
    float: right; 
    width: 20%;
    margin: 0;
}

#col2 {
    margin-top: 1.3cqw;
}

#books {
    display: grid;
    grid-template-columns: repeat(3, auto);
    margin-top: 1.3cqw;
    padding-bottom: 5.8cqw;
    background-image: url(varka-shrine/shelf.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    filter: drop-shadow(0 .3cqw .15cqw #00000070);
    & img {
        transition: .3s;
    }
    & img:hover {
        transform: rotate(10deg) scale(1.2);
        transition: .3s;
    }
}

#vcl {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(2, auto);
    row-gap: 1.3cqw;
    justify-content: space-around;
    margin-top: 1.83cqw;
    text-align: center;
    & div {
        justify-items: center;
    }
}

.audio-button {
    display: block;
    margin-bottom: .8cqw;
    width: 5.22cqw;
    height: 5.22cqw;
    border-radius: 15%;
    background-image: url(varka-shrine/audio.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #eae9e7;
    border: .3cqw solid #666;
    filter: drop-shadow(0 .3cqw .15cqw #00000070);
    transition: .3s;
    &:hover {
        border: .3cqw solid #eae9e7;
        transition: .3s;
    }
}

#moon {
    width: 35%;
    transition: .3s;
    &:hover {
        filter: brightness(1.1) hue-rotate(155deg) saturate(3.5);
        transition: .3s;
    }
}

iframe {
    margin-top: 1.17cqw;
}

@media (min-width: 768px) {
    h2 {
        margin: .7rem 0 .3rem 0;
        padding: 0.8rem 0 0 .5rem;
        width: auto;
        line-height: 2rem;
        font-size: 2.5rem;
        filter: drop-shadow(0 2px 1px #00000070);
    }

    #vcl-h2 {
        margin: .7rem 0 .3rem 0;
    }

    p {
        margin-top: .5rem;
        line-height: 1.3rem;
        font-family: HollywoodSF, 'Times New Roman', Times, serif;
        &:last-of-type {
            margin-bottom: 0;
        }
    }

    img {
        width: 100%;
    }

    #page {
        padding: 1.3rem .5rem 2rem 4rem;
        width: min(39rem, 1920px);
        height: auto;
        font-size: 1rem;
    }

    nav {
        margin-bottom: .25em;
        padding: 0 .5em;
        height: 1.1em;
        font-size: 2.3rem;
        & a:not(:last-of-type) {
            padding-right: 1.13rem;
        }
    }

    nav svg {
        width: 112px;
        height: 91px;
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 7px) translateZ(0);
        fill: none;
        stroke: var(--stroke, #000);
        stroke-linecap: round;
        stroke-width: 2px;
        stroke-dasharray: var(--offset, 69px) 278px;
        stroke-dashoffset: 374px;
        transition: stroke .25s, stroke-dasharray .35s;
        &:hover {
            --spacing: 4px;
            --stroke: #13b7af;
            --stroke-delay: .1s;
            --offset: 180px;
        }
    }

    #main {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: .5rem 1rem;
        height: auto;
        max-height: 720px;
        font-size: 1.1rem;
        border: 10px solid transparent;
        border-image: url(varka-shrine/page-border.png) 4% 20 22 round;
    }

    #col1, #col2 {
        flex: 1;
    }

    #v-pic {
        filter: drop-shadow(0 3px 1px #00000070);
    }

    #sticker {
        float: right; 
        margin: 7.21px 0 0 0;
        width: 50%;
    }

    #col2 {
        margin-top: 0;
    }

    #books {
        margin-top: .7rem;
        padding-bottom: 22px;
        filter: drop-shadow(0 2px 1px #00000070);
    }

    #vcl {
        margin-top: .7rem;
        row-gap: .7rem;
    }

    .audio-button {
        margin-bottom: .3rem;
        width: 2rem;
        height: 2rem;
        background-size: 100%;
        border: 2px solid #666;
        filter: drop-shadow(0 2px 1px #00000070);
        &:hover {
            border: 2px solid #eae9e7;
        }
    }

    #moon {
        width: 65%;
    }

    iframe {
        margin-top: .5rem;
    }
}