body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background-color: #f5f5f5;
        }
        .card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .tree-node {
            margin-left: 20px;
            margin-top: 10px;
        }
        .node-content {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 5px;
        }
        .node-children {
            border-left: 2px solid #e0e0e0;
            margin-left: 90px;
            padding-left: 30px;
            position: relative;
        }
        .child-node {
            position: relative;
            margin-top: 10px;
        }
        .child-node-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
        }
        .answer-field {
            background-color: #e8f4ff;
            border: 1px solid #cce4ff;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 0.9em;
            min-width: 40px;
            width: auto;
        }
        .branch-line {
            position: absolute;
            left: -32px;
            top: 50%;
            width: 32px;
            height: 2px;
            background-color: #e0e0e0;
        }
        input, select {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .main-input {
            width: 300px;
        }
        button {
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            background-color: #f0f0f0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
        }
        button:hover {
            background-color: #e0e0e0;
        }
        .toggle-btn {
            padding: 0;
        }
        .condition-node {
            background-color: #fff3e6;
            padding: 8px;
            border-radius: 4px;
        }
        .decision-node {
            background-color: #e6ffe6;
            padding: 8px;
            border-radius: 4px;
        }
        .footer {
            margin-top: 20px;
            text-align: right;
        }
        .reset-btn {
            background-color: #ff4444;
            color: white;
        }
        .reset-btn:hover {
            background-color: #cc0000;
        }
        .popup-menu {
            position: absolute;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 8px 0;
            z-index: 1000;
        }
        .popup-menu-item {
            padding: 8px 16px;
            cursor: pointer;
        }
        .popup-menu-item:hover {
            background-color: #f0f0f0;
        }
.view-btn {
    background-color: #4CAF50;
    color: white;
    margin-right: 10px;
}
.view-btn:hover {
    background-color: #45a049;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
}
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    height: 80%;
    position: relative;
}
.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}
canvas {
    border: 1px solid #ddd;
    background-color: white;
}
.text-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.text-view {
    white-space: pre;
    font-family: monospace;
    line-height: 1.5;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
}

.copy-btn {
    background-color: #4CAF50;
    color: white;
    margin-top: 10px;
}

.copy-btn:hover {
    background-color: #45a049;
}
.style-controls {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.style-controls select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.view-btn {
    background-color: #4CAF50;
    color: white;
}

.view-btn:hover {
    background-color: #45a049;
}
.text-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.text-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.text-controls select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.text-view {
    white-space: pre;
    line-height: 1.5;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 15px;
}