body {
  margin: 0;
  padding: 0;
  background: #eee;
  width: 100vw;
  height: 100vh;
}
.cipher {
  width: 260px;
  max-width: 100%;
  height: 340px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  top: 50%;
  left: 50%;
  margin-top: -200px;
  margin-left: -150px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.check {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 3px;
}

/* Hide the browser's default checkbox */
.check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  border-radius: 3px;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 3px;
}

/* On mouse-over, add a grey background color */
.check:hover input ~ .checkmark {
  background-color: #ddd;
}

/* When the checkbox is checked, add a blue background */
.check input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.check input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.check .checkmark:after {
  left: 50%;
  margin-left: -2.5px;
  top: 50%;
  margin-top: -8px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.text {
  width: calc(100% - 20px);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
  position: relative;
  padding: 15px 10px;
  resize: none;
}

.output,
.check,
.text {
  margin-top: 10px;
}

.output {
  margin-top: 20px;
  width: 100%;
  word-break: break-word;
  height: 70px;
  overflow-y: auto;
}