#modal {
    xborder:5px solid lime;
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    font-family: 'Roboto', sans-serif;


    z-index:7;

    transition:opacity 0.2s;
    visibility:hidden;
    opacity:0;

    display:flex;
	justify-content: center;
    align-items:center;

}

#modal > #modal-bg {
    position:absolute;
    background-color:rgba(0,0,0,0.5);
    width:100%;
    height:100%;
    z-index:-1;
}

#modal > .box {
    xborder:1px solid grey;
    border-radius:5px;
	box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.55);

    width:500px;
    max-width:90vw;
    max-height:95vh;
    xheight: 80vh;

    background-color:rgb(47, 47, 47);
    background-color: #22262a;
    color:rgb(202, 202, 202); 
    color: #8d8d8d;
    padding:20px 20px 20px 20px;

    display:flex;
    flex-direction:column;
    xflex:1;
	xjustify-content: start;
    xalign-items:center;

    xjustify-content: space-between;
	xjustify-content:left;
	xflex:1;


}



#modal > .box > div > .title {
    font-size: 2em;
}

#modal > .box > div > .content {
    margin-bottom:10px;
    overflow-x:hidden;
    overflow-y:auto;
    
}




#close-modal {
    xz-index:3;
    xalign-self: flex-end;
	xmargin:30px 0px 0px 0px;
    margin:auto;
    padding:10px 30px 10px 30px;
	width:80%;
    xmax-width:50%;
  
    background-color: #181818;
    xcolor: #fff;
    border-radius: 5px;
    cursor:pointer;
    user-select:none;
    text-align:center;
    font-size:2em;
    -ms-scroll-snap-x:#1db954; 
    border: 2px solid #333333; 

    xalign-self: last baseline; 
}

#close-modal:hover {
    background-color:#222222;
    xborder:0px solid black;
}

#close-modal:active {
    background-color:#1d1d1d;
	border:2px solid #1db954; 
}



/* The switch - the box around the slider */
/* switch by EugenSunic: https://stackoverflow.com/a/57938527 */


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked+.slider {
    background-color: #1db954;
  }
  
  input:focus+.slider {
    box-shadow: 0 0 1px #1db954;
  }
  
  input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


#sleep-timer-state-container {
    xborder:1px solid grey;
    height: 34px;
    line-height:34px;
    margin-left:10px;
}

#sleep-timer-state-container > span {
    color:#1db954;
}

input#playback-duration, input#fadeout-duration {
    width:90%;
    color:grey;
    accent-color:#189945;
}

datalist {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin-top: 7px;
    padding: 0 5px;
  }

#sleep-timer-data {
    background-color:rgba(0,0,0,0.5);
    border-radius:5px;
    width:100%;
    padding:10px;
}