html, body { min-height: 100vh; height: 100%; } body { font-family: Arial, sans-serif; margin: 0; padding-left: 0.5em; padding-right: 0.5em; } #viewer { display: flex; flex-direction: row; height: fit-content; min-height: 100vh; } #catalog-list { width: 30%; padding: 10px; overflow-y: scroll; background-color: #f4f4f4; border-right: 1px solid #ddd; } #catalog-list h2 { margin-top: 0; } #details { width: 70%; padding: 10px; } .sidebar-header { display: flex; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; gap: 0.5em; } .sidebar-header button { width: 10em; } canvas { width: 100%; height: 300px; border: 1px solid #ccc; margin-top: 20px; } /* Updated CSS for the item elements in the catalog list */ .item { background-color: white; border: 1px solid #ddd; padding: 10px; margin-bottom: 10px; border-radius: 5px; transition: background-color 0.2s ease; } .item-title { font-size: 18px; margin: 0; color: #333; } .item-type { font-size: 14px; margin: 5px 0; color: #666; } .item-id, .item-key-type { font-size: 12px; color: #999; } .item-description { font-size: 13px; margin: 5px 0; color: #444; font-style: italic; } .item.selected { background-color: #d4e9ff; /* Lighter blue for selection */ border-color: #003399; /* Keep the original ECMWF blue for the border */ } summary h2 { display: inline; } .json-pre { white-space: pre-wrap; /* background-color: #f9f9f9; */ border: 1px solid #ccc; border-radius: 5px; padding: 10px; } /* Button styles */ button { height: 3em; padding: 10px 20px; /* Padding around button text */ margin: 0 5px; /* Margin between buttons */ background-color: #003399; /* ECMWF blue */ color: white; /* White text color */ border: none; /* Remove default button border */ cursor: pointer; /* Pointer cursor on hover */ border-radius: 5px; /* Rounded corners */ transition: background-color 0.3s ease; /* Smooth background color transition */ } button:hover { background-color: #001f66; /* Darker shade of ECMWF blue on hover */ } .item-list-container { margin-top: 20px; margin-bottom: 20px; } .scrollable-list { max-height: 200px; overflow-y: auto; padding: 10px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .checkbox-container { display: flex; align-items: center; margin-bottom: 10px; } .item-checkbox { margin-right: 10px; cursor: pointer; } .checkbox-label { font-size: 16px; color: #333; } .checkbox-container:hover .checkbox-label { color: #003399; } .list-label { font-weight: bold; margin-bottom: 0.5em; display: block; color: #003399; } span.key, span.value { color: #ba2121; ; } span.key { font-weight: bold; } span.key:hover, span.value:hover { color: #ff2a2a; cursor: pointer; } /* Change layout for narrow viewport */ @media (max-width: 800px) { #viewer { flex-direction: column; } #catalog-list { width: 100%; border-right: none; } #details { width: 100%; } } details h2 { font-size: medium; }