@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
@import url('font/flaticon.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  flex-direction: column;
}

button {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  border-radius: 6px;
  outline: none;
  border: none;
  background-color: #7a7a7a;
  margin: 1px;  /* for safari*/
  padding: 1px;  /* for safari*/
  background: rgb(39, 40, 40);
  border-bottom: 1px solid rgb(57, 58, 58);
  box-shadow: 0.2px 0.2px 1px 1px rgb(24, 23, 23);
}

button:active {
  color: #111;
  background-color: #5e5e5e;
  box-shadow: none;
  transform: scale(0.95);
}

.output-window {
  position: relative;
  font-size: 20px;
  min-width: 320px;
  width: 835.2px;
  height: 35vh;
  max-height: 1200px;
  padding: 2%;
  border: 1px solid #d5d5d5;
  outline: none;
  background-color: #f1f3f5;
  background: linear-gradient(to bottom, #ffffff 0%, #f1f3f5 100%);
  margin-left: auto;
  margin-right: auto;
}

.keyboard {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  width: 835.2px;
  height: 55vh;
  min-height: 350px;
  max-height: 600px;
  margin: 0 auto;
  padding: 0.8%;
  border: 1px solid #d5d5d5;
  background-color: #e9e7e5;
  border-radius: 12px;
  box-shadow: 0px 0px 100px 0.5px #bbb;
  transition: 0.2s transform ease-in-out;
  order: 2;
}

.speech {
  max-width: 835.2px;
  min-width: 320px;
  padding: 8px 2px;
  text-align: center;
}

.keyboard:hover {
  box-shadow: 0px 0px 80px 0.5px #bba;
}

.row {
  display: flex;
  flex-direction: row;
  margin-bottom: 8px;
}

.row__shirt {
  column-gap: 0.95%;
  justify-content: space-around;
}

.row__main {
  column-gap: 0.55%;
  justify-content: space-between;
}

.key {
  text-transform: lowercase;
  background: rgb(39, 40, 40);
  border: none;
  border-bottom: 1px solid rgb(57, 58, 58);
  box-shadow: 0.2px 0.2px 1px 1px rgb(24, 23, 23);
  background: linear-gradient(to top, rgb(43, 42, 42) 50%, rgb(67, 68, 68) 100%);
}

.key:active,
.tab {
  background: #7e7e7e;
  color: #111;
}

.tab {
  transform: scale(0.96);
  opacity: 0.9;
}

.key,
.ke,
.arrows {
  font-size: 24px;
  width: 51px;
  height: 51px;
}


.arrows {
  display: flex;
  flex-direction: column;
}

.arrow {
  margin-top: 8px;
  margin-right: 2px;
}

.arrow:first-child {
  margin-top: 0;
}

.key__shirt {
  font-size: 16px;
  height: 21px;
}

.key__wide_s {
  width: 90px;
  font-size: 20px;
}

.key__wide_m {
  width: 100px;
  font-size: 20px;
}

.key__wide_l {
  width: 120px;
  font-size: 20px;
}

.key__wide_xl {
  width: 290px;
  font-size: 20px;
}

.keys__navigation {
  width: 70px;
  display: flex;
  justify-content: space-between;
}

.caps {
  display: flex;
  justify-content: center;
  column-gap: 10%;
  flex-direction: row;
  align-items: center;
}

.pointer {
  font-size: 42px;
  color: white;
}

.keyboard__navigation_button {
  font-size: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  cursor: auto;
  box-shadow: 0.2px 0.2px 2px 0.5px #979797;
}

.keys__navigation_button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.navigation_button {
  width: 10px;
  opacity: 0;
}

.close,
.close:active {
  border: rgb(244, 32, 20) solid 1px;
  background-color: rgb(255, 78, 71);
  color: rgb(255, 78, 71);
}

.minimize,
.minimize:active {
  border: rgb(231, 161, 18) solid 1px;
  background-color: rgb(255, 190, 0);
  color: rgb(255, 190, 0);
}

.maximize,
.maximize:active {
  border: rgb(20, 182, 20) solid 1px;
  background-color: rgb(0, 210, 44);
  color: rgb(0, 210, 44);
}

.keys__navigation > button:hover {
  color: rgb(45, 47, 49);
}

.title {
  padding: 2px;
  font-weight: 400;
  font-size: 14px;
  color: #333;
  margin: 0 auto;
  height: 20px;
  width: 400px;
  text-align: center;
}

.hidden {
  opacity: 0.1;
  transition: 0.3s all;
  animation-name: close;
  animation-duration: 0.4s;
  visibility: hidden;
}

.visible {
  width: 835.2px;
  opacity: 1;
  transition: 0.3s opacity;
  animation-name: open;
  animation-duration: 0.2s;
  visibility: visible;
}

.springboard__icon-hidden {
  display: none;
  opacity: 0;
}

.springboard__icon-visible {
  display: block;
  opacity: 1;
}

.springboard__icon {
  position: absolute;
  right: calc(50% - 100px/2);
  bottom: 0;
  left: calc(50% - 100px/2);
  display: flex;
  transition: .3s all;
  transform: scale(0);
  box-shadow: none;
  border: none;
  outline: none;
  background: transparent;
  justify-content: center;
  align-items: center;
}

.springboard__icon:active {
  background: transparent;
}

.springboard__icon img {
  width: 100px;
}

.fa-volume-up {
  color: limegreen;
}

.fa-volume-off {
  color: rgb(255, 78, 71);
}

.event {
  text-align: center;
  color: #777;
  border: none;
  outline: none;
  background: transparent;
}

.logs {
  display: flex;
  justify-content: center;
  column-gap: 0;
  background: transparent;
}

.modal {
  position: absolute;
  z-index: 1;
  display: flex;
  display: none;
  visibility: hidden;
  width: 100%;
  max-width: 1440px;
  height: 40%;
  animation-name: hide;
  animation-duration: .8s;
  opacity: 0;
  background: transparent;
  justify-content: center;
  align-items: center;
}

.modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100px;
  height: 100px;
  border: 1px solid #777;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
}

.x_shift {
  font-size: 70px;
  display: none;
  color: #111;
}

.speech-to-text {
  position: relative;
  width: 50%;
  min-width: 320px;
  min-height: 50px;
  margin: 0 auto;
  padding: 0.5%;
  font-size: 24px;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-all;
  overflow-y: scroll;
  border: none;
  outline: none;
  color: #444;
  border: none;
  outline: none;
  background: transparent;
}

.scale-in {
  
}

@keyframes close {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(200px);
  }
}

@keyframes hide {
  0% {
    visibility: visible;
    transform: translateY(150%);
    opacity: 0.2
  }
  100% {
    transform: translateY(145%);
    opacity: 0;
  }
}

@keyframes open {
  0% {
    transform: translateY(200px);
  }
  100% {
    transform: translateY(0);
  }
}

@media screen and (max-width: 835.2px) {
  .keyboard, .output-window {
    width: 100%;
  }
  input {
    width: 100px;
  }
  .event_key {
    display: none;
  }
}

@media screen and (max-width: 440px) {
  .key,
  .ke {
    font-size: 18px
  }
  .key__shirt {
    font-size: 12px
  }
  .y {
    display: none;
  }
  .event {
    width: 70px;
  }
  body {
    overflow-x: hidden;
  }
}

@media screen and (max-width: 360px) {
  .row__main,
  .row__shirt {
    column-gap: 0
  }
  .key,
  .ke,
  .arrows {
    font-size: 16px
  }
  .key__shirt {
    font-size: 11px
  }
}

@media screen and (max-width: 1280px) {
 .keyboard {
  transform: scale(1) !important;
  margin-top: 0 !important;
 }
}
