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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.demo-container {
    position: relative;
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

#canvas {
    display: block;
    background: white;
}

.controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.btn:hover {
    background: #0088ff;
}

.btn:active {
    background: #0055aa;
}

.instructions {
    max-width: 800px;
    background: #222;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #555;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #0ff;
    font-size: 1.3em;
}

.instructions p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.instructions ul {
    list-style: none;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.instructions li::before {
    content: "•";
    color: #0ff;
    position: absolute;
    left: 0;
}

.instructions strong {
    color: #ff0;
}

.controls-hint {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #aaa;
}

@media (max-width: 900px) {
    body {
        padding: 10px;
    }

    #canvas {
        width: 100%;
        height: auto;
        max-width: 800px;
    }
}

@media (max-width: 600px) {
    .demo-container {
        width: 100%;
    }

    .instructions {
        padding: 15px;
        font-size: 0.95em;
    }
}
