﻿:root {
    --headerColor: #1b273a;
    --blue: hsl(207, 90%, 54%);
    --titleColor: white;
    --a: #03A9F4;
    --b: #78909C;
    --c: #673AB7;
    --d: #FF7043;
    --e: #EC407A;
    --f: #00897B;
    --correct: #4CAF50;
    --wrong: #f44336;
    --some: #FF7043;
    --font: 'Open Sans', system-ui, -apple-system, Roboto, 'Segoe UI', 'Arial';
}

html.noconnect header {
    background-color: #f44336 !important;
    color: white !important;
}

dialog::backdrop {
    background: rgba(0, 0, 0, .5);
}


#retryError {
    position: absolute;
    bottom: 1em;
    margin: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1em;
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);

    &>div {

        display: flex;

        &>div {
            padding-right: 0.5em;
            margin: auto;
        }
    }

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: #fff;
}

select {
    font-family: var(--font);
}

.playpause {
    background-color: #4fc3f7;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    border: 0;
    margin: 1em auto;
    cursor: pointer;

    img {
        width: 30px;
        height: 30px;
    }

    path {
        fill: white;
    }

    &.disabled {
        pointer-events: none;
        background-color: #ccc;
    }
}




#messages {
    position: sticky;
    background-color: white;
    height: 30px;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    font-size: 1.1rem;

    p {
        margin: auto;
    }
}

#progressContainer {
    height: 20px;
    border-bottom: 1px silver solid;
    background: white;


    #progress {
        background: #a7d269;
        height: 100%;
        width: 0;
        text-align: right;
        font: bold 10px arial;
        border-right: 1px silver solid;
        line-height: 20px;
        color: #444;

        &.middle {
            background-color: #FF7043;
        }

        &.warning {
            background-color: #f44336;
        }

        &.start {
            width: 100%;
        }
    }
}



.button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.button {
    display: inline-block;
    zoom: 1;
    padding: 6px 20px;
    margin: 0;
    cursor: pointer;
    border: 1px solid #bbb;
    overflow: visible;
    font: bold 13px arial, helvetica, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    color: #555;

    background-color: #ddd;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 1)), to(rgba(255, 255, 255, 0)));
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    background-image: linear-gradient(top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));

    -webkit-transition: background-color .2s ease-out;
    -moz-transition: background-color .2s ease-out;
    -ms-transition: background-color .2s ease-out;
    -o-transition: background-color .2s ease-out;
    transition: background-color .2s ease-out;
    background-clip: padding-box;
    /* Fix bleeding */
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
    -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 2px -1px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3) inset;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9);

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button:hover {
    background-color: #eee;
    color: #555;
}

.button:active {
    background: #e9e9e9;
    position: relative;
    top: 1px;
    text-shadow: none;
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .3) inset;
}

.button[disabled],
.button[disabled]:hover,
.button[disabled]:active {
    border-color: #eaeaea;
    background: #fafafa;
    cursor: default;
    position: static;
    color: #999;
    /* Usually, !important should be avoided but here it's really needed :) */
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Smaller buttons styles */

.button.small {
    padding: 4px 12px;
}

/* Larger buttons styles */

.button.large {
    padding: 12px 30px;
    text-transform: uppercase;
}

.button.large:active {
    top: 2px;
}

/* Colored buttons styles */

.button.green,
.button.red,
.button.blue {
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2);

    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .3)), to(rgba(255, 255, 255, 0)));
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
    background-image: -moz-linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
    background-image: -ms-linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
    background-image: linear-gradient(top, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
}

/* */

.button.green {
    background-color: #57a957;
    border-color: #57a957;
}

.button.green:hover {
    background-color: #62c462;
}

.button.green:active {
    background: #57a957;
}

/* */

.button.red {
    background-color: #ca3535;
    border-color: #c43c35;
}

.button.red:hover {
    background-color: #ee5f5b;
}

.button.red:active {
    background: #c43c35;
}

/* */

.button.blue {
    background-color: #269CE9;
    border-color: #269CE9;
}

.button.blue:hover {
    background-color: #70B9E8;
}

.button.blue:active {
    background: #269CE9;
}

/* */

.green[disabled],
.green[disabled]:hover,
.green[disabled]:active {
    border-color: #57A957;
    background: #57A957;
    color: #D2FFD2;
}

.red[disabled],
.red[disabled]:hover,
.red[disabled]:active {
    border-color: #C43C35;
    background: #C43C35;
    color: #FFD3D3;
}

.blue[disabled],
.blue[disabled]:hover,
.blue[disabled]:active {
    border-color: #269CE9;
    background: #269CE9;
    color: #93D5FF;
}




.btn-floating {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

input[type='email'],
input[type='password'],
input[type='text'] {
    font-size: 1.3rem;
}





#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;

    &.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }
}


.equaliser-container {
    height: 40px;
    width: 200px;
    margin: 0 0;
    padding: 0 0 0 0;
    position: relative;


    .colour-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 40px;
        background: #999797;
    }

    .equaliser-column {
        width: 10px;
        float: left;
        margin: 0 1px 0 0;
        padding: 0;
        height: 40px;
        position: relative;
        list-style-type: none;
    }

    .equaliser-column:nth-child(1) .colour-bar {
        animation: color-bar 2s 1s ease-out alternate infinite;
    }

    .equaliser-column:nth-child(2) .colour-bar {
        animation: color-bar 2s 0.5s ease-out alternate infinite;
    }

    .equaliser-column:nth-child(3) .colour-bar {
        animation: color-bar 2s 1.5s ease-out alternate infinite;
    }

    .equaliser-column:nth-child(4) .colour-bar {
        animation: color-bar 2s 0.25s ease-out alternate infinite;
    }

    .equaliser-column:nth-child(5) .colour-bar {
        animation: color-bar 2s 2s ease-out alternate infinite;
    }

    .equaliser-column:last-child {
        margin-right: 0;
    }
}

@keyframes color-bar {
    0% {
        height: 4px;
        background: #BBDEFB;
    }

    10% {
        height: 12px;
        background: #64B5F6;
    }

    20% {
        height: 20px;
        background: #2196F3;
    }

    30% {
        height: 8px;
        background: #90CAF9;
    }

    40% {
        height: 28px;
        background: #1976D2;
    }

    50% {
        height: 36px;
        background: #0D47A1;
    }

    60% {
        height: 12px;
        background: #64B5F6;
    }

    70% {
        height: 32px;
        background: #1565C0;
    }

    80% {
        height: 20px;
        background: #2196F3;
    }

    90% {
        height: 36px;
        background: #0D47A1;
    }

    100% {
        height: 4px;
        background: #BBDEFB;
    }
}

#qmp3 {
    display: flex;

    &>div {
        width: 100%;
    }

    &>div:first-child {
        text-align: right;
        padding-right: 1em;
    }

    &>div:last-child {
        padding-left: 1em;
        padding-top: 1.2em;
    }
}


.chat-button {
    font-size: 1.7em;
    position: absolute;
    right: 75px;
    color: white;
    cursor: pointer;
    z-index: 10;

    i {
        line-height: 45px;
    }
}

















@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

sl-button[slot="footer"] {
    margin-right: 1em;
}