body {
    margin: 0;
    height: 100vh;
}

main {
    display: flex;
    width: 100%;
}



body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

nav {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}

#sidebar {
    width: 30%;
    /* padding: 10px;
    background: #f0f0f0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); */
}

#sidebar {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* margin: 80px 20px 20px 20px; */
    /* Adjust margin to account for fixed nav */
    padding: 20px;
    /* max-width: 300px; */
    height: max-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
    /* Adjust margin to account for fixed nav */
    margin-bottom: 20px;
}

#sidebar h2 {
    color: #4CAF50;
}

#sidebar label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#sidebar input[type="number"],
#sidebar input[type="range"] {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#sidebar input[type="checkbox"] {
    margin-top: 10px;
}

#sidebar button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

#sidebar button:hover {
    background-color: #45a049;
}

#viewer {
    /* margin: 80px 20px 20px 20px; */
    /* Adjust margin to account for fixed nav */
    /* padding: 20px; */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#viewer {
    /* height: 100%; */
    /* width: 70%; */
    width: 100%;
    display: none;
}

#model_visible {
    height: 40px;
}

#download {
    text-align: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#download:hover {
    background-color: #45a049;
}

.hilightBtn {
    text-align: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease; 
}
.hilightBtn:hover {
    background-color: #45a049;
}
.hilightBtn:disabled {
    background-color: #ccc;
    color: #666;
}

footer {
    width: 100%;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    #sidebar,
    #viewer {
        width: 100%;
        margin: 20px 0;
    }

    #sidebar {
        margin-top: 80px;
        /* Adjust margin to account for fixed nav */
    }
}

/* input[type="range"] {
    float: right;
}
input[type="number"] {
    float: right;
} */
/* label {
    display: block;
    float: left;
} */