* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-image: url("../img/portada9.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.container {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    padding: 15px;
    background-color: yellow;
    font-family: 'Georama', sans-serif;
    color: black;
    border-radius: 15px;
    border: 3px solid black;
    cursor: pointer;
    font-size: 1.1rem;
}

button:hover {
    background-color: black;
    color: white;
    border: 3px solid white;
}

canvas {
    /* Tamaño interno intacto: 900x600 */
    width: 900px;
    height: 600px;

    /* transform se aplica desde scale.js — sin variables CSS */
    transform-origin: center center;

    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    box-shadow:
            0 0 0 2px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(0, 0, 0, 0.8);

    display: block;
    image-rendering: auto;
}

.noShow {
    display: none !important;
}

#gameover {
    background-image: url("../img/GAMEOVER1.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 350px;
    height: 200px;
}

#gameover div {
    color: white;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#gameover h2 {
    margin-bottom: 30px;
}