input, select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 15px; /* เพิ่ม padding ใหญ่กว่าเดิม */
  margin-bottom: 20px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

select {
  /* ใส่ลูกศร dropdown */
  background-image: url("data:image/svg+xml,%3Csvg fill='black' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

input:focus, select:focus {
  outline: none;
  border: 1px solid #ccc;
}

button.hash-btn {
    background-color: #fdc620;
    color: #43413d;
    cursor: pointer !important;
    padding: 10px 25px;
    letter-spacing: .1em;
    user-select: none;
    right: 10px;
    float: right;
    margin-top: 15px;
}
button:hover {
    background-color: #ffd863;
    color: #43413d;
}

.result {
  border: 1px solid #ccc;
  background-color: #fff;
  padding: 15px;
  border-radius: 6px;
  word-break: break-word;
  font-family: monospace;
  cursor: pointer;
  user-select: all;
  min-height: 40px;
  line-height: 1.4em;
  white-space: pre-wrap;
  transition: background-color 0.2s ease;
  text-align: center;
  vertical-align: middle;
}
.result:active, .result:focus {
  border: 2px solid #008000;
  background-color: #fff;
}

#keyBox {
  margin-bottom: 20px;
}
#copyMessage {
  color: #008000;
  font-size: 16px;
  height: 1.2em;
  margin-top: -15px;
  margin-bottom: 20px;
  text-align: center;
  user-select: none;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 15px;
    max-width: 100%;
  }
  h2 {
    font-size: 1.5rem;
  }
  input, select, button {
    font-size: 14px;
    padding: 10px 12px;
  }
  .result {
    font-size: 14px;
    padding: 10px;
    min-height: 50px;
  }
}