/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
}

/* Container Box */
.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

/* Headings */
h1, h2, h3 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
}

/* Form Inputs */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

input[type="number"] {
  width: 95%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border 0.3s ease-in-out;
}

/* Input Focus Effect */
input[type="number"]:focus {
  border-color: #007bff;
  outline: none;
}

/* Button Styling */
button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Button Hover and Click */
button:hover {
  background-color: #0056b3;
}

button:active {
  transform: scale(0.98);
}

/* Results Section */
#results {
  margin-top: 20px;
}

#results p, h3 {
  text-align: left;
  padding: 8px 0;
}

/* Responsive Design for Mobile */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  input[type="number"], button {
    font-size: 14px;
    padding: 10px;
  }
}
