html, body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #222;
  color: #eee;
  margin: 0;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}


input,
textarea {
  padding: 10px;
  border: 1px solid #eee;
}

input:hover,
textarea:hover {
  border-color: #ebb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #bbb;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
}

.main {
  width: 100%;
  max-width: 1300px;
  margin-top: 20vh;
}

.title {
  text-align: center;
  font-size: 30px;
}

.content {
  width: 100%;
  padding: 0 20px;
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  background-color: #444;
  color: #eee;
}

.tab.active {
  background-color: #eee;
  color: #444;
}

/* 加密 */
.encrypt-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encrypt-textarea {
  flex: 1;
  width: 0;
  height: 300px;
  resize: none;
}

.encrypt-btn {
  padding: 10px 20px;
  margin: 10px;
}

/* 解密 */
.decrypt-wrapper {
  width: 100%;
}

.input-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.decrypt-input {
  flex: 1;
  height: 40px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.decrypt-btn,
.stop-btn {
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 40px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

.checkbox-group {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

.checkbox-item {
  margin-right: 10px;
}

.checkbox-item:last-child {
  margin-right: 0;
}

.decrypt-result {
  width: 100%;
  padding: 10px;
  background-color: #eee;
  color: #444;
}

@media screen and (max-width: 640px) {
  .main {
    margin-top: 0;
  }

  .encrypt-wrapper {
    display: block;
    text-align: center;
  }

  .encrypt-textarea {
    width: 100%;
    height: 100px;
  }
}