:root {
  --primary-color: #3978FC;
  --primary-04: rgba(57, 120, 252, 0.4);
  --primary-07: rgba(57, 120, 252, 0.7);
  --black-04: rgba(0, 0, 0, 0.4);
  --label: #99A9C6;
}

html, body {
  height: 100%;
  min-width: 330px;
  overflow: hidden;
  width: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

#app-root {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  text-align: center;
  width: 100%;
}

#modal-root {
  position: relative;
  z-index: 9999;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

input:disabled, button:disabled {
  cursor: not-allowed;
}

.login-screen {
  align-items: center;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  width: 100%;
}

.login-screen .logo {
  margin-top: 20px;
  margin-bottom: -20px;
}

.login-screen .login {
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0px 20px 80px 0px #1446ae;
  box-sizing: border-box;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 600px;
  justify-content: center;
  line-height: 24px;
  padding: 60px;
  width: 800px;
}

.login-screen .login .steps {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.login-screen .login .steps .step {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding: 2px;
}

.login-screen .login .steps .step .number {
  display: none;
}

.login-screen .login input {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 11px 2px #D8E5FF;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  line-height: inherit;
  margin-top: 10px;
  outline: none;
  padding: 10px 14px;
  transition: box-shadow 0.2s ease-in-out;
}

.login-screen .login input:active,
.login-screen .login input:focus {
  box-shadow: 0 4px 11px 4px #ACBFE2;
}

.login-screen .login .error {
  text-align: center;
  color: red;
}

.login-screen .login button {
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin-top: 35px;
  font-family: 'Montserrat';
  padding: 11px 42px;
}

.login-screen .copyright {
  color: white;
  font-size: 14px;
  line-height: 35px;
  opacity: 0.6;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .login-screen .logo {
    margin: 0;
    padding: 10px;
  }

  .login-screen .login {
    align-items: stretch;
    border-radius: 0;
    flex: 1;
    height: auto;
    padding: 10px;
    text-align: start;
    width: 100%;
  }

  .login-screen .login .title,
  .login-screen .login .subtitle {
    margin: 0;
  }

  .login-screen .login input {
    width: 100%;
  }

  .login-screen .login .steps {
    flex-direction: column;
    counter-reset: step-number;
    width: 100%;
  }

  .login-screen .login .steps .step {
    align-items: flex-start;
    width: 100%;
  }

  .login-screen .login .steps .step img {
    display: none;
  }

  .login-screen .login .steps .step .number {
    display: initial;
  }

}

.login-modal {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.login-modal .login {
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
  padding: 50px 100px;
  text-align: center;
}

.login-modal .login input {
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 11px 2px #D8E5FF;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 12px;
  width: 100%;
}

.login-modal .login input:active,
.login-modal .login input:focus {
  box-shadow: 0 4px 11px 4px #ACBFE2;
}

.login-modal .login button {
  background-color: var(--primary-color);
  border-radius: 5px;
  color: white;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin-top: 30px;
  padding: 11px 42px;
}

.login-modal .login button:disabled {
  background-color: var(--label);
}

@media screen and (max-width: 768px) {
  .login-modal .login {
    border-radius: 0;
    max-width: initial;
    padding: 30px 15px;
    width: 100%;
  }
}

.notification {
  background-color: #ddd;
  border-radius: 4px;
  box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: 8px 15px;
  position: fixed;
  right: 20px;
  top: 60px;
  transition: all 0.2s ease-in-out;
}

.notification.hidden {
  transform: scale(0);
}

.call-screen {
  align-items: center;
  background-color: #323232;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat';
  height: 100%;
  justify-content: center;
  width: 100%;
}

.call-screen header {
  align-items: center;
  background-color: #1a1a1a;
  box-sizing: border-box;
  color: white;
  display: flex;
  flex-direction: row;
  font-weight: 600;
  justify-content: flex-start;
  padding: 8px 13px;
  width: 100%;
}

.call-screen header .username {
  border-color: white;
  border-style: solid;
  border-width: 0 0 0 1px;
  line-height: 25px;
  margin: 0 25px;
  overflow: hidden;
  padding-left: 25px;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-screen header .link {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: flex-end;
  overflow: hidden;
  white-space: nowrap;
}

.call-screen header .link .muted {
  opacity: 0.6;
  user-select: none;
}

.call-screen header .link .href {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-screen header .share,
.call-screen header .logs {
  background-color: var(--primary-color);
  border-radius: 5px;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  margin-left: 8px;
  padding: 10.5px 15px;
}

.call-screen header button.share img {
  margin-right: 8px;
  vertical-align: middle;
}

.call-screen main {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.call-screen main .videos {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.call-screen main .videos video {
  background-color: #000;
  border: 1px solid #eee;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  transition: all 0.2s linear;
  width: 100%;
}

.call-screen main .videos video:nth-child(2) {
  position: absolute;
  bottom: 0;
  left: 0;
  max-height: 25%;
  max-width: 25%;
}

.call-screen main .controls {
  align-items: flex-start;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-bottom: 20px;
  padding-top: 10px;
}

.call-screen main .controls .control {
  align-items: center;
  color: white;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  justify-content: center;
  line-height: 13px;
  margin: 0 10px;
}

.call-screen main .controls .control button {
  background-color: transparent;
  border-radius: 50%;
  border: none;
  height: 56px;
  margin-bottom: 8px;
  outline: none;
  padding: 0;
  width: 56px;
}

.call-screen main .controls .control .record {
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  border: none;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.call-screen main .controls .control .record > div {
  background-color: #f00;
  border-radius: 50%;
  box-shadow: 0 0 2px 2px #f00;
  height: 16px;
  width: 16px;
}

.call-screen main .controls .control .record.active {
  background-color: #191919;
}

.call-screen main .controls .control .record.active > div {
  animation: pulsating 1s linear infinite;
}

@keyframes pulsating {
  0%    { transform: none; }
  50%   { transform: scale(1.2); }
  100%  { transform: none; }
}

@media screen and (max-width: 768px) {

  .call-screen header {
    background-color: initial;
    padding: 15px 15px 5px;
  }

  .call-screen header .logo,
  .call-screen header .muted,
  .call-screen header .href {
    display: none;
  }

  .call-screen header .username {
    border: none;
    line-height: 19px;
    margin: 0;
    padding: 0;
  }

  .call-screen header button.share {
    margin: 0;
  }

  .call-screen main .videos {
    overflow-y: scroll;
  }

  .call-screen main .controls {
    padding-top: 15px;
  }

}

.app-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.loader, .loader:after {
  border-radius: 50%;
  height: 1.7em;
  width: 1.7em;
}

.loader {
  -ms-transform: translateZ(0);
  -webkit-animation: spinner 1.1s infinite linear;
  -webkit-transform: translateZ(0);
  animation: spinner 1.1s infinite linear;
  border-style: solid;
  border-width: 0.5em;
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-left-color: #ffffff;
  border-right-color: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  margin: auto;
  position: relative;
  text-indent: -9999em;
  transform: translateZ(0);
}

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.download-modal {
  align-items: center;
  background-color: var(--black-04);
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.download-modal .body {
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding: 20px 50px;
  text-align: center;
}

.download-modal .body .row {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 15px;
  width: 100%;
}

.download-modal .body button {
  background: transparent;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  margin: 0 10px;
  padding: 0.7em 2em;
}

.download-modal .body button.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  padding: 0.7em 2em;
}

