/*
    Palette
    https://colorhunt.co/palette/30252
    Find color midpoint: https://meyerweb.com/eric/tools/color-blend/
*/


/*
    Global
*/

html {
    height: 100%;
}

body {
    background-color: #1f024c;
    color: white;
    font-family: 'Karla', sans-serif;
    height: 100%;
    margin: 0px;
}

.hidden {
    display: none;
    pointer-events: none;
}

.margin-auto {
    margin: auto;
}

#login {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #45056e;
    color: gold;
    border-radius: 5px;
    border: 1px solid #f638dc;
    height: 10%;
    cursor: pointer;
}

#app {
    height: 97%;
    width: 97%;
    margin: auto;
}

.flex {
    display: flex;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

.loading {
    text-align: center;
    padding-top: 10%;
}

.mask {
    position: absolute;
    width: 100%;
    left: 0px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}


/*
    Table Display
*/

#context-menu {
    position: absolute;
    min-width: 25%;
    background: white;
    color: black;
    box-shadow: 2px 2px 2px 2px;
    border-radius: 4px;
    text-align: center;
    transition: .25s;
    z-index: 10;
}

.context-item {
    cursor: pointer;
}

.context-item:hover {
    background-color: lightgray;
}

#library-banner {
    height: 5%;
    display: flex;
}

.banner_element {
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.banner_element.selected {
    background: black;
    border: solid 1px white;
    border-radius: 5px;
}

.search_component {
    position: absolute;
    transition: 0.25s;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    overflow: hidden;
}

.search_group {
    display: flex;
    min-height: 2em;
    background-color: white;
    border-radius: 5px;
}

.search_component i {
    color: #45056e;
}

.search_component input {
    width: 100%;
    border: 0px;
    border-radius: 5px;
    font-size: 1.5em;
    padding-left: 10px;
}

.search_hidden {
    top: -100px;
    pointer-events: none;
}

#library-table {
    flex-direction: column;
    display: flex;
    border: 3px solid #f638dc;
    border-radius: 5px;
    height: 75%;
}

.table_body {
    overflow-y: overlay !important;
    overflow-y: scroll;
    scrollbar-color: #f638dc #1f024c;
    scrollbar-width: thin;
    height: 100%;
}

.card_table {
    overflow-y: overlay !important;
    overflow-y: scroll;
    scrollbar-color: #f638dc #1f024c;
    scrollbar-width: thin;
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}

#context_bar {
    height: 15%;
    display: flex;
}

#shuffleAll {
    margin: auto auto;
    width: 40%;
    text-align: center;
    border: 1px solid #f638dc;
    border-radius: 5px;
    cursor: pointer;
    height: 40%;
    line-height: 200%;
}


/*
    Row Display
*/

.body_row {
    display: flex;
    cursor: pointer;
    min-height: 2em;
    transition: 0.25s;
    align-items: center;
}

.body_header {
    text-align: center;
}

.card {
    width: 47%;
    max-height: 50%;
    min-height: 20%;
    margin: 1%;
    text-align: center;
    font-weight: bolder;
    cursor: pointer;
}

#favorites-card {
    width: 100% !important;
}

.body_row:hover {
    background: #1f024c !important;
}

.card:hover {
    border: solid 1px gold;
    border-radius: 5px;
}

.body_row:nth-child(even),
.card:nth-child(even) {
    background: #45056e;
}

.body_row:nth-child(odd),
.card:nth-child(odd) {
    background: #8f1383;
}


/*
    Cell Display
*/

.text-section {
    width: 85%;
}

.text-section>.title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.0em;
}

.text-section>.description {
    font-size: 0.8em;
    color: lightgray;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.action-section {
    width: 15%;
    margin-left: auto;
    align-content: center;
    display: flex;
}

.is-favorite,
.not-favorite {
    cursor: pointer;
}

.is-favorite {
    font-weight: 900;
}

.not-favorite:hover {
    font-weight: 900;
}

.is-favorite:hover {
    font-weight: unset;
}

.body_cell {
    flex: 1;
}

.small_body_cell {
    flex: 0.1;
    margin-right: auto;
}


/*
    Music Player Display
*/

#music-player {
    display: flex;
    height: 20%;
    border: 3px solid #f638dc;
    border-radius: 5px;
    background: #45056e;
    flex-direction: column;
}

#timeline-container {
    width: 90%;
    margin: auto;
}

#timeline {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: .2s;
    outline: none;
    background: #C326B0;
}

#timeline::-webkit-slider-thumb {
    width: 25px;
    height: 25px;
    background: gold;
    cursor: pointer;
    transition: .2s;
}

#timeline::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 15px;
    background: gold;
    cursor: pointer;
    transition: .2s;
}

#timeline::-webkit-slider-thumb:hover {
    width: 30px;
    height: 30px;
}

#timeline::-moz-range-thumb:hover {
    width: 30px;
    height: 30px;
}

.player_button {
    transition: 0.25s;
    color: #f638dc;
    border-radius: 3px;
    padding: 0px 5px 0px 5px;
    cursor: pointer;
}

.player_button:hover {
    color: #C326B0;
    cursor: pointer;
}

#shuffle-button {
    margin-left: auto;
    padding-right: 1%;
    cursor: pointer;
    transition: 0.1s;
}

#shuffle-button:hover {
    text-shadow: 3px 4px 5px black;
}

.is-shuffling {
    color: gold;
}

#song-description {
    width: 80%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#music-player-context-button {
    position: absolute;
    right: 5%;
    cursor: pointer;
}