@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

html {
  background: #2a2a2e;
  color: #d4d5d7;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  scrollbar-color: #131c21 transparent;
  scrollbar-width: thin;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
}

::selection {
  background: #ffffff24;
}

::-webkit-scrollbar {
  background: transparent;
  height: 16px;
  width: 16px;
}

::-webkit-scrollbar-thumb {
  background-clip: padding-box;
  border: 4px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  min-height: 50px;
  background-color: #131c21;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

.main {
  position: fixed;
  left: 0;
  top: 0;
  background: #131c21;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: grid;
  place-content: center;
  font-size: 20px;
  text-align: center;
  transition: .2s ease;
}

.main .top {
  font-size: 40px;
  display: flex;
  align-items: center;
  margin: auto;
  position: relative;
  transition: .2s ease;
  top: 0;
}

.title-wrapper.hidden .top {
  top: -30px;
}
.upload-wrapper.hidden .top {
  top: 30px;
}

.main hr {
  margin-top: 12px;
  margin-bottom: calc(1em + 12px);
  border: none;
  border-top: 1px solid rgb(241 241 242 / 36%);
  width: 100%;
  transition: .2s ease;
}

.main .hidden hr {
  width: 0;
}

.main .buttons {
  margin: auto;
  transition: .5s ease;
}

.main .button {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  border-radius: 3px;
  background: #00af9c;
  color: #131c21;
  font-size: 14px;
  text-transform: uppercase;
  transition: .2s ease;
}

.main .button svg {
  margin-right: 7px;
}

.main .button.second {
  margin-top: 6px;
  color: #00af9c;
  background: transparent;
}

.main .button:hover {
  box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);
  background: #00c3ae;
}

.main .button.second:hover {
  background-color: #f1f1f20d;
}

.main .title-wrapper, .main .upload-wrapper {
  display: grid;
  place-content: center;
  transition: .2s opacity;
}

.main .title-wrapper.hidden, .main .upload-wrapper.hidden {
  top: 156px;
  position: relative;
  margin: -100%;
  opacity: 0;
  pointer-events: none;
}

.main .upload-wrapper.hidden {
  top: -125px !important;
}

.main .code {
  border: 1px solid rgba(241,241,242,0.11);
  outline: none;
  border-radius: 5px;
  background: #2d3134;
  height: 110px;
  text-align: start;
  font-size: 11px;
  padding: 10px;
  font-family: "Roboto Mono", monospace;
  overflow-y: scroll;
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: .2s ease;
}

.main .code:focus {
  box-shadow: 0 0 0 1px #00c3ae, 0 0 0 4px rgb(0 195 174 / 0.3);
}

.main .code:empty:before {
  pointer-events: none;
  content: '@keyframes example...';
  color: gray;
}

.main .upload-wrapper .buttons {
  margin-top: 20px;
  display: flex;
}

.main .upload-wrapper .button {
  width: max-content;
  margin: 0 5px;
}

.main.hidden {
  opacity: 0;
  pointer-events: none;
}

.header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #35363a;
  box-shadow: 0 10px 20px 0 rgba(53, 54, 58, .19), 0 5px 9px 0 rgba(53, 54, 58, .24);
  border-bottom: 1px solid #f1f1f21c;
}

.menu {
  padding-right: 0 !important;
}

.menu .button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  background: #131c21;
  position: absolute;
  top: 0;
  left: 5px;
  transform: scale(0);
  pointer-events: none;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0 10px 20px 0 rgba(19, 28, 33, .19), 0 5px 9px 0 rgba(19, 28, 33, .24);
  opacity: 0;
  display: grid;
  place-content: center;
}

.menu.open .button {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}
.menu.open .button:first-of-type {
  top: 65px;
}
.menu.open .button:nth-of-type(2) {
  top: 126px;
  transition-delay: .05s;
}
.menu.open .button:last-of-type {
  top: 189px;
  transition-delay: .1s;
}

.menu .button:hover {
  transform: scale(1.1);
}

.logo {
  font-size: 20px;
  padding: 16px 16px 16px 0;
  color: #00af9c;
}

.logo span {
  outline: none;
}

.logo span:empty::before {
  content: ' ';
}

.logo svg {
  cursor: pointer;
  color: #666;
  margin-left: -2px;
  margin-bottom: -2px;
}

.logo span:focus ~ svg {
  display: none;
}

.logo:hover svg {
  animation: .5s edit;
}

.right {
  position: absolute;
  right: 0;
  display: flex;
}

.option {
  display: flex;
  align-items: center;
  padding: 11px 11px;
  cursor: pointer;
  transition: .2s ease;
}

.play label {
  display: block;
  position: relative;
  width: 30px;
  cursor: pointer;
}

.play span::before {
  position: absolute;
  top: -9px;
  left: 9px;
  height: 0;
  border: 0 solid transparent;
  border-left-color: currentColor;
  border-width: 9px 0 9px 15px;
  transition: .2s ease;
  content: '';
}

.play span::after {
  position: absolute;
  top: -14px;
  left: 15px;
  height: 30px;
  border-left: 0 solid #35363a;
  transition: .2s ease;
  content: '';
}

.play.playing span::before {
  height: 19px;
  border-width: 0 0 0 15px;
}

.play.playing span::after {
  left: 13.5px;
  border-width: 6px;
}

.sidebar {
  background: #35363a;
  box-shadow: -10px 0 20px 0 rgba(53, 54, 58, .19), -10px 0 9px 0 rgba(53, 54, 58, .24);
  position: fixed;
  right: 0;
  top: 55.5px;
  height: calc(100% - 56px);
  border-left: 1px solid #f1f1f21c;
  overflow: auto;
  transition: .2s ease;
}

.sidebar::before {
  display: block;
  height: 10px;
  position: sticky;
  top: 0;
  background: linear-gradient(#35363a, #35363a00);
  margin-bottom: -16px;
  content: '';
}

.frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #323739;
  box-shadow: 3px 5px 20px -5px #131c21;
  height: 80px;
  width: 80px;
  margin: 16px 13px;
  cursor: pointer;
  transition: .2s ease;
}

.frame.open {
  border-color: #00af9c;
}

.frame-wrapper {
  background: #131c21;
  position: relative;
  height: 100%;
  z-index: -1;
  transition: .2s ease;
}

.frame.open .frame-wrapper {
  background: #090e11f5;
}

.frame-el {
  background: #3b4042;
  height: 20px;
  width: 20px;
  border-radius: 5px;
  position: absolute;
  top: 5px;
  left: 5px;
}

.canvas {
  position: fixed;
  width: calc(100vw - 109px);
  height: calc(100vh - 57px);
  top: 57px;
  left: 0;
  background: #2a2a2e;
  z-index: -1;
}

.wrapper {
  position: relative;
  height: 100%;
}

.el {
  width: 100px;
  height: 100px;
  background: #3b4042;
  border-radius: 10px;
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: grab;
}

.el:active {
  cursor: grabbing;
}

.el.playing {
  transition: .25s linear !important;
}

.prompt-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-content: center;
  transition: .2s ease;
  opacity: 0;
  pointer-events: none;
}

.prompt-wrapper .background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #090e11b3;
  z-index: -1;
}

.prompt {
  max-height: calc(100vh - 40px);
  background: #3b4042;
  border-radius: 5px;
  padding: 22px 24px 20px;
  display: flex;
  flex: none;
  flex-direction: column;
  box-sizing: border-box;
  overflow: auto;
  box-shadow: 0 17px 50px 0 rgba(0,0,0,.19), 0 12px 15px 0 rgba(0,0,0,.24);
  transform: scale(0.9);
  transition: .2s ease;
}

.prompt .title {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.prompt p {
  margin: 0;
}

.prompt .close {
  cursor: pointer;
}

.prompt a {
  font-size: 14.2px;
  line-height: 20px;
  white-space: break-spaces;
  overflow-wrap: break-word;
}

.prompt span {
  color: #f1f1f2a1;
  font-size: 14px;
}

.prompt .code {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px !important;
  padding: 10px;
  background: #131c21;
  border-radius: 3px;
  margin: 10px 0;
  white-space: break-spaces;
  overflow-wrap: break-word;
  position: relative;
}

.prompt .code::after {
  content: '';
  background: #00af9c;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  left: 0;
  transform: scaleX(0);
  transition: .2s ease;
  border-radius: 0 0 3px 3px;
}

.prompt .code .copy {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  color: #00af9c;
  transition: .2s ease;
}

.prompt .code.copy .copy {
  color: #70db91;
}

.prompt .code.copy::after {
  transform: none;
}

.prompt .name {
  color: white;
  font-size: inherit;
}

.prompt .content-wrapper {
  height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  right: 0;
}

.prompt .buttons {
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
}

.prompt .button {
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  background: #00af9c;
  color: #131c21;
  font-size: 14px;
  text-transform: uppercase;
  transition: .2s ease;
  margin-left: 4px;
}

.prompt .button.second {
  color: #00af9c;
  background: transparent;
}

.prompt .button:hover {
  background: #00c3ae;
  box-shadow: 0 1px 1px 0 rgba(0,0,0,.06),0 2px 5px 0 rgba(0,0,0,.2);
}

.prompt .button.second:hover {
  background-color: #f1f1f20d;
}

.prompt-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}
.prompt-wrapper.open .prompt {
  transform: none;
}

.github {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100vw;
  height: 30px;
  display: grid;
  place-content: center;
  pointer-events: none;
}

.github .inner {
  pointer-events: all;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  padding: 5px 8px;
  border: 1px solid #f1f1f25c;
  border-color: #d4d4d4;
  transition: .2s ease;
  text-decoration: none;
  color: #d4d5d7;
  position: relative;
}

.github .inner:hover {
  background: #f1f1f20f;
  box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);
}

.github .octicon {
  margin-right: 5px;
}

.count {
  position: absolute;
  right: -30px;
  padding: 4px 3px;
  border: 1px solid #f1f1f25c;
  border-radius: 5px;
  font-size: 12px;
}

.count::before {
  top: 50%;
  left: -5px;
  margin-top: -4px;
  border: 4px solid #f1f1f25c;
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  position: absolute;
  height: 0;
  width: 0;
  content: '';
}

@keyframes edit {
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

