body {
    font-family: 'Roboto', sans-serif;
    margin:0;
    padding:0;
    background:#f0f0f0;
}

header {
    text-align: center;
    padding: 15px;
    background:#A1C2BD;
    color:#000;;
    border-bottom:1px solid #000000;
}

header a {
    display:block;
    margin-top:5px;
    color:#000;
    text-decoration:none;
}

.container {
    display:flex;
    height: 80vh;
}

.left-panel {
    width: 40%;
    padding: 20px;
    box-sizing: border-box;
    background:#fafafa;
    border-right:1px solid #ccc;
    overflow: scroll;
}

.left-panel input, .left-panel button {
    margin:10px 0;
    padding:8px;
    width:90%;
    font-size:1rem;
    box-sizing:border-box;
    cursor:pointer;
}

.left-panel button {
    width:45%;
    margin-right:5px;
}

#current-array {
    background:#fff;
    padding:10px;
    border:1px solid #ccc;
    min-height:50px;
    font-family: monospace;
    white-space: pre-wrap;
}

.right-panel {
    width: 60%;
    padding:20px;
    box-sizing:border-box;
    display:flex;
    flex-direction: column;
    align-items:center;
    overflow-y:auto;
    background:#fff;
    position: relative;
}

#tree-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.tree-node {
    position: absolute;
    width:40px;
    height:40px;
    border-radius:50%;
    background-color:#000;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: all 0.3s ease;
}

.tree-node.active {
    background-color:#2196F3;
}

.tree-node.visited {
    background-color:#f44336;
}

.tree-line {
    position: absolute;
    width: 2px;
    background: #555;
    transform-origin: top left;
}


.document{
    width: 100%;
    margin-top: 10px;
    height: 20%;
}

.pseudo-code{
    height: fit-content;
    padding: 10px;
    box-shadow: 2px 2px 20px #4CAF50;
    border-radius: 20px;
}

.btn{
    border: none;
    border-radius: 20px;
    height: 80px;
    background-color: #97c1e4;
    font-weight: 700;
    display: inline;
}

.btn:hover{
    border: 2px solid #2196F3;
    background: transparent;
    color: #2196F3;
    font-weight: 700;
    transform: scale(0.9);
    box-shadow:2px 2px 10px #2196F3;
}

.input-feild{
    border-radius: 12px;
}
