html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
}

#header {
    display: flex;
    align-items: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
}

#logo {
    height: 40px;
    margin-right: 20px;
}

#controls {
    display: flex;
    gap: 10px;
}

#controls button {
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#controls button:hover {
    background-color: #0056b3;
}

#header-text {
    margin-left: auto;
    text-align: center;
    font-size: 2vw; /* Use viewport width units for responsive font size */
    white-space: nowrap;
    flex-grow: 1;
}
#load-button {
    margin-left: auto;
    text-align: right;
    font-size: 2vw; /* Use viewport width units for responsive font size */
    white-space: nowrap;
    flex-grow: 1;
}
#main-content {
    display: flex;
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
}

#network-simulation {
    flex-grow: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#node-info {
    width: 15%;
    min-width: 300px;
    max-width: 500px;
    background-color: #fff;
    border-left: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#node-info h2 {
    margin-top: 0;
}

#node-data {
    margin-bottom: 10px;
    flex-grow: 1;
}

#node-info button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

#node-info button:hover {
    background-color: #0056b3;
}

#footer {
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Additional adjustments for very small screens */
@media (max-width: 600px) {
    #header-text {
        font-size: 3vw; /* Adjust font size for smaller screens */
    }
}
