/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

html {
    color-scheme: dark;
    /* font-size: 16px; */
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overscroll-behavior-x: none;
    --goodTrans: cubic-bezier(0, 0, .2, 1);
    --blurButton: blur(3px);
    --blurScreen: blur(20px);
    --hoverButtonShadows: inset 0 0.08rem 0.15rem 0 rgb(0 0 0 / 70%), 0 -0.08rem 0.15rem 0 rgb(0 0 0 / 70%), 0 0.1rem 0.2rem 0 rgb(255 255 255 / 40%);
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    text-align: center;
    background-color: black;
    font-family: Bariol Regular, sans-serif;
    color: white;
    overscroll-behavior-x: none;
}

/* --- end icons --- */

a {
    color: white;
    text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#imageStore {
    position: fixed;
    bottom: 0;
    left: 0;
    opacity: 0;
    height: 50vh;
    width: 30vw;
    background-color: pink;
    overflow-x: visible;
    z-index: 99999;
    pointer-events: none;
}

#imageStore div {
    position: relative;
    height: 25vh;
    width: 30vw;
}

#imageStore div:first-child {
    background-color: blue;
}

#imageStore div:last-child {
    background-color: yellow;
}

#imageStore img {
    position: absolute;
    top: 0;
    left: 0;
}

#bgHolder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    -webkit-transition-property: background-image, background-size, -webkit-transform;
    transition-property: background-image, background-size, -webkit-transform;
    -o-transition-property: background-image, transform, background-size;
    transition-property: background-image, transform, background-size;
    transition-property: background-image, transform, background-size, -webkit-transform;
    -webkit-transition-duration: 0.6s;
    -o-transition-duration: 0.6s;
    transition-duration: 0.6s;
    -webkit-transition-timing-function: var(--goodTrans);
    -o-transition-timing-function: var(--goodTrans);
    transition-timing-function: var(--goodTrans);
    overflow: hidden;
}

#bg {
    z-index: 1;
    background-repeat: no-repeat;
    -webkit-transition-property: background-image, background-size, background-color, -webkit-transform, -webkit-backdrop-filter;
    transition-property: background-image, background-size, background-color, -webkit-transform, -webkit-backdrop-filter;
    -o-transition-property: background-image, transform, background-size, background-color, backdrop-filter;
    transition-property: background-image, transform, background-size, background-color, backdrop-filter;
    transition-property: background-image, transform, background-size, background-color, backdrop-filter, -webkit-transform, -webkit-backdrop-filter;
    background-color: var(--bg);
}

#bg.blur {
    background-color: var(--bg-blur);
    -webkit-backdrop-filter: blur(1.5rem);
    backdrop-filter: blur(1.5rem);
}

#bgBack {
    z-index: 0;
    background-color: black;
    -webkit-transition-property: background-image, background-size;
    -o-transition-property: background-image, background-size;
    transition-property: background-image, background-size;
    background-size: 100% 100%;
    /* transform: scale(1.2); */
}

.bg {
    background-size: cover;
    background-position: center;
    -webkit-transition-duration: 0.6s;
    -o-transition-duration: 0.6s;
    transition-duration: 0.6s;
    -webkit-transition-timing-function: var(--goodTrans);
    -o-transition-timing-function: var(--goodTrans);
    transition-timing-function: var(--goodTrans);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bgExpand {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1)
}

#bgImg {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 900;
    -webkit-box-shadow: 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0);
    box-shadow: 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0);
}



.hoverButtonHolder {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: fixed;
    z-index: 980;
    -webkit-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hoverButton {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    font-size: 2rem;
    padding-top: 0.82rem;
    border-radius: 2rem;
    overflow: hidden;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0px 0.08rem 0.2rem rgb(0 0 0 / 40%), 0 0 1px rgb(0 0 0 / 100%);
    -webkit-transition-duration: 0.7s;
    -o-transition-duration: 0.7s;
    transition-duration: 0.7s;
    -webkit-transition-property: background-color, color, text-shadow, opacity, background-filter, -webkit-box-shadow;
    transition-property: background-color, color, text-shadow, opacity, background-filter, -webkit-box-shadow;
    -o-transition-property: background-color, box-shadow, color, text-shadow, opacity, background-filter;
    transition-property: background-color, box-shadow, color, text-shadow, opacity, background-filter;
    transition-property: background-color, box-shadow, color, text-shadow, opacity, background-filter, -webkit-box-shadow;
    opacity: 0.4;
    height: 3.5rem;
    width: 3.5rem;
    background-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hoverButton.blur {
    -webkit-backdrop-filter: var(--blurButton);
    backdrop-filter: var(--blurButton);
}

.noShadow {
    text-shadow: 0 0 0.3rem rgb(0 0 0 / 0%), 0 0 1px rgb(0 0 0 / 100%);
}

.hoverButtonOpacity {
    opacity: 0;
    pointer-events: none;
}

.hoverButtonHolder:hover .hoverButton,
.hoverButtonHolder:hover #nextButton,
.hoverButtonOpen {
    -webkit-box-shadow: var(--hoverButtonShadows);
    box-shadow: var(--hoverButtonShadows);
    opacity: 1;
    background-color: var(--hoverButtonBg);
}

.hoverButtonHolder:hover .hoverButton,
.hoverButtonHolder:hover #nextButton {
    color: rgba(255, 255, 255, 0.8);
}

.hoverButtonOpen {
    color: rgba(255, 255, 255, 0.7);
    -webkit-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-property: background-color, color, text-shadow, -webkit-box-shadow;
    transition-property: background-color, color, text-shadow, -webkit-box-shadow;
    -o-transition-property: background-color, box-shadow, color, text-shadow;
    transition-property: background-color, box-shadow, color, text-shadow;
    transition-property: background-color, box-shadow, color, text-shadow, -webkit-box-shadow;
}

.hoverButtonOpen:hover {
    color: rgba(255, 255, 255, 0.95);
}

#infoButton {
    left: 0.3rem;
    top: 0.3rem;
    -webkit-transform-origin: left top;
    -ms-transform-origin: left top;
    transform-origin: left top;
}

#infoButtonHolder {
    left: 0;
    top: 0;
    min-width: 13rem;
    min-height: 10rem;
}

#nextButton {
    right: 0.3rem;
    top: 0.3rem;
    -webkit-transform-origin: right top;
    -ms-transform-origin: right top;
    transform-origin: right top;
}

#nextButtonHolder {
    right: 0;
    top: 0;
    min-width: 20rem;
    min-height: 10rem;
}

#settingsButton {
    right: 0.3rem;
    bottom: 0.3rem;
    -webkit-transform-origin: right top;
    -ms-transform-origin: right top;
    transform-origin: right top;
}

#settingsButtonHolder {
    right: 0;
    bottom: 0;
    min-width: 13rem;
    min-height: 10rem;
    -webkit-transition: opacity 350ms var(--goodTrans) 150ms;
    -o-transition: opacity 350ms var(--goodTrans) 150ms;
    transition: opacity 350ms var(--goodTrans) 150ms;
}

#settingsButtonHolder.infoShowing,
#infoButtonHolder.infoShowing,
#nextButtonHolder.infoShowing {
    opacity: 0;
    pointer-events: none;
}

/* --- date input --- */

.hoverButtonHolder:hover #dateEntry {
    opacity: 0.6;
    -webkit-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
    -webkit-transition-duration: 0.7s;
    -o-transition-duration: 0.7s;
    transition-duration: 0.7s;
}

.hoverButtonHolder:hover #dateEntry:focus,
.hoverButtonHolder:hover #dateEntry:hover,
#dateEntry:focus {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
}

#dateEntry.blink,
#dateEntry.blink:hover,
#dateEntry.blink:focus,
.hoverButtonHolder:hover #dateEntry:focus.blink,
.hoverButtonHolder:hover #dateEntry:hover.blink .hoverButtonHolder:hover #dateEntry.blink {
    -webkit-transition-duration: 200ms;
    -o-transition-duration: 200ms;
    transition-duration: 200ms;
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    color: transparent;
    text-shadow: 0 0 transparent;
}

#dateEntry.invalid {
    -webkit-transition-duration: 0s;
    -o-transition-duration: 0s;
    transition-duration: 0s;
    background-color: rgba(210, 45, 45, 0.4)
}

#dateEntry {
    position: absolute;
    right: 4.2rem;
    top: 0.4rem;
    width: 8em;
    font-family: 'Bariol Regular';
    color: rgba(255, 255, 255, 0.95);
    background-color: var(--hoverButtonBg);
    text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: var(--hoverButtonShadows);
    box-shadow: var(--hoverButtonShadows);
    ;
    opacity: 0;
    font-size: 1.2rem;
    border-radius: 1rem;
    padding: 0.1rem 0.5rem;
    border-style: none;
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: background-color, opacity, color, text-shadow;
    -o-transition-property: background-color, opacity, color, text-shadow;
    transition-property: background-color, opacity, color, text-shadow;
}

#dateEntry.blur {
    -webkit-backdrop-filter: var(--blurButton);
    backdrop-filter: var(--blurButton);
}

#dateEntry::-moz-selection {
    background-color: rgba(96, 96, 96);
    color: white;
}

#dateEntry::selection,
#dateEntry::-moz-selection {
    background-color: rgba(96, 96, 96);
    color: white;
}


/* --- history buttons ---  */

.historyButton {
    position: absolute;
    border-radius: 1.2rem;
    padding-top: 0.45rem;
    top: 2.3rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: var(--glassBg);
    text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 25%), 0 0.15rem 0.4rem 0 rgb(0 0 0 / 30%), 0 0 1px 0 rgb(0 0 0 / 100%);
    box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 25%), 0 0.15rem 0.4rem 0 rgb(0 0 0 / 30%), 0 0 1px 0 rgb(0 0 0 / 100%);
    width: 2rem;
    height: 2rem;
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    opacity: 0;
    -webkit-transition-property: background-color, opacity, color;
    -o-transition-property: background-color, opacity, color;
    transition-property: background-color, opacity, color;
    -webkit-transition-duration: 0.7s;
    -o-transition-duration: 0.7s;
    transition-duration: 0.7s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.historyButton.blur {
    -webkit-backdrop-filter: var(--blurButton);
    backdrop-filter: var(--blurButton);
    background-color: var(--glassBg-blur);
}

.hoverButtonHolder:hover .buttonActive {
    opacity: 1;
    -webkit-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
}

.hoverButtonHolder:hover .buttonActive:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.hoverButtonHolder:hover .buttonActive:active {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    top: 2.4em;
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.hoverButtonHolder:hover .buttonDisabled {
    opacity: 0.4;
    -webkit-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
    -webkit-transition-duration: 0.7s;
    -o-transition-duration: 0.7s;
    transition-duration: 0.7s;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.4);
}

#historyBack {
    right: 6.5rem;
}

#historyForward {
    right: 4rem;
}


/* --- spinner --- */

.spinner {
    opacity: 1;
    color: rgba(255, 255, 255, 0);
    text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0), 0 0 1px rgba(0, 0, 0, 0);
}

@-webkit-keyframes spinner {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spinner2 {
    to {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

@keyframes spinner2 {
    to {
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

.spinner:before,
.spinner:after {
    content: '';
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 3%;
    left: 3%;
    width: 94%;
    height: 94%;
    border-radius: 50%;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
    border-right: 0.1rem solid transparent;
}

.spinner:before {
    border-top: 0.1rem solid rgba(175, 175, 175, 0.5);
    -webkit-animation: spinner 1s linear infinite;
    animation: spinner 1s linear infinite;
}

.spinner:after {
    border-bottom: 0.1rem solid rgba(75, 75, 75, 0.5);
    -webkit-animation: spinner2 0.7s linear infinite;
    animation: spinner2 0.7s linear infinite;
}







#info-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition-property: opacity, background-color;
    -o-transition-property: opacity, background-color;
    transition-property: opacity, background-color;
    -webkit-transition: opacity 350ms var(--goodTrans) 150ms, background-color 350ms var(--goodTrans);
    -o-transition: opacity 350ms var(--goodTrans) 150ms, background-color 350ms var(--goodTrans);
    transition: opacity 350ms var(--goodTrans) 150ms, background-color 350ms var(--goodTrans);
    overflow-y: auto;
    overflow-x: hidden;
}

#info-screen.screenHidden {
    opacity: 0;
    pointer-events: none;
}

#setting-screen,
#info-screen {
    background-color: var(--glassBg);
    z-index: 300;
    text-shadow: 0px 0.1em 0.15em rgb(0 0 0 / 100%), 0 0 2px rgb(0 0 0 / 100%);
    color: var(--glassColor);

}

#setting-screen.blur,
#info-screen.blur {
    background-color: var(--glassBg-blur);
    -webkit-backdrop-filter: var(--blurScreen);
    backdrop-filter: var(--blurScreen);
}


/* --- info screen stuff --- */

#info-area {
    position: relative;
    margin: 4rem calc(4rem + 5vw);
    text-shadow: 0px 0.15rem 0.2rem rgb(0 0 0 / 100%), 0 0 2px rgb(0 0 0 / 100%);
    -webkit-transition: opacity 300ms var(--goodTrans);
    -o-transition: opacity 300ms var(--goodTrans);
    transition: opacity 300ms var(--goodTrans);
}

#apodTitle {
    font-size: 3em;
}

#copyrightLink {
    font-size: 1.3em;
}

#apodCredit {
    font-size: 1.5em;
}

#apodDate {
    font-size: 2em;
}

#apodDescription {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    text-align: left;
    font-size: 1.7em;
    padding: 1rem 0;
    text-indent: 1rem;
}

#apodLinks {
    font-size: 1.3em;
    font-style: italic;
    color: var(--glassColor);
}

#apodLinks a {
    color: var(--glassColor);
    -webkit-transition: color 150ms;
    -o-transition: color 150ms;
    transition: color 150ms;
}

#apodLinks a:hover {
    color: rgba(200, 200, 200, 0.9);
}


/* --- toast ---  */

#toast {
    position: fixed;
    z-index: 999;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    font-size: 1.3rem;
    padding: 0.3rem 1.5rem;
    color: var(--glassColor);
    background-color: var(--glassBg);
    text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 15%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 15%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    border-radius: 1rem;
    -webkit-transition-property: top, background-color, -webkit-transform;
    transition-property: top, background-color, -webkit-transform;
    -o-transition-property: top, transform, background-color;
    transition-property: top, transform, background-color;
    transition-property: top, transform, background-color, -webkit-transform;
    -webkit-transition-timing-function: var(--goodTrans);
    -o-transition-timing-function: var(--goodTrans);
    transition-timing-function: var(--goodTrans);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    top: 102%;
}

#toast.blur {
    -webkit-backdrop-filter: var(--blurScreen);
    backdrop-filter: var(--blurScreen);
    background-color: var(--glassBg-blur);
}

#toast.up {
    top: 95%;
    -webkit-transform: translate(-50%, -100%);
    -ms-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);
    -webkit-transition-duration: 300ms;
    -o-transition-duration: 300ms;
    transition-duration: 300ms;
}

#toast.down {
    -webkit-transition-duration: 300ms;
    -o-transition-duration: 300ms;
    transition-duration: 300ms;
}

#setting-screen {
    position: fixed;
    display: -ms-grid;
    display: grid;
    text-align: center;
    top: 100%;
    right: 50%;
    font-size: 1.5rem;
    padding: 2em;
    -webkit-transform: translate(50%, 0);
    -ms-transform: translate(50%, 0);
    transform: translate(50%, 0);
    /* padding: 2rem 4em; */
    color: var(--glassColor);
    -webkit-box-shadow: inset 0 0.05rem 0.1em 0 rgb(255 255 255 / 15%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    box-shadow: inset 0 0.05rem 0.1em 0 rgb(255 255 255 / 15%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    border-radius: 1em;
    -webkit-transition-property: top, background-color, color, -webkit-transform, -webkit-backdrop-filter;
    transition-property: top, background-color, color, -webkit-transform, -webkit-backdrop-filter;
    -o-transition-property: top, transform, backdrop-filter, background-color, color;
    transition-property: top, transform, backdrop-filter, background-color, color;
    transition-property: top, transform, backdrop-filter, background-color, color, -webkit-transform, -webkit-backdrop-filter;
    -webkit-transition-timing-function: var(--goodTrans);
    -o-transition-timing-function: var(--goodTrans);
    transition-timing-function: var(--goodTrans);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr); */
    grid-auto-columns: 1fr;
    -ms-grid-rows: auto 1em auto 1em 1fr 1em 1fr 1em 1fr;
    grid-template-rows: auto auto 1fr 1fr 1fr;

    grid-column-gap: 1.5em;
    grid-row-gap: 1em;
}


#setting-screen:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-area: 1 / 1 / 2 / 2;
}

#setting-screen:nth-child(2) {
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-area: 2 / 1 / 3 / 2;
}

#setting-screen:nth-child(3) {
    -ms-grid-row: 3;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-area: 3 / 1 / 4 / 2;
}

#setting-screen:nth-child(4) {
    -ms-grid-row: 4;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-area: 4 / 1 / 5 / 2;
}

#setting-screen:nth-child(5) {
    -ms-grid-row: 5;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-area: 5 / 1 / 6 / 2;
}

/* #setting-screen:nth-child(6) {
    grid-area: 6 / 1 / 7 / 2;
} */


#setting-screen.up {
    top: 50%;
    -webkit-transform: translate(50%, -50%);
    -ms-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
    -webkit-transition-duration: 400ms;
    -o-transition-duration: 400ms;
    transition-duration: 400ms;
}

#setting-screen.down {
    -webkit-transition-duration: 400ms;
    -o-transition-duration: 400ms;
    transition-duration: 400ms;
}






label div {
    position: relative;
}

label {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: auto 0.5em auto;
    grid-template-columns: auto auto;
    gap: 0.5em;
    text-align: left;
}


/* 
label.checkbox {
    margin-bottom: 0.2em
} */

#scaling-label {
    -ms-grid-columns: 4em auto;
    grid-template-columns: 4em auto;
}



#themeIcon {
    font-size: 1.6em;
    padding-top: 0.25em;
}


label span {
    text-align: right;
}

.rangeHolder {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1.2em 0.7em auto;
    grid-template-columns: 1.2em auto;
    gap: 0.7em;
    padding-top: 0.2em;
}

.rangeHolder div {
    font-size: 1.2em;
    padding-top: 0.35em;
}




#cacheSizeIcon {
    padding-top: 0.3em;
}

input[type="range"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    font-size: 1rem;
    margin: 0.5em;
    height: 2.2em;
    width: 20em;
    padding: 1px;
    background-color: var(--hoverButtonBg);
    color: var(--glassColor);
    border-radius: 2em;
    -webkit-transition: background-color 200ms var(--goodTrans);
    -o-transition: background-color 200ms var(--goodTrans);
    transition: background-color 200ms var(--goodTrans);
    /* text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4); */
    -webkit-box-shadow: var(--hoverButtonShadows);
    box-shadow: var(--hoverButtonShadows);
    ;

}

input[type="range"]:hover {
    background-color: rgba(96, 96, 96, 0.4);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 4em;
    height: 2.2em;
    border-radius: 3em;
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 95%), inset 0 -0.07rem 0.12rem 0 rgb(0 0 0 / 65%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 95%), inset 0 -0.07rem 0.12rem 0 rgb(0 0 0 / 65%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background-color: rgba(255, 255, 255, 0.75);
}



input[type="checkbox"] {
    position: absolute;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 2.2rem;
    right: 0;
    height: 1em;
    width: 2.5em;
    padding: 1px;
    background-color: var(--hoverButtonBg);
    border-radius: 2em;
    /* text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4); */
    -webkit-box-shadow: var(--hoverButtonShadows);
    box-shadow: var(--hoverButtonShadows);
    ;
    -webkit-transition-property: background-color, -webkit-transform;
    ;
    transition-property: background-color, -webkit-transform;
    ;
    -o-transition-property: transform, background-color;
    ;
    transition-property: transform, background-color;
    ;
    transition-property: transform, background-color, -webkit-transform;
    -webkit-transition-duration: 200ms;
    -o-transition-duration: 200ms;
    transition-duration: 200ms;
    -webkit-transition-timing-function: var(--goodTrans);
    -o-transition-timing-function: var(--goodTrans);
    transition-timing-function: var(--goodTrans);
    place-content: center;
    cursor: pointer;
    margin: 0;
}

input[type="checkbox"]::before {
    position: absolute;
    left: 1px;
    top: 1px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: rgba(100, 100, 100, 0.4);
    -webkit-box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 95%), inset 0 -0.07rem 0.12rem 0 rgb(0 0 0 / 65%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    box-shadow: inset 0 0.05rem 0.1rem 0 rgb(255 255 255 / 95%), inset 0 -0.07rem 0.12rem 0 rgb(0 0 0 / 65%), 0 0.15rem 0.6rem 0 rgb(0 0 0 / 60%), 0 0 1px rgb(0 0 0 / 100%);
    cursor: pointer;
    content: "";
    -webkit-transition-property: background-color, -webkit-transform;
    transition-property: background-color, -webkit-transform;
    -o-transition-property: transform, background-color;
    transition-property: transform, background-color;
    transition-property: transform, background-color, -webkit-transform;
    -webkit-transition-duration: 200ms;
    -o-transition-duration: 200ms;
    transition-duration: 200ms;
    -webkit-transition-timing-function: var(--goodTrans);
    -o-transition-timing-function: var(--goodTrans);
    transition-timing-function: var(--goodTrans);
}

input[type="checkbox"]:checked::before {
    -webkit-transform: translateX(1.5em);
    -ms-transform: translateX(1.5em);
    transform: translateX(1.5m);
    background-color: rgba(255, 255, 255, 0.8);
}

input[type="checkbox"]:checked::before:hover {
    background-color: rgba(255, 255, 255, 1);
}

input[type="checkbox"]::before:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

input[type="checkbox"]:checked {
    background-color: rgba(96, 96, 96, 0.4);
}

#testDiv {
    display: inline-block;
    height: 2em;
    width: 2em;
    background-color: yellow;
}


#backGestureIcon {
    background-color: transparent;
}

.gestureButton {
    position: absolute;
    font-size: 1.5rem;
    top: 50%;
    width: 2em;
    height: 2em;
    border-radius: 1em;
    padding-top: 0.5em;
    color: rgba(255, 255, 255, 0.8);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: var(--glassBg);
    text-shadow: 0px 0.3vmin 0.5vmin rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 0.07em 0.13em 0 rgb(255 255 255 / 50%), inset 0 -0.1em 0.2em 0 rgb(0 0 0 / 50%), 0 0.2em 0.4em 0 rgb(0 0 0 / 50%), 0 0 1px 0 rgb(0 0 0 / 100%);
    box-shadow: inset 0 0.07em 0.13em 0 rgb(255 255 255 / 50%), inset 0 -0.1em 0.2em 0 rgb(0 0 0 / 50%), 0 0.2em 0.4em 0 rgb(0 0 0 / 50%), 0 0 1px 0 rgb(0 0 0 / 100%);
    -webkit-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
    opacity: 1;
    -webkit-transition-property: background-color, opacity, color, font-size, right, -webkit-transform;
    transition-property: background-color, opacity, color, font-size, right, -webkit-transform;
    -o-transition-property: background-color, opacity, color, transform, font-size, right;
    transition-property: background-color, opacity, color, transform, font-size, right;
    transition-property: background-color, opacity, color, transform, font-size, right, -webkit-transform;
    -webkit-transition-duration: 0s;
    -o-transition-duration: 0s;
    transition-duration: 0s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 999;

}

#backGestureButton {
    right: calc(100% + 0.7em);
}

#forwardGestureButton {
    left: calc(100% + 0.7em);
}

.gestureButton.blur {
    -webkit-backdrop-filter: var(--blurButton);
    backdrop-filter: var(--blurButton);
    background-color: var(--glassBg-blur);
}

.gestureButton.activate {
    -webkit-transition-delay: 400ms;
    -o-transition-delay: 400ms;
    transition-delay: 400ms;
    -webkit-transition-duration: 300ms;
    -o-transition-duration: 300ms;
    transition-duration: 300ms;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#backGestureButton.return {
    -webkit-transition-delay: 0ms;
    -o-transition-delay: 0ms;
    transition-delay: 0ms;
    -webkit-transition-duration: 300ms;
    -o-transition-duration: 300ms;
    transition-duration: 300ms;
}






/* #settingsGhost {

    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    z-index: 999;
    height: 40em;
    width: 31em;
    background-color: pink;
} */





@media screen and (max-aspect-ratio: 5/8) and (max-width: 515px) {
    #setting-screen {
        font-size: 1.3rem;
        padding: 0.7em
    }

    #info-screen {
        font-size: 0.7rem;
    }

    #info-area {
        margin: 4rem 2rem;
    }

    input[type="range"] {
        height: 1.6rem;
        width: 60vw;
    }

    input[type="range"]::-webkit-slider-thumb {
        height: 1.6rem;
    }

    input[type="checkbox"] {
        font-size: 1.6rem;
    }

}


@media screen and (min-aspect-ratio: 3/2) {
    #setting-screen {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        -ms-grid-rows: auto 1fr 1fr;
        grid-template-rows: auto 1fr 1fr;
    }

    #setting-screen>*:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    #setting-screen>*:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }

    #setting-screen>*:nth-child(3) {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }

    #setting-screen>*:nth-child(4) {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
    }

    #setting-screen>*:nth-child(5) {
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }

    #setting-screen>*:nth-child(6) {
        -ms-grid-row: 3;
        -ms-grid-column: 2;
    }


    #setting-screen:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;
        grid-area: 1 / 1 / 2 / 2;
    }

    #setting-screen:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        -ms-grid-column: 2;
        -ms-grid-column-span: 1;
        grid-area: 1 / 2 / 2 / 3;
    }

    #setting-screen:nth-child(3) {
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;
        grid-area: 2 / 1 / 3 / 2;
    }

    #setting-screen:nth-child(4) {
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        -ms-grid-column: 2;
        -ms-grid-column-span: 1;
        grid-area: 2 / 2 / 3 / 3;
    }

    #setting-screen:nth-child(5) {
        -ms-grid-row: 3;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;
        grid-area: 3 / 1 / 4 / 2;
    }

    #setting-screen:nth-child(6) {
        -ms-grid-row: 3;
        -ms-grid-row-span: 1;
        -ms-grid-column: 2;
        -ms-grid-column-span: 1;
        grid-area: 3 / 2 / 4 / 3;
    }



    @media screen and (min-aspect-ratio: 8/5) and (max-height: 420px) {
        #setting-screen {
            font-size: 1.3rem;
            padding: 1.3em
        }

        #info-screen {
            font-size: 0.7rem;
        }

        #info-area {
            margin: 2rem;
        }

        input[type="range"]::-webkit-slider-thumb,
        input[type="range"] {
            height: 1.6rem;
        }


        input[type="checkbox"] {
            font-size: 1.6rem;
        }

    }

    @media screen and (max-width: 925px) {
        input[type="range"] {
            width: 27vw;
        }
    }
}