﻿.display-controls {
    position: fixed;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    z-index: 10000;
}

.display-controls-panel {
    width: 180px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.92);
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.display-controls-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.display-controls-panel button {
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.10);
    color: white;
    cursor: pointer;
}

    .display-controls-panel button:hover {
        background: rgba(255, 255, 255, 0.18);
    }

.display-controls-handle {
    width: 28px;
    height: 48px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: rgba(20, 20, 20, 0.92);
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.display-controls-note {
    color: white;
    font-size: 11px;
    opacity: 0.75;
    line-height: 1.35;
    margin: 4px 0 0;
}

.display-controls.collapsed
.display-controls-panel {
    display: none;
}

body[data-display-mode="default"] #riverBackground {
    background: #b8dbea;
}

body[data-display-mode="dim"] #riverBackground {
    background: #52636a;
}

body[data-display-mode="black"] #riverBackground {
    background: #000;
}

body[data-display-mode="transparent"] #riverBackground {
    background: transparent;
}

/*
 * Experimental horizon / skyline behaviour.
 */

body[data-display-mode="default"] #sky {
    display: block;
    background: linear-gradient( to bottom, #9fcfe4 0%, #c7e6f2 100% );
}

body[data-display-mode="default"] #distantShore {
    display: block;
    background: #6f9078;
}


body[data-display-mode="dim"] #sky {
    display: block;
    background: linear-gradient( to bottom, #35464d 0%, #52636a 100% );
}

body[data-display-mode="dim"] #distantShore {
    display: block;
    background: #344b40;
}


body[data-display-mode="black"] #sky,
body[data-display-mode="black"] #distantShore {
    display: none;
}


body[data-display-mode="transparent"] #sky,
body[data-display-mode="transparent"] #distantShore {
    display: none;
}

#sky,
#distantShore {
    transform: translateY(var(--depth-horizon-shift, 0px));
}

#waterCanvas {
    display: block;
    position: absolute;
    inset: var(--water-top, 20%) 0 auto;
    width: 100%;
    height: calc(100% - var(--water-top, 20%));
    pointer-events: none;
    --water-horizon-color: #81bfc8;
    --water-mid-color: #589ca8;
    --water-foreground-color: #2e7887;
    background: linear-gradient( to bottom, var(--water-horizon-color) 0%, var(--water-mid-color) var(--water-gradient-midpoint, 34%), var(--water-foreground-color) 100% );
}

body[data-display-mode="dim"] #waterCanvas {
    --water-horizon-color: #526d75;
    --water-mid-color: #3d565f;
    --water-foreground-color: #293f48;
}

body[data-display-mode="black"] #waterCanvas,
body[data-display-mode="transparent"] #waterCanvas {
    display: none;
}

@media (max-height: 400px) {
    #distantShore {
        visibility: hidden;
    }
}