* {
    box-sizing: border-box;
    border-radius: 2px;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-y: scroll;
    display: block;
    margin: 0;
}

h1 {
    font-family: 'Roboto Slab', serif;
}

/** ScrollBar **/
*::-webkit-scrollbar {
    width: 18px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #eee;
}

*::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 2px;
    border: 5px solid #eee;
    border-radius: 12px;
}

*::-webkit-scrollbar-thumb:vertical:hover {
    background: #bb85d6aa;
}

/** ScrollBar **/


.container>*:first-child,
form>*:first-child {
    margin-top: 0;
}
.container>*:last-child,
form>*:last-child {
    margin-bottom: 0;
}

.container:not(:empty),
.auto-width-content:not(:empty) {
    padding: 1em;
    border: 1px solid #ddd;
    width: auto;
}

.auto-width-content:not(:empty) {
    margin-top: 1em;
}

.container:not(:empty) {
    max-width: 560px;
    min-width: 200px;
    margin: 1em auto;
}

.container.error {
    background-color: rgba(255, 48, 41, 0.082);
    color: red;
}

.container.success {
    background-color: #04aa6d31;
    color: green;
}

#output {
    display: none;
}

.cookie-banner {
    font-size: .64em;
    /* opacity: .8; */
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    color: #888;
    float: right;
    clear: right;
}

/* Full-width input fields */
input[type=text],
input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: none;
    background: #f1f1f1;
}

/*
 * Clear float elements inside the clearfix parent
 * https://www.w3schools.com/howto/howto_css_clearfix.asp
 */
.clearfix {
    overflow: auto;
}

.clearfix::after {
    content: " ";
    display: block;
    width: 100%;
    clear: both;
}

input[type=text]:focus,
input[type=password]:focus {
    background-color: #ddd;
    outline: none;
}

/* Overwrite default styles of hr */
hr {
    border: 1px solid #f1f1f1;
    margin-bottom: 25px;
}

/* Set a style for the submit/register button */
.btn,
.login-btn,
.register-btn {
    /* background-color: #04AA6D; */
    background-color: #aa66ccdd;

    color: white;
    padding: 16px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1em;
    user-select: none;
}

.btn:hover,
.login-btn:hover,
.register-btn:hover {
    opacity: 1;
    transition: opacity .5s;
}

.btn {
    margin: 0;
}

.btn.gray-btn {
    background-color: #f5f5f5;
    /* border: 1px solid #ddd; */
    color: #555;
    opacity: 1;
}

.btn.gray-btn:hover {
    background-color: #555;
    /* border: 1px solid #ddd; */
    color: #f5f5f5;
    transition: background-color .3s;
}
/* Left/Right Arrow buttons */
.left-arrow,
.right-arrow {
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 80%;
    /* height: 1rem; */
    width: 4rem;
}

.left-arrow {
    background-image: url('./assets/left.svg');
    /* float: left; */
}

.right-arrow {
    background-image: url('./assets/right.svg');
    /* float: right; */
}

/* Add a blue text color to links */
a {
    color: dodgerblue;
}

/* Set a grey background color and center the text of the "sign in" section */
.sign-in {
    background-color: #f1f1f1;
    text-align: center;
}

/* Grid model of the navigation buttons */
.grid-container {
    display: grid;
    grid-template-areas: 'navBtnLeft navCenter navBtnRight';
    grid-template-columns: 4rem auto 4rem;
    column-gap: 1em;
    /* row-gap: 1em; */
}

.nav-btn-left {
    grid-area: navBtnLeft;

    justify-content: space-between;
    align-items: center;
}

.nav-center {
    grid-area: navCenter;
    justify-content: center;
    align-items: center;
    text-align: center;

    display: flex;           /* Enable flex-box to align the content*/
    justify-content: center; /* align horizontal */
    align-items: center;     /* align vertical */
}

.nav-btn-right {
    grid-area: navBtnRight;
    justify-content: space-between;
    align-items: center;
}

/* fit the content of the .container element to the image-container */
/* image container */
.image-container {
    width: 560px;
    height: 560px;
    margin: 1em 0;
    
    border: 1px solid #eee;
    border-radius: .6em;
    
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    /* background-position: -2px -2px;
    background-repeat: no-repeat;
    background-size: calc(100% + 4px); */
    
    cursor: pointer;
    transform: scale(1.005);
}

.auto-width-content {
    display: table-caption;
    caption-side: bottom;
}
.container {
    width: fit-content;
    width: -webkit-fit-content;
    display: table;
}

.image-container img.cover {
    width: 100%;
    width: -webkit-fill-available;
    height: auto;
}

/* audio player */
audio.player {
    float: right;
    clear: right;
    transform: scale(.8);
    transform-origin: 100% 0;
}

/* Auto play switch */
.auto-play,
.lyrics-switch {
    background-repeat: no-repeat;
    background-position: right;
    font-family: 'Roboto Mono', monospace;
    background-size: auto 90%;
    width: -webkit-fit-content;
    padding-right: 1.8em;
    /* margin: 1em 0; */
    transform: scale(.95);
    transform-origin: 100%;
    margin-right: .2em;
    user-select: none;
    cursor: pointer;
    opacity: .8;
}
.auto-play {
    float: right;
    clear: right;
}

.lyrics-switch {
    float: right;
    margin-right: 1em;
}

.auto-play.switch-on,
.lyrics-switch.switch-on {
    color: #aa66cc;
    background-image: url('./assets/switch-on.svg');
}

.auto-play.switch-off,
.lyrics-switch.switch-off {
    color: #ccc;
    background-image: url('./assets/switch-off.svg');
}

/* Artist and Song data */
.album-section {
    float: left;
}

.artist-name {
    margin: 0;
    font-size: 1.8em;
    color: #444;
}

.album-name {
    margin: .6em 0 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1em;
    /* font-style: italic; */
    color: #777;
}


.song-section {
    clear: both;
    padding: .5em 0 0;
}

.song-section > *:last-child {
    margin-bottom: 0;
}

.song-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.song-lyrics {
    font-family: 'Roboto', sans-serif;
    font-size: .9em;
    font-weight: 400;
    margin-top: 1em;
    line-height: 1.6;
    display: none;
}