:root {            

    --my-root-accent-low: 250, 150, 250;
    --my-root-accent-high: 255, 100, 255;
    --matched-characters: #ffadff;
    --menu-list-top-border: rgba(var(--my-root-accent-low), 0.15); 
    --menu-list-item-border: rgba(var(--my-root-accent-low), 0.09);
    --selection-background: rgba(var(--my-root-accent-high), 0.7);
    --some-example: rgba(255, 0, 0, 0.5);
}

* {
    font-family: Iosevka, monospace;
    font-size: 20px;
    font-weight: bold;
}

body {
    background-image: url('src/spacebg1.jpg');
    background-color: black;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#search-container {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#search-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    border: none;
    outline: none;
    color: transparent;
    padding: 0.8em 1em 0.68em 1em;
    box-sizing: border-box;
    height: 2.75em;
    text-shadow: 0 0 0 #fff;
    caret-color: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    line-height: 1;
}

/* Main menu option list */
.ui-autocomplete {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;

 /* max-height: calc(100vh - ( 2 * 2.75em )); */
    max-height: 23em;
    position: fixed !important;
    top: auto !important;
    bottom: 2.75em !important; /* Height of search input */
    left: 0 !important;
    background: transparent;
    border: none;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.ui-menu-item {
    padding: .5em 1em;
    border-bottom: 1px solid var(--menu-list-item-border);
    color: white;
    background-color: rgba(0, 0, 0, 0.55);
    width: 100%;
    box-sizing: border-box;
}

.ui-menu-item.ui-state-focus, .ui-menu-item.exact-match {
    background: var(--selection-background);
    color: #fff;
    font-weight: bold;
}

.matched-text {
    font-weight: bold;
    color: var(--matched-characters);
    text-decoration: underline dotted;
}

.cursor {
    position: absolute;
    width: 0.5em;
    margin-left: 0.05em;
    height: 1em;
    background: #ffffff;
    animation: blink 0.7s infinite step-end;
    pointer-events: none;
    z-index: 10;
    left: 1em;
    bottom: 0.8em;
    opacity: 0;
}

.ui-widget.ui-widget-content {
  border-width: 0px;
  scrollbar-width: none;
}

#search-input:focus ~ .cursor {
    opacity: 1;
}

@keyframes blink {
    50% { opacity: 0; }
}

ul:has(.ui-menu-item) {
    background-color: transparent;
    border-top: 3px solid var(--menu-list-top-border) !important;
    box-shadow: 0px -14px 14px -8px rgba(0, 0, 0, 0.65) !important;
}

