* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #cesiumContainer {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.menu-container {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.menu-toggle {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(145deg, #6c7b8a, #9aa5b0);
    color: white;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: linear-gradient(145deg, #5a6570, #848f98);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
    overflow: visible;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: translateX(0);
    opacity: 1;
}

.menu-panel.closed {
    transform: translateX(-115%);
    opacity: 0;
    pointer-events: none;
}

.menu-panel > .model-select,
.menu-panel > .btn,
.menu-panel > .vari-container,
.menu-panel > .water-container,
.menu-panel > .row-controls {
    width: 280px;
}

.row-controls {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.btn {
    padding: 15px 25px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #1967d2;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: scale(0.95);
}

.btn-modelo {
    background: linear-gradient(145deg, #1967d2, #4a7de6);
}

.btn-modelo:hover {
    background: linear-gradient(145deg, #1554b0, #3264d9);
}

.btn-mundo {
    background: linear-gradient(145deg, #8b5a3c, #a36845);
}

.btn-mundo:hover {
    background: linear-gradient(145deg, #6d432c, #8b5a3c);
}

.btn-vari {
    background: linear-gradient(145deg, #ff8a00, #ffb347);
    margin-top: 0;
    flex-grow: 1;
    margin-right: 10px;
}

.btn-vari:hover {
    background: linear-gradient(145deg, #e67600, #ff9f1a);
}

.btn-vari.active {
    background: linear-gradient(145deg, #4caf50, #2e7d32);
}

.btn-vari.active:hover {
    background: linear-gradient(145deg, #3d8b40, #256728);
}

.model-select {
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #1e88e5;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2082.2c3.6-3.6%205.4-7.8%205.4-12.8%200-5-1.8-9.3-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.model-select:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.model-select option {
    background: white;
    color: #333;
}

.btn-water {
    background: linear-gradient(145deg, #00a8ff, #4dd0e1);
    color: white;
    margin-top: 0;
    flex-grow: 1;
    margin-right: 10px;
    padding: 15px 25px;
}

.btn-water:hover {
    background: linear-gradient(145deg, #0091ea, #26c6da);
}

.btn-water.active {
    background: linear-gradient(145deg, #b0bec5, #eceff1);
}

.btn-water.active:hover {
    background: linear-gradient(145deg, #90a4ae, #cfd8dc);
}

.btn-visibility {
    background: linear-gradient(145deg, #43a047, #66bb6a);
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: fit-content;
}

.btn-visibility:hover {
    background: linear-gradient(145deg, #2e7d32, #43a047);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-visibility:active {
    transform: scale(0.95);
}

.btn-visibility.hidden-model {
    background: linear-gradient(145deg, #b0bec5, #cfd8dc);
}

.btn-visibility.hidden-model:hover {
    background: linear-gradient(145deg, #90a4ae, #b0bec5);
}

.vari-container,
.water-container {
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: help;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(0px);
}

.info-icon:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: rgba(0, 0, 0, 0.95);
    color: #F2F2F2;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 30, 30, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.height-control {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #000000;
    width: fit-content;
}

.height-control label {
    display: block;
    font-weight: bold;
    font-size: 14px;
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 150px;
    width: 18px;
}

.slider-wrapper span {
    font-size: 20px; 
    font-weight: bold;
    line-height: 1;
    position: relative;
    left: -2px;       
    margin-top: 0
}

#heightSlider {
    background: #1967d2;
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 8px;
    height: 100px;
    padding: 0 5px;
}

#heightSlider:hover {
    background-color: #1554b0; 
}

.height-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .menu-container {
        left: 10px;
        top: 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .menu-panel > .model-select,
    .menu-panel > .btn,
    .menu-panel > .vari-container,
    .menu-panel > .water-container,
    .menu-panel > .row-controls {
        width: 240px;
    }
}