body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#stage-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#scratch-stage {
    width: 640px;
    height: 480px;
    background-color: #000;
    cursor: default;
    border: 2px solid #333;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

#top-left {
    pointer-events: auto;
}

#fps-display {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

#controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

#footer {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: box-shadow 0.2s, background-color 0.2s;
    outline: none;
}

button:hover {
    background-color: #444;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

button:active {
    background-color: #555;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

#run-btn {
    font-size: 24px;
    padding: 10px 30px;
    color: #57ff57;
}

#stop-btn {
    font-size: 24px;
    padding: 10px 30px;
    color: #ff5757;
}

#import-sb3 {
    font-size: 14px;
}

@media (max-width: 700px) {
    #scratch-stage {
        width: 480px;
        height: 360px;
    }
}
