.aladin-container {
	position: relative;
	border: 0px solid #ddd;
    /* SVG inside divs add a 4px height: https://stackoverflow.com/questions/75751593/why-there-is-additional-4px-height-for-div-when-there-is-svg-inside-it */
    /* disable x swipe on chrome, firefox */
    /* Prevent page navigation swipe on windows phone: https://stackoverflow.com/questions/30636930/disable-web-page-navigation-on-swipeback-and-forward */
    overscroll-behavior-x: none;
    overscroll-behavior-y: none; /* Prevents vertical pull-to-refresh */
    /* Hide the draggable boxes that goes out of the view */
    /*overflow: hidden;*/
    /* media query on the aladin lite container. not supported everywhere.
    There can be a more supported alternative here: https://caniuse.com/?search=grid-template-columns */
    /*container-type: inline-size;*/

    font-size: 0.9rem;

    /* Aladin lite default color */
    --aladin-color: #ff54ff;
}

[data-theme="dark"] {
	--bg-color: black;
	--text-color: #ececec;
    --border-color: #ececec;
    --hover-color: greenyellow;
    --toggle-color: dodgerblue;
    --valid-color: greenyellow;
    --error-color: red;
    --border-size: 1px;
}

[data-theme="light"] {
	--bg-color: #ececec;
	--text-color: #212121;
    --border-color: #212121;
    --hover-color: green;
    --toggle-color: dodgerblue;
    --border-size: 2px;
    --valid-color: green;
    --error-color: red;
}

.aladin-tree {
    width: 100%;
    height: calc(100% - 130px);
    border-bottom: var(--border-size) solid var(--border-color);
}

.aladin-tree .aladin-directory-path {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    border-bottom: 2px solid var(--border-color);
}

.aladin-tree ul {
    padding:0;
    margin:0;
    overflow-y: auto;
    height: calc(100% - 37px);
}
.aladin-link {
    list-style-type: none;
    cursor:pointer;
    margin: 0;
}

.aladin-tree li:last-child {
    border-bottom: none;
}

.aladin-tree li > * {
    border-bottom: var(--border-size) solid var(--border-color);
    padding: 0.5em 0px;
}

.aladin-tree li:last-of-type > * {
    border-bottom: 0px;
}

#aladin-tooltip-mouse {
    display: none;
    position: fixed;
    pointer-events: none; /* tooltip won't block mouse */
    z-index: 1000;
    padding: 0;
    max-width: 100%;
    width: fit-content;
}
#aladin-tooltip-mouse * {
    margin: 0;
}

.aladin-fig {
    display: inline-block;   /* shrink-wraps content */
    position: relative;
}

.aladin-fig img {
    display: block;
    max-width: 128px;
    max-height: 128px;
}

.aladin-fig figcaption {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    
    color: white;
    font-size: 11px;
    text-align: center;
    background: black;
}

.aladin-spectra-displayer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    overflow: hidden;
    width: 100%;
}

.aladin-spectra-displayer .aladin-spectra-unit {
    position: absolute;
    bottom: 0;
    right: 8rem;
}
.aladin-spectra-displayer .aladin-spectra-home {
    position: absolute;
    bottom: 0;
    right: 6rem;
}
.aladin-spectra-displayer .aladin-spectra-extraction {
    position: absolute;
    bottom: 7rem;
    right: 0;
}

.aladin-imageCanvas {
	position: absolute;
	left: 0;
	top: 0;
}

.aladin-catalogCanvas {
    position: absolute;
    left: 0;
    top: 0;
}

.aladin-logo-container {
    position: absolute;
	bottom: 2px;
    right: 5px;

    min-width: 32px;
    max-width: 90px;
}

.aladin-logo-small {
    padding: 0;
	background: url(data:image/gif;base64,R0lGODlhIAAgAJEAAJIsLdEwJAdMmP///yH5BAkAAAMALAAAAAAgACAAAAjMAAcIHEiwoMGDCBMqXMiwocOHECMaFCCxYkKKAAoK2MiRo0UBAEKKFOkxYUaCIEMSHBlyo0OQCke6HHDyJEWBKgcG2MlzoEyFMAXyHNqTZsubNFGeHLDT4FCcLREGZUqwaFGRUk82FfqUaQCoSH0OCLqVqlCuX42u9Kl1a1qzXnGGVaozLdG6cpMWxOrVblm4AOYOTNn2L1efYZdu5Eu0cV6cE0fW7QqV4WK+CAMLPnhZMtvAEDmy/CkWMtCOHVFaXC2VtevXsGPLZhgQADs=);
    background-size: 100%;
    background-repeat: no-repeat;
    padding-top: 100%; /* aspect ratio of the background image */
}

.aladin-logo-large {
    padding: 0;
    background:  url('data:image/png;base64, ');
    background-size: 100%;
    background-repeat: no-repeat;
    padding-top: 58.45%; /* aspect ratio of the background image */
}

.aladin-clipboard::before {
    content: ' 📋';
    cursor:pointer;
}

.aladin-measurement-div {
    font-family: monospace;

    border-top-left-radius: 0;

    max-height: 30vh;
    max-width: 100%;

    overflow: auto;
    white-space: nowrap;
    max-height: 200px;

    overscroll-behavior: contain;
    scroll-behavior: auto;

}

.aladin-btn.tab {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
}

.aladin-measurement-div table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 100%;
    width: max-content;
}

.aladin-measurement-div table::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.aladin-measurement-div table thead {
    top: 0;
    position: sticky; /* optional but helps */
}

.aladin-measurement-div table thead th {
    position: sticky;
    padding: 0.3em 0.5em;
    border-bottom: var(--border-size) solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.aladin-measurement-div table tr td a {
    color: green;
}
.aladin-measurement-div table tr td a:hover {
    color: var(--aladin-color);
}

.aladin-measurement-div table tr td {
    padding: 0.5rem;
}

.aladin-measurement-div table tr td, .aladin-measurement-div table tr td a {
    max-width: 10rem;
    text-overflow: ellipsis;

    white-space: nowrap;
    overflow: hidden;
    text-align: center;

    word-wrap:break-word;
}

.aladin-marker-measurement {
    max-height: 130px;
    overflow-y: auto;
    overflow-x: hidden;
    /*font-family: monospace;*/

    color: #000;
}
.aladin-marker-measurement table {
    table-layout: fixed;
    width: 100%;
}

.aladin-marker-measurement tr:nth-child(even) {
    background-color: #dddddd;
}

.aladin-marker-measurement td:first-child {
    font-weight: bold;
}

/* maximize/restore size icons */
/*.aladin-maximize {
	position: absolute;
	top: 6px;
	right: 3px;

	width: 30px;
	height: 30px;
	background-image: url('data:image/gif;base64,R0lGODlhFgAWAOMJAAAAAAEBAQICAgMDAwUFBAUFBQcHBwgICAsLCv///////////////////////////yH5BAEKAA8ALAAAAAAWABYAAARm8MlJabr41i0T+CCQcJz3CYMwklsSEAUhspVnHEYw0x1w558VzYQTBXm24sgjJCUQykmT9dzxWlNq9vrwILYtqe/wRc6SBqszOE6DLZ/AT00FyKNcD4wQeLdQAiB+cCFHVxkZXA8RADs=');
	background-repeat:  no-repeat;
	background-position:center center;
}*/

.aladin-anchor-top{top:0}
.aladin-anchor-middle{top:50%; transform: translate(0, -50%);/*half of the .box height*/}
.aladin-anchor-bottom{
    bottom:0;

}

.aladin-anchor-left {
    left: 0;
    
}
.aladin-anchor-center{
    left:50%;
    transform: translate(-50%, 0%);/*half of the .box width*/
}
.aladin-anchor-right{
    right:0;
}

.aladin-anchor-middle.aladin-anchor-center {
    transform: translate(-50%, -50%);
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotating 2s linear infinite;
}

@keyframes rotating-centered {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.aladin-anchor-middle.aladin-anchor-center.rotating {
    animation: rotating-centered 2s linear infinite;
}

.aladin-box {
    padding: 0.3rem;
    background: whitesmoke;
    position: absolute;
    font-size: inherit;

    font-family: monospace;
    background: #fff;

    color: #222;

    /* Allow scrolling but disable scroll bar */
    width: min-content;

    border: var(--border-size) solid var(--border-color);

    box-sizing: border-box;
}

.aladin-box .aladin-box-content {
    height: 100%;
}

.aladin-container canvas {
    image-rendering: optimizeSpeed;             /* Older versions of FF          */
    image-rendering: -moz-crisp-edges;          /* FF 6.0+                       */
    image-rendering: -webkit-optimize-contrast; /* Safari                        */
    image-rendering: -o-crisp-edges;            /* OS X & Windows Opera (12.02+) */
    image-rendering: pixelated;                 /* Awesome future-browsers       */
    -ms-interpolation-mode: nearest-neighbor;   /* IE                            */
}

.aladin-box-title {
  font-size: 1.0rem;
  /*font-family: Verdana, Geneva, Tahoma, sans-serif;*/
  line-height: 1.5em;
  font-weight: bold;
  white-space: nowrap;
  width: 100%;
}
.aladin-shareInput {
    width: 300px;
    margin-top: 10px;
    display: block;
}

.aladin-indicatorBtn {
    color: #605F61!important;
    border: var(--border-size) solid #AEAEAE!important;

    border-radius: 3px;
    font-size: 1rem;
    background: #fff!important;
    margin-right: 0.2em!important;

    font-family: monospace;
    cursor: pointer;
}

.aladin-indicatorBtn:hover {
	color: #201F21!important;
}

.aladin-closeBtn {
    position:absolute;
    right: 4px;
    margin-top: 0 0 2px 0;
    cursor:pointer;
    color: #605F61;
    border: var(--border-size) solid var(--border-color);
    border-radius: 3px;
    background: #fff;
    font-size: 1.0rem;
    font-weight: bold;
    line-height: 0px;
    padding: 8px 2px;       
}

.aladin-closeBtn:hover {
	color: #201F21;
}

.aladin-box-separator {
	height: 0;
    border-top: var(--border-size) solid var(--border-color);
    margin-top: 5px;
    margin-bottom: 5px;

}

.aladin-restore {
	position: absolute;
    top: 6px;
    right: 3px;

    width: 30px;
    height: 30px;
    background-image: url('data:image/gif;base64,R0lGODlhFgAWAOMJAAAAAAEBAQICAgMDAwUFBAUFBQcHBwgICAsLCv///////////////////////////yH5BAEKAA8ALAAAAAAWABYAAARk8MlJ60zJapsAyhsFPp1xfKHUZeVhAOPWwYD5xjIABDacXrseLtQhFAiBIVEwEOh8P9VzquRgrhgrNhudTaHdJ1NQ1SQCRgL41zIE1sSa6w0361y0eqXtW7EReCNlIgh6XYMbEQA7');
    background-repeat:  no-repeat;
    background-position:center center;
}

/* smartphones, iPhone, portrait 480x320 phones */
.aladin-btn {
    all:unset;

	display: inline-block;
    margin: 0;
    padding: 0.2rem;

    font-size: inherit;

    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: var(--border-size) solid var(--border-color);
    border-radius: 3px;
    color: var(--text-color);
    background-color: var(--bg-color);

    font-family: monospace;
}

.aladin-btn.toggled {
    border-color: var(--toggle-color);
}
.aladin-btn:hover, .aladin-input-select:hover {
    border-color: var(--hover-color);
}

.aladin-btn.disabled {
    cursor: not-allowed;
    filter: brightness(70%);
}

.aladin-btn.svg-icon {
    background-repeat:  no-repeat;
    background-position:center center;
    display: inline-block;
}

.aladin-icon {
    display: flex;
    justify-content: center;
    align-items: center;

}

.aladin-icon img {
    vertical-align:middle;
    width: 100%;
    height: 100%;
}

[data-theme="dark"] .aladin-icon.aladin-icon-monochrome img {
    filter: invert(100%) sepia(91%) saturate(0%) hue-rotate(169deg) brightness(115%) contrast(100%);
}

.aladin-btn {
    background-color: var(--bg-color);
    border-color: var(--border-color);
}

.aladin-measurement-div {
    background-color: var(--bg-color);
    border: var(--border-size) solid var(--border-color);
}

.aladin-measurement-div table {
    color: var(--text-color);
}

.aladin-box {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.aladin-input-select {
    background-color: var(--bg-color);
    border: var(--border-size) solid var(--text-color);
    color: var(--text-color);
}

.aladin-small-sized-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.aladin-medium-sized-icon {
    width: 1.6rem;
    height: 1.6rem;
}

.aladin-medium-sized {
    height: 1.6rem;
}

.aladin-small-sized {
    height: 1.2rem;
}

.aladin-input-text:focus, .aladin-input-number:focus {
    border-color: var(--toggle-color);
    background-color: var(--bg-color);
}

[data-theme="light"] .aladin-input-text.search:focus {
    background-image: url(../../assets/icons/search.svg);
    background-size: 1.8rem;
    background-repeat: no-repeat;
    padding-left: 1.8rem;
}

[data-theme="light"] .aladin-input-text.search:hover {
    background-image: url(../../assets/icons/search.svg);
    background-size: 1.8rem;
    background-repeat: no-repeat;
    padding-left: 1.8rem;
}

[data-theme="dark"] .aladin-input-text.search:focus {
    background-image: url(../../assets/icons/search-dark.svg);
    background-size: 1.8rem;
    background-repeat: no-repeat;
    padding-left: 1.8rem;
}

[data-theme="dark"] .aladin-input-text.search:hover {
    background-image: url(../../assets/icons/search-dark.svg);
    background-size: 1.8rem;
    background-repeat: no-repeat;
    padding-left: 1.8rem;
}

.aladin-input-text.search {
    background-image:none;
    text-indent: 0rem;
    line-height: 1.2rem;
}

.aladin-input-text.aladin-not-valid {
    border: var(--border-size) solid var(--error-color);
}

.aladin-input-text.aladin-valid {
    border: var(--border-size) solid var(--valid-color);
}

.aladin-valid {
    color: var(--valid-color);
}

.aladin-not-valid {
    color: var(--error-color);
}

.aladin-not-found {
    color: darkorange;
}

.aladin-button:hover {
	color: #ffffff;
    background-color: #3276b1;
    border-color: #285e8e;
}

.aladin-vertical-list {
    list-style: none;
}

.aladin-vertical-list > *:first-child {
    padding-top: 0;
}

.aladin-vertical-list > * {
    padding-top: 0.5rem;
}

.aladin-horizontal-list {
    display: flex;
    align-items: center; 
    list-style: none;
}

.aladin-horizontal-list > * {
    vertical-align: middle;
    margin-right: 0.2rem;
}

.aladin-horizontal-list > *:last-child {
    margin-right: 0;
}

.aladin-form {
    width: 100%;
}

.aladin-form .aladin-form-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aladin-form-group > *:last-of-type {
    margin-bottom: 0;
}

.aladin-form .aladin-form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.aladin-form .aladin-form-group:last-of-type {
    margin-bottom: 0rem;
}

.aladin-form .aladin-form-input select {
    width: 100%;
}

.aladin-form .aladin-form-input .aladin-input {
    flex: 2;
}

.aladin-popup-container {
    color: black;
	position: absolute;
    width: 200px;
    display: none;
    line-height: 1.3;
}

.aladin-popup {
    /*font-family: Verdana, Geneva, Tahoma, sans-serif;*/
    background: white;
    border: var(--border-size) solid #bbb;
    border-radius: 2px;
    padding: 4px;
    top: 80px;
    left: 110px;
    font-family: monospace;
}


.aladin-popup-arrow {
    display: block;
    border-color: #fff transparent transparent;
    border-style: solid;
    border-width: 12px;
    width: 0px;
    height: 0px;
    margin-top: -1px;
    margin-left: auto;
    margin-right: auto;
/*
    width: 15px;
    height: 15px;
    background: white;
    margin: -12px 94px;
    padding-bottom: 10px;
    overflow: hidden;
    -webkit-transform: rotate(45deg);
       -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
         -o-transform: rotate(45deg);
            transform: rotate(45deg);
*/
}

.aladin-popupTitle {
    font-weight: bold;
}

.aladin-options {
    margin-top: 4px;
}

.aladin-options .row {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.aladin-options .row label {
    text-align: center;
}

.aladin-options .row .col-label {
    flex: 0.3;
}

.aladin-options .row .col-input {
    flex: 0.70;
}

.aladin-options .row .col-input select {
    width: 100%;
}

.aladin-status-bar-message {
    display: block;
    white-space: nowrap;

    text-wrap: nowrap;
    -ms-overflow-style: none;
    overscroll-behavior-x: none;
    overflow-y: scroll;
    scrollbar-width: none;
}

.aladin-status-bar-message::-webkit-scrollbar {
    display: none;
}

.aladin-sp-title a {
    text-decoration: none;
    color: #317d8d;
}

.aladin-sp-content a {
    text-decoration: none;
    color: #478ade;
}

.aladin-cuts {
    width: 8em;
}

.aladin-chevron {
  display: inline-block;
  width: 16px;
  height: 16px;
  cursor: pointer;
  vertical-align: middle;
  background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDQ0IDQ0IiBzdHJva2U9IiM0NDQiIGJhY2tncm91bmQtY29sb3I9ImJsdWUiPgoKICAgIDxyZWN0IHg9IjIiIHk9IjIiIGhlaWdodD0iNDAiIHdpZHRoPSI0MCIgZmlsbD0idHJhbnNwYXJlbnQiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTEwIDEzIEwyMiAyMSBMMzQgMTMiIGZpbGw9InRyYW5zcGFyZW50IiBzdHJva2Utd2lkdGg9IjYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPiAKICAgIDxwYXRoIGQ9Ik05IDI1IEwyMiAzMyBMMzUgMjUiIGZpbGw9InRyYW5zcGFyZW50IiBzdHJva2Utd2lkdGg9IjYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPiAKCjwvc3ZnPgo=') no-repeat;
}
.aladin-chevron-down {
  transform: rotate(0deg);
}
.aladin-chevron-left {
  transform: rotate(90deg);
}
.aladin-chevron-up {
  transform: rotate(180deg);
}
.aladin-chevron-right {
  transform: rotate(270deg);
}

/* *********************************************** */

/* *********************************************** */

/* Context menu */
.aladin-context-menu .aladin-context-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    width: max-content;
    /*z-index: 20;*/
}

.aladin-context-sub-menu,
.aladin-context-menu {
    position: absolute;

    font-family: monospace;
    width: max-content;
    margin: 0;
    padding: 0;

    border-bottom: var(--border-size) solid var(--border-color);
    border-right: var(--border-size) solid var(--border-color);
}

.aladin-context-menu .aladin-context-menu-item {
    cursor: pointer;

    height: 1.7rem;

    display: flex;
    align-items: center;
    padding: 0.2rem 0.4rem;
    position: relative;

    box-shadow:inset var(--border-size) var(--border-size) 0px 0px var(--border-color);

    background-color: var(--bg-color);

    margin: 0;
    box-sizing: content-box;
    line-height: normal;
}

.aladin-context-menu .aladin-context-menu-item:last-of-type {
    border-bottom: 0;
}

.aladin-context-menu .aladin-context-menu-item.aladin-context-menu-item-disabled {
    cursor: not-allowed;
    color: var(--error-color);
}

.aladin-context-menu .aladin-context-menu-item.aladin-context-menu-item-selected::after {
    content: "✓";
    margin-left: 2px;
}

.aladin-stack-box .aladin-overlay-label {
    text-align: center;
    width: 100%;
}

.aladin-context-menu-item:hover > .aladin-context-sub-menu,
.aladin-context-menu-item:focus-within > .aladin-context-sub-menu {
    display: block;
}

.aladin-context-menu-item:hover  {
    color: var(--hover-color);
}

.aladin-context-menu-item:not(hover)  {
    color: var(--text-color);
}

.aladin-context-menu-item .aladin-context-sub-menu {
    display: none;
}

.aladin-context-menu .aladin-context-menu-item span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aladin-context-menu.left {
    left: 0;
    transform: translateX(-100%);
}

.aladin-context-menu.top{
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.aladin-context-menu.bottom {
    top: 100%;
    left: 0;
}

.aladin-context-menu .aladin-context-sub-menu.left {
    left: 0;
    transform: translateX(-100%);
}

.aladin-context-menu .aladin-context-sub-menu.right {
    right: 0;
}

.aladin-context-menu .aladin-context-sub-menu.bottom {
    top: 100%;
    left: 0;
}

.aladin-context-menu .aladin-context-sub-menu.top {
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.aladin-context-menu .aladin-context-sub-menu.left.top {
    transform: translate(-100%, -100%);
}

.aladin-box.left {
    left: 0;
    transform: translateX(-100%);
}

.aladin-box.right {
    right: 0;
}

.aladin-box.bottom {
    top: 100%;
    left: 0;
}

.aladin-box.top {
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.aladin-box.left.top {
    transform: translate(-100%, -100%);
}

.aladin-reticle {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: contain;

    visibility: hidden;

    pointer-events: none;
}

/* *********************************************** */

/* normalize here the inputs */

/* Input text */
.aladin-input-text, .aladin-input-number {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    outline-style: none;
    padding: 0.5rem;
    border-radius: 0.2rem;
    font-family: monospace;
    box-sizing: border-box;
}

.aladin-input-text, .aladin-input-number {
    background-color: var(--bg-color);
    border: var(--border-size) solid var(--border-color);
    color: var(--text-color)
}

.aladin-input-text::placeholder {
    font-style: italic;
    font-family: monospace;
}

/* Input select */
.aladin-input-select {
    /* Reset */
    border: var(--border-size) solid var(--border-color);
    outline: 0;
    /*font: inherit;*/
    /* Personalize */
    padding: 0.2rem 0;
    font-size: inherit;
    border-radius: 0.2rem;
    cursor: pointer;
    font-family: monospace;
    box-sizing: content-box;
}

/* This is done so that the select shrink to the size of its parent (coupled with flex)
otherwise it fits its content options. If those are too big the select can go out of its parent */
.aladin-horizontal-list .aladin-input-select {
    width: 100%;
}

.aladin-input-select option {
    color: inherit;
    background-color: #320a28;
}

.aladin-input-select:focus {
    outline: none;
}

.aladin-input-select::-ms-expand {
    display: none;
}

/* Frames */
.aladin-input-color {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    outline-style: none;
    padding: 0;
    border: var(--border-size) solid var(--border-color);
    border-radius: 0.4rem;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
}

.aladin-input-color::-webkit-color-swatch {
    border: none;
    padding: 0;
}

.aladin-input-color::-webkit-color-swatch-wrapper {
    border: none;
    padding: 0;
}

/********** Range Input Styles **********/
/*Range Reset*/
.aladin-input-range {
    cursor: pointer;
    margin: 0.8rem 0;
    box-sizing: border-box;
    width: 5rem;
 }


 .aladin-input-range.aladin-reversed {
     direction: rtl;
 }
 
 /* Removes default focus */
 .aladin-input-range:focus {
   outline: none;
 }

.aladin-input-text:-internal-autofill-selected,
.aladin-input-text:-internal-autofill-selected:hover,
.aladin-input-text:-internal-autofill-selected:focus,
.aladin-input-text:-internal-autofill-selected:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset !important;
    box-shadow: 0 0 0 1000px var(--bg-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    padding-left: 0.5rem !important;
}
 
 /***** Chrome, Safari, Opera and Edge Chromium styles *****/
 
 .aladin-input-range::-webkit-slider-container {
    height: 0.1rem;
    min-height: 0.1rem;
 }

/* *********************************************** */

/* Tooltip */
.aladin-tooltip-container {
    position: relative;
    /* take the size of its inner div child */

    font-family: monospace;
    line-height: 1rem;

}

.aladin-tooltip-container .aladin-tooltip {
    pointer-events: none;
    cursor: default;
    visibility: hidden;

    width: max-content; 
    
    text-align: center;
    padding: 4px;

    top:0%;
    left:0%;

    z-index: 100;
 
    /* Position the tooltip text - see examples below! */
    position: absolute;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: var(--border-size) solid var(--border-color);

    /*font-family: Verdana, Geneva, Tahoma, sans-serif;*/

    transition-delay: 100ms;
}

/* Show the tooltip text when you mouse over the tooltip container */
.aladin-tooltip-container:hover .aladin-tooltip {
    visibility: visible;
}

.aladin-tooltip-container.left .aladin-tooltip {
    left: 0;
    transform: translateX(-100%);
}

.aladin-tooltip-container.top .aladin-tooltip {
    top: 0;
    transform: translateY(-100%);
}

.aladin-tooltip-container.bottom .aladin-tooltip {
    top: 100%;
}

.aladin-tooltip-container.right .aladin-tooltip {
    left: 100%;
}

.aladin-tooltip-container.left.bottom .aladin-tooltip {
    left: 0;
    transform: translateX(-100%);
    top: 100%;
}

.aladin-tooltip-container.left.top .aladin-tooltip {
    left: 0;
    transform: translateX(-100%);
    top: 0;
    transform: translateY(-100%);
}

.aladin-tooltip-container.right.bottom .aladin-tooltip {
    left: 100%;
    top: 100%;
}

.aladin-tooltip-container.right.top .aladin-tooltip {
    left: 100%;
    top: 0;
    transform: translateY(-100%);
}

.aladin-color-picker {
    transform: translate(10px, 10px);
    position: fixed;

    pointer-events: none;
}

.aladin-view-label {
    font-weight: bold;
    font-family: monospace;
    background-color: #00000000;
    font-size: 1rem;
    color: var(--aladin-color);

    text-shadow: 1px 0 var(--border-color), -1px 0 var(--border-color), 0 1px var(--border-color), 0 -1px var(--border-color),
               1px 1px var(--border-color), -1px -1px var(--border-color), 1px -1px var(--border-color), -1px 1px var(--border-color);
}

/* *********************************************** */

/* Cursors */

/* Simbad pointer cursor */
.aladin-sp-cursor {
    cursor: auto;
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEIEwUMBS20MQAAApRJREFUWEfdV7GO2zAMfXY7x1luzOFwDeB/KHCAB87eumvqmI/JWhTwF3TIrMFAv8JbgWyHG3IpOjbpcKJC02KipECHclIU+j2KfKRlAABRUyFYak3UgKiZiXUJAIt1d1ysu2PYn53DsPCucpbkRE3JAdxKTtQgWo6zJAfGGbAwLuEV7OB9/yrXIbqZ9/0+rMuhdb+RYfWmm+fged8fihzyoXXxlNcYB2KRxwwA6SzI9Crgd973B/5/u3IF8FYSw98M5D2QR86kRE3pfX+AMqKm8iEQoqYaWrfj/4bW7QgokMhCeSs5KeVrDM4K29C6Y6oE0YGEUlndocVGyg/rGZDXBQpr0kmjLiAlOOvk3vf7RJZM5Q+te2W/7coVEq+wnC1yCZYyS3B8MMYF3vBKK9Jz5PWmm8sab1eu4N9D63aaHEAsH88SzmQpnSHsHDmnWvlXIoiJ4JTviY8FRUJ8ZAiOEiJbLpcjARM1M0twpmjZOeGQrXYm1/7yMLz/eH8fnyus6XXOtmLgWBrKtdMguNKYPPystIausn9egsVDfI674KxS6003F/sX357AdOBwcADwWD9EjBKJubxYd0cml4RhP5IPrduFk04GjiZXMyZiRHKdAU3OWeB2lLNAk+tpl9IHY0zSlBo4OgsaTJpFzs+F0pxKYEXK73Nd8+3KFfWmG71qGfgSeQqPN0fvdlZrSvmUoXaJJ7EiocArZaS6tgzA+5RQe3gumUl5gPLXzy+6pEQNzDuhvFKx1ZuuEuTxliwmY/KuoHxGhzGv5QDw9PTx7senz88aLHUpJeOu8OHb17u+//4CTMm97/eFVQK5vqR8y6xOyipByjn3+0C3moUH4O++D1UX3PR9eJWzJCf6Tz5O/wDUeIfTLPlbywAAAABJRU5ErkJggg==') 15 15, auto;
}

/** 
 * Aladin Lite pre-defined UI features.
 *
 * User may need to overwrite those classes if they want
 * change their position. They can also add media query on them.
 *
 */

.aladin-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 5px;
    vertical-align: middle;
    border: var(--border-size) solid var(--border-color);
}

.aladin-indicator.aladin-not-found {
  background-color: darkorange;
}

.aladin-indicator.aladin-valid {
  background-color: var(--valid-color);
}

.aladin-link:hover {
    text-decoration: underline;
}

.aladin-cooFrame {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;

    font-family: monospace;

    color: var(--text-color);

    border-radius: 0.4rem;
}

.aladin-stack-box {
    min-width: 17rem;
    max-width: 300px;
}

.aladin-item-selected {
    border: var(--border-size) solid orange;
}

.aladin-HiPS-browser-box {
    height: 500px;
    min-width: 400px;
}

.aladin-cat-browser-box {
    width: 400px;
}

.aladin-HiPS-browser-box .aladin-input-text {
    width: 100%;

}

.aladin-cat-browser-box .aladin-input-text.search {
    width: 100%;
}

.aladin-location {
    position: absolute;
    top: 0.2rem;
    left: 4.75rem;
    font-family: monospace;

    color: var(--text-color);

    border-radius: 0.2rem;
}

.aladin-input-text {
    font-size: inherit;
}

.aladin-location .aladin-input-text {
    border-radius: 0 0.2rem 0.2rem 0;
    box-sizing: content-box;
    width: 12.5rem;
    padding: 0.2rem;
}

.aladin-location .aladin-location-copy {
    margin-right: -0.2rem;
    border-radius: 0.2rem 0 0 0.2rem;
    border-right: none;
}

.aladin-fov {
    background-color: transparent;
}

[data-theme="light"] .aladin-fov {
    color: white;
}

[data-theme="dark"] .aladin-fov {
    color: var(--text-color);
}

.aladin-fov {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;

    font-family: monospace;

    border-radius: 0.4rem;
    line-height: 1.7rem;
}

.aladin-zoom {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.aladin-zoom-out {
    margin-right: 0;
    border-top: none;
    border-radius: 0 0 0.4rem 0.4rem;
}

.aladin-zoom-in {
    border-radius: 0.4rem 0.4rem 0 0;
}

.aladin-status-bar {
    border-radius: 0.4rem;
    padding: 0.4rem;

    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 50vw;
}

.aladin-status-bar{
    color: var(--text-color);
    background-color: var(--bg-color);
}

.aladin-table {
    position: absolute;
    bottom: 2.8rem;
    left: 0.2rem;
    max-width: calc(100% - 0.4rem);
    line-height: 1rem;
}
.aladin-measurement-div {
    color: var(--text-color);
}

.aladin-widgets-toolbar {
    position: absolute;
    margin-top: 3rem;
    margin-bottom: 5rem;
    left: 0.2rem;
}

.aladin-widgets-toolbar > * {
    padding-top: 0rem;
    margin-right: 0rem;
}

.aladin-fullScreen-control {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
}

.aladin-projection-control {
    position: absolute;
    top: 0.2rem;
    right: 2.6rem;
}

.aladin-fullscreen {
	position: fixed !important;

	top: 0;
	left: 0;
	height: 100% !important;
	width: 100% !important;
	border: 0 !important;
    max-width: none !important;
    background: #fff;
}

/* Media query */
@media screen and (max-width:480px)  {
    /* smartphones, Android phones, landscape iPhone */
    .aladin-location > .aladin-btn {
        display: none;
    }

    .aladin-location > .aladin-input-text {
        border-radius: 0.4rem;
    }

    .aladin-projection-control {
        display: none;
    }

    .aladin-location .aladin-location-copy {
        display: none;
    }
}

@media screen and (max-width:370px)  {
    /* smartphones, Android phones, landscape iPhone */
    .aladin-location {
        left: 0.2rem;
    }
    .aladin-cooFrame {
        display: none;
    }
}