html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}
.container-fluid {
    height: auto; /* Let it grow if needed */
    overflow-y: auto;
}

a.logo{
    text-decoration: none;
    font-size: 1.4em;
    display: inline-block;
    padding: 0.3em 0.4em 0.4em 0.4em;
    border: #209CEE 2px solid;
    color: #209CEE;
    border-radius: 0.4em;
    box-shadow: 0 0 0.2em #209CEE;
}


.panel {  
    overflow-y: auto;
}
.panel-heading {
    background-color: #343a40;
    color: white;
}
.panel-body {
    padding: 15px;
}

#threeContainer {
   height: 100vh;  /* Full viewport height */
   cursor: move; /* Change cursor to indicate interaction */
}

#threeContainer {
    position: relative;
    z-index: 99;
}

#threeContainer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}


.btn {
    border-radius: 1em;
    padding: 0.2em 0.8em;
    box-shadow: 0 2px 5px #adadad;
}
    .btn-xs {
        box-shadow: none;
        border: none;
    }
    .btn-xs:focus{
        border: none;
    }

#modelUrl {
    border-radius: 1em 0 0 1em;
    box-shadow: 0 2px 5px #adadad;
}

.model-select{
    font-size: 1.2em;
}
    .model-select label{
        font-weight: 500;
        color: #2f2f2f;
    }

#modelSelect {
    border-radius: 1em;
    padding: 0em 0.6em;
    border: 1px solid #ddd;
}

/* If mobile portrait make the canvas fixed at bottom of screen */
@media (max-width: 768px) and (orientation: portrait) {
    #threeContainer {
        position: fixed;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        height: 50vh; /* Adjust as needed */
        box-shadow: 0px 2px 7px 1px rgba(94,94,94,0.5);
        -webkit-box-shadow: 0px 2px 7px 1px rgba(94,94,94,0.5);
        -moz-box-shadow: 0px 2px 7px 1px rgba(94,94,94,0.5);
    }
    /* Make extra room at bottom of page for hidden content behind canvas to scroll into view */
    .panel {
        padding-top: 50vh; /* Same as canvas height */
    }
}
/* if width < 1080 reduce font size of the panel body */
@media (max-width: 1080px) {
    .panel-body {
        font-size: 0.7em; /* Reduce font size */
        padding: 2em 0; /* Reduce padding */
    }
    .model-select{
        font-size: 1.5em;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.5em;
    }
    h4 {
        font-size: 1.25em;
    }
}
   


.note{
    font-size: 0.8em;
    color: #6c757d;
}
.note a {
    color: #007bff;
    text-decoration: none;
}

.clear {
    clear: both;
}
