* {
    box-sizing: border-box;
}

html, body, #cesiumContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: sans-serif;
}

#logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 80px;
    height: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
}

.controls-container {
    position: absolute;
    top: 60px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zoom-controls {
    display: flex;
    flex-direction: column;
}

.zoom-controls button {
    background-color: rgba(49, 51, 55, 0.8);
    color: white;
    border: 1px solid #444;
    padding: 0;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border-radius: 3px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
}

.zoom-controls button:hover {
    background-color: rgba(69, 71, 75, 0.9);
}

.link-buttons {
    display: flex;
    flex-direction: column;
}

.link-buttons button {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #3a8a40;
    padding: 5px 0;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    width: 60px;
    text-align: center;
}

.link-buttons button:hover {
    background-color: #45a049;
}

.cesium-infoBox {
    max-height: 400px;
    background: rgba(255, 255, 255, 0.9);
}

.cesium-infoBox-title {
    font-weight: bold;
}

#customInfoBoxContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    max-width: 250px;
    z-index: 1000;
}

#customInfoBoxContainer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    #logo {
        width: 50px;
        bottom: 5px;
        left: 5px;
        padding: 3px;
    }

    .controls-container {
        top: 50px;
        gap: 8px;
    }

    .zoom-controls button {
        width: 30px;
        height: 30px;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 3px;
    }

    .link-buttons button {
        width: 50px;
        font-size: 12px;
        padding: 4px 0;
        margin-bottom: 3px;
    }

    .cesium-viewer-toolbar {
        top: 5px !important;
        right: 5px !important;
    }

    .cesium-sceneModePicker-wrapper {
        width: 64px;
    }

    .cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon {
        left: 4px;
    }

    .cesium-button.cesium-toolbar-button {
        width: 32px;
        height: 32px;
    }

    .cesium-infoBox-visible {
        max-width: calc(100% - 20px);
        max-height: 35%;
        bottom: 60px !important;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
    }

    #customInfoBoxContainer {
        top: 50px !important;
        right: 5px !important;
        max-width: 130px;
        padding: 5px;
        font-size: 10px;
    }

    #customInfoBoxContainer p {
        margin: 2px 0;
    }
}