

:root {
    --journal-bg: #b87b57
}

body {
    background-color: 
        var(--journal-bg)
    ;
    overflow-y: hidden;
    overflow-x: scroll;
}

header {
    position: fixed;
    text-align: center;
    left: 50%;
    top: 8px;
    translate: -50% 0;
    font-size: 5em;
    background: 
        linear-gradient(120deg, #c0c0c0 60%, #eee 65% 70%, #c0c0c0 75%)
    ;
    padding: 5px 0.5em;
    border: 5px outset grey;
    box-sizing: border-box;
}

#header-screws {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

#header-fasteners > div {
    position: absolute;
    width: 0.1em;
    height: 0.1em;
    background: 
        hsl(0, 0%, 55%)
    ;
    border-radius: 50%;
}

#header-fasteners > div:first-of-type {
    left: 0.1em;
    top: 0.1em;
}

#header-fasteners > div:nth-of-type(2) {
    right: 0.1em;
    top: 0.1em;
}

#header-fasteners > div:nth-of-type(3) {
    left: 0.1em;
    bottom: 0.1em;
}

#header-fasteners > div:nth-of-type(4) {
    right: 0.1em;
    bottom: 0.1em;
}

main {
    position: absolute;
    background: hsl(23, 39%, 20%);
    top: calc(8em + 16px);
    left: 1em;
    height: calc(100dvh - 14em - 32px);
    border: 1px solid black;
    border-right: none;
    padding-left: 6em;
    padding-top: 2em;
    min-width: 100%;
    width: fit-content;
    box-sizing: border-box;
    white-space: nowrap;
}

.journal-entry {
    display: inline-flex;
    width: 150px;
    height: 100%;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    padding: 10px;
    padding-top: calc(10px + 1em);
    margin-right: 3px;
    white-space: initial;
    font-size: 1.5em;
    text-decoration: none;
    background-color: hsl(0, 0%, 40%);
    overflow-y: scroll;
    scrollbar-width: none;
}

.journal-entry > span {
    width: 100%;
}

.journal-entry.devlog {
    background-color: hsl(240, 60%, 25%);
    color: hsl(180, 60%, 50%);
}

.journal-entry.tutorial {
    background-color: hsl(120, 40%, 20%);
    color: hsl(60, 70%, 50%);
}

.journal-entry.thoughts {
    background-color: hsl(0, 40%, 20%);
    color: hsl(45, 70%, 50%);
}

aside {
    position: fixed;
    background: var(--journal-bg);
    /* background: purple; */
    left: 0;
    bottom: 0;
    height: 7em;
    width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
    padding-top: 10px;
}

.sticky-note {
    display: inline-block;
    background-color: #ff8;
    font-family: 'Comic Sans', 'Comic Sans MS', 'Brush Script MT', 'Lucida Handwriting', sans-serif;
    width: 200px;
    padding: 5px;
}

#show-tag-panel-info,
#tag-panel-info {
    display: none;
}

#show-tag-panel-info:checked + #tag-panel-info {
    display: inline-block;
}

label[for=show-tag-panel-info],
#tag-panel-info > .sticky-note {
    background-color: hsl(120, 70%, 60%);
}

aside > .sticky-note,
#tag-panel-info {
    position: relative;
    left: 0;
    margin-bottom: 8px;
}

#tag-panel-info > .sticky-note {
    margin-bottom: 8px;
    pointer-events: all;
}

#tag-panel-info {
    position: absolute;
    bottom: 6em;
    width: fit-content;
    pointer-events: none;
}

#tag-panel-label {
    margin-bottom: 12px;
}

#journal-to-home-link {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    font-family: 'Ink Free', 'Comic Sans MS', sans-serif;
    font-size: 2em;
    font-weight: 1000;
    color: hsl(22, 40%, 20%);
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-decoration: none;
}

#journal-to-home-link:hover {
    color: orange;
}

/* 

desktop css overrides 

*/
@media only screen and (min-width: 768px) {
    #journal-to-home-link {
        writing-mode: unset;
        padding: 8px;
    }

    aside {
        bottom: unset;
        top: calc(8em + 16px);
        height: calc(100dvh - 14em - 32px);
        width: calc(8em + 16px);
        border-right: 1px solid black;
    }

    aside > .sticky-note,
    #tag-panel-info {
        left: 50%;
    }

    #tag-panel-info {
        position: relative;
        bottom: unset;
    }

    main {
        height: calc(100dvh - 14em - 32px);
        padding-left: calc(6em + 218px);
    }
}
