body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    align-items: center !important;
    background-color: #f7f8ff;
}

.parent-container {
    display: grid;
    place-items: center;
}

.flex_body_container{
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: auto;
}

.result {
    max-width: 500px;
    padding: 15px;
    justify-content: center;
    border: 2px solid #ccc; /* Optional: adds a border around the result container */
    background-color: #f9f9f9; /* Optional: sets a background color */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow for depth */
    border-radius: 15px; /* Optional: rounds the corners */
    text-align: left;
    margin: auto;
}
@media (max-width: 500px){



}

@media (min-width: 500px){

}


:root{
    --color-blue: #006DFF;
    --color-black: #00000;
}

h1{
    color: var(--color-blue);
    align-items: center;
    margin: auto;
    text-align: center;
    height: auto;
}

.input_form{
    width: 100%;
    max-width: 800px;
    align-items: center;
    margin: auto;
}

input, select, button {
    margin: 10px 0;
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    max-width: 1965px;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 5px;
    cursor: pointer;
}

li:hover {
    background-color: #f0f0f0;
}
.node-name {
    color: blue;
    font-weight: bold;
    text-align: left;
}
.node-name {
    font-weight: bold;
    color: #333;
}
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 5px 0;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

li:last-child {
    border-bottom: none;
}
.node {
    border: 1px solid #ddd;
    margin-top: 3px;
    padding: 10px;
    background-color: #f7f7f7;
    border-radius: 5px;
    position: static;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s, padding 0.3s;
}

.node:hover{
    background-color: #e9e9e9;
    padding: 15px;
}

.zoom-effect {
    position: relative; /* Needed for z-index to work */
    z-index: 1; /* Lower z-index initially */
    transition: transform 0.1s ease-in-out, z-index 0s linear 0.1s; /* z-index changes after transform */
    transform: scale(1); /* Normal size */

}
.zoom-effect:hover {
    z-index: 100; /* Higher z-index to bring it to the front */
    transform: scale(1.10); /* Scale up by 20% */
    transition: transform 0.1s ease-in-out, z-index 0s; /* Immediate z-index change on hover */
    background-color: rgba(157, 218, 255, 0.5);
}


.node:first-child {
    background-color: #e9e9e9; /* Lightest */
}

.node .node {
    background-color: #f0f0f0; /* Medium */
}

.node .node .node {
    background-color: #f7f7f7; /* Darker */
}

.node .node .node .node {
    background-color: #ffffff; /* Darkest */
}

.leaf .node-name {

    margin-right: 5px;

}

.leaf .node-text {
    color: #555;
    text-align: left;
}


.node-text{
    text-align: left;
}

.leaf:hover {
    background-color: #9fb3de;
}

/* Dynamic shading function (if you need more nesting levels) */
.node {
    background-color: rgba(233, 233, 233, 1); /* Base color for level 0 */

}

.node .node {
    background-color: rgba(233, 233, 233, 0.9);
}

.node .node .node {
    background-color: rgba(233, 233, 233, 0.8);
}

.node .node .node .node {
    background-color: rgba(233, 233, 233, 0.7);
}

#downloadBtn {
    background-color: var(--color-blue); /* Green background */
    color: white; /* White text */
    padding: 12px 24px; /* Padding for size */
    border: none; /* No borders */
    border-radius: 5px; /* Rounded corners */
    font-family: Arial, sans-serif; /* Font style */
    font-size: 16px; /* Text size */
    cursor: pointer; /* Cursor indicates it's clickable */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    justify-content: center;
    width: 66%;
}

.centered_button {
    margin: 20px;
    display: flex;
    justify-content: center;
}

#downloadBtn:hover {
    background-color: var(--color-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Adds shadow for depth */
    transform: scale(1.05); /* Slightly enlarges the button */

}
/* Further levels can continue reducing opacity */
.xml {
    white-space: pre; /* Preserve formatting and whitespace */
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
    overflow-x: auto;
    font-family: 'Courier New', monospace; /* Ensures consistent font spacing */
    color: #333;
    max-width: 1500px;
}

.xml-tag {
    color: #228B22; /* Green for XML tags */
}

.xml-attribute {
    color: #0000FF; /* Blue for attribute names */
}

.xml-value {
    color: #A020F0; /* Purple for attribute values */
}

#structuredResult, #rawXmlResult {
    border: 1px solid #ccc;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    overflow: auto;
    text-align: center;
    max-width: 2000px;
}

.results_pane {
    display: flex; /* Full height of the viewport */
    background-image: url('https://findlogovector.com/banco-sabadell-logo-vector-svg/" target="_blank"><img src="https://findlogovector.com/wp-content/uploads/2018/12/banco-sabadell-logo-vector.png');
    background-repeat: repeat;
    width:80%;

}
@media (max-width: 1050px) { /* targeting screens smaller than 768px */
    .results_pane {
        justify-content: center; /* Center items horizontally */
        flex-direction: column; /* Stack children vertically */
        width: 100%; /* Use full width on smaller screens */
    }
    .left-pane{
        margin-right: 0;
        padding: 0;
    }

}

@media (min-width: 1050px)  {
    .left-pane{
        margin-right: 20px;
        padding: 0;
    }
}

.left-pane {
    flex: 1; /* Takes up 1 part of the space */
    border-radius: 15px;
}

.right-pane {
    justify-content: center;
    flex: 2; /* Takes up 2 parts of the space */
    border-radius: 15px;
}

@media (min-width: 500px) {
    .right-pane{padding: 20px;}
    .left-pane{padding: 20px;}
}

@media (max-width: 500px) {
    .right-pane{padding: 0;}
    .left-pane{padding: 0;}
}

#map {
    height: 500px;  /* Adjust the height as needed */
    width: 100%;
    border-radius: 15px; /* Adjust the width to match another container */
    max-width: 1500px;
}
/* Example container to match sizes with */
