/*
 * EndBASIC
 * Copyright 2020 Julio Merino
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.  You may obtain a copy
 * of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

@font-face {
    font-family: "IBM Plex Mono";
    src: local('IBM Plex Mono'),
        url('/ibm-plex-6.0.0/IBMPlexMono-Regular-Latin1.woff2') format('woff2'),
        url('/ibm-plex-6.0.0/IBMPlexMono-Regular-Latin1.woff') format('woff');
}

@font-face {
    font-family: "IBM Plex Sans";
    src: local('IBM Plex Sans'),
        url('/ibm-plex-6.0.0/IBMPlexSans-Regular-Latin1.woff2') format('woff2'),
        url('/ibm-plex-6.0.0/IBMPlexSans-Regular-Latin1.woff') format('woff');
}

html, body {
    height: 100%;
    margin: 0;
    width: 100%;
    overflow: hidden;

    background: black;
}

#terminal {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
}

#controls {
    position: fixed;
    top: 20pt;
    right: 20pt;
    z-index: 100;

    opacity: 50%;
    visibility: hidden;

    display: grid;
    gap: 10px 10px;
}

#controls button {
    background: transparent;
    border-style: solid;
    border-color: white;
    color: white;
    font-size: 18px;
    padding: 5pt 10pt 5pt 10pt;
}

#controls #button-esc {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
}

#controls #button-up {
    grid-column-start: 2;
    grid-row-start: 2;
}

#controls #button-down {
    grid-column-start: 2;
    grid-row-start: 3;
}

#controls #button-left {
    grid-column-start: 1;
    grid-row-start: 3;
}

#controls #button-right {
    grid-column-start: 3;
    grid-row-start: 3;
}

#mobile-input {
    opacity: 0;
    filter: alpha(opacity=0);
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30pt;

    background-color: #c50;
    color: white;
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol";
    font-size: 10pt;

    padding-right: 10pt;
    padding-left: 10pt;

    display: flex;
    align-items: center;
    justify-content: left;
}

footer a {
    color: white;
}
