/*
Orangeoids: A space shooter game that can run in your browser.
Copyright (C) 2026  Edmund Kuah

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/

body{
    padding: 0px;
    margin: 0px;
    display: flex;
    overflow: hidden;
}

#game{
    background-color: #000411;
    aspect-ratio: 2 / 1;
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 16 / 9);
    max-height: calc(100vw * 9 / 16);
}

#game *{
    pointer-events: none;
}

/*#game::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 10px solid #fff;
    pointer-events: none;
    z-index: 99999999;
}*/

#player{
    width: 0px;
    height: 0px;
    position: relative;
    top: calc(50% - 0px);
    left: calc(50% - 0px);
    transform-origin: center center;
}

#playerImg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(0deg);
    transform-origin: center center;
    width: 4cqw;
    height: auto;
}

#start{
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    pointer-events: all;
    display: none;
}

#loading{
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

#canvas{
    width: 100%;
    height: 100%;
    pointer-events: all;
    cursor: url(./assets/aimer.svg) 16 16, crosshair;
}

#debug {
    height: 100%;
    max-width: 20px;
}