/* global box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* make body take full window and remove margins */
body {
    margin: 0;
    background: black;
}

canvas {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    background: url("assets/background.jpg") center center / cover no-repeat;
}

/* screen themes */
body.dark {
    background: black;
    color: #0ff;
}
body.light {
    background: #eee;
    color: #000;
}

/* start menu overlay */
#startMenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    color: #0ff;
    font-family: sans-serif;
    z-index: 10;
}

#startMenu h1 {
    font-size: clamp(24px, 6vw, 48px);
    margin-bottom: 20px;
}

#startMenu button {
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    padding: 10px 20px;
    margin: 5px;
    font-size: clamp(14px, 3vw, 18px);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

#startMenu button:hover {
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 10px #0ff;
}

/* light-theme overrides */
body.light #startMenu {
    background: rgba(255,255,255,0.9);
    color: #000;
}
body.light #startMenu button {
    border-color: #000;
    color: #000;
}
body.light #startMenu button:hover {
    background: rgba(0,0,0,0.1);
    box-shadow: 0 0 10px #000;
}

/* storage view styling */
#storageView {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    color: #0ff;
    font-family: monospace;
    font-size: 14px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #0ff;
}
body.light #storageView {
    background: rgba(255,255,255,0.9);
    color: #000;
    border-color: #000;
}
