/* ---------------- BODY & WINDOWS ---------------- */
body{
    background-color: #2695e5;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    font-family: cursive;
    height: 0;
}

body #sitelogo{
    position: fixed;
    width: 250px;
    left: 50%;
    top: 5px;
    z-index: 9;
    display: none;
    margin-left: -125px;
}

/* ---------------- window scroller ---------------- */
body::-webkit-scrollbar {
    width: 20px;
    z-index: 0;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    background: rgba(255, 255, 255, 0) ;
    background-position-x: -10px ;
    z-index: 0;
}
 
body::-webkit-scrollbar-thumb {
    background: rgb(0, 96, 166);
    border-radius: 10px;
    border: 2px solid black;
}

body::-webkit-scrollbar-thumb:hover {
    border: 3px solid black ;
}

body::-webkit-scrollbar-thumb:active {
    border: 3px inset black;
    background: darkblue;
}


h2{
    margin: 3px 0;
}

#darkback{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0.75;
    background: black;
}


/* ---------------- add playlist window ---------------- */
#addPlaylistWindow, #addPlaylistSongsWindow{
    padding: 20px;
    position: fixed;
    top: 20%;
    left: 25%;
    right: 25%;
    width: 50%;
    border: 2px double;
    overflow: auto;
    z-index: 6;
    max-height: 400px;
    background-color: whitesmoke;
}

#addPlaylistWindow input{
    width: 100%;
    margin-bottom: 25px;
}

#addPlaylistWindow .emptyCD{
    height: 200px;
    width: 200px;
    margin: 0 auto 10px auto;
    display: block;
    border-radius: 100%;
    transition: transform 0.5s
}

#addPlaylistWindow .emptyCD:hover{
    animation:spin 3s ease-in infinite;
    -webkit-animation:spin 3s linear infinite;
    -moz-animation:spin 3s linear infinite;

}@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }


#addPlaylistWindow .popWindowButtons{
    width: 32%;
    display: inline-block;
    margin: 0px auto;
}


/* ---------------- next add playlist window ---------------- */
#addPlaylistSongsWindow .songRow{
    padding: 10px;
}

#addPlaylistSongsWindow .songURLInput, .songNameInput{
    width: 100%;
}

#addPlaylistSongsWindow p{
    margin: 10px;
    cursor: pointer;
}

#addPlaylistSongsWindow p:hover{
color: blue;
}

#addPlaylistSongsWindow .AppendAndSaveRow{
    margin: 5px -5px 0 -15px;
}

#addPlaylistSongsWindow #savePlaylistButton{
    position: relative;
    top: 5px;
    float: right;
    width: 100%;
}

#addPlaylistSongsWindow #backPlaylistButton{
    position: relative;
    top: 5px;
    float: right;
    width: 100%;
    min-width: 75px;
}

/* ---------------- playlist delete window ---------------- */
body #deleteAlertWindow{
    position: fixed;
    top: 25%;
    left: 25%;
    right: 25%;
    width: 50%;
    padding: 20px;
    z-index: 5;
    text-align: left;
    background: whitesmoke;
    border: 1px double black;
}

body #deleteAlertWindow h4{
    margin-bottom: 25px;
}

body #deleteAlertWindow img{
    width: 100%;
    height: auto;
    display: block;
    margin: 0px auto;
    max-width: 200px;
    border-radius: 100%;
}

/* ---------------- player controls window ---------------- */
body #playerControls{
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    width: 600px;
    padding: 10px;
    z-index: 9;
    text-align: center;
    border: 2px double;
    margin-left: -300px;
    box-shadow: 0 0 10px 5px;
    animation: animatezoom 0.6s;
    background-color: whitesmoke;
}


/* ---------------- HEADER ---------------- */
header{
    position: fixed;
    z-index: 2;
    left: 0;
    right: 0;
    top: 50px;
    color: white;
    min-height: 50px;
    background-color: transparent;
    transition: background-color 0.5;
}

header p{
    color: black;
    font-size: 18px;
    padding: 15px;
    margin: 0;
    cursor: pointer;
    transition: color 0.5s;
    transition: transform 0.5s;
    text-align: left;
}

header p:hover{
    color: blue;
    transform: scale(1.5) translateX(13%) translateY(2px);
}

header #mobileMenu{
    height: 50px;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    font-size: 24px;
    background-color: rgb(0, 96, 166);
}

header #mobileMenu .glyphicon-menu-hamburger{
    float: right;
    padding: 12px;
}

header #mobileMenu img{
    float: left;
    height: 50px;
}


header input[type=search]{
    color: black;
    display: block;
    margin: 12px auto;
    width: 90%;
    border-radius: 20px;
}



/* ---------------- CONTAINER ---------------- */
section{
    display: block;
    position: relative;
    top: 120px;
    height: auto;
    transition: height 0.6s;
    margin-bottom: 50px;
}



/* ---------------- PLAYER SECTION ---------------- */
player{
    display: block;
    max-width: 750px;
    width: 85%;
    margin: 15px auto;
}

player #player{
    padding: 20px;
    min-height: 250px;
    max-width: 750px;
    border-radius: 120px;
    box-shadow: 2px 2px 25px black;
    background-color: whitesmoke;
    border: 1px double black;
    animation: animatezoom 0.6s;
}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}

player #player img{
    width: 200px;
    height: 200px;;
    max-width: 300px;
    display: block;
    margin: 0px auto;
    border-radius: 100%;
    animation: animatePlay 5s infinite linear;
}@keyframes animatePlay{from{transform:rotate(0deg)} to{transform:rotate(360deg)}}


player #playerDiscCenter{
    display: inline-block;
    top: -111px;
    position: relative;
    left: 92px;
    background-color: white;
    border-radius: 100%;
    height: 25px;
    width: 25px;
    text-align: center;
    padding-top: 5px;
    transform: scale(2);
    cursor: pointer;
    transition: transform 0.4s;
}

player #playerDiscCenter:hover{
    transform: scale(3);
}

player .col-sm-4 .glyphicon-play{
    left: 20px;
    width: 15px;
    height: 15px;
    top: 19px;
    background: none;
    transform: scale(2);
    transition: transform 0.2s;
}

player #player audio{
    width: 85%;
    border-radius: 50px;
}

player #player ol{
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 15px;
}

player #player li{
    opacity: 0.25;
}

player #player li:hover{
    color: blue;
}

player .glyphicon-play, .glyphicon-pause{
    left: -15px;
    transform: scale(1.5);
    background: whitesmoke;
    display: none;
    cursor: pointer;
}

player li:hover .glyphicon-play{
    display: inline-block;;
}

player li:hover .glyphicon-pause{
    display: inline-block;;
}

player .glyphicon-remove{
    top: -160px;
    display: block;
    width: 25px;
    right: -103%;
    padding: 5px;
    cursor: pointer;
    background: white;
    border-radius: 100%;
    transform: scale(1.35);
    border: 1px solid black;
    animation: animatefade 1s ease-in; 
}@keyframes animatefade {from{opacity: 0} to{opacity:1}}

player .glyphicon-pencil{
    top: -130px;
    display: block;
    width: 25px;
    right: -103%;
    padding: 5px;
    cursor: pointer;
    background: white;
    border-radius: 100%;
    transform: scale(1.35);
    border: 1px solid black;
    animation: animatefade 1s ease-in; 
}

player .glyphicon-remove:hover,
player .glyphicon-pencil:hover{
    background-color: gold;
    transition: background-color 0.5s
}


body .glyphicon-forward, .glyphicon-backward,
 .glyphicon-step-forward, .glyphicon-step-backward{
    display: none;
    position: fixed;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    padding: 43px;
    transform: scale(6);
    color: white;
    z-index: 7;
    text-shadow: 0 0 2px black, 0 0 3px black, 0 0 4px black;
}

/* ---------------- PLAYLISTS SECTION ---------------- */
playlists{
    display: block;
    width: 100%;
    min-height: 50px;
    text-align: center;
    
}

playlists .discElements{
    display: inline-block;
    height: 200px;
    width: 200px;
    margin: 25px;
    opacity: 0.85;
    transition: opacity 0.5s;
}

playlists .discElements:hover{
    opacity: 1;
}

playlists .discElements:hover .glyphicon-pencil{
    opacity: 1;
}

playlists .discElements:hover .glyphicon-remove{
    opacity: 1;
}

playlists .discName{
    bottom: -10px;
    color: white;
    font-size: 18px;
    position: relative;
    text-shadow: 0 0 2px black, 0 0 4px black, 0 0 6px black;
}

playlists .discsImages{
    width: 100%;
    height: 200px;;
    border-radius: 100%;
    animation:animatecircle 0.6s
}@keyframes animatecircle{from{transform:rotate(0deg)} to{transform:rotate(360deg)}}

playlists .discCenter{
    height: 50px;
    width: 50px;
    background: white;
    z-index: 4;
    position: relative;
    border-radius: 100%;
    margin: -135px 0 0 75px;
    transition: transform 0.4s;
}

playlists .discCenter:hover{
    transform: scale(1.5);
}

.discCenter.discCenterPop{
    transform: scale(2);
}

playlists .glyphicon-play{
    transform: scale(2);
    margin-top: 15px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.5s, transform 0.5s;
}

playlists .discCenter:hover .glyphicon-play{
    opacity: 1;
}


playlists .glyphicon-remove, playlists .glyphicon-pencil{
    z-index: 5;
    background: white;
    padding: 5px;
    border-radius: 100%;
    top: -100px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.5s;
    border: 1px solid black;
}

playlists .glyphicon-remove:hover{
    background: gold;
}

playlists .glyphicon-pencil:hover{
    background: gold;
}


/* ---------------- FOOTER ---------------- */

footer{
    position: fixed;
    display: block;
    z-index: -1;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    color: white;
    padding-left: 10px;
}

footer a{
    color: wheat;
}

footer a:hover{
    color: wheat;
    font-weight: bold;
}

/* ---------------- MEDIA QUERY ---------------- */
@media only screen and (max-width: 992px) {

    /* ----- player ----- */
    player #player img{
        height: 175px;
        width: 175px;
        margin-top: 15px;
    }

    player #playerDiscCenter{
        left: 6px;
        right: auto;
        bottom: auto;
        display: block;
        margin: 10px auto;
    }
}




@media only screen and (max-width: 768px) {
    
     /* ----- body & windows ----- */
    body{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    #addPlaylistWindow, #addPlaylistSongsWindow {
        left: 2%;
        right: 2%;
        width: 96%;
        bottom: 10%;
        max-height: none;
    }

    body #deleteAlertWindow{
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        border: 2px double;
    }

    body #deleteAlertWindow img{
        margin-top: 25px; 
    }


     /* ----- header ----- */
     header #mobileMenu img{
         padding: 10px;
    }
    

     header p{
        text-align: center;
        transition: none;
    }

    header p:hover{
        transform: none;
    }


    /* ----- player ----- */
    player{
        margin-bottom: 80px;
    }

    player #player img{
        height: 250px;
        width: 250px;    
    }

    player #playerDiscCenter{
        left: auto;
        right: auto;
        bottom: auto;
        display: block;
        margin: auto;
        top: -140px;    
    }

    player #player audio{
        width: 100%;
    }

    player #player ol{
        max-height: 200px;
        margin-bottom: 20px;
    }

    player #player ol .glyphiconli{
        transform: scale(1.5);
        margin: 0;

    }

    player .glyphicon{
        padding: 3px;
        transform: scale(3);
        display: inline-block;
        float: none;
        top: 20px;
        margin: 30px 35px;
        cursor: pointer;
    }

    player .glyphicon-remove{
        float: left;
        right: -15%;
        width: auto;   
    }

    player .glyphicon-pencil{
        float: right;
        right: 15%; 
        width: auto;
    }

    player .glyphicon-play, .glyphicon-pause{
        left: -45px;
        top: auto;
        padding: 0;    
    }


    /* ----- playlists ----- */
    playlists .discElements {
        height: 140px;
        width: 140px;
    }

    playlists .discsImages{
        height: 140px;
    }

    playlists .discCenter{
        height: 35px;
        width: 35px;
        margin: -100px 0 0 53px;
    }

    playlists .glyphicon-play{
        margin-top: 9px;
        transform: scale(1.5);
    }
        
    playlists .glyphicon-remove, playlists .glyphicon-pencil{
        top: -70px;
        opacity: 1;
        animation:  animatefade 0.6s
    }@keyframes animatefade{from{opacity:0} to{opacity:1}}

    /* ----- footer ------ */

    footer{
        text-align: center;
    }
}



@media only screen and (max-width: 430px) {

     /* ----- player ----- */
    player #player img{
        height: 160px;
        width: 160px;
    }

    player #playerDiscCenter{
        top: -93px;
        transform: scale(1.5);
    }

     /* ----- playlists ----- */
    playlists .discElements {
        height: 100px;
        width: 100px;
    }

    playlists .discsImages{
        height: 100px;
    }

    playlists .discCenter{
        height: 25px;
        width: 25px;
        margin: -73px 0 0 39px;
    }

    playlists .glyphicon-play{
        margin-top: 4px;
        transform: scale(1.25);
    }
        
    playlists .glyphicon-remove, playlists .glyphicon-pencil{
        top: -53px;
        transform: scale(0.85);
    }
}