.controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.controls-item {

}

/* #myRecord {
  width: 50px;
  height: 50px;
  font-size: 25px;
  font-weight: bold;
  border: 0;
  background-color: red;
  border-radius: 50px;
  margin: 18px;
  outline: none;
  color: #ffffff;
  text-align: center;
  line-height: 50px;
} */

.notRec {
  background-color: darkred !important;
}

.Rec {
  animation-name: pulse;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes pulse {
  from {opacity: 0.5;} to {opacity: 0.9;} 
}

/** 
  take photo button
*/
.photo-button {
  width: 86px;
  height: 86px;
  position: relative;
}

.circle {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  background-color: #ffffff;
  opacity: 0.5;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.ring {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: 5px solid #ffffff;
  opacity: 0.8;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.photo-button .circle,
.photo-button .ring {
  transition: all 0.25s;
}

.photo-button:hover .circle {
  opacity: 1;
}

.photo-button:active .ring {
  opacity: 1;
}

.photo-button:active .circle {
  opacity: 0.5;
}

/** 
  record video button
*/
.record-video-button {
  width: 40px;
  height: 40px;
  margin-left: 2rem;
  margin-right: 2rem;
  position: relative;
}

.record-video-button .circle {
  width: 34px;
  height: 34px;
  border-radius: 100%;
  background-color: red;
  opacity: 0.5;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.record-video-button .ring {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: 5px solid red;
  opacity: 0.8;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%)
}

.record-video-buttonn .circle,
.record-video-button .ring {
  transition: all 0.25s;
}

.record-video-button:hover .circle {
  opacity: 1;
}

.record-video-button:active .ring {
  opacity: 1;
}

.record-video-button:active .circle {
  opacity: 0.5;
}

/** countdown */
.cont {
  z-index: 100;
  width: 250px;
  height: 250px;
  position: fixed;
  text-align: center;
  font-weight: bold;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #aaa;
  border-radius: 50%;
  overflow: hidden;
}
.cont::after {
  content: "";
  width: 200px;
  height: 200px;
  position: absolute;
  top: 23px;
  left: 23px;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: #777;
  background-image: linear-gradient(transparent calc(50% - 1px), #aaa calc(50% - 1px), #aaa calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(90deg, transparent calc(50% - 1px), #aaa calc(50% - 1px), #aaa calc(50% + 1px), transparent calc(50% + 1px));
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 125px;
  height: 100px;
  transform-origin: 0 0;
  background-image: linear-gradient(black, transparent);
  animation: spin 1s infinite linear;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.number {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
}
.number::after {
  content: "";
  width: 250px;
  height: 250px;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 150px;
  line-height: 250px;
  animation: count 5s infinite steps(5, start);
}
@keyframes count {
  0%, 100% {
    content: "5";
  }
  20% {
    content: "4";
  }
  40% {
    content: "3";
  }
  60% {
    content: "2";
  }
  80% {
    content: "1";
  }

}
