@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: rgb(255, 255, 255);
  font-family: "Poppins", sans-serif;
  justify-content: center;
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 1rem;
  margin: 0;
}

.calculator {
  background-color: rgb(31, 30, 30);
  padding: 2rem;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
}
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: whitesmoke;
}

label {
  display: block;
  font-weight: 600;
  color: whitesmoke;
  margin-bottom: 0.4rem;
}

input[type="number"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  border: 2px solid #000000;
  outline: none;
  transition: border-color 0.3s ease-out;
}

input[type="number"]:focus {
  border-color: rgb(0, 0, 0);
  box-shadow:  5px 2px #ccc;
}

button {
  background: none;
  width: 100%;
  padding: 0.8rem;
  outline: none;
  border: 1px solid #fff;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

button:hover {
  background-color: #ffffff;
  color: #000;
}

.result {
  margin-top: 1.5rem;
  padding: 1rem;
  outline: none;
  border: 1px solid #ccc;
  color: white;
  min-height: 60px;
  font-weight: 600;
  white-space: pre-line;
}


.calcBtn:disabled {
  background-color: #666;
  cursor: not-allowed;
  color: #ccc;
}

.result {
  transition: opacity 0.3s ease;
  white-space: pre-line;
  font-weight: 600;
  margin-top: 1.5rem;
  color: #ffffff;
}