body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #f8f9fa;
}

h1 {
    text-align: center;
    font-size: 30px;
}
.desc {
    font-weight: bold;
}

hr {
    width: 90%;
    border: 1px solid #ccc;
    margin: 20px 0;
}

#mindmap {
    width: 98%;
    height: 700px;
    border: 1px solid #ccc;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ccc;
    z-index: 20;
}

#toolbar button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#toolbar button:hover {
    background-color: #0056b3;
}

.node {
    position: absolute;
    padding: 10px;
    background-color: #fffbcc;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Ensure nodes are above the connections */
    touch-action: none; /* Disable default touch actions */
}

#connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5; /* Ensure connections are below the nodes */
    pointer-events: none;
}
