@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;600;700&display=swap');
@-moz-document url-prefix() {
  .transcription::placeholder {
    font-size: 14px !important;
    font-family: Montserrat !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    top: calc(50% - 8px) !important;
    display: table-cell !important;
    vertical-align: middle !important;
    line-height: 800% !important;
  }
}

* {
  box-sizing: border-box;
}

p {
  margin: 0;
}

.app {
  font-family: Montserrat !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.interface {
  min-width: 160px;
  max-width: 615px;
  width: 100%;
  min-height: 128px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 75px;
  padding: 20px;

  gap: 12px;
  border: 1px solid #538596;
  background-color: #f2f6f5;

  box-shadow: 0px 0px 12px 0px #0000001a;
}

.is-green {
  border: 1px solid #4abe47;
}

.controls {
  width: 100%;
  height: 100%;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.button-control {
  font-family: Montserrat !important;
  border-radius: 5px;
  border-style: none;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  margin: 0;

  min-height: 34px;
  width: 100%;
  min-width: 160px;
  max-width: 250px;
  outline: none;
  overflow: hidden;
  padding: 5px 10px 5px;
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.button-control:disabled {
  cursor: auto;
  background: #a8bea7;
}

.button-control:hover,
.button-control:focus {
  opacity: 0.75;
}

.button-control:disabled:hover {
  opacity: 1;
}

.button-control > p {
  font-family: Montserrat !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.start-button {
  width: 240px;
}

.my-svg-icons {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}

.start-button {
  background-color: #4abe47;
}

.start-button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: end;
  justify-content: center;
  flex-wrap: wrap;
}

.end-button {
  background-color: #df2e38;
}

.pause-button {
  background-color: #4abe47;
}

.text-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-shrink: 1;
  gap: 15px;
}

.disapear {
  display: none;
}

.error-container {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 615px;

  padding: 10px 5px;
  background-color: rgba(255, 0, 0, 0.5);
  border: 1px none transparent;
  border-radius: 5px;

  color: #fff;
  font-size: 12px;
  line-height: 100%;
}

.close-button {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0px;
  color: #fff;
  position: absolute;
  top: 10px;
  right: 5px;
}

.close-button-svg {
  flex-shrink: 0;
}

.recorded-time {
  color: #146c94;
  width: 250px;
  font-size: 3.25rem;
  line-height: 3.5rem;
  text-align: center;
  font-weight: 300;
  flex-shrink: 1;
}

.gif-container {
  width: 94px;
  height: 104px;
  flex-shrink: 0;
}

.animation {
  width: 104px !important;
  height: 104px !important;
}

.transcription-container {
  min-width: 200px;
  max-width: 615px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 35px;
}

.transcription {
  font-family: Montserrat !important;
  font-weight: 500 !important;
  width: 100% !important;
  height: 124px !important;
  border-radius: 5px !important;
  border: 1px solid #538596 !important;
  background-color: #fafaf5 !important;
  position: relative !important;
  padding: 5px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.transcription-active {
  height: 321px !important;
}

.transcription::placeholder {
  font-size: 14px !important;
  font-family: Montserrat !important;
  width: 100% !important;
  text-align: center !important;
  position: relative !important;
  top: calc(50% - 8px) !important;
  display: table-cell !important;
  vertical-align: middle !important;
  line-height: 100%;
}

.transcription-title {
  font-size: 16px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #6f6f6f !important;
  margin-bottom: 15px !important;
}

.speaking {
  animation: speaking 2s infinite ease-in-out;
}

.upload-button {
  background-color: #538596;
  width: 240px;
}

.pop-up-bg {
  font-family: Montserrat !important;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  width: 100vw;
  height: 100%;
  background-color: #00000055;
  z-index: 5;
  display: none;
  justify-content: center;
  align-items: center;
}

.pop-up {
  padding: 40px 36px;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #fff;
  border-radius: 5px;
}

.create-notes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 615px;
  margin-bottom: 24px;
}

.notes-loading-phrase {
  color: #a8a8a8;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.disapear {
  display: none;
}

.pop-up-title {
  font-size: 16px;
  line-height: 19.5px;
  margin-top: 0px;
  margin-bottom: 42px;
}

.pop-up-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.pop-up-timer {
  font-size: 75px;
  line-height: 100%;
  color: #ff0000;
  font-weight: 200;
  margin-bottom: 52px;
}

.pop-up-continue {
  background-color: #4abe47;
  max-width: 365px;
}

.pop-up-stop {
  background-color: #ff0000;
  max-width: 365px;
}

.pop-up-decoration {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 11px;
  bottom: 11px;
  border-radius: 5px;
  border: 1px solid red;
  background-color: transparent;
}

.recording {
  justify-content: center;
}
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #31dd53 !important;
  font-size: 10px !important;
  top: -15px !important;
  right: 35px !important;
  position: relative !important;
  text-indent: -9999em !important;
  -webkit-transform: translateZ(0) !important;
  -ms-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  -webkit-animation-delay: -0.16s !important;
  animation-delay: -0.16s !important;
}
.loader:before,
.loader:after {
  content: '' !important;
  position: absolute !important;
  top: 0px !important;
}
.loader:before {
  left: -3.5em !important;
  -webkit-animation-delay: -0.32s !important;
  animation-delay: -0.32s !important;
}
.loader:after {
  left: 3.5em !important;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 1.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 1.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 1.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 1.5em 0 0;
  }
}

@keyframes speaking {
  0% {
    scale: 1;
  }
  20% {
    scale: 1.1;
  }
  40% {
    scale: 1;
  }
  60% {
    scale: 1.05;
  }
  80% {
    scale: 1;
  }
  100% {
    scale: 1.1;
  }
}

@media (max-width: 1200px) {
  .button-container {
    flex-direction: row;
  }

  .interface {
    height: fit-content;
    max-height: fit-content;
  }

  .controls {
    flex-direction: column;
    justify-content: center;
    padding: 5px 0 5px;
    container-name: controls;
    container-type: inline-size;
  }
  .start-button-container {
    flex-direction: row;
  }
}

@container controls (width < 320px) {
  .text-container {
    margin-bottom: 16px;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .text-container {
    margin-bottom: 16px;
    flex-direction: column;
  }
}

.spinner {
  animation: rotate 2s linear infinite;
  z-index: 100;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -12.5px 0 0 -12.5px;
  width: 25px;
  height: 25px;
  color: white;
}
.spinner > .path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}
