body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--ff-sans);
}

#main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

a {
    color: var(--pinker);
}
a:hover {
    color: var(--pink);
}
a:visited {
    color: var(--pinker);
}
p {
    margin-top: .5em;
    margin-bottom: .5em;
}

.installButton {
    color: #eee;
    border: 1px solid #beb;
    margin: .25em;
    cursor: pointer;
}

#startStart {
    display: flex;
    flex-flow: column nowrap;
}
#startStartMain {
    flex: 1.2 1 5em;
}
#startStartBlurb {
    font-family: var(--ff-serif);
}
.install {
    float: right;
}

#startStartMain > h1 {
    flex: 0 .05 auto;
}
#startStartMainFoot {
    width: 85%;
}
.secretButton {
    background:none!important;
    color: var(--pinker);
    border:none; 
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
#startStartGallery {
    flex: 1 1 3em;
    max-height: 62%;
}
#startGalleryMessage {
    color: var(--green);
}
#startGalleryThumbs {
    overflow-y: auto;
}
#startGalleryThumbs > * {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3em, 1fr));
    grid-gap: .5em;
    grid-auto-flow: dense;
    list-style: none;
    margin: 1em auto;
}
#startGalleryThumbs > * > * {
    position: relative;
}
#startGalleryThumbs > * > * > * {
    border: none;
}
#startGalleryThumbs > * > * > * > * {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
#startGalleryMore {
    position: absolute;
    bottom: .25em;
    right: 1.5em;
    padding: .62em;
    background: rgba(51,51,51,.8);
}

#homebtn {
    background: var(--bg);
}
#homebtn img {
    height: .8em;
}
#homebtn a, #homebtn a:visited {
    color: var(--fg);
    text-decoration: none;
}
  
#startOptionsDlg {
    width: 80vw;
    max-width: 40em;
}
#startOptionsDlg > * {
    flex: 0 0 auto;
}
#startOptionsDlg > div > input {
    flex: 1 1 auto;
}
#startOptionsDlg > div > span {
    flex: 0 0 auto;
}
#startOptionsDlg > label {
    font-size: 75%;
    padding-left: 1em;
}

span.codedirection { unicode-bidi:bidi-override; direction: rtl; }

@media (max-height: 17rem) {
  #actualBody {
    font-size: 75%;
  }
}

#popback {
    position: fixed;
    top: .25em;
    left: .25em;
    font-size: 144%;
}

.rcPopback {
    font-size: 120%;
    margin-right: .5em;
}

div#homebtnF {
    position: absolute;
    bottom: .5em;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom .5s;
}
#homebtnF.snapping {
    bottom: 3em;
}
#homebtnF a, #homebtnF a:visited {
    text-decoration: none;
}

.ftop-autohides {
    transition: opacity .33s;
}

.ftop-autohide {
    opacity: 0.01;
}

#snapper {
    position: fixed;
    bottom: -2em;
    left: 0;
    right: 0;
    height: 2em;
    background: var(--fg);
    opacity: .4;
    transition: bottom .5s;
}
#snapper.snapping {
    bottom: 0;
}
#snapBtn {
    color: var(--orange);
}

#about {
    z-index: 1000;
    border: 2px solid white;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0%;
    background: #000;
    opacity: 0.8;
    color: #fff;
    overflow-y: auto;
    transition: top .5s;
    top: -150%;
}
#aboutContent {
    padding: 2em;
    padding-top: 1em;
}
#closebtn {
    position: absolute;
    top: 1em;
    right: 1em;
}

#setupHires {
    height: 10em;
}

#viewfinder {
    height: 0px;
    width: 0px;
    border: 1px solid black;
    position: fixed;
    bottom: 5vh;
    right: 8vw;
    transition: width .5s, height .5s;
}
#viewfinder > img {
    opacity: .4;
}                             

#rhs {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
}

.btn_fullscreen {
    width: 1.8em;
    height: 1.8em;
}
.btn_fs_arrow {
    fill: var(--bg);
}
.btn_fs_bg {
    fill: var(--fg);
}

.startHidden {
    display: none;
    visibility: hidden;
}

#pointerPick {
    background: var(--black50);
    position: fixed;
    top: 0;
    right: 2.5em;
}

.juliaPanel {
    font-family: var(--ff-mono);
    opacity: .99;
    background: var(--black50);
    position: fixed;
    top: 2.1em;
    width: 18em;
    border: 1px solid var(--gray);
}
#adm {
    height: 18em;
}
.admRecAB {
    background: var(--yellow);
}

#admNotes {
    min-height: 6em;
    flex: 1 1 auto;
}

#setup, #algo {
    height: 14em;
}
#algoPictureButtons {
    width: 100%;
}
.panelPicked {
    background: var(--yellow);
}


#links {
    height: 14em;
}
.linkItem {
    margin: .1em;
    text-decoration: underline;
    cursor: pointer;
    position: relative;
    min-width: 5em;
    min-height: 5em;
}
.linkItem > img {
    width: 5em;
}

.speedDialSetting > div {
    color: var(--pink);
    font-weight: 900;
    animation-duration: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-name: linkSetBounce;
}
@keyframes linkSetBounce {
    from {
        font-size: 90%;
    }
    two {
        font-size: 170%;
    }
    three {
        font-size: 190%;
    }
    to {
        font-size: 220%;
    }
}


.bounceBtn {
    transition: all .5s;
}
.bounceBtn:focus {
    height: 0;
}

.ghostbar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2em;
    background: var(--black50);
}

.inputLine {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row nowrap;
}
.inputLine > input {
    min-width: 3em;
    flex: 1 1 auto;
}

.inputLines {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
}
.inputLinesCol {
    position: relative;
}
.inputLines input {
    width: 40%;
}

#paintKeep {
    color: var(--green);
}
#paintKeep:disabled {
    color: gray;
}

#algoRC {
    margin-top: 2em;
}

#paletteCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2em;
    visibility: hidden;
}

.paletteStops {
    position: relative;
}
.paletteStops > canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
.paletteStops > svg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
.paletteStopHandle {
    stroke-width: 6;
    fill: var(--black00);
}

#paletteStopsImage {
    width: 7em;
    height: 7em;
    flex: 0 0 auto;
    position: relative;
}
#paletteStopsBtns {
    margin-top: .5em;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}
#paletteStopsBtns > button {
    border-radius: .3em;
    font-weight: 900;
    background: #ddd;
    color: #000;
}
#paletteSliders {
    flex: 1 1 auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: space-after;
}
#paletteButtons {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    padding-right: .5em;
}
#palettePresets, .rcPaletteFavs {
    overflow-y: scroll;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
}
.palettePreset {
    flex: 0 0 auto;
    margin: .25em;
    border: .1em solid #999;
}
.palettePreset > img {
    width: 2.5em;
    height: 2.5em;
}
.paletteSel {
    border: .2em solid #35f;
    margin: .15em;
}
.palettePin {
    border: 1px solid #999;
}
.rcPalettePinned {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5em;
    height: 1.5em;
    background: var(--black50);
    color: var(--yellow);
}

.rcPaletteBtn {
    position: relative;
    flex: 1 1 auto;
    min-width: 1em;
    width: 1em;
    overflow: hidden;
}

.rcPaletteBtn > canvas {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5000px;
}

.rcPaletteEditor {
    width: 20em;
    height: 16em;
    max-width: 90vw;
    max-height: 80vh;
    font-family: var(--ff-mono);
    opacity: .99;
    background: var(--black50);
    color: white;
}

.rcPresetsDlg {
    width: 30em;
    max-width: 90vw;
    height: 24em;
    max-height: 80vh;
    overflow-y: auto;
}

.rcPresetsDlg > div {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.rcPresetsDlg > div > * {
    margin: .2em;
}

#setupRC {
    margin-top: .5em;
    margin-bottom: .25em;
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: space-around;
}
#setupRC input {
    width: 4em;
    text-align: center;
}
#setupRC button {
    font-weight: bold;
}


#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: space-around;
}
#loading > h2 {
    flex: 0 0 auto;
}
#loadMiddle {
    flex: 0 0 auto;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
}
#loadBottom {
    flex: 0 0 auto;
}
#loadProgBox {
    text-align: center;
    background: #999;
    color: #000;
    padding: .5em;
}
#loadProgBar {
    background: #ccf;
    height: 2em;
    width: 0;
}
#contentment {
    color: #aaa;
}
#noPromises {
    display: none;
    color: #f33;
}


#billboard {
    position: fixed;
    left: 50%;
    top: 50%;
    max-width: 25em;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 6vh;
    line-height: 1.5;
    border: .2em solid white;
    padding: 1.3em;
    background: var(--black80);
    animation-name: bbBounce;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes bbBounce {
    0% {
        font-size: .06vh;
        opacity: 0.01;
    }
    10% {
        font-size: 6vh;
        opacity: 0.5;
    }
    20% {
        opacity: 1.0;
    }
    30% {
        opacity: 0.5;
    }
    40% {
        opacity: 1.0;
    }
    50% {
        opacity: 0.5;
    }
    60% {
        opacity: 1.0;
    }
    70% {
        opacity: 0.5;
    }
    80% {
        opacity: 1.0;
    }
    90% {
        opacity: 0.5;
        font-size: 6vh;
    }
    100% {
        opacity: 0.01;
        font-size: .06vh;
    }
}


#caSeeds {
    flex: 0 0 auto;
}
#caSeeds > div {
    display: inline-block;
    font-size: 120%;
}


#status {
    flex: 1 1 1em;
}
.offline {
    background: #900;
}
.online {
    background: #090;
}
.rtc {
    background: #066;
}
.noTilt {
    background: #999;
}


#vidLocalView {
    width: auto;
    height: auto;
    max-height: 100%;
}

.rcMicHdr > input {
    width: 8em;
}

.rcMicMeter > div {
    width: 1.5em;
    height: .5em;
    margin: .5em;
}
.rcBounceMeter > div {
    background: var(--green);
}
.rcLoMeter > div {
    background: var(--sky);
}
.rcHiMeter > div {
    background: var(--orange);
}

.rcMicDisconnect {
    color: var(--red);
}

.rcMicSliderLbl {
    color: var(--maroon);
}
.rcMicMenuLbl {
    color: var(--purple);
}

.rcjuliapreview {
    width: 90vw;
    height: 80vh;
}

.rcjuliapreviewframe {
    background: var(--light);
}

.rcjuliapreviewccw {
    opacity: 0.9;
    border-radius: 50%;
    background: #900;
    color: #fff;
    position: absolute;
    top: .25em;
    left: .25em;
}

.rcjuliapreviewcw {
    opacity: 0.9;
    border-radius: 50%;
    background: #900;
    color: #fff;
    position: absolute;
    top: .25em;
    right: .25em;
}

.rcjulialinks {
    width: 4em;
}

.inputLine .range2 {
    flex: 1 1 auto;
    min-width: 10em;
}

.searchResults {
    min-height: 5em;
    max-height: 40vh;
    max-width: 90vw;
}

@media (min-aspect-ratio: 4/3) {
    #startStart {
        flex-flow: row nowrap;
    }
    #startStartGallery {
        max-height: inherit;
    }
}


#info {
    position: absolute;
    top: 0;
    font-size: 75%;
}
