body {
    color: #d0d0d0;
    font-family: "Gill Sans", Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-align: left;
    background-color: #020202;
    margin: 0px;
    overflow: hidden;
    user-select: none;
}

.small {
    font-size: 12px;
}

#container {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    touch-action: none;
}

#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    font-family: Jura, "Gill Sans", Helvetica, sans-serif;
    text-align: center;
}

#loading-content {
    height: 95%;
}

#prompt {
    height: 100%;
    position: relative;
}

#prompt #splash img {
    margin-top: 10px;
    height: 70%;
    max-width: 100%;
    align-content: center;
    object-fit: cover;
}

#prompt #control {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#prompt #playstore {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, -100%);
}
#prompt #playstore img {
    width: 161px;
    max-width: 100%;
}
@media (display-mode: fullscreen) {
    #playstore {
        display: none; /* Hide app store links in app/PWA fullscreen mode */
    }
}

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

#info {
    display: none;
    position: fixed;
    bottom: 0px;
    left: 0px;
    padding: 8px;
    text-align: center;
    font-family: Jura, "Noto Sans", Myriad, Helvetica, Arial, "DejaVu Sans", sans-serif;
    font-size: 10pt;
    opacity: 0.8;
    pointer-events: none;
}

#info th {
    padding-bottom: 0.4em;
    color: #fff;
    font-size: 1.3em;
    font-weight: bold;
}
#info td {
    padding: 2px 4px;
}

#info .metric {
    text-align: center;
}
#info .value {
    text-align: center;
}
#info .unit {
    text-align: left;
}

#info img, #info svg {
    height: 2em;
    max-width: 3em;
    vertical-align: baseline;
    opacity: 0.9;
}
#info #moons img, #info #moons svg {
    height: 1.6em;
}

.abs_value {
    color: #eee;
}
.rel_value {
    color: #aaa;
}

h3 {
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: 600;
}
h4 {
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-weight: 500;
}

p {
    margin-top: 10px;
    margin-bottom: 10px;
}

a.email {
    color: #48f;
}
.graytext {
    color: #888;
}


a {
    color: #ffffff;
    outline: none;
    text-decoration: none;
}

a:hover, a:focus {
    color: #ffffff;
}

.progress {
    display: inline-block;
    font-size: 18px;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 6px 70px;
    line-height: 1;
    overflow: hidden;
    position: relative;
    border-style: solid;
    border-width: 1px;
    border-color: #ffffff;
    border-radius: 15px;
    background-color: #00000050;
    transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    -o-transition: box-shadow 0.5s;
    -webkit-transition: box-shadow 0.5s;
}

.progress:hover, .progress:focus {
    box-shadow: 0px 0px 30px #ffffffaa;
    transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    -o-transition: box-shadow 0.5s;
    -webkit-transition: box-shadow 0.5s;
}

.progress.in-progress,
.progress.finished {
    color: transparent !important;
}

.progress.in-progress:after,
.progress.finished:after {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    padding-top: inherit;
    color: #ffffff !important;
    left: 0;
}

/*	If the .in-progress class is set on the button, show the
	contents of the data-loading attribute on the butotn */

.progress.in-progress:after {
    content: attr(data-loading);
}

/* The same goes for the .finished class */

.progress.finished:after {
    content: attr(data-finished);
}

/* The colorful bar that grows depending on the progress */

.progress .tz-bar {
    background-color: #7a7a7a !important;
    height: 3px;
    bottom: 0;
    left: 0;
    width: 0;
    position: absolute;
    z-index: 1;
    border-radius: 0 0 2px 2px;

    -webkit-transition: width 0.5s, height 0.5s;
    -moz-transition: width 0.5s, height 0.5s;
    transition: width 0.5s, height 0.5s;
}

/* The bar can be either horizontal, or vertical */

.progress .tz-bar.background-horizontal {
    height: 100%;
    border-radius: 2px;
}

.progress .tz-bar.background-vertical {
    height: 0;
    top: 0;
    width: 100%;
    border-radius: 2px;
}

/*----------------------------
	Color themes
-----------------------------*/

.progress.red {
    background-color: #e6537d;
    background-image: -webkit-linear-gradient(top, #e6537d, #df5179);
    background-image: -moz-linear-gradient(top, #e6537d, #df5179);
    background-image: linear-gradient(top, #e6537d, #df5179);
}

.progress.red .tz-bar {
    background-color: #6876b4;
}

.progress.green {
    background-color: #64c896;
    background-image: -webkit-linear-gradient(top, #64c896, #5fbd8e);
    background-image: -moz-linear-gradient(top, #64c896, #5fbd8e);
    background-image: linear-gradient(top, #64c896, #5fbd8e);
}

.progress.green .tz-bar {
    background-color: #9e81d6;
}

#fullscreen {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 100;
}
#fullscreen img {
    width: 1.3em;
    height: 1.3em;
    margin: 1em;
    cursor: pointer;
}
@media (display-mode: fullscreen) {
    #fullscreen {
        display: none; /* Hide fullscreen toggle in app/PWA fullscreen mode */
    }
}

#about.modal {
    max-width: 50em;
    background: #222;
    font-size: 12pt;
}
#restarting.modal {
    background: #222;
    font-size: 18pt;
    font-weight: 500;
    line-height: 5em;
    text-align: center;
}
#help {
    position: fixed;
    top: 0px;
    right: 0px;
}
#help img {
    width: 1.3em;
    height: 1.3em;
    margin: 1em;
}

/* Lil GUI */

.lil-gui {
    --width: 208px !important;
    --background-color: #20202040 !important;
    --title-background-color: #30303040 !important;
    --widget-color: #40404060 !important;
    --slider-input-min-width: 36px !important;
    --folder-indent: 4px !important;
}
.lil-gui.autoPlace {
    top: 0px !important;
    right: 8px !important;
}
.lil-gui.root>.title {
    background: none !important;
    text-align: center !important;
}
.lil-gui.root>.title:before {
    content: "";
    display: none;
}
.lil-gui button {
    border: none !important;
}

/* jQuery Modal */

.jquery-modal {
    z-index: 2001 !important;
}

/* Content page */

.content {
    margin: 3em;
    max-width: 40em;
    height: 100vh;
}
