@charset "UTF-8";

/********** Essential Audio Player 2.1 CSS **********/

/****************************************
                                    
        Section 1: The Looks         
                                    
****************************************/

/* 
1. 



The 
Main 
Container 


*/

.essential_audio {
  /*position: absolute;*/
  width: 100%;
  height: 10em;

  /*background-color: #ff0000;*/
}
/*div.essential_audio {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 10em;
  background-color: black;
  /*background-color: #ff0000;*/
/*}*/

/* 



2. The Player Button – General 



*/
.essential_audio > div:nth-child(1) div {
  width: 98px;
  height: 98px;
  margin-top: 20px;
  border-radius: 50%;
  border-style: double;
  border-width: 2.9rem;
  border-color: #ee590e;
  background-color: #ffdd03e7;
}
.essential_audio > div:nth-child(1) div:after {
  /*position: absolute;*/
  top: 7%;
  left: 7%;
  width: 86%;
  height: 86%;
}

/* Set here how much the button exceeds the horizontal track limits: */
/* This must not be deleted! (but can be changed, of course) */
:root {
  --button-protrusion: 0px;
}

/* 2.a) The Player Button – Off */
.essential_audio > div:nth-child(1) div.off:after {
  content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'>/></svg>");
}

/* 2.b) The Player Button – Loading */
.essential_audio > div:nth-child(1) div.load:after {
  content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><circle opacity='0.64' fill='%23FFFFFF' cx='6.5' cy='18.5' r='2'/><circle opacity='0.76' fill='%23FFFFFF' cx='6.5' cy='11.5' r='2'/><circle opacity='0.88' fill='%23FFFFFF' cx='11.5' cy='6.5' r='2'/><circle fill='%23FFFFFF' cx='18.5' cy='6.5' r='2'/><circle opacity='0.16' fill='%23FFFFFF' cx='23.5' cy='11.5' r='2'/><circle opacity='0.28' fill='%23FFFFFF' cx='23.5' cy='18.5' r='2'/><circle opacity='0.4' fill='%23FFFFFF' cx='18.5' cy='23.4' r='2'/><circle opacity='0.52' fill='%23FFFFFF' cx='11.5' cy='23.4' r='2'/></svg>");
  animation: audio_load_rotate 1s infinite linear;
}
@keyframes audio_load_rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 2.c) The Player Button – Playing */
.essential_audio > div:nth-child(1) div.play {
  background-color: #00000000 !important;
}
/* div.essential_audio > div:nth-child(1) div.play:after {
  content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'/></svg>");
} */

/* div.essential_audio > div:nth-child(1) div.play:after {
  content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><rect fill='000;' x='17' y='8' width='8' height='12' radius='50' /><rect fill='000' x='10' y='8' width='3' height='14' /></svg>");
} */

/* 2.d) The Player Button – Dragging */
.essential_audio > div:nth-child(1) div.drag {
  transition: left 0s !important;
  /*
	cursor: grab!important;
	*/
}

/* 2.e) The Player Button – Error */
.essential_audio > div:nth-child(1) div.error {
  background-color: rgba(0, 0, 0, 0) !important;
}
.essential_audio > div:nth-child(1) div.error:after {
  content: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path fill='%23FFF' d='M13.9,18.6c0-0.3,0-0.5,0-0.9c0-1.6,0.6-2.9,2.1-3.9l1.1-0.8c0.9-0.6,1.3-1.5,1.3-2.4c0-1.5-1-2.8-3-2.8c-2.2,0-3.1,1.6-3.1,3.2c0,0.2,0,0.4,0,0.5L10,11.9c-0.1-0.3-0.1-0.8-0.1-1.2c0-2.3,1.7-5.1,5.5-5.1c3.5,0,5.5,2.5,5.5,5c0,2-1.1,3.4-2.5,4.3l-1.2,0.8c-0.8,0.5-1.1,1.4-1.1,2.4c0,0.1,0,0.2,0,0.5H13.9z'/><path fill='%23FFF' d='M15,20.8c1,0,1.8,0.8,1.8,1.8S16,24.4,15,24.4c-1,0-1.8-0.8-1.8-1.8S14,20.8,15,20.8z'/></svg>");
}

/* 3. The Track */
.essential_audio > div:nth-child(2) {
  height: 27px;
}
.essential_audio > div:nth-child(2):after {
  content: "";
  position: absolute;
  z-index: 0;
  background-color: #ffffff00;
  /*opacity: 0.3;*/
  /*mix-blend-mode: multiply;*/
  top: 0px;
  left: 0px;
  width: 100%;
  height: 30%;
  z-index: 0;
}

/* 


4. The Loading Progress Bar 


*/
.essential_audio > div:nth-child(2) div {
  background: linear-gradient(to right, #b6d0cf, #014d7f, #d4d0b7);
  position: absolute;
  z-index: 0;
  width: 0%;
  height: 100%;
  top: 0px;
  left: 0px;
  transition: width 0.8s;
}
/* 


3. The Track 


*/
.essential_audio > div:nth-child(2) {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0);
}

/* 




5. The Click & Drag Sensor
NORMALLY YOU WOULDNT SEE THIS




*/
.essential_audio > div:nth-child(3) {
  height: 100%;
  margin-top: -15px;
  position: absolute;
  z-index: 1;
  width: 100%;
  top: 0px;
  left: 0px;
  background-color: rgba(255, 255, 255, 0);
}

/****************************************/
/*                                      */
/*        Section 2: Core Values        */
/*                                      */
/****************************************/

/* 1. The Main Container + General Settings */
.essential_audio,
.essential_audio * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-overflow-scrolling: auto;
}
.essential_audio *:focus {
  outline: none;
}

/* 2. The Player Button */
.essential_audio > div:nth-child(1) div {
  position: absolute;
  top: 0px;
  left: 0px;
  cursor: pointer;
}

/* 2.a) Container for Player Button */
.essential_audio > div:nth-child(1) {
  position: absolute;
  z-index: 3;
  height: 0px;
  top: 0px;
  left: calc(var(--button-protrusion) * -1);
  width: calc(100% + (2 * var(--button-protrusion)));
}
