* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

.material-icons {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.54);
  vertical-align: middle;
  line-height: 100%;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.app-canvas {
  display: flex;
  justify-content: center;
  padding-top: 100px;
}

.menubox {
  position: relative;
  display: inline-block;
  background: white;
  -webkit-transform-origin: top center;
          transform-origin: top center;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #dbdbdb;
  transition: border-radius .25s ease-in-out;
}
.menubox:focus, .menubox:focus-within {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}
.menubox.menubox--collapsed {
  border-radius: 50px;
}
.menubox__label {
  position: relative;
  color: #595959;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05rem;
  padding: 0.625rem 5rem 0.625rem 0.75rem;
  background: #f9f9f9;
  -webkit-transform-origin: top center;
          transform-origin: top center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.menubox__label-text {
  line-height: 100%;
  vertical-align: middle;
  position: relative;
  left: 0.25rem;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.menubox__label::after {
  content: '';
  width: 1px;
  height: 1px;
  right: 1rem;
  top: 0;
  bottom: 0;
  margin: auto;
  position: absolute;
  display: inline-block;
  border-top: 5px solid #595959;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  transition: -webkit-transform .25s ease-in-out;
  transition: transform .25s ease-in-out;
  transition: transform .25s ease-in-out, -webkit-transform .25s ease-in-out;
}
.menubox--collapsed .menubox__label::after {
  -webkit-transform: rotateZ(-90deg);
          transform: rotateZ(-90deg);
}
.menubox__contents {
  padding: 0.5rem 0;
  -webkit-transform-origin: top center;
          transform-origin: top center;
  border-top: 1px solid #dbdbdb;
}
.menubox__options {
  list-style-type: none;
}
.menubox__option {
  position: relative;
}
.menubox__option:not(:first-child) {
  margin-top: 1px;
}
.menubox__option-label {
  position: relative;
  color: gray;
  transition: all .35s ease-out;
  z-index: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.menubox__option-toggle {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  padding: 0.5rem 4rem 0.5rem 1rem;
  cursor: pointer;
  -webkit-animation: entrance .4s ease-out;
          animation: entrance .4s ease-out;
}
.menubox__option-toggle::before {
  content: '';
  position: absolute;
  width: calc(100% - 0.25rem - 1px);
  height: calc(100% - 2px);
  left: 0;
  top: 0;
  border-radius: 0 50px 50px 0;
  border: 1px solid #f9f9f9;
  border-left: 0;
  opacity: 0;
  background: #f9f9f9;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: left center;
          transform-origin: left center;
  transition: opacity .25s ease-out, -webkit-transform .25s ease-out;
  transition: opacity .25s ease-out, transform .25s ease-out;
  transition: opacity .25s ease-out, transform .25s ease-out, -webkit-transform .25s ease-out;
}
@-webkit-keyframes entrance {
  from {
    opacity: 0;
    -webkit-transform: translateY(-15px);
            transform: translateY(-15px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
}
@keyframes entrance {
  from {
    opacity: 0;
    -webkit-transform: translateY(-15px);
            transform: translateY(-15px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0px);
            transform: translateY(0px);
  }
}
.menubox__option-toggle:hover::before, .menubox__option-toggle:focus-within::before {
  opacity: 1;
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}
.menubox__option-toggle:hover .menubox__option-label, .menubox__option-toggle:focus-within .menubox__option-label {
  color: #4d4d4d;
}
.menubox__option-toggle:hover::before {
  border-color: #e8e8e8;
}
.menubox__option-toggle:focus-within::before {
  background: whitesmoke;
}
.menubox__option-toggle input[type=checkbox] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(1px 1px 1px 1px);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  overflow: hidden;
}
.menubox__option-toggle input[type=checkbox] ~ .menubox__option-toggle-check {
  position: absolute;
  top: 0;
  right: 0.375rem;
  width: 2rem;
  height: 100%;
}
.menubox__option-toggle input[type=checkbox]:checked ~ .menubox__option-label {
  color: #606060;
  font-weight: 500;
}
.menubox__option-toggle input[type=checkbox]:checked ~ .menubox__option-toggle-check {
  -webkit-animation: tick 1s ease-out 25ms backwards;
          animation: tick 1s ease-out 25ms backwards;
}
@-webkit-keyframes tick {
  0% {
    -webkit-clip-path: inset(0 60% 50% 0);
            clip-path: inset(0 60% 50% 0);
  }
  60%, 100% {
    -webkit-clip-path: inset(0);
            clip-path: inset(0);
  }
}
@keyframes tick {
  0% {
    -webkit-clip-path: inset(0 60% 50% 0);
            clip-path: inset(0 60% 50% 0);
  }
  60%, 100% {
    -webkit-clip-path: inset(0);
            clip-path: inset(0);
  }
}
.menubox__option-toggle input[type=checkbox]:checked ~ .menubox__option-toggle-check, .menubox__option-toggle input[type=checkbox] ~ .menubox__option-toggle-check.unchecking {
  background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2MWJmOWUiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cG9seWxpbmUgcG9pbnRzPSIyMCA2IDkgMTcgNCAxMiI+PC9wb2x5bGluZT48L3N2Zz4=) center/45% no-repeat;
}
.menubox__option-toggle input[type=checkbox] ~ .menubox__option-toggle-check.unchecking {
  -webkit-animation: untick .35s ease-out backwards;
          animation: untick .35s ease-out backwards;
}
@-webkit-keyframes untick {
  0% {
    -webkit-clip-path: inset(0);
            clip-path: inset(0);
  }
  60% {
    -webkit-clip-path: inset(0 60% 0 0);
            clip-path: inset(0 60% 0 0);
  }
  80%, 100% {
    -webkit-clip-path: inset(0 100% 100% 0);
            clip-path: inset(0 100% 100% 0);
  }
}
@keyframes untick {
  0% {
    -webkit-clip-path: inset(0);
            clip-path: inset(0);
  }
  60% {
    -webkit-clip-path: inset(0 60% 0 0);
            clip-path: inset(0 60% 0 0);
  }
  80%, 100% {
    -webkit-clip-path: inset(0 100% 100% 0);
            clip-path: inset(0 100% 100% 0);
  }
}
