.calculator {
	background-color: #fff;
	padding: 20px;
	margin: 20px auto;
	max-width: 700px;
	border-radius: 10px;
	font-size:16px;
}

.calculator form {
    display: flex;
    flex-direction: column;
	  flex-wrap: nowrap;
}

fieldset {
    border: 2px solid black;
    margin-bottom: 20px;
}

legend {
    font-weight: bold;
}


.form-group {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 15px;
	  justify-content: space-between;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
	  width:215px;
}


.form-group select, input[type=number] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    height: 40px;
	  width: 180px;
}

select:focus,
input[type="number"]:focus {
outline: none;
border: 1px solid #007bff;
}

input.outtext {
background-color: #eee;
font-weight: bold;
padding: 5px;
border: 1px solid #ccc;
border-radius: 3px;
height: 40px;
width: 180px;
}


button[type="button"] {
	background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

button[type="reset"] {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}


button[type="button"]:hover, button[type="reset"]:hover {opacity:0.8}