@font-face {
    font-family: "Ubuntu-Regular";
    src: url('Ubuntu-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --main-bg-color: #2d3033;
    --main-bg-color: #181a1b;
    --search-bar-color: darkslategrey;
    --my-violet: #6b5b95;
}

* {
    box-sizing: border-box;
}
  
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    display: flex;
    flex-direction: column;
    background-color: var(--main-bg-color);
    color: ghostwhite;
    font-family: "Ubuntu-Regular", "Droid Sans", Candal;
}

a {
    color: inherit;
}

h1 {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    padding: 5px;
    margin: 0;
    background-image: linear-gradient(#2d3033, #181a1b);
}

.search-bar {
    flex: 0 0 30px;
    display: block;
    background-color: var(--search-bar-color);
    margin: 5px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 30px;
    font-family: inherit;
    font-size: large;
    color: inherit;
    padding: 2px 35px 2px 5px;
    white-space: nowrap;
    overflow: hidden;
    background: transparent;
    border: none;
}

.search-input[placeholder]:empty:before {
    content: attr(placeholder);
    color: #999; 
}

.search-bar .clear-button {
    position: absolute;
    box-sizing: border-box;
    height: 30px;
    width: 30px;
    right: 0px;
    top: 0;
    cursor: pointer;
    fill: white;
    opacity: 0.5;
}

.tab-bar {
    flex: 0 0 30px;
    display: flex;
    margin: 0 2.5px;
    font-size: large;
}

.tab {
    flex: 1 1 auto;
    text-align: center;
    line-height: 30px;
    margin: 2.5px;
    margin-bottom: 0;
    border: 1px solid #2d3033;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

@media (hover: hover) {
    .tab:hover {
        /*text-decoration: underline;*/
        border-color: grey;
    }
}

.active-tab {
    background-color: #2d3033;
}

.scrollable {
    flex: 1 1 100%;
    margin: 0 5px 5px 5px;
    overflow: hidden auto;
    scrollbar-color: var(--my-violet) var(--main-bg-color);
    scrollbar-width: thin;
}

.highlight {
    background-color: darkorange;
}

.error {
    background-color: red;
}

.discography {
    margin: 5px;
    padding-inline-start: 20px;
}

.album {
    margin-bottom: 1px;
    background-color: #2d3033;
}

.album:last-child {
    margin-bottom: 0;
    background-color: #2d3033;
}

.album-head {
    padding: 5px;
    cursor: pointer;
    font-size: large;
    display: flex;
    justify-content: space-between;
}

.album-head:hover {
    background-color: var(--my-violet);
}

.album-head *:nth-child(2) {
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
}

.album-body {
    background-color: inherit;
    padding-bottom: 10px;
}

.album-data {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 5px;
    width: 100%;
}

.album-tracks {
    margin: 0;
}

.album-track {
    display: inline;
    cursor: pointer;
}

.album-track:hover {
    background-color: var(--my-violet);
    color: azure;
}

.song {
    padding: 5px;
    margin-bottom: 1px;
    background-color: #2d3033;
    position: relative;
    cursor: pointer;
}

.song:hover {
    background-color: var(--my-violet);
}

.refcount {
    position: absolute;
    padding: 5px;
    right: 0;
    top: 0;
}

.hidden {
    display: none;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1;
    background-color: var(--my-violet);
    color: white;
    padding: 10px;
    max-height: 50%;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-color: var(--my-violet) var(--main-bg-color);
    scrollbar-width: thin;
}

.footer .close-button {
    position: absolute;
    box-sizing: border-box;
    height: 30px;
    width: 30px;
    right: 0px;
    top: 5px;
    cursor: pointer;
    fill: white;
    background-color: var(--my-violet);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: var(--main-bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--my-violet);
}
