// Copyright 2021 James Deery
// Released under the MIT licence, https://opensource.org/licenses/MIT

@use 'common' as *;
@use '../build/font1';
@use '../build/font2';

body {
    font-family: sans-serif;
    background-color: #000;
    color: #eee;
    margin: 0px;
    font-size: 16px;
}

a, a:visited {
    color: $m8;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }

    &:focus {
        outline: 1px solid $m8;
    }
}

kbd {
    font-family: sans-serif;
    background-color: #444;
    color: $m8;
    font-size: 16px;
    margin: 0 2px;
    padding: 2px 5px;
    border-radius: 3px;
}

.hidden {
    display: none;
}

.build {
    color: #888;
}

@import 'form';
@import 'display';
@import 'settings';
@import 'firmware';

#info {
    position: absolute;
    top: 100px;
    left: 100px;
    right: 100px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.75);
    text-align: center;
    line-height: 1.5;

    h1 {
        font-family: $m8-font;
        font-size: 32px;
        margin: 0 0 16px;
    }
}

.error {
    position: absolute;
    top: 100px;
    left: 100px;
    right: 100px;
    border: 3px solid #fff;
    padding: 20px;
    background-color: #a22;
    user-select: text;

    p {
        margin-top: 0;
    }

    p:last-child {
        margin-bottom: 0;
    }
}

#reload {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;

    button {
        border-bottom-width: 0;
    }
}
