body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #111111;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

#info {
    color: #ffffff;
    padding: 0 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    grid-column: 2;


    /* Tighter, narrower header info area */
    max-width: 420px;
    justify-self: center;
}

#info h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
}

#info .subtitle {
    margin: 4px 0 0 0;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.2;
}

#fileUploadContainer {
    padding: 0 20px;
}

#loadModels {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#loadModels:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
}

#modelInfo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    width: 300px;
    min-height: 100px;
    z-index: 100;
    display: none;
}

#modelInfo:not(:empty) {
    display: block;
}

#visualization-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#visualization-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Focus styles for accessibility */
button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px 0;
    }

    #info {
        margin-bottom: 10px;
    }

    #modelInfo {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 300px;
    }
}

#headerButtons {
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

#leftButtons {
    grid-column: 1;
    justify-self: start;
}

#rightButtons {
    grid-column: 3;
    justify-self: end;
}

/* Dialog styles */
.dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    background-color: #2a2a2a;
    color: #ffffff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 80vh;
    max-height: 80vh;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: sticky;
    top: 0;
}

.close-button:hover {
    color: #fff;
}

.dialog-text {
    margin-top: 20px;
    line-height: 1.6;
    overflow-y: scroll;
    padding-right: 20px;
    flex-grow: 1;
}

/* Scrollbar styling */
.dialog-text::-webkit-scrollbar {
    width: 12px;
    background-color: #2a2a2a;
}

.dialog-text::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 5px;
    margin: 5px;
}

.dialog-text::-webkit-scrollbar-thumb {
    background: #6e6e6e;
    border-radius: 5px;
    border: 2px solid #2a2a2a;
}

.dialog-text::-webkit-scrollbar-thumb:hover {
    background: #8e8e8e;
}

.dialog-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.dialog-text a {
    color: #4a9eff;
    text-decoration: none;
}

.dialog-text a:hover {
    text-decoration: underline;
}

#aboutButton {
    background-color: #4a4a4a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#aboutButton:hover {
    background-color: #5a5a5a;
}


.model-details-dialog {

    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    /* position: fixed;
    left: 10vw;
    top: 10vh;
    width: 80vw;
    height: 80vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    overflow: hidden; */
}

.model-details-content {
    padding: 24px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #000000;
    margin: auto;
    border: 1px solid #888;
    width: 80%;
    height: 80vh;
    max-height: 80vh;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;


}

.model-details-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 10;
}

#model-details-body {
    margin-top: 32px;
}