body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100vh;
    margin: 0;
    padding: 0 20px; 
    background-color: #0d0d0d;
    flex-wrap: wrap; 
    align-items: center; 
}

#left-div, #center-div, #right-div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; 
    flex: 1 1 300px; 
}

#center-div {
    flex-direction: column;
    min-width: 300px;
}

#top-canvas {
    margin-bottom: 20px; 
    max-width: 100%;
}

canvas {
    background: #000;
    border: 2px solid #00ffcc;
    max-width: 100%;
    height: auto;
}

#command {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #00ffcc;
    border-radius: 6px;
    background: #111;
    color: #fff;
    outline: none;
}

@media screen and (max-width: 768px) {
    body {
        flex-direction: column; 
        align-items: center; 
        justify-content: flex-start;
        padding: 10px;
        height: auto;
    }

    #left-div, #center-div, #right-div {
        flex: 1 1 100%;
    }
}
