*,
*:after,
*:before {
  box-sizing: border-box;
}

form {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

label {
  display: flex;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.375em;
  /* Accessible outline */
  /* Remove comment to use */
  /*
  	&:focus-within {
  			outline: .125em solid $primary-color;
  	}
  */
}

label input {
  position: absolute;
  left: -9999px;
}

label input:checked + span {
  background-color: #d6d6e5;
}

label input:checked + span:before {
  box-shadow: inset 0 0 0 0.4375em #00005c;
}

label span {
  display: flex;
  align-items: center;
  padding: 0.375em 0.75em 0.375em 0.375em;
  border-radius: 99em;
  transition: 0.25s ease;
}

label span:hover {
  background-color: #d6d6e5;
}

label span:before {
  display: flex;
  flex-shrink: 0;
  content: "";
  background-color: #fff;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  margin-right: 0.375em;
  transition: 0.25s ease;
  box-shadow: inset 0 0 0 0.125em #00005c;
}

.call-view {
  width: 100%;
  height: 100%;
}

/**
 * Call view controls section
 */

.call-view__controls-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

.call-view__controls-container .call-view__controls {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 32px;
  /* Generated with https://larsenwork.com/easing-gradients */
  background: linear-gradient(to top, hsla(0deg, 0%, 0%, 0.25) 0%, hsla(0deg, 0%, 0%, 0.247) 8.1%, hsla(0deg, 0%, 0%, 0.238) 15.5%, hsla(0deg, 0%, 0%, 0.224) 22.5%, hsla(0deg, 0%, 0%, 0.206) 29%, hsla(0deg, 0%, 0%, 0.185) 35.3%, hsla(0deg, 0%, 0%, 0.162) 41.2%, hsla(0deg, 0%, 0%, 0.137) 47.1%, hsla(0deg, 0%, 0%, 0.113) 52.9%, hsla(0deg, 0%, 0%, 0.088) 58.8%, hsla(0deg, 0%, 0%, 0.065) 64.7%, hsla(0deg, 0%, 0%, 0.044) 71%, hsla(0deg, 0%, 0%, 0.026) 77.5%, hsla(0deg, 0%, 0%, 0.012) 84.5%, hsla(0deg, 0%, 0%, 0.003) 91.9%, hsla(0deg, 0%, 0%, 0) 100%);
}

.call-view__controls-container .call-view__controls .call-view__controls__icon-btn {
  height: 64px;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transform: scale(1);
  transition: transform 200ms cubic-bezier(0, 0, 0.2, 1);
  background-color: #FAFAFA;
  border-radius: 50%;
  pointer-events: all;
  cursor: pointer;
}

.call-view__controls-container .call-view__controls .call-view__controls__icon-btn:hover {
  transform: scale(1.25);
}

.call-view__controls-container .call-view__controls .call-view__controls__icon-btn.important {
  background-color: #FF3346;
}

.call-view__controls-container .call-view__controls .call-view__controls__icon-btn > i {
  font-size: 32px;
}

/**
 * Call view tracks section
 */

.call-view__tracks {
  width: 100%;
  height: 100%;
  display: flex;
}

.remote-track--container {
  position: relative;
  flex: 1;
}

.remote-track--picture-placeholder--container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-track--picture-placeholder--container .remote-track--picture-placeholder__background {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a' x='0' y='0' width='1' height='1'%3E%3CfeGaussianBlur stdDeviation='16' result='b'/%3E%3CfeMorphology operator='dilate' radius='16'/%3E %3CfeMerge%3E%3CfeMergeNode/%3E%3CfeMergeNode in='b'/%3E%3C/feMerge%3E%3C/filter%3E%3C/svg%3E#a");
}

.remote-track--picture-placeholder--container .remote-track--picture-placeholder {
  width: 196px;
  height: 196px;
  position: absolute;
  border-radius: 50%;
  box-shadow: 0px 0px 64px -16px rgba(0, 0, 0, 0.6);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.remote-track--picture-placeholder--container .remote-track--picture-placeholder.speaking {
  border: 6px solid #4CAF50;
}

.call-view__tracks__local-track-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 40px;
  z-index: 1;
}

.call-view__tracks__local-track-container .call-view__tracks__local-track {
  width: 350px;
  height: 180px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #78909C;
  box-shadow: 0px 0px 64px -16px rgba(0, 0, 0, 0.6);
}

.call-view__tracks__local-track-container .call-view__tracks__local-track video {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #4CAF50;
}

/**
 * Input status section
 */

.input-status-container {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  border-bottom: 4px solid #FAFAFA;
  border-right: 4px solid #FAFAFA;
  border-radius: 0px 0px 16px 0px;
  overflow: hidden;
}

.input-status-container .input-status {
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FF3346;
}

.input-status-container .input-status > i {
  font-size: 28px;
}
