#planet {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100dvw;
    height: 100dvh;
    pointer-events: auto;
}

#planet-hud {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100dvw;
    height: 100dvh;
    z-index: 10000;
    pointer-events: auto;
}

#main.toPoint {
    cursor: pointer;
}

.floating-scene {
    color: var(--text-color);
    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(--text-color);
}

#heading {
    align-self: flex-end;
    bottom: var(--padding);
    color: var(--base-color);
    cursor: default;
    font-family: fangsong;
    grid-area: main;
    justify-self: center;
    left: var(--padding);
    margin-bottom: var(--padding);
    text-align: center;
    text-shadow: 0px 0px 1px var(--sidekick-color);
    z-index: 2;
}

#dream-navigator {
    align-self: center;
    cursor: grab;
    display: none;
    grid-area: main;
    grid-template: "main" 1fr / 1fr;
    height: 350px;
    justify-self: center;
    pointer-events: all;
    -webkit-user-select: none;
    user-select: none;
    width: 200px;
}

#nav-bg {
    background-color: #afafaf;
    border: 2px solid #51535b;
    border-radius: 20px;
    box-shadow: -1px -1px 20px 1px var(--accent-color);
    box-sizing: border-box;
    grid-area: main;
    height: auto;
    width: 200px;
}

#nav-icon {
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: all;
    right: 0px;
    top: 9px;
    position: absolute;
    transition: transform 0.2s;
}

#nav-icon:hover {
    transform: scale(1.1)
}

#scene-levers-container {
    border-left: 2px solid var(--border-color);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--window-margin);
    left: calc(3 * var(--window-margin));
    opacity: 0.2;
    padding-left: var(--window-margin);
    position: absolute;
    top: calc(3 * var(--window-margin));
    transition: opacity var(--standard-animation-time);
    max-height: 80px;
    overflow-y: scroll;
}

#scene-levers-container:hover {
    opacity: 1
}

.lever .button-wrapper {
    background: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}


.lever.active .button-wrapper {
    background-color: var(--background-color-inverse);
    color: var(--text-color-inverse);
}

.lever:hover .button-wrapper {
    background-color: var(--background-color-inverse);
    color: var(--text-color-inverse);
}

#message-box {
    background-color: var(--background-color);
    border: var(--window-padding) solid var(--background-color);
    border-radius: calc(2 * var(--border-radius));
    box-shadow: 0px 0px 13px 3px #1717194f;
    box-sizing: border-box;
    color: var(--text-color);
    display: none;
    flex-direction: column;
    gap: var(--window-margin);
    height: 60dvh;
    overflow-y: scroll;
    position: fixed;
    left: 30dvw;
    outline: 1px solid var(--border-color);
    text-align: justify;
    top: 20dvh;
    width: 40dvw;
    z-index: 1000000;
    pointer-events: all;
}

#message-box img {
    border: 0.5px solid var(--border-color);
    border-radius: var(--border-radius);
}

#message-box.active {
    display: flex;
}

#message-box p {
    color: var(--text-color);
}

#a-dreaming-hud {
    background-color: var(--padding);
    box-sizing: border-box;
    display: grid;
    grid-template: "main" 1fr / 1fr;
    height: 100dvh;
    left: 0px;
    padding: calc(5px + var(--window-margin));
    pointer-events: none;
    position: absolute;
    top: 0px;
    transition: border 0.5s;
    width: 100dvw;
    z-index: 2;
}

#warning-box {
    box-shadow: inset 0px 0px 20px 12px var(--alert-color);
    display: none;
    grid-area: main;
}

#a-dreaming-hud.warning #warning-box {
    display: block;
}

@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(--padding)/2)
            "introduction-levers" auto
            "." calc(var(--padding)/4)
            "utility-levers" auto
            / 1fr;
        height: 100dvh;
        width: 100dvw;
    }
    #main {
        flex-direction: column;
        gap: var(--padding);
        height: 100%;
        justify-content: unset;
        overflow-y: scroll;
    }
    #introduction-levers-container {
        justify-content: center;    
        font-size: 1.156em;
    }
    .floating-scene {
        height: fit-content;
        text-align: justify;
        overflow-y: unset;
    }
    #introduction-container {
        height: fit-content;
        overflow-y: unset;
    }
    #introductory-text {
        text-align: justify;
    }
    #message-box{
        left: 10dvw;
        top: 15dvh;
        width: 80dvw;
        height:70dvh;
    }

}
