/* Global */
html, body {
    height: 100%;
}
body {
    margin: 0;
    font-family: var(--normalFont);
    background-color: var(--bg);
    user-select: none;
}
a {
    cursor: pointer;
    /*text-decoration: none; ...should this just be everywhere? */
}
em {
    font-style: normal;
    background-color: #88888844;
    /*display: inline-block;*/
}
em:after {
    content: '';
}
li em {
    /*display: inline-block;*/
}
input, select { /* input[type=text], select, input[type=button] */
    border: 1px solid #00000044;
    font-family: var(--normalFont);
    font-size: 1em;
}
button {
    cursor: pointer;
}
.wide {
    width: 100%;
    box-sizing: border-box;
}

/* Foundation */
#grid {
    --w: 1px;

    background:
        linear-gradient(90deg, #0000 calc(100% - var(--w)), var(--gridDark) 0),
        linear-gradient(90deg, #0000 calc(50% - var(--w)), var(--gridLight) calc(50% + var(--w)), #0000 0),
        linear-gradient(0, #0000 calc(100% - var(--w)), var(--gridDark) 0),
        linear-gradient(0, #0000 calc(50% - var(--w)), var(--gridLight) calc(50% + var(--w)), #0000 0);
    background-size: 100px 100px; /* can do multiple like 20px 20px, 10px 10px */
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#content {
    transform: translate(calc(50vw - 50%), calc(50vh - 50%));
    transform-origin: 0 0;
    width: 100%;
    height: 100%;
    border: 1px solid blue;
    position: relative;
    z-index: 2;
}

/* Color scheme */
:root {
    --bg: white;
    --title: black;
    --globalBlackOrWhiteForOverControlAndStuff: black; /* ??? */
    --gridDark: #00000015;
    --gridLight: #00000010;

    --normalFont: 'Oswald', sans-serif;
    --monoFont: 'B612 Mono', monospace;
}

/* Header */
header {
    /*height: 60px;*/
    position: absolute;
    z-index: 1; /* 999999999...*/
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}
header > h1 {
    margin: -10px -10px -10px 0;
    font-size: 3em;
    white-space: nowrap;
    color: var(--title);
}
header > a.icon {
    font-size: 1.25em;
    margin-left: .5em;
}
header .control {
    display: flex;
    align-items: flex-end;
    gap: 1em;
    width: 100%;
    transition: opacity .5s;
    opacity: 1;
}
header button, header a.button {
    font-family: var(--normalFont);
    background-color: white;
    border: 0;
    padding: 2px 16px;
    box-shadow: transparent 0 0 0 2px,rgba(18, 18, 18, .1) 0 6px 20px; /* Maybe revisit this. Maybe like 2px 4px 8px? */
    transition-duration: .5s;
    position: relative;
}
header button:hover, header a.button:hover {
    box-shadow: #121212 0 0 0 2px, transparent 0 0 0 0;
}
header button.major, header a.button.major {
    font-size: 1.5em;
}
header button.minor, header a.button.minor {
    font-size: 1em;
    color: #888;
}
header .boardButtons {
    display: flex;
    gap: .5em;
    flex-shrink: 0;
}
header .control > a { /* Should probably be header > a or whatever so that it doesn't affect everything downstream */
    color: orange;
    text-decoration: none;
    font-size: 1.25em;
    margin-left: .5em;
}
header .control > a:hover {
    text-decoration: underline;
}
header .auth {
    margin: auto 1em 1em auto;
}
header .auth a {
    font-size: 1em;
    text-decoration: none;
    color: var(--title);
}

header .buttonDropdown {
    position: absolute;
    left: -2px;
    text-align: left;
    padding: 0 .5em;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    z-index: 1;

    &.show {
        animation: buttonDropdownShow .5s ease-out 0s 1 forwards;
    }
    &.hide {
        animation: buttonDropdownHide .25s ease-out 0s 1 forwards;
    }

    h1 {
        margin: .25em;
        font-size: 1em;
        text-wrap: nowrap;

        a {
            text-decoration: none;
            color: orange;
        }
        a:hover {
            text-decoration: underline;
        }
    }

    a.action {
        text-wrap: nowrap;
        text-decoration: none;
        display: block;
        margin: .25em 0;
        color: #999;

        &:hover {
            color: orange;
        }
    }

    hr {
        margin: 0;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 400px;
        overflow-y: auto;
        font-size: initial;

        li {
            margin: .5em .1em;

            a {
                text-decoration: none;
            }
        }
    }

    ul.buttons {

        li {

            a {
                color: #00000099;
                display: inline-block;
                transition: color .25s;
                font-size: 1.5em;
            }
            a:hover {
                color: black;
            }
            a:after {
                content: '';
                display: block;
                width: 0%;
                border-bottom: 1px solid black;
                transition: width .25s;
            }
            a:hover:after {
                width: 100%;
            }
        }
    }

    ul.links {

        li {

            a {
                background-color: #aaa;
                padding: .15em .35em;
                color: white;
            }
            a:hover {
                background-color: orange;
            }
        }
    }

    input[type=text] {
        border: none;
        &:focus {
            outline: none;
        }
    }
}
@keyframes buttonDropdownShow {
    0% {max-height: 0; border: 2px solid #00000000;}
    100% {max-height: 600px; border: 2px solid #000;}
}
@keyframes buttonDropdownHide {
    0% {max-height: 600px; border: 2px solid #000;}
    99% {max-height: 0; border: 2px solid #00000000;}
    100% {border: none;}
}
header .buttonDropdownCoverup {
    position: absolute;
    right: 0;
    height: 2px;
    background-color: white;
    width: 100%;
    z-index: 2;
}

#board-search .buttonDropdown {
    display: flex;
    align-items: center;

    a {
        text-decoration: none;
        color: #000;

        &:hover {
            color: #888;
        }
    }
}

header .boardStyle {
    position: absolute;
    top: 3.5em;
    padding: .5em;
    background-color: #00000033;
    border-radius: .5em;
    z-index: 999999;

    input.name {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: .5em;
        font-size: 1.5em;
    }

    ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        gap: .5em;
        font-size: 1.1em;

        .action a {
            margin: .25em;
        }
        .action.sticky a {
            color: azure;
        }
        .action.delete a {
            color: red;
        }

        input[type=button] {
            background-color: white;
            cursor: pointer;

            &.small {
                font-size: .75em;
            }
        }
    }

    .container {
        font-size: 1.25em;
        width: 380px;

        a {
            color: white;
            margin: .5em 0 0 .45em;
            cursor: pointer;
        }
    }
}

/* Right click */
#context {
    position: absolute;
    background-color: white;
    outline: 1px solid #eee;
    border-radius: .25em;
    font-size: 1.25em;
    min-width: 125px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    transition: max-height .4s ease-out;
    max-height: 0;
    overflow: hidden;
    z-index: 999999;

    &:hover {
        max-height: 400px;
        overflow: unset;
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            margin: .5em 0;
            padding: 0 .5em;

            &:hover {
                background-color: #eee;
            }

            a {
                display: block;
                text-decoration: none;
                color: black;
                pointer-events: none;
            }

            &.separator {
                border-bottom: 1px solid #ff000022;
            }

            ul {
                position: absolute;
                left: 100%;
                margin-top: -2em;
                background-color: white;
                outline: 1px solid #eee;
                border-radius: .25em;
                opacity: 0;

                a {
                    white-space: nowrap;
                }
            }

            &:hover ul {
                opacity: 1;
            }
        }
    }
}

/* Note */
.note {
    position: absolute;
    /*background-color: orange;*/
    color: #fff;
    font-size: 2em;
    box-shadow: 4px 4px 0 #00000030;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-flow: column;
}
.note.cornered {
    border: 1px solid transparent;
    border-width: 1px 0 0 1px;
}
.note.shrink {
    transition: height .2s;
}
.note .header {
    display: flex;
    border-bottom: 1px solid white;
    z-index: 2;
}
.note .header h1 {
    margin: 0;
    font-size: 1em;
}
.note .header h1 i.icon {
    font-size: .75em;
    margin-left: .5em;
}
.note .header .decor {
    display: flex;
    flex-grow: 1;
}
.note .header .decor .line {
    height: 2px;
    margin: 24px 0 0 8px;
    flex-grow: 1;
}
.note .header .decor i {
    margin-top: 8px;
}
.note input[type=text] {
    font-size: 1em;
    font-family: 'Oswald', sans-serif;
    width: 100%;
    padding: 0;
    border: 0;
    background-color: #eee;
}
.note input[type=text]:focus-visible {
    outline: 0;
}
.note .content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;

    span.numb {
        border-bottom: 2px dotted #ffffff99;
        display: inline-block;
        line-height: 1.25em; /* Looks better but breaks editor height matching for lis */
        line-height: 1em;
    }
}
.note .content p {
    margin: 0;
    align-self: flex-start;
}
.note .content div {
    align-self: flex-start;
}
.note .content div a, .note .content li a {
    /*color: rgba(61, 100, 145);*/
    text-decoration: none;
}
.note .content div a:hover {
    text-decoration: underline;
}

.note .hover {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    &:hover, &:has(+ .header:hover), &:has(+ .content *:hover) {
        opacity: 1;
    }
}

.note.sign {

    border-radius: 4em .25em 3em .25em / .25em 3em .25em 4em;
    outline: .25em solid black;
    box-shadow: .5em .5em .15em #00000030;

    .header {
        overflow: hidden;
    }

    .body div {
        line-height: 1.25em;
        margin-top: -.15em;
    }
}

.content.prebody.branded:before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: "xbox";
    font-size: 128px;
    color: #ffffff33;
    line-height: 64px;
}

.note.frozen {
    opacity: .5;
}

.note.selected {
    outline: 3px solid #00000099;
    outline-offset: 6px;
    outline-style: dotted;
}

/* No need no mo' */
.note textarea {
    font-size: 1em;
    font-family: 'Oswald', sans-serif;
    flex: 1 1 auto;
    resize: none;
    padding: 0;
    border: 0;
    overflow: hidden;
}
.note textarea:focus-visible {
    outline: 0;
}
.note .resize {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: rotateZ(45deg);
    font-size: 18px;
}
.note.frozen .resize {
    opacity: 0;
    transition: opacity .25s;
}
.note .color {
    position: absolute;
    right: 20px;
    bottom: 5px;
    width: 10px;
    height: 10px;
    font-size: 14px;
}
.note.bg span.color {
    display: none;
}
.note .bar {
    --bar-height: 6px;

    position: absolute;
    left: 0;
    width: 100%;
    height: calc(var(--bar-height) * 2);
    cursor: pointer;

    span {
        display: block;
        height: 50%;
        background-color: #00000044;
    }
    &.minimize {
        top: calc(-1 * var(--bar-height));
        padding-top: var(--bar-height);
        span {
            border-radius: 1em 1em 0 0;
        }
    }
    &.maximize {
        bottom: calc(-1 * var(--bar-height));
        span {
            border-radius: 0 0 1em 1em;
        }
    }
}
.note.frozen .bar {
    cursor: default;
}
.note.alt {
    background-color: aqua;
}

.note .control {
    position: absolute;
    height: 32px;
    bottom: -44px;
    color: black;
    border: 1px solid red;
}
.note .control ul {
    display: flex;
    margin: 0;
    padding: 0;
}
.note .control li {
    display: block;
    margin-right: 8px;
}
.note .control a {
    color: black;
    text-decoration: none;
    font-size: .75em;
}
.note .control a:hover {
    color: red;
}
.note .background {
    position: absolute;
    border-radius: 999px;
    box-shadow: 4px 4px 0 #00000030;
    display: none;
}
.note .triangle {
    position: absolute;
    left: 0;
    top: 0;
    border-left: 0 solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 0 solid red;
    pointer-events: none;
    display: none;
}

.note .full {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}
.note .cover {
    background-size: cover;
    background-position: center;
}
.note .flash {
    background-color: #ffffffaa;
    opacity: 0;

    &.on {
        animation: flash-me 1s;
    }
}
@keyframes flash-me {
    0% {opacity: 0;}
    20% {opacity: 1;}
    100% {opacity: 0;}
}

.note.circle {
    .background {
        display: block;
    }

    background: none !important;
    box-shadow: none;

    span.color, span.resize {
        color: var(--globalBlackOrWhiteForOverControlAndStuff);
    }

    &.selected {
        outline: none;

        .background {
            outline: 3px solid #00000099;
            outline-offset: 6px;
            outline-style: dotted;
        }
    }
}

.note.img {
    background: none !important;
    box-shadow: none;
}

.note strong.hashtag {
    background-color: #ffffff66;

    &:after {
        content: ''; /* '#' Looks weird and gets messed up on note resize */
        position: absolute;
        font-size: .5em;
        opacity: .5;
        background-color: #fff;
    }
}

/* Swatch */
.swatch {
    position: absolute;
    display: inline-block;
    padding: 8px;
    background-color: #00000022;
    border-radius: 8px;

}
.swatch ul {
    display: flex;
    margin: 0;
    padding: 0;
}
.swatch ul li {
    width: 10px;
    height: 10px;
    display: block;
    margin-right: 4px;
}
.swatch ul.sub {
    margin-top: 8px;

    li {
        width: 22px;
        height: 22px;
        font-size: 12px;
        line-height: 22px;
        text-align: center;
    }
}
.swatch ul.sizes li {
    background-color: #00000099;
    color: white;
    border-radius: 12px;
}

/* Outliner */
.outliner {
    position: absolute;
    z-index: 999999;
}
.outliner div {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    outline-style: dashed;
    opacity: 0;
    transition: opacity .5s;
}
.outliner .inner {
    outline-color: #ffffff99;
    /* Different direction */
    outline: none;
    background-color: #ffffff66;
}
.outliner .outer {
    outline-color: white;
    filter: drop-shadow(1px 1px 1px black);
    outline-offset: 8px;
}
@keyframes pulse-outliner {
    0% {outline-offset: 8px;}
    25% {outline-offset: 12px;}
    75% {outline-offset: 4px;}
}
.outliner .outer.ready {
    animation-name: pulse-outliner;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Editor */
/* For reference, from note 397
.note input[type=text] {
    font-size: 1em;
    font-family: 'Oswald', sans-serif;
    width: 100%;
    padding: 0;
    border: 0;
    background-color: #eee;
}
.note input[type=text]:focus-visible {
    outline: 0;
}
*/
.editor {
    position: absolute;
    font-size: 2rem;
    overflow: hidden;

    pointer-events: none;
    * {
        pointer-events: auto;
    }

    /*outline: 2px dashed blue;
    background-color: #0000ff44;*/

    .title {
        position: absolute;
        padding: 0;
        border: 0;
        font-weight: bold;

        &:focus-visible {
            outline: 0;
        }
    }

    .body {
        position: absolute;
        background-color: white;
        overflow: hidden;

        p {
            margin: 0;
        }
        ul {
            margin: 0;
        }
        a {
            color: rgba(61, 100, 195);
            text-decoration: none;
        }
        &:focus {
            outline: none;
        }
    }
}

div {

}
.divClass {

}

/* Format */
.format {
    position: absolute;
    display: flex;
}
.format ul {
    display: flex;
    margin: 0;
    padding: 0;
}
.format ul li {
    display: block;
    margin-right: 8px;
}
.format ul li a {
    padding: 4px 8px;
    display: block;
    background-color: white;
    color: black;
    text-decoration: none;
    border: 1px solid #888;
    border-radius: 8px;
}
.format ul li a:hover, .format ul li a.active {
    background-color: black;
    color: white;
}
.format ul.style {
    font-family: var(--monoFont);
}

/* Special format */
.linkInput {
    position: absolute;
    border-radius: 6px;
    outline: #00000044;
    outline-style: dashed;
    z-index: 999999;
    padding: 6px;
}
.linkInput input[type=text] {
    width: 300px;
}

/* List styles for both Note and Editor */
.body ul {
    margin: 0;
    width: fit-content;
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.body li {
    width: fit-content;
}
.body li:before {
    font-family: "Font Awesome 5 Free";
}
.body ul.checklist li:before {
    content: "\f0c8";
    padding: 0 10px 0 0;
}
.body ul.checklist li.checked:before {
    content: "\f14a";
}
.body ul.checklist li.checked {
    text-decoration: line-through;
    opacity: .5;
}
.body ul.bullet li {
    font-family: var(--normalFont);
    font-weight: normal;
    margin-top: 6px;
}
.body ul.bullet li:before {
    /*content: "\f192";*/
    font-weight: normal;
    /*padding: 0 6px 0 0;*/
    display: inline-block;
    width: 1.25em;
}
.body ul.bullet li.fa-solid:before {
    font-weight: bold;
}
.body li.highlighted {
    background-color: #ffffff44;
    border-radius: 32px;
}
.body li.highlighted:after {
    content: '\00a0\00a0';
}

/* Showcase */
.showcase {
    position: absolute;
    border-radius: 6px;
    outline: #00000066;
    outline-style: dashed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s;
}
.showcase .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    /*background-color: var(--bg1);*/
    opacity: .5;
}
.showcase .close, .showcase .explode {
    position: absolute;
    font-size: 44px;
}
.showcase .close a, .showcase .explode a {
    color: black;
    text-decoration: none;
}
.showcase .close a:hover, .showcase .explode a:hover {
    color: red;
}
.showcase .close {
    right: -44px;
    top: -56px;
}
.showcase .explode {
    left: -38px;
    top: -60px;
}
.showcase .elements {
    padding: 10px 0 0 10px;
}
.showcase .elements .item {
    float: left;
    margin-bottom: 10px;
    /*border: 1px solid red;*/
}

/* Slideshow */
.slideshow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1188px;
    background-color: black;
    padding: 1em;
    border-radius: 8px;

    /* Maybe put in the full screen container or something */
    z-index: 9999990;

    h1 {
        margin: -.35em 0 0 0;
        color: white;
    }
    ul.thumbs {
        list-style-type: none;
        margin: 0;
        padding: 8px;
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        overflow: hidden;
        overflow-x: auto;
        background-color: #222;
        font-size: 0;

        li img {
            max-width: 64px;
        }
        li.selected {
            outline: 2px solid orange;
        }
    }
    div.current {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        margin-top: 1em;

        > a {
            display: flex;
            align-items: center;
            color: white;
            text-decoration: none;
            font-size: 1.5em;
            background-color: #44444400;
            transition: background-color .25s;
        }
        > a.prev {
            border-radius: 8px 0 0 8px;
        }
        > a.next {
            border-radius: 0 8px 8px 0;
        }

        .image {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: white;

            img {
                max-width: 1120px;
                max-height: 640px;
            }
        }

        > a:hover {
            background-color: #444444ff;
        }
    }
}

/* Listover */
/* Get rid of this! */
.listover {
    position: absolute;
    z-index: 999999;
}
.listover .side {
    position: absolute;
    cursor: pointer;
    border-radius: 6px;
    outline: #00000066;
    outline-style: dashed;
    width: 20px;
}
.listover .side.left {
    background-color: #00000011;
    left: -48px;
}
.listover .side.right {
    background-color: #00000022;
    right: -48px;
}
.listover .side a {
    position: absolute;
    left: 2px;
}
.listover .top {
    position: absolute;
    top: -44px;
}
.listover .top a {
    position: absolute;
    font-size: 2em;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
}

/* OverControl */

.overControl {
    position: absolute;
    z-index: 999999;
}
.overControl .side {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
}
.overControl .side.dashed {
    cursor: pointer;
    border-radius: 6px;
    outline: #00000066;
    outline-style: dashed;
}
.overControl .side.header {
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #ffffffaa;
}
.overControl .side.flat-top {
    border-radius: 0 0 6px 6px;
}
.overControl .side.flat-bottom {
    border-radius: 6px 6px 0 0;
}
.overControl .side.lighter {
    background-color: #00000022;
}
.overControl .side.lightest {
    background-color: #00000011;
}
.overControl .side.whiter {
    background-color: #ffffff44;
}
.overControl .side.whitest {
    background-color: #ffffff88;
}
.overControl .side.round {
    border-radius: 4px;
}
/*.overControl .side a {
    position: absolute;
    left: 2px;
}*/
.overControl li {
    position: absolute;
}
.overControl li.sortable {
    position: unset;
}
.overControl a {
    /*position: absolute;*/
    /*cursor: pointer;*/
    display: block;
}
.overControl a:hover {
    opacity: .5;
}
.overControl a.toggled {
    color: red;
}
.overControl a.bigger {
    font-size: 1.5em;
}
.overControl a.biggest {
    font-size: 2em;
}
.overControl a.backed {
    background-color: white;
    padding: 8px;
    border-radius: 8px;
}
.overControl a.circled {
    background-color: black;
    color: white;
    padding: 2px;
    border-radius: 16px;
}
.overControl a.emergency {
    color: red;
}
.overControl .side.round-dashed li {
    outline: 2px dashed #00000066;
    outline-offset: 4px;
    border-radius: 8px;
}
.overControl select {
    position: absolute;
    font-size: 1.5em;
    font-family: var(--normalFont);
    border-radius: 4px;
    border-color: #00000066;
}

/* Components */

.dialogue {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    overflow: hidden;
    background-color: white;
    border: 2px solid #444;
    border-radius: 12px;
    box-shadow: 6px 6px 0 #00000040;
}
.dialogue h1 {
    margin: 0;
    background-color: #1a73e8;
    color: white;
    padding: 8px;
    font-size: 1.5em;
}
.dialogue div.body {
    padding: 8px;
    font-size: 1.5em;
}
.dialogue div.body input[type=text], .dialogue div.body input[type=password], .dialogue div.body select {
    width: 100%;
    box-sizing: border-box;
}
.dialogue div.body h4 {
    margin: 0;
}
.dialogue div.buttons {
    padding: 8px;
    display: flex;
    justify-content: center;
}
.dialogue a.button {
    border-radius: 6px;
    background-color: #ccc;
    padding: 4px;
    margin: 0 16px;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}
.dialogue a.button:hover {
    background-color: #ddd;
}

/* Header dialogues */

#load-boardt {
    ul {
        li a {
            text-decoration: none;
        }
        li a:hover {
            text-decoration: underline;
        }
        &.sorts {
            flex-direction: row;
            gap: 20px;
            li a {
                color: orange;
                &.selected {
                    text-decoration: underline;
                }
            }
        }
        &.boardts {
            width: 100%;
            max-height: 250px;
            overflow-y: scroll;
            li {
                margin-bottom: 2px;
            }
            li i {
                width: 1.35em;
                text-align: center;
                margin-right: .25em;
            }
            li a {
                color: #1a73e8;
                border-bottom: 1px solid #aaa;
            }
        }
    }
}

.dialogue-color-chooser {
    h3 {
        margin: 0;

        a {
            /*cursor: pointer;*/
            font-size: .75em;
            color: darkgreen;
        }
        a:hover {
            color: green;
        }
    }
    ul.colors {
        li {
            display: flex;
            margin-bottom: .5em;
            gap: 8px;

            button {
                /* Simple black */
                /*padding: 0 10px;
                background-color: black;
                color: white;
                border-radius: 4px;
                border: 0;*/
                background: transparent;
                border: 0;
                color: darkred;
            }
            button:hover {
                /* Simple black */
                /*background-color: #888;*/
                color: red;
            }
            button.add {
                color: darkgreen;
                margin-left: 2px;
            }
            button.add:hover {
                color: green;
            }
            .spacer {
                width: 194px;
                height: 22px;
            }
        }
    }
    .sp-replacer {
        border: 0;
        padding: 0;
    }
    .sp-preview {
        width: 192px;
        margin: 0;
    }
    .sp-dd {
        display: none;
    }
    .preview {
        height: 100px;
        background-color: red;

        div {
            text-align: center;
            padding-top: 26px;
            a {
                text-decoration: none;
            }
        }
    }
    select, .preview {
        margin-bottom: .5em;
    }
}

/* Note type dialogue */

div.noteTypes {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
div.noteTypes a {
    background-color: orange;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
    flex: 0 1 33.33%;
    width: 140px;
    /*cursor: pointer;*/
}
div.noteTypes a.current {
    background-color: darkorange;
}
div.noteTypes a:hover {
    background-color: lightblue;
}

div.noteTypeDateTime {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

div.noteTypeYouTube .results {
    max-height: 500px;
    overflow-y: scroll;
}
div.noteTypeYouTube .results .vid {
    font-size: .5em;
    display: inline-block;
    width: 140px;
    padding: 8px;
}
div.noteTypeYouTube .results .vid:hover {
    background-color: #4477ff22;
}
div.noteTypeYouTube .results .vid h2 {
    font-weight: normal;
    margin: 0;
}
div.noteTypeYouTube .results .vid h2 a {
    text-decoration: none;
    color: cadetblue;
}
div.noteTypeYouTube .results .vid h2 a:hover {
    text-decoration: underline;
    color: cadetblue;
}
div.noteTypeYouTube .results .vid img {
    width: 140px;
}
div.noteTypeYouTube input[type=text].wide {
    width: 300px;
}
div.noteTypeYouTube input[type=text].short {
    width: 100px;
}
div.noteTypeYouTube input[type=text].widest {
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
}
div.noteTypeYouTube a {
    text-decoration: none;
    color: red;
}

div.noteTypeMovie ul.searchSelector {
    flex-direction: row;
    width: 100%;
    margin-bottom: .5em;
}
div.noteTypeMovie ul.searchSelector li {
    flex: 0 1 50%;
    background-color: orange;
    padding: .25em;
    opacity: .5;
}
div.noteTypeMovie ul.searchSelector li.selected {
    opacity: 1;
}
div.noteTypeMovie ul.searchSelector li a {
    color: white;
    text-decoration: none;
}
div.noteTypeMovie input[type=text].widest {
    width: 100%;
    box-sizing: border-box;
}
div.noteTypeMovie .results {
    flex-direction: column;
}
div.noteTypeMovie .results li {
    padding-top: .5em;
    display: flex;
    cursor: pointer;
}
div.noteTypeMovie .results .img {
    margin-right: .5em;
    width: 60px;
}
div.noteTypeMovie .results .img img {
    max-width: 100%;
}
div.noteTypeMovie .results .detail {
    font-size: .75em;
}
div.noteTypeMovie .results li h3 {
    margin: 0;
}
div.noteTypeMovie .results li:hover h3 {
    background-color: antiquewhite;
}
div.noteTypeMovie .results li h3 span.year, div.noteTypeMovie .results li h3 span.big {
    font-size: .75em;
    opacity: .5;
    margin-left: .25em;
}
div.noteTypeMovie .results li h3 span.big {
    font-size: .9em;
}
div.noteTypeMovie .results li p {
    margin: 0;
    overflow: hidden;
    max-width: 400px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

div.noteTypeSchedule {
    fieldset {
        border: 0;
        padding: 0;
        display: flex;
        justify-content: space-between;
        gap: 1em;

        select {
            width: auto !important;
        }
    }
}

div.noteTypeImg {
    #imageGallery {
        margin-top: .5em;
        text-align: center;

        a {
            text-decoration: none;
            display: inline-block;
            margin: .25em;
            line-height: 0;

            &:hover {
                outline: .25em solid #0055aa88;
            }

            img {
                background-image: url(../img/checkers.png);
                height: 128px;
            }
        }
        
    }
}

div.noteTypeReddit {
    fieldset {
        border: none;
        padding: 0;
        input {
            width: auto !important;
        }
    }
}

.searchGamesResults {
    width: 500px;
}

.gameType {
    display: flex;

    ul {
        display: flex;
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    .img {
        width: 90px;
        margin-top: .35em;

        ul {
            flex-direction: row;
            width: 100%;
        }

        ul.images {
            overflow: hidden;
            font-size: 0;
            align-items: center;
        }
        ul.scroller {
            justify-content: space-between;
            font-size: 16px;

            a {
                text-decoration: none;
                color: #888;
            }
            a:hover {
                color: orange;
            }
        }
    }
    .detail {
        margin-left: .5em;
        /*width: 400px;*/

        h3 {
            font-size: 1em;
            /*line-height: .5em;*/
            margin: 0;

            .rating {
                font-size: .75em;
                color: cornflowerblue;
            }
            .ratingCount {
                font-size: .5em;
                color: lightsalmon;
            }
        }
        ul {
            flex-direction: row;
            flex-wrap: wrap;
            font-size: 14px;
            color: #ddd;

            li {
                background-color: teal;
                margin: .25em;
                padding: .15em .35em;
                text-wrap: nowrap;

                a {
                    color: white;
                    text-decoration: none;
                }
                &:hover:has(a) {
                    background-color: orange;
                }

                &.genre {
                    background-color: forestgreen;
                }
                &.platform {
                    background-color: indianred;
                }
                &.website {
                    background-color: mediumpurple;
                }
                &.website:hover:has(a) {
                    background-color: rebeccapurple;
                }
            }
        }
    }
    p {
        font-size: 18px;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        &.expanded {
            -webkit-line-clamp: 4;
        }
    }
}

/* Movie Note?! */

h1 .subtle {
    font-size: .75em;
    opacity: .5;
    margin-left: .25em;
}
h1 .subtle.large {
    font-size: .9em;
    opacity: .75;
}
h1 .subtle.small {
    font-size: .5em;
    opacity: .25;
}
.prebody .movie {
    display: flex;
    margin-top: .25em;
}
.prebody .movie .img {
    margin-right: .5em;
    min-width: 80px;
    max-width: 80px;
}
.prebody .movie .img img {
    max-width: 100%;
    border: 2px solid white;
}
.prebody .movie ul.external {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.prebody .movie ul.external li {
    width: 30px;
    margin-right: .25em;
}
.prebody .movie ul.external li img {
    max-width: 100%;
    border-radius: .25em;
}
.prebody .movie ul.external .imdb {
    padding: 4px;
    background-color: #ffd100;
    border-radius: .25em;
    font-size: .75em;
    vertical-align: top;
    margin-top: 8px;
    color: black;
}
.prebody .movie .detail p {
    font-size: .5em;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.prebody .reddit {
    h2 {
        font-size: 1em;
        margin: 0;
        /*width: 400px;*/

        a {

        }
    }
    .slide {
        display: flex;
        align-items: stretch;
        margin-top: .25em;

        .arrow {
            width: 10%;
            text-align: center;
            background-color: #00000022;
            display: flex;
            align-items: center;
            justify-content: center;

            i {

            }

            &:hover {
                text-decoration: none;
                background-color: #00000011;
            }
        }
        .self {
            width: 80%;
            height: 100px;
            text-align: center;
            background-color: black;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;

            span {
                margin-top: -.25em;
            }
        }
        img {
            width: 80%;
        }
    }
}

/* Datetime */

ul.datetime {
    list-style-type: none;
    padding: 0;
    margin: .25em 0 0 0;

    li {
        
    }

    li.soon, li.full, li.left {
        font-size: .5em;
    }

    li.soon, li.full {
        opacity: .5;
    }

    li.date, li.time {
        font-size: 1.5em;
    }

    li.soon {

    }
    li.date {

    }
    li.full {

    }
    li.time {

    }
    li.countdown {
        background-color: #ffffff66;
        border-radius: 1em;
        font-size: .25em;
        padding-bottom: 2px;
        margin-top: 1em;

        i {
            margin-left: 72%;
            transform: translate(-50%);
        }
    }
    li.left {
        text-align: center;
    }
}

/* Background note */

#noteTypeBackground {
    h3 {
        margin: 0;
    }
    .background-gradient {
        display: flex;
        align-items: center;
        gap: .25em;
    }
    .preview-background {
        height: 100px;
        position: relative;
        margin-bottom: .5em;

        .preview {
            position: absolute;
            left: 0;
            width: 100%;
            background: transparent;

            &.hover {
                opacity: 0;
                transition: opacity 1s;
            }
            &.hover:hover {
                opacity: 1;
            }
            &.text {
                pointer-events: none;
            }
        }
    }
}

.angle-chooser {
    --size: 30px;

    display: inline-block;
    vertical-align: middle;

    .circle {
        width: var(--size);
        height: var(--size);
        border-radius: calc(var(--size) / 2);
        border: 1px solid black;

        .angle {
            width: calc(var(--size) / 2);
            height: 1px;
            margin: calc(var(--size) / 2);
            background-color: black;
        }
    }
}

.gradient-background {
    width: 100%;
    height: 1em;
    border: 2px solid black;

    .gradient {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
}

/* Schedule */

.prebody ul.schedule {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    li {
        border-top: 1px solid #ffffff66;
        margin-bottom: 1em;

        span {

            opacity: .5;
        }
    }
}
.prebody:has(ul.schedule) {
    height: 100%;
}

/* Old convert experiments */
/*.noteType {
    display: flex;
    border-radius: 4px;
}
.noteType:before {
    width: 40px;
}
.noteType.checked {
    background: linear-gradient(to right, red, blue);
    outline: #00000066;
    outline-style: dashed;
}
.noteType.checked:before {
    font-family: "Font Awesome 6 Free";
    font-weight: bold;
    content: "\f00c";
}
.noteType input[type=button] {

}
.noteType input[type=radio] {
    margin-right: 8px;
}
.noteType form {
    display: inline-block;
}
.noteType .noteTypeData {
    display: flex;
    flex-direction: column;
}*/

/* Umm not sure how to organize */
.tags {

}
.tags span {
    display: inline-block;
    margin: 8px 12px 0 0;
}
.tags span a {
    position: inherit;
    display: inline-block;
    padding: 4px;
    color: white;
}
.tags span a.tag {
    background-color: #8888ff;
    border-radius: 8px 0 0 8px;
}
.tags span a.x {
    background-color: #ff7744;
    border-radius: 0 8px 8px 0;
}

/* Pretty misc */
.snapLine {
    --snapGrad1: #00000088;
    --snapGrad2: transparent;
    --snapGradL: 6%;
    position: absolute;
    z-index: 999999;
    border-image: repeating-linear-gradient(45deg, var(--snapGrad1) 0, var(--snapGrad1) calc(var(--snapGradL) / 2 - 1%), var(--snapGrad2) calc(var(--snapGradL) / 2), var(--snapGrad2) var(--snapGradL)) 100% / 100% repeat;
    animation-name: snap-grad;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes snap-grad {
    0% {border-image: repeating-linear-gradient(45deg, var(--snapGrad1) 0, var(--snapGrad1) calc(var(--snapGradL) / 2 - 1%), var(--snapGrad2) calc(var(--snapGradL) / 2), var(--snapGrad2) var(--snapGradL)) 100% / 100% repeat;}
    50% {border-image: repeating-linear-gradient(45deg, var(--snapGrad2) 0, var(--snapGrad2) calc(var(--snapGradL) / 2 - 1%), var(--snapGrad1) calc(var(--snapGradL) / 2), var(--snapGrad1) var(--snapGradL)) 100% / 100% repeat;}
}

/* Suh random */

.starfield {
    position: relative;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, black 0, #333 100%);
    overflow: hidden;

    --extent: 200px;

    .star {
        position: absolute;
        left: 150px;
        top: 150px;
        animation: star-whoosh 1s ease-in infinite;

        &.speed1 {
            animation-duration: 1s;
        }
        &.speed2 {
            animation-duration: 2s;
        }
        &.speed3 {
            animation-duration: 3s;
        }
        &.speed4 {
            animation-duration: 4s;
        }
        &.light1 {
            background-color: #ffffff44;
        }
        &.light2 {
            background-color: #ffffff88;
        }
        &.light3 {
            background-color: #ffffffaa;
        }
        &.light4 {
            background-color: #ffffffff;
        }
        &.size1 {
            width: 1px;
            height: 1px;
        }
        &.size2 {
            width: 2px;
            height: 2px;
        }
        &.size3 {
            width: 3px;
            height: 3px;
        }
    }
}

.gradient-hover {
    width: 300px;
    height: 300px;

    --colA: #67b6f7;
    --colB: #8951f0;

    background-image: linear-gradient(-45deg, color-mix(in srgb, var(--colA), white 50%) 0%, color-mix(in srgb, var(--colB), white 50%) 100%);

    transition: background-image 1s;

    &:hover {
        background-image: linear-gradient(0deg, var(--colA) 0%, var(--colB) 50%);
    }
}

@keyframes star-whoosh {
    
    0% {transform: translate(0, 0) scaleX(1); opacity: 0;}
    50% {opacity: 1;}
    100% {transform: translate(var(--extent), 0) scaleX(8);}
}

.gradient-maker {

    /* If it was its own thing *
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 1em;
    padding: .5em;
    box-shadow: 4px 4px 0 #00000030;
    z-index: 999999;
    /* */

    width: 600px;
    
    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    ul.gradient-slider {
        position: relative;
        display: flex;
        flex-direction: row;
        height: 50px;
        outline: 2px solid black;
        /*margin-bottom: .5em;*/

        /*background: linear-gradient(90deg, black, blue);*/

        li {
            width: 4px;
            height: 100%;
            background-color: #ffffff66;
            outline: 2px solid #66666666;
            position: absolute;
            cursor: pointer;

            /*transform: translate(-4px, 0);*/
        }
        li.selected {
            background-color: #ffffffaa;
        }
    }

    ul.gradient-colors li {
        width: auto;
    }

    .gradient-slider-background {
        background: repeating-conic-gradient(white 0% 25%, #ccc 0% 50%) 50% / 12px 12px;
    }

    /* (Mostly) Redundant in dialogue-color-chooser */

    .sp-replacer {
        width: 100%;
        border: 0;
        padding: 0;
    }
    .sp-preview {
        width: 99.5%;
        margin: 0;
    }
    .sp-dd {
        display: none;
    }
}

ul.color-swatch {
    display: flex;
    flex-direction: row;
    gap: .25em;

    li {
        width: 1em;
        height: 1em;
        border-radius: 4px;
        cursor: pointer;
    }
}

/* Pretty general stuff */
.onTopOfStuff {
    position: absolute;
    z-index: 99999;
}
.smackDabCenter {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
}
.lowerRight {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 3em;
    color: #00000066;
}
.lowerLeft {
    position: absolute;
    left: 16px;
    bottom: 16px;
    font-size: 2em;
    color: #000000aa;
}

.boundingBox {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    border: 2px dashed #00000066;
    z-index: 999999;
    opacity: 0;
    transition: opacity .5s;
}

/* Is this general? NO */

hr {
    position: absolute;
    width: 80%;
    left: 10%;
}

/* I mean it works but I gotta rename it */
#fontAwesomeTest {
    background-color: #00000060;
    padding: 16px;
    border-radius: 16px;
    color: white;
}
#fontAwesomeTest input[type=text] {
    width: 100%;
    box-sizing: border-box;
    font-size: 2em;
}
#fontAwesomeTest .container {
    font-size: 3em;
}
#fontAwesomeTest a {
    margin: 0 8px;
    /*cursor: pointer;*/
}



/* not a thing */
.headul {
    list-style-type: none;
    display: inline-block;
    margin: 0;
}
.headul li {
    float: left;
}
