@import url("./windows.css");
@import url("./debug.css");
@import url("./calculator.css");
@import url("./about.css");

/*Reset CSS */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

@font-face {
    font-family: "Roboto";
    src: url(../font/Roboto-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: "Open Sans";
    src: url(../font/OpenSans-VariableFont_wdth\,wght.ttf);
}

* {
    font-family: roboto sans-serif;
}

/* Screen background */

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 {
    cursor: pointer;
    background-color: #666;
    color: #FFF;
}

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

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

/* Applications manager css */

.applications-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;

    >div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .applications-icon {
        padding: 2px;
        background-color: #DDD;
        border: 2px solid #333;
        border-radius: 5px;
        gap: 10px;

        img {
            width: 75px;
            height: 75px;
            object-fit: contain;
        }
    }

    .applications-icon:hover {
        cursor: pointer;
        background-color: #BBB;
    }

    .applications-name {
        font-size: 1rem;
        font-weight: 600;
        color: black;
    }
}

/* Use to hide HTML resources that could be shown at a later time */

.hiddenResources {
    display: none;
}