body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: ArtifaktElement;
    background-color: #f9f7f2;
    overflow-y: auto; /* Allow vertical scrolling */
}

/* Banner navigation buttons */
.banner-nav-buttons {
    font-family: Arial, sans-serif;
}

.nav-btn {
    padding: 5px 10px;
    border: none;
    background-color: #778b9b;
    color: white;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 1px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-line;
    width: 100px;
    box-sizing: border-box;
}

.nav-btn:hover {
    background-color: #92a4b3;
}

.nav-btn.active {
    background-color: #cad5e1;
    color: #214b64;
    font-weight: 650;
}

.context-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #214b64;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 4px;
}

.nav-btn:focus {
    outline: none;
}

/* Navbar is now a direct child of body, positioned at the top */
.navbar {
    position: relative;
    max-width: 1920px;
    margin: 0px auto;
    z-index: 2;
}

#viewers-container {
    position: relative;
    margin: 10px auto;
    min-width: 0;
    width: 100%;
    max-width: 1920px;
    display: flex;
    gap: 8px;
    z-index: 1;
    transition: height 0.3s ease;
}

@media (max-width: 800px) {
    #viewers-container {
        flex-direction: column;
        height: auto !important;
    }

    .viewer-wrapper:not(.collapsed-wrapper) {
        flex: none;
        height: 400px !important;
    }

    .viewer-wrapper.collapsed-wrapper {
        flex: none;
    }
}

.viewer-wrapper {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.viewer-header {
    height: 30px;
    background-color: #f9f7f2;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #ddd;
}

.collapse-btn {
    width: 30px;
    height: 22px;
    margin-left: 10px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background-color 0.2s;
}

.collapse-btn:hover {
    background-color: #d0d0d0;
}

.viewer {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
    height: calc(100% - 30px);
}

#overlay {
    z-index: 1;
    top: 20px;
    right: 20px;
    bottom: auto;
    width: 40%;
    height: 60%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1em;
    display: none;
}

#overlay > .notification {
    margin: auto;
    padding: 1em;
    max-width: 50%;
    background: white;
}

.arrow-icon {
    font-size: 10px;
    transition: transform 0.3s;
}

.collapsed .arrow-icon {
    transform: rotate(-90deg);
}
/* for logo right lower side*/
#logo-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
}
#logoA {
    width: 110px;
    height: auto;
    opacity: 0.65; /* Slight transparency */
    cursor: pointer;
}
#logoB {
    width: 80px;
    height: auto;
    opacity: 0.8; /* Slight transparency */
    cursor: pointer;
}
#logoA:hover {
    opacity: 1; /* Full opacity on hover */
}
#logoB:hover {
    opacity: 1; /* Full opacity on hover */
}
/* for powered by - left lower side*/
#powered-by-container {
    position: absolute; /* Makes it fixed in the viewport */
    bottom: 10px;    /* Offset from the bottom */
    left: 10px;      /* Offset from the left */
    z-index: 100;

    display: flex;   
    flex-direction: column;
    align-items: flex-start; 
}
#powered-by-text {
    margin: 0;       
    padding: 0;      
    font-size: 9px; 
    color: #333;    
    z-index: 100;
}
#logoADX {
    width: 120px;
    height: auto;
    opacity: 0.65; /* Slight transparency */
    cursor: pointer;
    margin-top: 5px; 
    margin-bottom: 5px;
    z-index: 100;
}
#logoADX:hover {
    opacity: 1; /* Full opacity on hover */
}

