/* Page background, and centering the card in the middle */
body {
  font-family: system-ui, sans-serif;
  background: #f1f5f9;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* The white box everything sits in */
.card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 360px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 12px 0 22px;
  font-size: 1.5rem;
  color: #0f172a;
}

/* Each label on its own line with some breathing room */
label {
  display: block;
  color: #334155;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

input[type="number"] {
  width: 70px;
  padding: 6px;
  margin-left: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

/* Slightly darker blue when the mouse is over the button */
button:hover {
  background: #1d4ed8;
}

.text {
  width: 330px;


}

.pass {
  display: block;
  width: 320px;
    overflow-x: scroll;
}

/* The box the password appears in */
.result {
  margin-top: 20px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 1.1rem;
  text-align: center;
  word-break: break-all; /* long passwords wrap instead of spilling out */
}
