@charset "utf-8";

@font-face{
	font-family:'Anjoman';
	src: url('./assets/Anjoman.woff') format('woff');
	font-weight: normal;
  	font-style: normal;
}

@font-face{
	font-family:'Impacto';
	src: url('./assets/Impacto.woff') format('woff');
	font-weight: normal;
  	font-style: normal;
}

@font-face{
	font-family:'Cinema';
	src: url('./assets/Cinema.woff') format('woff');
	font-weight: normal;
  	font-style: normal;
}

body{
    display: flex;
    font-family: 'Anjoman', 'Impacto', 'Cinema', sans-serif;
    justify-content: center;
    align-items: center;
    width: 800px;
    height: 600px;
    color: #ffffff;
    overflow: hidden !important;
    background-color: transparent !important;
    transition: all .2s linear;
}

.color-primary{color: #30c6ec;}
.color-secondary{color: #f346dd;}
.mt-1{margin-top:1rem !important;}
.mt-4{margin-top:4rem !important;}
.mx-0-5{
	margin-right:0.5rem !important;
	margin-left: 0.5rem !important;
}

.stream-timer .timer-body{
    position: relative;
}

.stream-timer .timer-body.sandclock{
    width: 500px;
    height: 500px; 
}

.stream-timer .timer-body.sandclock .timer-text{
    bottom: 0;
    font-size: 55px; 
}

.stream-timer .timer-body.deadtime .timer-text{    
    animation: colorChange 2s infinite alternate;
}

.stream-timer .timer-body.deadtime .timer-text span,
.stream-timer .timer-body.deadtime .timer-text strong{
    color: inherit !important;
}

.stream-timer .timer-body.battery{
    width: 400px;
    height: 600px;
    background: url('./assets/battery.svg') no-repeat center;
}

.stream-timer .timer-body.battery .battery-percentage{
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: 'Impacto';
    font-size: 50px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 7px #000000;
    transform: translate(-50%, -15%);
    z-index: 999;
}

.stream-timer .timer-body.battery .battery-charge{
    position: absolute;
    top: 146px;
    left: 104px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: end;
    width: 191px;
    height: 350px;
}

.stream-timer .timer-body.battery .battery-charge span{
    display: block;
    width: 100%;
    height: 19%;
    background-color: #ffffff;
    margin-top: 4px;
}

.stream-timer .timer-body.battery .battery-charge span:nth-child(1){
    background-color: #ff3f3f;
}
.stream-timer .timer-body.battery .battery-charge span:nth-child(2){
    background-color: #f88400;
}
.stream-timer .timer-body.battery .battery-charge span:nth-child(3){
    background-color: #f7b900;
}
.stream-timer .timer-body.battery .battery-charge span:nth-child(4){
    background-color: #8dbb0b;
}
.stream-timer .timer-body.battery .battery-charge span:nth-child(5){
    background-color: #567501;
    margin-top: 0;
}

.stream-timer .timer-body.battery .battery-charge.overcharge span:nth-child(1){
    background: rgb(9,9,121);
    animation: colorFlow1 4s ease-in-out infinite;
}
.stream-timer .timer-body.battery .battery-charge.overcharge span:nth-child(2){
    background: rgb(9,9,121);
    animation: colorFlow2 4s ease-in-out infinite;
}
.stream-timer .timer-body.battery .battery-charge.overcharge span:nth-child(3){
    background: rgb(9,9,121);
    animation: colorFlow3 4s ease-in-out infinite;
}
.stream-timer .timer-body.battery .battery-charge.overcharge span:nth-child(4){
    background: rgb(9,9,121);
    animation: colorFlow4 4s ease-in-out infinite;
}
.stream-timer .timer-body.battery .battery-charge.overcharge span:nth-child(5){
    background: rgb(9,9,121);
    animation: colorFlow5 4s ease-in-out infinite;
}

.stream-timer .timer-body.battery .battery-charge.dead{
    animation: deadAlert 2s ease-in-out infinite alternate;
}

.stream-timer .timer-text{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Impacto';
    font-size: 50px;
    text-shadow: 0 0 7px #000000;
    z-index: 999;
}

@keyframes colorFlow1 {
  0%{
    background: rgb(9,9,121);
  }
  100%{
    background: linear-gradient(0deg, rgba(9,9,121,1) 40%, rgba(84,12,227,1) 100%);
  }
}

@keyframes colorFlow2 {
  20%{
    background: rgb(9,9,121);
  }
  100%{
    background: linear-gradient(0deg, rgba(84,12,227,1) 40%, rgba(100,16,195,1) 100%);
  }
}

@keyframes colorFlow3 {
  40%{
    background: rgb(9,9,121);
  }
  100%{
    background: linear-gradient(0deg, rgba(100,16,195,1) 40%, rgba(148,16,195,1) 100%);
  }
}

@keyframes colorFlow4 {
  60%{
    background: rgb(9,9,121);
  }
  100%{
    background: linear-gradient(0deg, rgba(148,16,195,1) 40%, rgba(172,16,195,1) 100%);
  }
}

@keyframes colorFlow5 {
  80%{
    background: rgb(9,9,121);
  }
  100%{
    background: linear-gradient(0deg, rgba(172,16,195,1) 40%, rgba(227,12,215,1) 100%);
  }
}

@keyframes deadAlert {
  0%{
    background: transparent ;
  }
  100%{
    background: #ff3f3f;
  }
}

@keyframes colorChange {
  0%{
    color: #ffffff;
  }
  100%{
    color: #ff3f3f;
  }
}