#spaceship-container {
    background: radial-gradient(#000015, #000);
    font-family: 'Orbitron', sans-serif;
    color: lime;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding-top: 50px; */
    /* position: relative; */
}

.spaceship {
    display: grid;
    grid-template-columns: .5fr 3fr .5fr;
    grid-template-rows: .5fr 3fr .5fr;
    gap: 10px;
    width: 100vw;
    height: 90vh;
    max-height: 100dvh;
    padding: 10px;
    /* padding-bottom: 20px; */
    box-sizing: border-box;
    margin-top: 50px;
}

.console-btn {
    background-color: #111;
    color: lime;
    border: 2px solid lime;
    padding: 1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 lime, 0 6px 10px rgba(0, 0, 0, 0.3);
    
}

.console-btn.disabled {
    color: #444;
    cursor: not-allowed;
    pointer-events: none;
    text-shadow: none;
    background-color: #222;
    opacity: 0.5;
    transition: none;
    box-shadow: none;
    border: 2x solid #222;
}

.console-display {
    background-color: #111;
    color: lime;
    border: 2px solid lime;
    padding: 1em;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-btn:hover {
    background-color: lime;
    color: black;
    box-shadow: 0 5px 0 #080, 0 7px 14px rgba(0, 255, 0, 0.3);
}

.console-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #060, 0 3px 8px rgba(0, 255, 0, 0.2);
}

#screen {
    background-color: #0a0a0a;
    border: 4px inset lime;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1em;
}

#healthBar {
    width: 100%;
    height: 100%;
    background-color: #4caf50;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.shake {
    animation: shake 0.5s;
    animation-timing-function: ease-in-out;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@media (max-width: 1024px) {
    html, body {
        margin: 0;
        padding: 0;
        overflow: hidden; /* Prevent scrollbars */
        height: 100%;
    }

   

    #spaceship-container {
        height: 100dvh;
        /* padding-top: 50px; */
        box-sizing: border-box;
    }

    .spaceship {
        display: grid;
        grid-template-columns: 1fr 2.25fr 1fr;
        grid-template-rows: .5fr .45fr 1.5fr .45fr .45fr;

        gap: 10px;
        width: 100vw;
        height: 90%;
        max-height: 100%;
        /* padding-bottom: 20px; */
        box-sizing: border-box;
    }

    #screen {
        grid-column: 1 / -1;
        grid-row: 3;
        max-height: 100%;
        overflow: auto;
        box-sizing: border-box;
        padding: 1em;
    }

    #timerDisplay {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #scoreDisplay {
        grid-column: 2 / 3;
        grid-row: 1;
    }

    #startBtn {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    #healthBarContainer {
        grid-column: 2 / 3;
        grid-row: 5;
    }

    #logsBtn {
        grid-column: 1 / 2;
        grid-row: 5;
    }

    #restartBtn {
        grid-column: 3 / 4;
        grid-row: 5;
    }

    #exitBtn {
        grid-column: 3 / 4;
        grid-row: 1;
    }

    /* .console-btn, .console-display {
        font-size: 0.9rem;
        padding: 0.75em;
    }*/

}