@font-face {
  font-family: "Tex Gyre";
  src: url("../fonts/texgyreheros-regular.otf") format("opentype")
}

  *,
  *:before,
  *:after {

    margin:0;
    padding:0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box
  }

  a {
    color: currentColor;
    text-decoration: none;
    vertical-align:baseline;
  }

  li {
    list-style: none;
  }

  p {
    overflow: hidden;
  }
  body {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: -200;
    font-size: 24px;
    font-family: "Tex Gyre";
    background: #f5f5f5;

  }
  .item:hover {
    /* font-family: serif;
    font-size: 25px; */
    transform:translateX(15px);
  }
  .uplabel{
width: auto;

  }
  .info{
    position: absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  background: #f5f5f5;
  padding:2em;
  display: none;
  }

form:hover{
  cursor:pointer;
  transform:translateX(15px);
}
  #paperCanvas {
    display: none;
  }
  #opentypeCanvas {
    width:100vw;
    height:100vh;
    position: absolute;
    top:0;
    left:0;
    z-index: -100;
  }

  #tester {
    transform: translate(-99999px,-99999px);
  }
  #top-controls{
    padding:10px 15px;
    position: absolute;
    width:100%;
    top:0;
    left:0;
  }
  #top-controls div{
    float:left;

  }

  #top-controls .section:nth-child(1){

    width: calc(50% - 180px);
  }
  #top-controls .section:nth-child(2){
  width: calc(50% - 180px);
  }
  #top-controls .section:nth-child(3){
    position: absolute;
    right:0;
    overflow: hidden;
    width:auto;
    margin-right: 15px;
  }

  .label{
    float:left;
    width:40px;
    /* margin-right: 30px; */
  }
  .font-selector:hover {

    cursor:pointer;
  }
  .menu  {
    display: none;
    clear:both;
    margin-left:40px;
    color:black
  }
  .menu .item {
    display: block;

  }
  .menu .item:hover {

    cursor:pointer;
  }
  .remix-icon {
    margin-top:10px;
    width:60px;
    height:80px;
    display: block;
    margin-right:15px;
    float: left;
    position: relative;

  }
  .remix-icon:hover {
    cursor: pointer;
  }
  .fill:hover {
    cursor: pointer;
  }
  .filled {
    /* transform:translateY(-3px); */
  }
  .filled .fill {
    background-color:hsl(70,60%,30%);
  }
  .active .fill {
    background-color:hsl(70,60%,30%);
  }
  #checker {
    margin-right:0;
  }
  .outline {
    box-shadow: inset 0 0 0 1.5px hsl(70,60%,30%);
  }
  .open {
    display: block;
  }

  #caption {
    position: absolute;
    top:calc(50% + 150px);
    left:50%;
    transform: translateX(-50%);
    text-align: center;
  }

  #bottom-controls{
    width: 100%;
    position: absolute;
    bottom:0;
    padding: 15px;
  }
  #bottom-controls .slider:nth-child(1){
    width: calc(50% - 180px);
    float:left;
  }
  #bottom-controls .slider:nth-child(2){
    width: calc(50% - 180px);
    float:left;
  }
  #buttons {
    position: absolute;
    right:0;
    float:left;
    margin-right:15px;
  }
  #buttons a {
    margin-left:20px;
    cursor: pointer;
  }

  .ui-slider .ui-slider-handle{
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 20px;
    background-color: hsl(70,60%,30%);
    margin-top:-2px;
  }
  .ui-corner-all {
    background-color: hsl(70,60%,30%);
  }
  .ui-state-default:focus {
    outline: none;
    border: 0;
  }
  .ui-slider{
    margin-top:19px;
    width: 80%;
    float:left;
    height:1.5px;
    border: 0;
    border-radius: 0;
    background-color: hsl(70,60%,30%);
  }
  .ui-widget.ui-widget-content {
    border:0;
  }
  @media only screen and (max-width: 1080px) {
    body {
      overflow: hidden;
      width:100vw;
      height:100vh;
      position: fixed;
      left:0;
      top:0;
    }
    #top-controls,
    #bottom-controls,
    #caption {
      display: none !important;
    }
    #opentypeCanvas{
      top:50%;
      left:50%;
      /* top:0;
      left:0; */
      position: fixed;
      width:100vh;
      height:100vw;
      transform-origin: center;
      transform: translate(-50%,-50%) rotate(90deg);
    }
    #tester {
      font-size: 20em !important
    }

  }
