@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@900&display=swap');
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
}
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: system-ui;
  background-color: #8ec5fc;
  background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
}
body.recording {
  background-color: #efefef;
}
main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

aside {
  display: none;
  flex-direction: column-reverse;
  position: fixed;
  height: 80vh;
  width: 512px;
  padding: 16px;
  left: 0;
  overflow-y: scroll;
  bottom: 0;
  background: white;
  font-size: 14px;
  margin: 32px;
  border-radius: 16px;
  box-shadow: -2px 11px 13px 1px rgb(0 0 0 / 10%);
  border: 19px solid white;
  border-left: 0;
  border-right: 0;
  padding-bottom: 0;
}
aside > div {
  padding: 0 16px;
}
aside > div:nth-child(odd) {
  padding-top: 16px;
  border-radius: 10px;
  background-color: #9d84b21a;
  margin-bottom: 1.5em;
}
aside > div:first-child {
  margin-bottom: 0;
}
aside > div > p {
  line-height: 1.5em;
  margin-bottom: 1.5em;
}
*::-webkit-scrollbar {
  width: 1px;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 0;
}
header {
  width: 100vw;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Urbanist, sans-serif;
  margin-top: 100px;
}
h1 {
  font-family: Urbanist, sans-serif;
  font-size: 128px;
  text-align: center;
  background: #c3c4fc;
  background: linear-gradient(
    to top right,
    #c0c3fc 13%,
    #9a7eab 50%,
    #c1c3fc 100%
  );
  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
}
header p {
  font-size: 24px;
  letter-spacing: 5px;
  opacity: 0.25;
  margin: 0;
}
header p:first-child {
  position: relative;
  letter-spacing: 0;
  top: 32px;
}
p {
  margin-bottom: 1.5em;
}

ol,
ul {
  padding: 0 32px;
  font-family: monospace;
  margin-bottom: 1.5em;
}
ol li:not(:last-child),
ul li:not(:last-child) {
  margin-bottom: 1.3em;
}

pre {
  white-space: pre-wrap; /* Since CSS 2.1 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}
pre code {
  padding: 16px;
  display: block;
  margin: 16px auto;
  overflow-y: scroll;
  border: 1px dashed #9d9d9d;
}
code {
  background-color: #ffffff;
  color: #000000;
}

small {
  letter-spacing: 1px;
  opacity: 0.5;
}
.center {
  text-align: center;
}

*:disabled {
  cursor: default;
}

.txt {
  font-weight: bold;
  color: rgba(0, 0, 0, 0.5);
}
.muted {
  opacity: 0.5;
}
.mic {
  border: 0;
  display: inline-block;
  text-align: center;
  width: 100px;
  height: 100px;
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 10px 5px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
  cursor: pointer;
  transition: all 0.3s;
}
.mic:active {
  box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.1);
}
.mic:hover {
  scale: 0.95;
}
.mic svg {
  position: absolute;
  display: inline-block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  fill: rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}
.recording .mic {
  background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
  box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.1);
}
.recording .mic svg {
  fill: #ffffff;
}
.processing .mic svg {
  fill: #ffffff55;
}
.processing .mic {
  background-image: linear-gradient(to right, #868f96 0%, #596164 100%);
}
.recording .mic,
.processing .mic {
  pointer-events: none;
}
.toggle {
  border: 0;
  display: inline-block;
  text-align: center;
  width: 64px;
  height: 64px;
  background-color: #fff;
  border-radius: 10%;
  position: fixed;
  left: 32px;
  bottom: 32px;
  box-shadow: 0 10px 10px 5px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
  cursor: pointer;
  transition: scale 0.3s;
}
.toggle:hover {
  scale: 0.95;
}
.logs aside {
  display: flex;
}
.logs .toggle {
  left: 570px;
}
svg.close {
  display: none;
}
.logs svg.close {
  display: inline-block;
}
.logs svg.open {
  display: none;
}
