*{
    margin: 0;
    padding: 0;
    user-select: none;
}

body, html{
    height: 100%;
}

body{
    background-color: #7abde4;
    width: 100%;
    background-image: url('../assets/web/web-bg.png');
    background-size: cover;
    overflow: hidden;
}

#table{
    display: table;
}

#cell{
    display: table-cell;
    vertical-align: middle
}

#canvas-container{
    margin: auto;
    outline: 1px solid white;
    position: relative;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.25);
}

#table{
    width: 100%;
    height: 100%;
}

#canvas-container canvas{
    display: block;
    width: 100%;
    height: 100%;
}

@font-face {
    font-family: SquarePixel;
    src: url("../assets/fonts/square_pixel-7.ttf");
}

@font-face {
    font-family: Gameplay;
    src: url("../assets/fonts/Gameplay.ttf");
}

*:-webkit-full-screen #canvas-container {
    outline: none;
}

*:-moz-full-screen #canvas-container {
    outline: none;
}

*:-ms-fullscreen #canvas-container {
    outline: none;
}

*:fullscreen #canvas-container {
    outline: none;
}

#html-additions {
    position: absolute;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
}

#keyboard-instructions {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    padding: 5px;
    padding-left: 50px;
    color: white;
    text-shadow: 0px 2px 0px black;
    visibility: hidden;
}

#keyboard-instructions li {
    list-style-type: none;
}

#keyboard-instructions .key {
    font-size: 70%;
}

#keyboard-instructions .action {
    font-family: SquarePixel;
    font-size: 90%;
    margin-left: 2px;
}

#input-form {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    visibility: hidden;
    display: table;
}

#input-form-inner {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

#input-form label {
    display: block;
    color: white;
    font-family: SquarePixel;
    text-align: center;
    text-shadow: 0px 2px 0px black;
}

#input-form input {
    width: 80%;
    margin: auto;
    margin-top: 20px;
    display: block;
    font-size: 200%;
    background-color: white;
    text-align: center;
    border: none;
    border-radius: 12px;
    padding: 6px;
}
