body {
    /* URL to your watermark image */
    background-image: url('art/salt-fleet.jpg');
    /* Cover the entire viewport */
    background-size: cover;
    /* Position the background in the center */
    background-position: center center;
    /* Do not repeat the background */
    background-repeat: no-repeat;
    /* Optional: Set a background color that will show if the image doesn't load */
    background-color: #f4f4f4;
    /* Optional: Fix the background to the viewport */
    background-attachment: fixed;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

    body::-webkit-scrollbar {
        width: 0; /* For WebKit browsers like Chrome and Safari */
    }

a {
    color: white;
    font-family: 'Roboto';
    font-size: 12px;
    cursor: pointer;
    text-decoration: none; /* This removes the underline by default */
}

p {
    color: white;
    font-family: 'Roboto';
    font-size: 12px;
}

h3 {
    color: white;
    font-family: 'Roboto';
    font-size: 14px;
}

h4 {
    color: white;
    font-family: 'Roboto';
}

.ldr-text {
    color: white;
    font-family: 'Roboto';
    font-size: 20px;
    display: inline-block;
    position: absolute;
    z-index: 1;
    vertical-align: top;
    width: 75px;
    height: 80px;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

.ldr-est-text {
    color: white;
    font-family: 'Roboto';
    font-size: 20px;
    display: inline-block;
    position: absolute;
    z-index: 1;
    vertical-align: top;
    width: 400px;
    height: 80px;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

.ldr-est-text-info {
    color: white;
    font-family: 'Roboto';
    font-size: 20px;
    display: inline-block;
    position: absolute;
    z-index: 1;
    vertical-align: top;
    width: 400px;
    height: 80px;
    top: 93%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

a:hover {
    text-decoration: underline; /* This adds the underline when hovered */
}

.button-download {
    background: none; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
    padding: 0; /* Remove padding */
    margin: 0 5px; /* Optional: Add some spacing between buttons */
    outline: none; /* Remove focus outline */
}

/* Add styles for button hover and active states, if desired */
.button-download:hover {
    /* Example: Change opacity on hover */
    opacity: 0.8;
}

.button-download:active {
    transform: scale(0.95);
}

.download-link {
}

.download-linebreak {
}

.download-title {
}

.vessels {
}

.vessels-linebreak {
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    border-radius: 10px;
    border-style: none;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: darkgrey;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    border-style: none;
}

.yesno {
    padding: 14px 30px;
    width: 150px;
    color: darkslategrey;
    font-family: 'Roboto';
    background-color: white;
    border-radius: 10px;
    border-style: none;
    font-size: 18px;
    font-weight: normal;
    height: 50px;
}

.yesno:hover {
    background-color: lightgray;
    box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
    opacity: 1;
    transition-duration: .35s;
}

.yesno:hover:after {
    opacity: .5;
}

.yesno:active {
    box-shadow: rgba(0, 0, 0, .1) 0 3px 6px 0, rgba(0, 0, 0, .1) 0 0 10px 0, rgba(0, 0, 0, .1) 0 1px 4px -1px;
}

.yesno:disabled {
    background-color: darkgrey;
}

.yesno:active:after {
    opacity: 1;
}

.yesnoexit {
    font-size: 20px;
    font-weight: normal;
    font-weight: bold;
    color: darkslategrey;
    text-align: center;
}

.timeoutmodal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    border-radius: 10px;
    border-style: none;
}

.timeoutmodal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: darkgrey;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    border-style: none;
}

.timeoutbtn {
    padding: 14px 30px;
    width: 150px;
    color: darkslategrey;
    font-family: 'Roboto';
    background-color: white;
    border-radius: 10px;
    border-style: none;
    font-size: 18px;
    font-weight: normal;
    height: 50px;
}

.timeoutbtn:hover {
    background-color: lightgray;
    box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
    opacity: 1;
    transition-duration: .35s;
}

.timeoutbtn:hover:after {
    opacity: .5;
}

.timeoutbtn:active {
    box-shadow: rgba(0, 0, 0, .1) 0 3px 6px 0, rgba(0, 0, 0, .1) 0 0 10px 0, rgba(0, 0, 0, .1) 0 1px 4px -1px;
}

.timeoutbtn:disabled {
    background-color: darkgrey;
}

.timeoutbtn:active:after {
    opacity: 1;
}

.timeoutexit {
    font-size: 20px;
    font-weight: normal;
    font-weight: bold;
    color: darkslategrey;
    text-align: center;
}

.customer-name {
    position: absolute;
    top: 10px;
    left: 1px;
    z-index: 1;
    color: white;
    font-family: 'Roboto';
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    vertical-align: central;
    white-space: pre;
}

.vessel-name {
    position: absolute;
    top: 5px;
    left: 100px;
    z-index: 1;
    color: white;
    font-family: 'Roboto';
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    vertical-align: central;
}

.vessellistsection-label {
    font-size: 16px;
    font-family: 'Roboto';
    font-weight: bold;
    text-align: left;
    padding: 5px;
    background-color: transparent;
    color: white;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    user-select: none;
}

.contentlistsection-label {
    font-size: 16px;
    font-family: 'Roboto';
    font-weight: bold;
    text-align: left;
    padding: 5px;
    background-color: transparent;
    color: white;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    user-select: none;
}

.vesselitems-column-container {
    display: flex;
    width: 100%;
    border: 1px solid darkslategray;
    justify-content: space-between;
    margin: 0 0 1px 0;
    box-sizing: border-box;
}

.vesselitems-link-column {
    width: 80%;
    padding: 10px;
    font-weight: bold;
    font-family: 'Roboto';
    font-size: 14px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.vesselitems-button-column {
    width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5px 0 0;
    box-sizing: border-box;
}

.vesselitems-share-button {
    padding: 0 0 0 4px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.vesselitems-share-button img {
    width: 20px;
    height: 20px;
}

.data-item-delete-button {
    background: none;
    border: none;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
}

.data-item-delete-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Styles for the share floating window */
.share-floating-window {
    position: absolute;
    width: var(--share-window-width, 500px); /* Use CSS variable with a fallback value */
    max-height: 600px;
    background-color: darkslategray;
    border: 1px solid darkslategray;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.share-floating-window .content {
    padding: 10px;
    overflow-y: auto; /* Enable scrolling if content exceeds max-height */
    flex-grow: 1; /* Allow content to grow and fill available space */
}

.share-floating-window .checkbox-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    font-family: 'Roboto', sans-serif; /* Set font to Roboto */
    font-size: 14px; /* Set font size to 14px */
    color: white; /* Set text color to contrast with dark background */
}

.share-floating-window .checkbox-item input {
    margin-right: 10px;
}

.share-floating-window .checkbox-item label {
    white-space: nowrap; /* Prevents label text from wrapping to the next line */
    overflow: hidden; /* Ensures overflowed text is clipped */
    text-overflow: ellipsis; /* Adds ellipsis (...) for overflowed text */
}

.share-floating-window .share-button-container {
    flex-shrink: 0; /* Prevent the button container from shrinking */
}

.share-floating-window .share-button {
    width: 100%;
    height: 40px;
    background-color: white;
    color: darkslategray;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-family: 'Roboto', sans-serif; /* Ensure font consistency */
    font-size: 16px;
    font-weight: normal;
}

.share-floating-window .share-button:hover {
    background-color: #D6D4D4; /* Slightly darker on hover */
}

.edit-input {
    width: 100%;
    height: 30px;
    padding: 5px;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    background-color: #383838;
    font-family: 'Roboto';
    font-size: 12px;
}

/*.container {
        display: flex;
        height: 100%;
    }*/

.column {
    /*padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

.top-row {
    display: flex;
    height: 50px;
    width: 100%;
}

.top-left, .top-right {
    flex: 1.5;
    display: flex;
    min-width: 300px;
    align-items: center;
}

.top-middle {
    flex: 7;
}

.top-left {
    justify-content: flex-start;
    padding-left: 10px; /* Optional padding for better spacing */
}

.top-right {
    justify-content: flex-start;
    padding-right: 10px; /* Optional padding for better spacing */
}

.bottom-row {
    display: flex;
    height: calc(100% - 50px);
    width: 100%;
}

.left {
    flex: 1.5; /* 20% width */
    overflow-y: auto; /* Add vertical scrolling if necessary */
    max-height: 100vh; /* Set maximum height to the viewport height */
    min-width: 300px;
}

.middle {
    flex: 7; /* 60% width */
}

.right {
    flex: 1.5; /* 20% width */
    overflow-y: auto; /* Add vertical scrolling if necessary */
    max-height: 100vh; /* Set maximum height to the viewport height */
    min-width: 300px;
}

.iframe-container {
    position: relative; /* or you can use 'absolute' depending on your needs */
    top: 50%;
    left: 50%;
    height: 100%; /*calc(var(--height) - 25px);*/ /*1080px;*/
    transform: translate(-50%, -50%); /*translate(-50%, calc(-50% + 25px));*/ /* Centers the iframe */
    border: none; /* Optional, to remove the border */
}

.gear-button {
    background: none; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
    padding: 0; /* Remove padding */
    margin: 0 5px; /* Optional: Add some spacing between buttons */
    outline: none; /* Remove focus outline */
    position: absolute;
    top: 20px;
    right: 5px;
    z-index: 1;
    vertical-align: central;
}

/* Add styles for button hover and active states, if desired */
.gear-button:hover {
    /* Example: Change opacity on hover */
    opacity: 0.8;
}

.gear-button:active {
    transform: scale(0.95);
}

.resetidle-button {
    background: none; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
    padding: 0; /* Remove padding */
    margin: 0 5px; /* Optional: Add some spacing between buttons */
    outline: none; /* Remove focus outline */
    position: absolute;
    top: 20px;
    right: 50px;
    z-index: 1;
    vertical-align: central;
}

/* Add styles for button hover and active states, if desired */
.resetidle-button:hover {
    /* Example: Change opacity on hover */
    opacity: 0.8;
}

.resetidle-button:active {
    transform: scale(0.95);
}

.fullscreen-button {
    background: none; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
    padding: 0; /* Remove padding */
    margin: 0 5px; /* Optional: Add some spacing between buttons */
    outline: none; /* Remove focus outline */
    position: absolute;
    top: 20px;
    right: 95px;
    z-index: 1;
    vertical-align: central;
}

/* Add styles for button hover and active states, if desired */
.fullscreen-button:hover {
    /* Example: Change opacity on hover */
    opacity: 0.8;
}

.fullscreen-button:active {
    transform: scale(0.95);
}

.expand-button {
    background: none; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
    padding: 0; /* Remove padding */
    margin: 0 5px; /* Optional: Add some spacing between buttons */
    outline: none; /* Remove focus outline */
    position: absolute;
    top: 20px;
    right: 140px;
    z-index: 1;
    vertical-align: central;
}

/* Add styles for button hover and active states, if desired */
.expand-button:hover {
    /* Example: Change opacity on hover */
    opacity: 0.8;
}

.expand-button:active {
    transform: scale(0.95);
}

.shutdown-button {
    background: none; /* Remove background */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer when hovering over the button */
    padding: 0; /* Remove padding */
    margin: 0 5px; /* Optional: Add some spacing between buttons */
    outline: none; /* Remove focus outline */
    position: absolute;
    top: 20px;
    right: 185px;
    z-index: 1;
    vertical-align: central;
}

/* Add styles for button hover and active states, if desired */
.shutdown-button:hover {
    /* Example: Change opacity on hover */
    opacity: 0.8;
}

.shutdown-button:active {
    transform: scale(0.95);
}

/* Start CSS Button 65 */
.button-65 {
    appearance: none;
    backface-visibility: hidden;
    background-color: white;
    border-radius: 10px;
    border-style: none;
    box-shadow: none;
    box-sizing: border-box;
    color: darkslategray;
    cursor: pointer;
    display: inline-block;
    font-family: 'Roboto';
    font-size: 18px;
    font-weight: normal;
    height: 50px;
    letter-spacing: normal;
    line-height: 1;
    outline: none;
    overflow: hidden;
    padding: 14px 30px;
    text-align: center;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: all .025s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
    position: absolute; /* or you can use 'absolute' depending on your needs */
    top: 50%;
    left: 50%;
    justify-content: center; /* Centers the iframe horizontally */
    align-items: center; /* Centers the iframe vertically */
    transform: translate(-50%, -50%); /* Centers the iframe */
    border: none; /* Optional, to remove the border */
}

.button-65:hover {
    background-color: lightgray;
    box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
    opacity: 1;
    transition-duration: .35s;
}

.button-65:hover:after {
    opacity: .5;
}

.button-65:active {
    box-shadow: rgba(0, 0, 0, .1) 0 3px 6px 0, rgba(0, 0, 0, .1) 0 0 10px 0, rgba(0, 0, 0, .1) 0 1px 4px -1px;
}

.button-65:disabled {
    background-color: darkgrey;
}

.button-65:active:after {
    opacity: 1;
}

@media (min-width: 768px) {
    .button-65 {
        padding: 14px 22px;
        width: 176px;
    }
}
/* End CSS Button 65 */

/*.whadjuster {
        width: var(--width);
        height: var(--height);
    }*/

.blackoverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    opacity: 0.5;
    visibility: hidden;
}

.lds-roller {
    display: inline-block;
    position: absolute;
    z-index: 1;
    vertical-align: top;
    width: 80px;
    height: 80px;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Responsive sizing for Envision logo image used in UE5 pages */
img.customer-name {
    /* Keep existing absolute positioning from .customer-name */
    height: auto;
    width: auto;
    max-height: 256px; /* cap height to fit header area */
    max-width: 160vw;  /* prevent overflow on smaller screens */
    object-fit: contain;
    display: block; /* avoid baseline gaps for images */
    /* Center horizontally while keeping same vertical (top) position from .customer-name */
    left: 50%;
    transform: translateX(-50%);
}


/* SALT logo positioned below Envision logo on UE5 pages */
.salt-logo {
    position: absolute;
    top: 160px; /* just below the Envision logo (which is at top:10px) */
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: auto;
    max-height: 64px; /* keep it modest and readable */
    max-width: 40vw;  /* avoid overflow on smaller screens */
    object-fit: contain;
    display: block;
    z-index: 1;
}

/* Tagline text displayed under the image on UE5 pages */
.tagline {
    position: absolute;
    top: 280px; /* moved down to avoid overlapping the SALT logo */
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* readability on dark bg */
    white-space: nowrap;
}
