root { 
  display: block;
  image-resolution: 1;
}

/* latin-ext */
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/exo-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 400;
  src: url(fonts/exo.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: Exo, Helvetica, Arial, sans-serif;
  font-size: 10pt;
  color: white;
	background-color: black;
	margin: 0px;
  padding: 0px;
  text-align: left;
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
	/*cursor: pointer;*/
	cursor: none;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: transparent;
}

.hidden-cursor {
  cursor: none; /* Hides the cursor */
}

.visible-cursor {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 0px;
  display: none;
}

i {
  cursor: pointer;
}
@media (pointer: fine) {
  i:hover {
    color: darkSlateGray;
  }
}

div, p {
  margin: 0px;
  padding: 0px;
}

#middle {
  /*EMM
  position: absolute;
  top: 0px;
  bottom: 96px;
  left: 0px;
  right: 0px;
  */
  flex-grow: 1;
  width: 100%;
  height: 50%;
  overflow: hidden;
  display: block;
  /*cursor: pointer;*/
}

/*-----PLAYER-----*/

#player {
  /*EMM
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  */
  flex-grow: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#time {
	position: relative;
  left: 0px;
  width: 100%;
  font-size: min(12px, 2.1vh);
	user-select: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 1em;
}

#currentTime {
  flex-grow: 0;
  margin-left: 10px;
  margin-right: 10px;
	text-align: left;
  width: 7ch;
}

#totalTime {
  margin-left: 10px;
  margin-right: 10px;
  flex-grow: 0;
	text-align: right;
  width: 7ch;
}

#slider {
  height: 0.8em;
  margin-bottom: 0.1em;
  background-color: darkslategray;
  flex-grow: 1;
	position: relative;
}

#progress {
  width: 100%;
  height: 100%;
  background-color: white;
}

#group {
	position: relative;
  left: 0px;
  right: 0px;
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
	text-align: center;
}

#currentVolume {
  font-size: min(14px, 2.6vh);
	height: auto;
	width: 50px;
	border: none;
	cursor: pointer;
  margin: 0px;
	user-select: none;
}

#buttons {
  font-size: min(40px, 7vh);
  height: auto;
  margin: 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#buttonFilt {
  font-size: min(32px, 6vh);
  padding-right: min(4px, 0.5vh);
}

/*-----Top Menu-----*/

#menu {
  right: 5px;
  left: 5px;
  font-size: min(32px, 6vh);
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
	text-align: center;
}

/*-----CAROUSEL-----*/

#carousel {
  position: relative;
  width: calc(100% - 20h);
  height: 100%;
  padding-left: 10vh;
  padding-right: 10vh;
  overflow-x: scroll;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.carletter {
  flex-grow: 0;
  flex-shrink: 0;
  width:  3vh;
  height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 2vh;
}

.caralbum {
  margin: 3px;
  width:  calc(3.8vh + 6px);
  height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.cartop {
  flex-grow: 0;
  height: 2vh;
  width: 100%;
  border: 2px solid whitesmoke;
}

.cartitle {
  flex-grow: 0;
  border-left: 2px solid whitesmoke;
  border-right: 2px solid whitesmoke;
  height: 40vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: center;
  align-items: center;
}

.cartitle > div {
  font-size: 1.5vh;
  font-weight: bold;
  line-height: 92%;
  width: calc(40vh - 10px);
  margin-left: 5px;;
  margin-right: 5px;;
  transform: rotate(-90deg);
  max-height: 4vh;
  overflow-y: hidden;
}

.carbottom {
  flex-grow: 1;
  width: 100%;
  border: 2px solid whitesmoke;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carbottom > div {
  font-size: 1.5vh;
  font-weight: bold;
  line-height: 92%;
  width: 9vh;
  margin-left: 5px;;
  margin-right: 5px;;
  transform: rotate(-90deg);
  max-height: 4vh;
  overflow-y: hidden;
}

/*-----MEDIA-----*/

#media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  /*cursor: pointer;*/
}

@media (orientation: portrait) {
  #media { flex-direction: column; }
}

@media (orientation: landscape) {
  #media { flex-direction: row; }
}

#art {
  position: relative;
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin: 10px;
}

@media (orientation: portrait) {
  #art {
    flex-basis: 100%;
    flex-shrink: 1;
    width: 100%;
  }
}

@media (orientation: landscape) {
  #art {
    flex-basis: 50%;
    flex-shrink: 1;
    flex-grow: 0;
    height: 100%;
    max-height: 800px;
  }
}

#title {
  font-size: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (orientation: portrait) {
  #title {
    flex-shrink: 0;
    flex-grow: 0;
    text-align: center;
    align-items: center;
    padding: 10px;
  }
}
@media (orientation: landscape) {
  #title {
    flex-basis: 50%;
    flex-shrink: 0;
    flex-grow: 1;
    text-align: left;
    align-items: flex-start;
    width: max-content;
    padding: 10px;
  }
}

#detalbum {
  margin-top: 2px;
  margin-bottom: min(11px, 1.4vh);
  font-size: min(22px, 2.8vh);
  font-weight: bold;
}
#detartist {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: min(32px, 4vh);
  font-weight: bolder;
}
#detpiece {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: min(20px, 2.5vh);
  font-weight: bold;
}
#dettitle {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: min(20px, 2.5vh);
}
@media (orientation: landscape) {
  #detalbum
  #detartist
  #detpiece
  #dettitle {
    width: max-content;
  }
}

/*-----BROWSER-----*/

#browser {
  display: none;
  position: relative;
  height: 100%;
  width: 100%;
  overflow-x: scroll;
  overflow-y: scroll;
  cursor: pointer;
  flex-direction: column;
}

#indexbar {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 20px;
  right: 0px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  font-size: 14px;
}

.letter {
  user-select: none;
  text-align: center;
  width: 100%;
}
@media (pointer: fine) {
  .letter:hover {
    background-color: SlateGray;
  }
}

.index {
  padding: 10px;
  width: 80px;
  font-size: 40px;
  font-weight: bold;
	text-align: center;
  background-color: transparent;
  color: SlateGray;
	cursor: pointer;
  user-select: none;
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  background-color: transparent;
  text-decoration: none;
}
a:link { color: white; }
a:visited { color: white; }

#library {
  width: calc(100% - 20px);
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: scroll;
}

#trackdetails {
  display: none;
  position: relative;
  height: calc(50% - 3px);
  width: calc(100% - 20px);
  white-space: nowrap;
  z-index: 1;
  border-top-style: solid;
  border-bottom-style: solid;
  border-color: SlateGray;
  border-width: 1px;
}

#sidemenu {
  flex-basis: 40px;
  flex-grow: 0;
  width: 42px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  font-size: 40px;
}

.album {
  margin: 0px;
  width: 170px;
  max-width: calc(50% - 20px);
  height: auto;
  font-size: 16px;
  text-align: center;
	cursor: pointer;
  border-style: solid;
  border-width: 1px;
  border-color: black;
  display: flex;
  flex-direction: row;
}
@media (pointer: fine) {
  .album:hover {
    border-color: SlateGray;
  }
}
@media (orientation: portrait) {
  .album {
    flex-direction: column;
    align-items: center;
  }
}
@media (orientation: landscape) {
  .album {
    flex-direction: row;
  }
}

.selected {
  border: 1px solid darkSlateGray;
  flex-basis: 100%;
  max-width: 100%;
  text-align: left;
}

@media (orientation: portrait) {
  .vignette {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
  }
}

@media (orientation: landscape) {
  .vignette {
    display: inline-block;
    width: calc(30vh + 20px);
  }
}

.vignette > img {
  margin: 5px;
  padding: 5px;
  width: calc(100% - 20px);
}

@media (orientation: portrait) {
  .vignette > img {
    width: min(calc(50vw - 40px), 150px);
  }
}

@media (orientation: landscape) {
  .selected > .vignette > img {
    width: 30vh;
    height: 30vh;
  }
}

.vignette > p {
  margin: 5px;
  width: calc(100% - 10px);
  margin-top: 0px;
  padding: 0px;
  text-align: center;
}

.selected > .vignette > .playqueue {
  font-size: min(40px, 7vh);
  height: auto;
  margin: 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.playqueue {
  display: none;
}

.playqueue > i {
  margin: 0px 10px 0px 10px;
}

.tracklist {
  text-align: left;
  margin: 0px 5px 0px 5px;
  padding: 10px 0px 10px 0px;
  overflow: scroll;
  flex-grow: 1;
  display: none;
  width: calc(100% - 10px);
}

@media (orientation: portrait) {
  .tracklist {
    height: calc(50vh - 200px);
  }
  .selected > .tracklist {
    display: block;
  }
}

@media (orientation: landscape) {
  .tracklist {
    height: 50vh;
  }
  .selected > .tracklist {
    display: inline-flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
}

#artdetails {
  flex-grow: 0;
  flex-basis: 30%;
  margin: 0px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
}

@media (orientation: portrait) {
  #artdetails { display: none; }
}

@media (orientation: landscape) {
  #artdetails { display: block; }
}

.space {
  width: 1px;
  height: 5px;
}

.piece {
  width: max-content;
  margin-right: 10px;
  height: 23px;
  padding-top: 5px;
  font-size: 18px;
  font-style: italic;
  user-select: none;
	cursor: pointer;
}

.track {
  display: block;
  word-wrap: nowrap;
  font-size: 18px;
  width: 1000px;
  user-select: none;
	cursor: pointer;
  margin-left: 10px;
}

@media (orientation: landscape) {
  .track {
    width: max-content;
    margin-right: 20px;
  }
}

@media (pointer: fine) {
  .track:hover {
    background-color: SlateGray;
  }
}

/*-----LIST-----*/

#playlist {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  overflow-y: scroll;
  cursor: pointer;
}

.lstalbum {
  font-family: 'Exo';
  font-size: 18px;
  font-weight: bold;
  margin: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 0px;
  padding-bottom: 0px;
	cursor: pointer;
  white-space: nowrap;
}
.lstalbum > p {
  font-family: 'Exo';
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: black;
}

.lstalbum > p > span {
  background-color: green;
}

.lstpiece {
  font-size: 18px;
  font-weight: bold;
  margin-left: 20px;
  padding-left: 10px;
  padding-top: 0px;
  padding-bottom: 10px;
	cursor: pointer;
  white-space: nowrap;
}
.lstpiece > p {
  margin-bottom: 10px;
  background-color: black;
}

.lsttrack {
  font-size: 18px;
  margin-left: 20px;
  padding-left: 10px;
  padding-top: 0px;
  padding-bottom: 0px;
  border: 1px solid black;
	cursor: pointer;
  white-space: nowrap;
}
@media (pointer: fine) {
  .lsttrack:hover {
    border: 1px solid darkSlateGray;
  }
}

.lstspace {
  margin-top: 10px;
}

.lstselected {
  background-color: DarkSlateGray;
}

.lstadded {
  background-color: SlateGray;
}

.red {
  color: Red;
}

.gray {
  color: darkslategray;
}

/*----REMOTE BUTTONS ON MEDIA----*/
div.remoteButtons {
  display: flex;
  justify-content: space-between;
  flex-grow: 0;
  width: calc(100% - 10px);
  padding: 5px;
  background-color: #0000;
  font-size: min(35px, 6vh);
  color: slategray;
}

@media (orientation: landscape) {
  div.remoteButtons {
    display: none;
  }
}
button.remoteTop {
  background-color: black;
  color: white;
  text-align: center;
  width: min(35px, 6vh);
  height: min(35px, 6vh);
  /*border-radius: calc((min(35px, 6vh)) / 2);*/
  font-size: 16px;
  font-weight: bold;
  line-height: 90%;
  /*border: 2px solid white;*/
  margin: 0px;
  padding: 0px;
  border: none;
}

button.remoteTop > i {
  font-size: min(24px, 4vh);
}

/*----REMOTE----*/
div.remotePopup {
  display: block;
  position: fixed;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  display: none; /* none or flex : set by script */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
div.remote {
  display: block;
  position: fixed;
  background-color: #101010;
  border: solid 2px white;
  border-radius: 10px;
  width: 260px;
  height: 300px;
  left: calc(50vw - 130px);
  top: calc(50vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 12px;
}
button.remote {
  background-color: #202020;
  color: white;
  text-align: center;
  width:  40px;
  height: 40px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  line-height: 90%;
  border-top: 2px solid #555555;
  border-left: 2px solid #555555;
  border-bottom: 2px solid #444444;
  border-right: 2px solid #444444;
}
td.remote {
  text-align: center;
  font-size: 10px;
  width: 45px;
  height: 30px;  
}
td.label {
  height: 14px;  
}
button.red {
  background-color: red;
  color: black;
}
button.big {
  width:  50px;
  height: 50px;
  border-radius: 25px;
  margin: 0px 10px 0px 10px;
}
button.white {
  background-color: #E0E0E0;
  color: black;
}
