JSFiddle - React, Tailwind, and code Playground

by dledle2

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kid Coder Adventure!</title>
    <style>
        body {
            font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            background-color: #f0f8ff;
            margin: 0;
            padding: 20px;
            color: #333;
        }

        .container {
            display: flex;
            width: 95%;
            max-width: 1200px;
            gap: 20px;
            background-color: #fff;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        .instructions, .toolbox, .program-area, .stage-area {
            padding: 15px;
            border-radius: 10px;
        }
        
        .instructions {
            background-color: #e6f7ff;
            border: 1px solid #91d5ff;
            width: 100%;
            margin-bottom: 20px;
        }
        .instructions h2 { color: #096dd9; }

        .toolbox {
            width: 25%;
            background-color: #fffbe6;
            border: 1px solid #ffe58f;
        }
        .toolbox h3 { color: #d48806;}

        .program-area {
            width: 35%;
            background-color: #f6ffed;
            border: 1px solid #b7eb8f;
            min-height: 300px;
            position: relative;
        }
        .program-area h3 { color: #389e0d;}


        .stage-area {
            width: 40%;
            background-color: #e6f7ff;
            border: 1px solid #91d5ff;
            position: relative;
            min-height: 300px; /* Ensure stage has height */
            overflow: hidden; /* Keep robot inside */
        }
        .stage-area h3 { color: #096dd9;}

        .block {
            background-color: #4CAF50;
            color: white;
           ...