
@import url('https://fonts.googleapis.com/css?family=Bad+Script');

html, body { height: 100%; }
body {
    margin: 0;
    text-align: center;
}
#audio {
    display: block;
    width: 100%;
    height: 32px;
    margin: 0;
    margin-bottom: 15px;
}
body {
    background: url('bg.jpg') center center;
    background-size: cover;
}
#bubbles {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: 0.5s left;
}

.info-shown #bubbles,
.info-shown #lyrics,
.info-shown #lyrics2 {
    left: calc(50% - 240px);
}

.bubble {
    position: absolute;
    background-size: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background-clip: padding-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font: 20px "Lucida Grande", Verdana, sans-serif;
    color: white;
    text-decoration: none;
    text-shadow: 1px 1px 2px black;
    white-space: nowrap;
    user-select: none;
    transition: 0.15s filter, 0.15s opacity;
    will-change: transform;
}

.bubble-about {
    font-size: 28px;
}

.bubble:hover {
    filter: brightness(1.3) saturate(120%);
    cursor: pointer;
    opacity: 1;
}

.silent {
    opacity: 0.4;
    border: none;
    color: transparent;
    text-shadow: none;
}

#lyrics, #lyrics2 {
    position: absolute;
    padding: 3px 15px 7px;
    color: rgba(255,255,220,0.9);
    font: 32px/1.0 'Bad Script', cursive;
    /*top: 50%;*/
    bottom: 20px;
    left: 50%;
    text-align: center;
    z-index: 20;
    transform: translate3d(-50%, -50%, 0) scale(1);
    transition: opacity 2s ease-in-out, transform 8s ease-in-out, filter 3s ease-in-out, color 3s, left 0.5s;
    /*text-shadow: 1px 1px 2px black;*/
    opacity: 0;
    filter: blur(10px);
    will-change: opacity, transform;
    pointer-events: none;
}

#lyrics.lyrics-show,
#lyrics2.lyrics-show {
    opacity: 1;
    z-index: 30;
    filter: blur(1px);
    transform: translate(-50%, -80%) scale(1.2);
}

#lyrics.lyrics-hide,
#lyrics2.lyrics-hide {
    opacity: 0;
    filter: blur(10px);
}

#lyrics.no-transition,
#lyrics2.no-transition {
    transition: none;
}

#info {
    width: 480px;
    position: absolute;
    right: 10px;
    max-height: calc(100% - 80px);
    border-radius: 8px;
    background: rgba(0,0,0,0.6);
    color: #ddd;
    z-index: 50;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    overflow: auto;
    text-align: left;
}

#info p, #info pre {
    font: 13px/1.3 "Lucida Grande", Verdana, sans-serif;
}

#info a {
    color: white;
}
#info p {
    margin: 10px 20px 16px;
}

.info-hidden {
    display: none;
}


#close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    filter: drop-shadow(0 0 2px black);
}

#close-button path {
    fill: #ddd;
}

#close-button:hover path {
    fill: white;
}

#links {
    position: absolute;
    right: 10px;
    bottom: 15px;
}

#links span {
    font: 13px/1.5 "Lucida Grande", Verdana, sans-serif;
    padding: 7px 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 5px;
    margin: 0 0 0 3px;
    color: rgba(255,255,255,0.4);
}

#links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

#links a:hover {
    color: white;
    text-decoration: underline;
}

#spotify {
    position: absolute;
    left: 10px;
    bottom: 10px;
    opacity: 0.6;
}

#spotify:hover {
    opacity: 1;
}

#warning {
    background: rgba(0,0,0,0.4);
    padding: 5px 10px;
    border-radius: 10px;
    color: white;
    font: 13px/1.5 "Lucida Grande", Verdana, sans-serif;
    position: absolute;
    left: 5px;
    margin-top: -5px;
}

@media only screen and (max-width: 670px) {
    #lyrics, #lyrics2 {
        font-size: 24px;
    }
    #info {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: auto;
        max-height: none;
    }
    #lyrics, #lyrics2, #bubbles {
        left: 50% !important;
    }

    #spotify {
        display: none;
    }

    #links span {
        font-size: 9px;
    }

    #close-button {
        position: fixed;
    }
}
