
/* ------------------ CSS RESET ---------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 {
  margin: 0;
  padding: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-size: 100%;
  font-weight: normal;
}

input,button,textarea,select {
  font: inherit;
  margin: 0;
}

iframe {
  border: 0;
}

::-moz-selection {
  /* Code for Firefox */
  color: var(--maincolor);
  background: var(--fontcolor);
}

::selection {
  color: var(--maincolor);
  background: var(--fontcolor);
}

html {
  width: 100%; height: 100%;
  scroll-behavior: smooth;
    box-sizing: border-box;
  --spacing:1rem;
  --spacingsmall: 0.5rem ;
  --backgroundcolor: #f6fdff ;
  --maincolor: #001aff;
    --secondcolor: #ff9df4 ; 
    --fontcolor: #001aff ;
  --maincolordark: hsl(from var(--maincolor) h s calc(l - 10));
}

body{
    background-color: var(--backgroundcolor);
    color: var(--fontcolor);
    font-family: 'Wondertype';
}

section{
    margin: var(--spacing);
}

/* -----------------ARTIST HEADER ------------------ */

.header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: calc(var(--spacing) * 3);
}

h1{font-size: 60px;}

h2{font-size:60px;}

h3{font-size: 30px;margin:0;}

p{
font-size: 18px;
max-width: 50ch;
line-break:strict;}



.artist{
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
}

.artistphoto{
    object-fit: cover;
    background-color: white;
    max-width: 200px;
}

.about{
    display: flex;
    flex-direction: row;
    gap: var(--spacingsmall);
}

/* ----------------- MAIN PAGE ------------------ */

.main{
    display: grid;
    grid-template-columns: 2fr 1fr;
}


.releaselist{
    display: grid;
    grid-template-columns: 1fr 1fr;
}


.releasecover:hover{filter:brightness(130%);transition: 0.25s;}

.releasecover{
box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
}

.release{
    display: flex;
    flex-direction: column;
    gap: var(--spacingsmall);
}

/* ----------------- FRIENDS LIST ------------------ */

.friendlist{
    background-color: var(--maincolordark);
    margin: var(--spacing);
}

@font-face {
    font-family: 'Wondertype';
    src: url(fonts/WonderType-Regular.otf);
}





/* --------------------------------------------------------------------------------------------------------------------- */
/* |                                                RELEASE PAGE                                                        |
/* --------------------------------------------------------------------------------------------------------------------- */

#page{
    height: 100vh;
}

#listening{
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

#release{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing);    
}

#data{
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    overflow-y: scroll;
    width: 100%;
    height: 100%;
}

#tracks{
    overflow-y: scroll;
    height: 15vh;
}

/* ----------------- TRACKS PLAYERS STYLING ------------------ */

.track{
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
    justify-content: space-between;
}

.track-main{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing);
}

.track-data{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

div.control{
    cursor: pointer;
    width: 30px;
    height: 30px;
 }

div.amplitude-play-pause.amplitude-paused {
    background: var(--secondcolor);
    background-position: center;
    mask-image: url(img/play.svg);
    mask-position: center;
    mask-repeat: no-repeat;
}

div.amplitude-play-pause.amplitude-playing {
    background: var(--secondcolor);
    background-position: center;
    mask-image: url(img/pause.svg);
    mask-position: center;
    mask-repeat: no-repeat;
 }


/* ----------------- BOTTOM PLAYER ------------------ */

#bottomplayer{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 1px 5px 13px 10px rgba(0,0,0,0.12);
    -webkit-box-shadow: 1px 5px 13px 10px rgba(0,0,0,0.12);
    -moz-box-shadow: 1px 5px 13px 10px rgba(0,0,0,0.12);
}

progress.amplitude-song-played-progress {
  background-color: var(--secondcolor);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  display: block;
  cursor: pointer;
  border: none;
  margin-top: 5px;
}

progress[value]::-moz-progress-bar {
  background-color: var(--maincolor); }

progress[value]::-webkit-progress-value {
  background-color: var(--maincolor); }

#current-song-played-progress{
    background-color: var(--backgroundcolor);
    margin-top: 0;
    height: 12px;
}

#current-song-played-progress[value]::-moz-progress-bar {
  background-color: var(--secondcolor); }

#current-song-played-progress[value]::-webkit-progress-value {
  background-color: var(--secondcolor); }

#bottomplayer-background{
    display: grid;
    gap: var(--spacing);
    grid-template-columns: 2fr 2fr 1fr;
    background-color: var(--maincolor);
    color: white;
    height: 7vh;
    align-content: center;
}

#controls{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: var(--spacing);
    /* gap: var(--spacing); */
    justify-content: space-around;
}

div#play-pause-bottom.amplitude-paused {
    background: white;
    background-position: center;
    mask-image: url(img/play.svg);
    mask-position: center;
    mask-repeat: no-repeat;
}

div#play-pause-bottom.amplitude-playing {
    background: white;
    background-position: center;
    mask-image: url(img/pause.svg);
    mask-position: center;
    mask-repeat: no-repeat;
 }

div.amplitude-prev {
    background: white;
    background-position: center;
    mask-image: url(img/previous.svg);
    mask-position: center;
    mask-repeat: no-repeat;
}

div.amplitude-next {
    background: white;
    background-position: center;
    mask-image: url(img/next.svg);
    mask-position: center;
    mask-repeat: no-repeat;
}

#song-data{
    overflow: hidden;
    text-overflow: ellipsis;
}   

.song-name, .song-artist-album{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-container{
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* ----------------- MEDIA QUERIES ------------------ */

@media screen and (max-width:1000px) {


h1{font-size: 60px;}

h2{font-size: 6vw;}

h3{font-size: 30px;margin:0;}

p{
font-size: 2.5vw;
max-width: 50ch;
line-break:strict;}


#page{
    height: 100vh;
}

#listening{
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

#release{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing);
    height: 29vw;
}

#data{
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    overflow-y: scroll;
}

}