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

/************************************/
/*             General              */
/************************************/
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
    position: relative;
    height: 100%;
    font-size: 16px;
    color: #fff;
}


/* Control the swipe areas */
.swiper-container {
    width: 100%;
    height: 100%;
}
.swiper-slide.left {
    background: #a57591;
    background: -moz-linear-gradient(-45deg, #a57591 1%, #725a91 24%, #34375d 54%, #140d1c 100%);
    background: -webkit-linear-gradient(-45deg, #a57591 1%,#725a91 24%,#34375d 54%,#140d1c 100%);
    background: linear-gradient(135deg, #a57591 1%,#725a91 24%,#34375d 54%,#140d1c 100%);
    color: #FFF;
    box-shadow: inset 0 0 20px #000;
}
.swiper-slide.right {
    background: #F1F2B5;
    background: -moz-linear-gradient(135deg, #43cea2 1%, #185a9d 50%, #140d1c 100%);
    background: -webkit-linear-gradient(135deg, #43cea2 1%, #185a9d 50%, #140d1c 100%);
    background: linear-gradient(135deg, #43cea2 1%, #185a9d 50%, #140d1c 100%);
    color: #FFF;
    box-shadow: inset 0 0 20px #000;
} 




button {
    background: none;
    border: none;
}
button i:hover {
    font-size: 110%;
}
label {
    font-weight: 700;
}
.fas {
    color: #fff;
    text-shadow: 0 0 10px #000;
}

/* Range */
input[type=range] {
  -webkit-appearance: none;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: .5rem;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 10px #000000;
  background: #FFF;
  border-radius: 2px;
  border: none;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: .5rem;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 0px 0px 10px #000000;
  background: #FFF;
  border-radius: 2px;
  border: none;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 10px #000000;
  border: none;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background: #ff435f;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 10px #000000;
  border: none;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background: #ff435f;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #FFF;
}  


.player,
.playlist {
    width: 100%;
    height: 100%;
    display: grid;
    padding: 0;
}

/* Player Layout */
.player {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    grid-gap: 15px;
    grid-template-areas: 
        "selection"
        "cover-art"
        "title"
        "volume"
        "control";
    max-width: 50vw;
    margin: 0 auto;
}
@media screen only and (max-width: 1000px) {
    .player {
        max-width: 80%;
    }
}
.player__streamSelection {
    grid-area: selection;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}
.player__cover {
    grid-area: cover-art;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.player__details {
    grid-area: title;
}
.player__volume {
    grid-area: volume;
    display: flex;
    justify-content: space-evenly;
    padding: 0 20px;
}
.player__control {
    grid-area: control;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


label[for="player__selector"] {
    font-size: .9rem;
    width: 80%;
    min-width: 200px;
}
#player__selector {
    width: 80%;
    min-width: 200px;
    padding: 4px 10px;
    font-size: 1.1rem;
    font-weight: 500;
}


#albumart {
    width: 100%;
    max-width: 40vw;
    height: auto;
    max-height: 40vh;
    width: auto;
    box-shadow: 0 0 20px #000;
}


.player__details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    line-height: 1;
}
#songArtist {
    font-size: 1.4rem;
    padding-bottom: 8px;
}
#songTitle {
    font-size: 1.2rem;
    padding-bottom: 4px;
}
#songAlbum {
    font-size: 1rem;
    opacity: 0.6;
}



.player__volume-btn {
    font-size: 1.4rem;
}
.player__play-btn {
    padding: 1rem 1.15rem;
    font-size: 3rem;
}

.player__play-btn i:before {
    position: relative;
    left: 4px;
}


/* Playlist Layout */
.playlist {
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content auto;
    grid-gap: 15px;
    grid-template-areas: 
        "headline"
        "search-selection"
        "results";
}
.playlist .headline {
    grid-area: headline;
    display: flex;
    align-items: flex-end;
    justify-content: center;

}
.headline h1 {
    font-size: 1.2rem;
    line-height: 1;
    padding-top: 10px;
    display: inline-block;
}

.playlist--search {
    margin: 0 auto;
    display: grid;
    grid-area: search-selection;
    grid-row-gap: 10px;
    margin-bottom: 20px;
    grid-template-columns: 3fr 5fr;
    grid-template-rows: repeat(4, minmax(mincontent, maxcontent));
    grid-template-areas: 
        "label-selection stream-selection"
        "label-start start-input"
        "label-end end-input"
        ". search-button";
}
#search-selector {
    grid-area: stream-selection;
}
#start-date {
    grid-area: start-input;
}
#end-date {
    grid-area: end-input;
}
#search-btn {
    grid-area: search-button;
}
#search-selector,
#start-date,
#end-date {
    width: 100%;
    min-width: 200px;
    padding: 4px 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

#search-btn {
    padding: 5px 10px;
    border-width: 0;
    outline: none;
    border-radius: 2px;
    color: #fff;
    font-size: 1.2rem;
    background-color: #ff435f;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    z-index: 99999;
    text-align: center;
}
#search-btn:hover {
    background-color: #ff657f;
}

#search-result {
    width: 90%;
    margin: 0 auto;
    overflow-y: scroll;

}
.table-header {
    display: grid;
    grid-template-rows: auto;
/*    grid-template-columns: repeat(6, auto);*/
    grid-template-columns: repeat(6, 1fr);
    grid-column-gap: 10px; 
    width: 100%;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.05);
}
.table-results {
    width: 100%;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(6, auto);
    grid-column-gap: 10px; 
}
.table-result-cell {
    padding: 2px 10px;
}


/************************************/
/* Small Screens like mobile phones */
/************************************/
@media only screen and (max-width: 1000px) { 
    
    #albumart_link {
        max-height: 100%;
        width: auto;
        max-width: 90%;
    }
        
    .player__streamSelection {
        padding-top: 20px;
        width: 90%;
    }
    
    #player_volume_slider {
        width: 70%;
    }
    
    .player__control {
        padding-bottom: 20px;
    }
    
    
    
    .playlist--search {
        width: 90%;
    }
    
}



/*************************************************/
/* Small Screens like mobile phones on landscape */
/*************************************************/
@media only screen and (max-width: 1000px) and (orientation: landscape) {

}


/************************************/
/* Large Screens like desktops */
/************************************/
@media only screen and (min-width: 1001px) {
    
    #albumart_link {
        max-height: 100%;
        width: auto;
        max-width: 70%;
    }
    
    
    .player__streamSelection {
/*        width: 60%;*/
        padding-top: 30px;
    }
        
    #player_volume_slider {
        width: 40%;
    }
    
    .player__control {
        padding-bottom: 40px;
    }
    
    
    
    .playlist--search {
        width: 60%;
    }
    
    #search-btn {
        width: 50%;
        justify-self: start;
    }
}



/*input[type=range]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #2a6495;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}
input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}
*/
