/* Basic spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background and general style */
body {
  font-family: Arial, sans-serif;
  background-color: #5a3e6f; /* lilac-purple, dark but not too dark */
  color: #f5f5f5; /* light grey text */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* pushes footer down */
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  color: magenta;
  margin-bottom: 10px;
}

/* Intro section */
.intro {
  text-align: center;
  margin-bottom: 20px;
}

/* Form section */
.form-section {
  background-color: #3c2b47; /* darker purple-grey */
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

label {
  display: block;
  margin: 10px 0 5px;
}

input[type="number"] {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  background-color: #2a1f33; /* darker input field */
  color: white;
}

input[type="number"]::placeholder {
  color: #aaa;
}

.radio-label {
  display: inline-block;
  margin-right: 15px;
}

/* Buttons */
.buttons {
  margin-top: 15px;
}

button {
  background-color: magenta;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #d63384; /* slightly darker magenta */
}

/* Result section */
#result {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.highlight {
  background-color: #d8b4fe; /* lilac highlight */
  color: #000; /* black text */
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Footer */
footer {
  background-color: #2a1f33;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
}
