@font-face {
    font-family: 'BrandfordMono';
    src: url('../assets/font/Bradford Mono LL/Bradfordmonoll-Regular.Otf');
}


html, body {
    width: 100vw;
    width: var(--vw * 100);
    height: 100vh;
    height: var(--vh * 100);
    margin: 0;
    overflow: hidden;
    font-family: 'BrandfordMono', 'Courier New', Courier, monospace;
    color: var(--overlayColor);
}

#space_canvas {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100vw;
    width: var(--vw * 100);
    height: 100vh;
    height: var(--vh * 100);
    pointer-events: none;
}

#drawing_canvas {
    position: fixed;
    width: 0;
    height: 0;
    border-radius: 50%;
    cursor: pointer;
}

#drawing_canvas.isDrawing {
    cursor: crosshair;
}

#submit_memory {
    position: fixed;
    text-align: center;
    padding: 10px;
    padding-top: 0;
}

#timeline_wrapper {
    position: absolute;
    bottom: 1em;
    left: 0;
    width: 100vw;
    width: var(--vw * 100);
    height: 4em;
    overflow-x: scroll;
    overflow-y: visible;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    opacity: 0;
    transition: all 1s ease-out;
    pointer-events: none;
}

.hasEntered #timeline_wrapper {
    opacity: 1;
    pointer-events: all;
}

#timeline_wrapper::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
#timeline {
    position: relative;
    right: 0;
    min-width: 200%;
    height: 100%;
    display: inline-block;
    white-space: nowrap;
    display: inline-flex;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    padding-left: 50vw;
    padding-right: 50vw;
}

.timeline_memory {
    position: relative;
    width: 14ch;
    min-width: 14ch;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
}

.timeline_memory#timeline_now {
    position: sticky;
    right: calc((-14ch + 4ch) * .5 + 1em);
    z-index: 1;
}

.timeline_memory .memory_date {
    position: relative;
    text-align: center;
    width: fit-content;
    display: inline-block;
    opacity: 0;
}

.timeline_memory .memory_line {
    position: absolute;
    width: calc(50% - .5px);
    height: calc((4em - 1.5em) * .5);
    bottom: calc(1em - .325em);
    left: 0;
    border-right: solid 1px var(--overlayColor);
    transition: all .25s ease-out;
    opacity: 1;
}

.timeline_memory#timeline_now .memory_date {
    opacity: 1;
    cursor: pointer;
}

#timeline_line {
    position: fixed;
    width: 1px;
    height: calc(4em - 1.5em);
    bottom: 1em;
    right: calc(50% - .5px);
    border-right: solid 1px var(--overlayColor);
}

#timeline_time {
    position: fixed;
    width: calc(50% - .5px);
    height: 1px;
    bottom: calc(1em + 2em - .75em - .5px);
    right: calc(50% - .5px);
    border-top: solid 1px var(--overlayColor);
}

.landscape #timeline_wrapper {
    bottom: 0;
    left: auto;
    right: 1em;
    width: fit-content;
    height: 100vh;
    height: var(--vh * 100);
    overflow-x: visible;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.landscape #timeline {
    min-width: fit-content;
    height: 100%;
    min-height: 200%;
    width: fit-content;
    display: block;
    padding-left: 0;
    padding-right: 0;
    padding-top: 50vh;
    padding-bottom: 50vh;
}

.landscape .timeline_memory {
    position: relative;
    width: auto;
    min-width: auto;
    height: 8em;
    min-height: 8em;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.landscape .timeline_memory#timeline_now {
    right: auto;
    top: -2em;
}

.landscape .timeline_memory .memory_date {
    text-align: right;
    padding-right: calc(4em - .5em);
}

.landscape .timeline_memory .memory_line {
    height: calc(50% - .5px);
    width: calc((4em - 1.5em) * .5);
    bottom: calc(50% - .5px);

    right: calc(1em - .325em);
    bottom: 0;

    left: auto;
    border-right: none;
    border-top: solid 1px var(--overlayColor);
}

.landscape .timeline_memory#timeline_now .memory_date {
    opacity: 1;
    cursor: pointer;
}

.landscape #timeline_line {
    width: calc(4em - 1.5em);
    height: 1px;
    right: 1em;
    bottom: calc(50% - 1.5px);
    border-right: none;
    border-top: solid 1px var(--overlayColor);
}

.landscape #timeline_time {
    width: 1px;
    height: calc(50% - .5px);
    right: calc(1em + 2em - .75em - .5px);
    bottom: 0;
    border-top: none;
    border-left: solid 1px var(--overlayColor);
}



@media (hover: hover) {
    .landscape #timeline_wrapper {
        width: 100vw;
    }

    .landscape #timeline {
        width: 100%;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
    }
}

#entrance {
    position: fixed;
    width: 100vw;
    width: var(--vw * 100);
    height: 100%;
    max-height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px;
    color: black;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    opacity: 1;
    transition: all 1s ease-out;
    /* display: none; */
    pointer-events: none;
}

.hasEntered #entrance  {
    opacity: 0;
    pointer-events: none;
    /* display: none; */
}

#entrance * {
    flex-grow: 1;
    max-width: 70ch;
    pointer-events: none;
}

#entrance img {
    flex-grow: 1;
    max-width: 100vw;
    max-width: var(--vw * 100);
    max-height: 100%;
    padding-bottom: 20px;
    width: auto;
    height: auto;
    min-height: 0;
    min-width: auto;
}

#clock_wrapper {
    position: fixed;
    width: 100vw;
    width: var(--vw * 100);
    top: 1em;
    left: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: all 1s ease-out;
    pointer-events: none;
}

.hasEntered #clock_wrapper {
    opacity: 1;
}