/* Reset some basic styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

h1 {
  text-align: center;
  margin-top: 20px;
  color: #4a90e2;
}

/* Style for the main container */
div {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Input field styles */
input[type="number"] {
  width: calc(100% - 22px);
  /* Full width minus padding */
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Paragraph styles for the clickable text */
p {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}

/* Change background on hover for clickable paragraphs */
p:hover {
  background-color: #e1f5fe;
  /* Light blue background */
  border-color: #4a90e2;
  /* Darker border */
}

/* Specific style for required input */
input:required {
  border-color: #f44336;
  /* Red border for required input */
}

input:required:valid {
  border-color: #4caf50;
  /* Green border when valid */
}