* {
    padding: 0;
    margin: 0;
}

body {
    background-color: gray;
    color: black;
}

#background {
    display: flex;
    position: relative;
    width: 100vw;
    height: calc(100vh - 2 * 1.6em);
    overflow: hidden;
}

header,
footer {
    position: relative;
    z-index: 16384;

    display: flex;
    height: 1.6em;
    width: 100vw;

    background-color: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 5);
}

/* Menu items styles */

@keyframes movemenu {
    0% {
        transform-origin: left top;
        transform: scaleY(0)
    }

    100% {
        transform-origin: left top;
        transform: scaleY(1);
    }
}

#menuframe,
#statusframe {
    display: flex;
    flex-direction: row;
    margin-left: .5em;
    margin-right: .5em;
    font-family: "Open Sans", sans-serif;
    font-size: 1em;
    font-weight: 500;
    margin-top: auto;
    /* Vertical center */
    margin-bottom: auto;
    user-select: none;
}

#menuearthframe,
#menuconfigframe,
#menuviewframe,
#menuaboutframe {
    position: relative;
}

#earthbox,
#configbox,
#viewbox,
#aboutbox {
    display: none;
    position: absolute;
    top: 1.5em;
    left: 0;
    width: 300px;
    background-color: #BBB;
    border: #BBB 2px solid;
    border: 1px solid black;
    padding: 10px;
    z-index: 1;
}

/* Box shadow on top, left, and bottom sides */
.menushadow {
    box-shadow:
        -10px 0px 10px -10px rgba(0, 0, 0, 0.5),
        /* Left shadow */
        10px 0px 10px -10px rgba(0, 0, 0, 0.5),
        /* Right shadow */
        0px 10px 10px -10px rgba(0, 0, 0, 0.5);
    /* Bottom shadow */
}

.menuitem {
    padding-left: .3em;
    padding-right: .3em;
}

.menuitem::first-letter {
    font-weight: 700;
}

.menuitem:hover {
    background-color: #666;
    color: #FFF;
}

.menuitem i {
    padding-right: .3em;
}

.menuseparator {
    border: 1px solid gray;
    height: 0px;
    margin-top: .3em;
    margin-bottom: .3em;
}

/* Window decoration */

.windowbar {
    display: flex;
    background-color: white;
    border-bottom: 1px solid black;
    padding: 0 1px;
    height: 23px;
    width: calc(100% - 2px);
    user-select: none;
    position: relative;
    z-index: -1;
}

.windowbarstart {
    margin-top: 1px;
    margin-left: 2px;
    width: 10px;
}

.windowbarcube {
    width: 17px;
    height: 17px;
    margin: 2px 3px;
    border: 1px solid black;
    box-shadow: 1px 1px gray;
}

.windowbarclose {
    position: relative;
    width: 17px;
    height: 17px;
    border: 1px solid black;
    box-shadow: 1px 1px gray;
    margin: 2px 2px 2px 3px;
}

.windowbarclose:before,
.windowbarclose:after {
    position: absolute;
    content: '';
    width: 90%;
    height: 0px;
    border: 1px solid black;
    left: 0px;
    top: calc(50% - 1px);
}

.windowbarclose:hover {
    background-color: gray;
}

.windowbarclose:before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

.windowbarclose:after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.windowtitleframe {
    padding: 0 1px;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    width: 50%;
}

.windowbarend {
    margin-top: 1px;
    width: inherit;
}

.windowtitle {
    margin: 0 3px;
    white-space: nowrap;
    width: fit-content;
    font-family: "Open Sans", sans-serif;
    font-size: 1em;
    font-weight: 500;
}

.windowbardecoration {
    border-top: 1px solid black;
    border-bottom: 1px solid grey;
    margin: 2px 0;
}

/* Default window frame decoration */

.windowframe {
    position: absolute;
    background-color: darkgray;
    border: 1px solid black;
    box-shadow: 0 0 30px rgba(0, 0, 0, 5);
    overflow: hidden;
}

/* Default static window frame decoration */

.staticwindowframe {
    position: absolute;
    background-color: darkgray;
    border: 6px solid black;
}

.staticwindowframe:before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    z-index: -1;
    border: 2px solid white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 5);
}

/* A button style with old school style */
button {
    font-family: "Open Sans", sans-serif;
    font-size: 1em;
    font-weight: 500;
    border: 2px solid black;
    padding: 5px 15px;
    border-radius: 50vh;
    margin: 5px;
}

button:hover {
    background-color: darkgray;
}

/* Used to hide HTML resources used in windows */

.hiddenResources {
    display: none;
}

/* About the earth system css */

.boxed {
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
}

.title {
    font-size: 1.2em;
    font-weight: 700;
    color: black;
}

.text {
    font-size: 1em;
    font-weight: 500;
    color: black;
}

.paragraph {
    font-size: 1em;
    font-weight: 500;
    color: black;
    margin: .5em 0;
}

.paragraph::first-letter {
    font-weight: 700;
    margin-left: 0.8em;
    margin-right: 0.06em;
}

.error {
    font-size: 1.2em;
    font-weight: 500;
    color: crimson
}

/* Static Window container with bottom buttons */
.marginflexcontainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    position: relative;
    overflow: hidden;
}

.top {
    text-align: left;
}

.bottom {
    text-align: center;
}

/* Standard Window container */
.margincontainer {
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 1.5em - 11px);
    position: relative;
    overflow: hidden;
}

/* Calculator CSS */

.calclcd {
    width: 80%;
    height: 30px;
    border: 2px solid black;
    border-radius: 4px;
    margin: 8px auto;
    padding: 10px;
    text-align: right;
    font-size: 2em;
    background-color: lightgreen;
    color: darkgreen;
    overflow: hidden;
}

.calckeypad {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

.shortbuttonline {
    display: flex;
}

.lastline {
    display: flex;
    flex-direction: column;
}

.smallbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 4px;
    background-color: gray;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 2em;
    margin: 5px;
    user-select: none;
}

.smallbutton:hover {
    background-color: darkgray;
}

.bigbuttonh {
    width: 112px;
}

.bigbuttonv {
    height: 112px;
}
