/* This stylesheet is used for styling things.
   It defines what things look like, but not where they are. */

/* Color definitions */

:root {
    /* --accent-color: #74cacf; */
    --accent-color: #99af64;
    --chord-color: var(--accent-color);
    --link-color: #73893f;
    --link-color-dark: #606e39;
    --link-color-highlight: #9bc735;

    --text-background: #f6f6f6;
    --text-soft: #8a9278;

    --warn-red: #d16a51;
}

/* General styling */
body {
    font-family: 'Source Sans Pro', sans-serif;
    background: url(assets/noise.png) repeat, var(--accent-color);
}

div#main-content {
    background-color: var(--text-background);
    border-radius: 3px;
    box-shadow: 0px 0px 10px 0px var(--link-color);
}

div#sidepanel {
    border-right: 1px solid var(--text-soft);
    background-color: var(--text-background);
}

.noto-music {
  font-family: "Noto Music", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.noto-symbols {
  font-family: "Noto Sans Symbols 2", sans-serif;
  font-weight: 400;
  font-style: normal;
}

@media screen and (max-width: 800px) {
    div#main-content {
        border-radius: 0px;
        box-shadow: none;
    }

    body {
        background-color: var(--text-background);
    }

    div#control-button-div {
        background-color: var(--accent-color);
    }
    div#control-button-div.red {
        background-color: var(--warn-red);
    }
    div#control-button-div.gray {
        background-color: var(--text-soft);
    }
}

@media screen and (min-width: 800px) {
    div#control-button-div {
        background-color: #00000061;
    }
}

/* Content */

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1em;
    color: var(--accent-color)
}

/* QR Code and Session Title */

div.header h2 {
    margin: 0;
    font-size: 1.3em;
    text-align: center;
}

div#session-qr img {
    width: 100%;
}

div#session-qr {
    display: flex;
    justify-content: center;
}

/* Song list */

div#navigation span.selected {
    background-color: var(--accent-color);
    display: block;
    border-radius: 3px;
    padding: 5px;
    color: black;
    font-weight: bold;
}

/* Chords */
.chord {
    color: var(--accent-color);
    font-size: small;
    font-weight: bold;
}

.chord sup {
    font-size: small;
}

p.comment {
    color: var(--text-soft);
    font-style: italic;
}

/* Links */
a:hover {
    color: var(--link-color-dark);
}

a {
    color: var(--link-color);
    cursor: pointer;
}

a.active {
    color: var(--accent-color-dark);
}

/* Buttons */
div#control-button-div button, #session-connect {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

button#follow.active {
    color: darkolivegreen;
}

button.large {
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    background-color: var(--accent-color);
}

button.large.red {
    background-color: var(--warn-red);
}

div#session-buttons {
    display: flex;
    justify-content: space-evenly;
}

/* Loading indicator */

div.loading {
    padding-top: 1em;
}

img.loading {
    width: 100px;
}

/* Refresh indicator */

div.refresh {
    display: flex;
    align-items: center;
}

img.refresh {
    margin-left: 0.5em;
}

/* Empty states */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}

/* Lists */

ul {
    padding-left: 0;
}

li {
    list-style-type: none;
    margin-bottom: 0.2em;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--link-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--link-color-dark);
}

@media screen and (max-width: 800px) {

    ::-webkit-scrollbar-track {
    background: var(--text-background);
    }

    ::-webkit-scrollbar-thumb {
    background: var(--text-soft);
    }

    ::-webkit-scrollbar-thumb:hover {
    background: var(--link-color);
    }

}
