:root {
    --pad: 32px;
    --border-radius: 6px;
    --base-white: #e2e9e8;
    --base-white-fade: #e2e9e8d9;
    --tender-purple: #c4b7cc;
    --bakuh-base: #765172;
    --bakuh-highlight: #B797B5;
    --bakuh-shadow: #594157;
    --navigator-height: 26px;
    --font-family: 'buenard', sans-serif;
}

@font-face {
    font-family: 'buenard';
    src: url('/media/fonts/Buenard-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    height: 100dvh;
    width: 100dvw;
    background-color: var(--bakuh-base);
    margin: 0px;
    overflow: hidden;
    font-family: var(--font-family);
}

a {
    color: var(--bakuh-highlight);
    text-decoration: none;
    font-family: var(--font-family);
}

h1, h2, h3, p {
    color: var(--bakuh-highlight)
}

button {
    font-family: var(--font-family);
}

#root {
    box-sizing: border-box;
    grid-area: root;
    display: grid;
    grid-template:
        "main main main" 1fr
        ". . ." var(--pad)
        "introduction-levers heading utility-levers" var(--navigator-height)
        / 1fr 80px 1fr;
    padding: var(--pad);
    height: 100dvh;
    width: 100dvw;
}

#introduction-container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    flex-direction: column;
}

#introductory-text > p:first-child {
    margin-top: 0px;
}

#ontology-link {
    background: none;
    border-bottom: 1px solid var(--bakuh-highlight);
    color: var(--bakuh-highlight);
    cursor: pointer;
    grid-area: ontology-link;
    width: fit-content;
}

#ontology-link:hover {
    background-color: var(--bakuh-highlight);
    color: var(--bakuh-base);
}

#main {
    grid-area: main;
    display: flex;
    justify-content: space-between;
    gap: 30%;
}

.floating-scene {
    border-radius: var(--border-radius);
    color: var(--base-white);
    display: none;
    justify-self: end;
    height: 100%;
    overflow-y: scroll;
    text-align: right;
    width: 100%
}

.floating-scene.active {
    display: block;
}

.floating-scene h2 {
    margin-top: 0px;
    font-size: 1em;
    color: var(--tender-purple);
}

#heading {
    grid-area: heading;
    font-size: var(--navigator-height);
    font-weight: normal;
    color: var(--tender-purple);
    cursor: default;
    justify-self: center;
    margin: 0px;
    transform: translateY(-6px); /* Adjust this value as needed */
    margin-bottom: 7px;
}

#introduction-levers-container {
    grid-area: introduction-levers;
    display: flex;
    gap: var(--pad);
}

#utility-levers-container {
    grid-area: utility-levers;
    display: flex;
    gap: var(--pad);
    justify-content: flex-end;
}

.lever {
    background: none;
    border: none;
    color: var(--bakuh-highlight);
    cursor: pointer;
    font-size: var(--service-levers-height);
    padding: 0px;
}

.lever.active {
    color: var(--tender-purple);
}

.lever:hover {
    color: var(--tender-purple);
}


@media only screen and (max-width: 600px) {
    #root {
        box-sizing: border-box;
        grid-area: root;
        display: grid;
        grid-template:
            "heading" auto
            "main" 1fr
            "." calc(var(--pad)/2)
            "introduction-levers" auto
            "." calc(var(--pad)/4)
            "utility-levers" auto
            / 1fr;
        padding: calc(var(--pad)/2);
        height: 100dvh;
        width: 100dvw;
    }
    #main {
        flex-direction: column;
        gap: var(--pad);
        height: 100%;
        justify-content: unset;
        overflow-y: scroll;
    }
    #introduction-levers-container {
        justify-content: center;    
        font-size: 1.156em;
    }
    #utility-levers-container {
        justify-self: center;
        background-color: var(--bakuh-shadow);

    }
    .floating-scene {
        height: fit-content;
        text-align: justify;
        overflow-y: unset;
    }
    #introduction-container {
        height: fit-content;
        overflow-y: unset;
    }
    #introductory-text {
        text-align: justify;
    }
    #heading {
        justify-self: start;
    }

}
