body {
   margin: 0;
   font: -apple-system-body;
   background-color: #222;
   -webkit-user-select: none; /* Safari */
   -ms-user-select: none; /* IE 10 and IE 11 */
   user-select: none; /* Standard syntax */
}

header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0; left: 0;
    background-color: #222;
}

header #menu {
    height: 40px;
}

header #menu i {
    font-size: 24px;
    margin: 8px 20px;
    cursor: pointer;
}

header #boards {
    height: 40px;
    background-color: #444;
}

.board {
    padding: 0 19px;
    display: inline-block;
    border-radius: 28px;
    color: #FFF;
    line-height: 30px;
    font-size: 18px;
    font-weight: 500;
    margin: 5px 5px 5px 10px;
    cursor:pointer;
}

header #file-picker {
    display:none;
}

main {
    width: 100%;
    height: calc(100vh - 160px);
    position: fixed;
    top: 80px; left: 0;
    background-color: #222;
    padding: 5px;
}

.AudioTile {
    position: relative;
    width: 120px;
    height:120px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent;
    border-radius: 13px;
    font-size: 13px;
    padding: 5px;
    cursor: pointer;
    float: left;
    margin: 5px 5px 10px 5px;
}

.AudioTile.active {
    color: #FFF!important;
}

.AudioTile.inactive {
    color: #777!important;
}

.AudioTileTitle {
    width: calc(100% - 4px);
    height: 70%;
    position: relative;
    top: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
}

.AudioTileElapsed {
    position: relative;
    top: 4px;
    width: 25%;
    height: 14px;
    font-size: 9px;
}

.AudioTilePlayed {
    position: relative;
    top: -12px;
    left: calc(25% - 2px);
    width: 50%;
    height: 14px;
    text-align:center;
    font-size: 10px;
    font-weight:bold;
    filter: brightness(170%);
}

.AudioTileCountdown {
    position: relative;
    top: -24px;
    left: calc(75% - 2px);
    width: 25%;
    height: 14px;
    font-size: 9px;
}

.AutoPlayNext {
    position: absolute;
    top: 54px; left: calc(100% - 9px);
    font-size: 18px;
}

.timer_bar {
    position: relative;
    top: -22px; left: -15px;
    height: 14px;
    padding: 1px 5px;
    width: calc(100% + 20px);
    font-size: 12px;
    color: #FFF;
    text-align: right;
    border-bottom: 2px solid white;
}

#player_popup {
    position: fixed;
    left:0;
    bottom: 0;       /* buiten beeld */
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transition: transform 0.4s ease-out;
    transform: translateY(100%);
    z-index:200;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    background: #222;
    border-radius: 20px 20px 0 0;
}

#player_popupfield {
    height:100%;
    overflow-Y: auto;
}

#player_popup.active {
    transform: translateY(0);     /* schuift omhoog */
}

#player_popup_head {
    text-align:center;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #FFF;
    border-radius: 20px 20px 0 0;
}

#player_popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 500;
}

#player_popup .close {
   color: #FFF;
   }

#player_popupfield p {
    line-height:40px;
    vertical-align: middle;
    display: flex;
    justify-content: space-between;  /* label links, input helemaal rechts */
    align-items: center;             /* verticaal centreren */
    width: 100%;                     /* voorbeeldbreedte */
}

#player_popupfield h6 {
    width: 90%;
    max-width: 400px;
    margin: 20px auto 6px auto;
    font-size:12px;
    font-weight: lighter;
    padding: 4px 8px;
    color: #999
}

#player_popupfield div.settings {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    background: #444;
    border-radius: 8px;
    padding:3px 8px;
    color: #FFF;
}

#player_popupfield label {
    font-weight:normal;
}

#player_popupfield input {
    background: transparent;
    color: white;
    border: none;
    text-align:right;
}

.Colortag {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    margin-right: 4px;
    margin-top: 4px;
    display: inline-block;
    vertical-align:middle;
}

.ColSel {
    border: 2px solid white;
}

.BorBot {
    padding-bottom: 4px;
    border-bottom: 1px solid gray;
}

/* De switch container */
.switch {
  position: relative;
  display: inline-block;
  height: 26px;
  margin: 4px 0;
}

/* De checkbox verbergen */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* De slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #666;
  transition: .4s;
  border-radius: 26px;
}

/* De ronde knop */
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Actieve staat (aan) */
.switch input:checked + .slider {
  background-color: #4caf50;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

@keyframes jiggle {
  0% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

.AudioTile[data-moveable="true"] {
  animation: jiggle 0.2s infinite;
  border: 5px solid white!important;
  box-shadow: 0 0 1px rgba(0,0,0,.85);
}

.board[data-moveable="true"] {
  animation: jiggle 0.2s infinite;
  border: 2px solid white!important;
  box-shadow: 0 0 1px rgba(0,0,0,.85);
}

footer {
    width: 100%;
    height: 100px;
    position: fixed;
    bottom: 0; left: 0;
    background-color: #444;
}

#btn_play_pause, #btn_stop, #btn_fade_out {width: 70px; height: 46px;}
#btn_fade_out {width: 80px;}
#btn_play_pause img, #btn_stop img {width: 32px; height: 32px;margin: 7px 19px;}
#btn_fade_out img {width: 42px; height: 32px;margin: 7px 19px;}
.player_btn {display:inline-block; margin-left: 10px; border-radius: 6px; opacity: 0.6;}

/* Modify the appearance of the slider */
.seek_slider {
   width: 94%;
   margin: 8px 3% 3px 3%;
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   height: 3px;
   background: #444;
   opacity: 1;
   -webkit-transition: .2s;
   transition: opacity .2s;
   touch-action: none;
   user-select: none;
}

/* Modify the appearance of the slider thumb */
.seek_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  background: white;
  color: white;
  cursor: pointer;
  border-radius: 50%;
}

/* Change the opacity when mouse is hovered */
.seek_slider:hover {
  opacity: 1.0;
}

.tile_slider {
   width: 94%;
   margin: 8px 3% 3px 3%;
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   height: 3px;
   background: #000;
   opacity: 1;
   -webkit-transition: .2s;
   transition: opacity .2s;
   touch-action: none;
   user-select: none;
   visibility: hidden;
}

.tile_slider::-webkit-slider-thumb {
  display:none;
}

#info_elapsed {width: 50px; height: 20px; display:inline-block; color: #666; text-align:center; vertical-align: bottom;}
#info_title {width: 208px; height: 20px; display:inline-block; text-align:center;}
#info_countdown {width: 50px; height: 20px; display:inline-block; color: #666; text-align:center;}

audio, #clearall {display:none;}

.BGblackSt     { background-color: #000000; }
.BGblueSt      { background-color: #0000FF; }
.BGgraySt      { background-color: #C2C2C2; }
.BGgreenSt     { background-color: #008000; }
.BGpurpleSt    { background-color: #800080; }
.BGorangeSt    { background-color: #FF9900; }
.BGredSt       { background-color: #FF0000; }

.BGblack     { background-color: rgba(0, 0, 0, 0.3); }
.BGblue      { background-color: rgba(0, 0, 255, 0.3); }
.BGgray      { background-color: rgba(194, 194, 194, 0.3); }
.BGgreen     { background-color: rgba(0, 128, 0, 0.3); }
.BGpurple    { background-color: rgba(128, 0, 128, 0.3); }
.BGorange    { background-color: rgba(255, 153, 0, 0.3); }
.BGred       { background-color: rgba(255, 0, 0, 0.3); }

@media screen and (max-width: 600px) and (orientation: Portrait) {
    .AudioTile {
     width: calc(50vw - 35px);
     height: calc(50vw - 35px);
     }
}

@media screen and (max-width: 599px) {
    #track_info {width: 320px; height:40px; color:white; font-size: 12px; margin: 5px auto;}
    #player_btn_container {width: 260px; height: auto; margin: 5px auto;}
    audio, #clearall {display:none;}
}

@media screen and (min-width: 600px) and (orientation: Landscape) {
    body {font-family: Verdana,sans-serif; font-size: 15px;}
    #player_popup {left:50%;margin-left: -225px; border: 2px solid #999;}
    #player_btn_container {max-width: 320px; height: auto; display:inline-block;}
    #track_info {max-width: 320px; height:40px; color:white; font-size: 12px; margin: 5px; display:block;}
    audio, #clearall {display:block; float:right;}
}