html, body { width: 100%; height: 100%; margin:0; padding:0; overflow-x:hidden; }
body { background: #f7f6f3; }
* { box-sizing: border-box; }

.canvas-wrapper {
  height: 100vh;
  display: inline-block;
  padding: 32px;
  position: relative;
  left: calc(50% - 240px);
  transform: translateX(-50%);
}
.canvas-wrapper .padding {
  position: relative;
  height: 100%;
}
.canvas-wrapper .canvas-frame {
  height: 100%;
}
.canvas-wrapper canvas {
  left: 20.5%;
  top: 11.1%;
  width: 59.1%;
  height: 58.7%;
  position: absolute;
}



.text-wrapper {
  height: 100vh;
  width: 480px;
  background: #2b2c2f;
  color: white;
  padding: 32px;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  right: 0;
  overflow: auto;
}
.text-wrapper .input-file {
  position: relative;
}
.text-wrapper #file {
  display: none;
}
label[for="file"] {
  width: 100%;
  height: 270px;
  border-radius: 8px;
  text-align: center;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 4px dashed rgb(122, 123, 124);
  background: rgb(65, 66, 68);
}
input[type="range"] {
  border: 1px solid #414141;
  width: 100%;
  background: rgba( 0, 0, 0, 0.1 );
}
.text-wrapper .image-preview {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: calc(270px * 0.9);
  width: calc(270px * 0.9);
  margin-top: 32px;
}
.text-wrapper .shape {
  margin-top: 16px;
}


@media (max-width: 1000px) {
  .canvas-wrapper {
    left: 50%;
    height: 60vh;
  }
  .text-wrapper {
    position: relative;
    width: 100%;
    height: initial;
  }
  label[for="file"] {
    height: initial;
    font-size: 1.5em;
  }
  .size, .gap {
    display: inline-block;
    width: 48%;
  }
}