.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
margin-bottom: 20px;
}
form {
margin-top: 20px;
display: flex;
flex-direction: column;
}
label {
font-weight: bold;
margin-top: 10px;
margin-bottom: 5px;
}
select,
input[type="number"] {
padding: 5px;
border: 1px solid #ccc;
border-radius: 3px;
height: 40px;
}
.tooltip {
position: relative;
display: inline-block;
cursor: help;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 400px;
font-size:14px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 150%;
left: 0;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
button[type="button"] {
background-color: #4CAF50;
border: none;
color: white;
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: 4px;
}
button:hover {
opacity: 0.8
}
#result {
margin-top: 20px;
display: none;
}
#result p {
margin-top: 10px;
margin-bottom: 10px;
}
#result p span {
font-weight: bold;
}
.row {
display: flex;
flex-wrap: wrap;
margin-right: -15px;
margin-top: 20px;
margin-bottom: 15px;
}
.col-md-6 {
flex: 0 0 60%;
max-width: 60%;
}
.col-md-7 {
flex: 0 0 40%;
max-width: 40%;
align-self: flex-end;
}
.inpct{
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17px" height="20px"><text x="1" y="15" style="font: normal 16px arial;">%</text></svg>') !important;
background-position: right center !important;
background-repeat: no-repeat no-repeat !important;
padding-right: 18px !important;
}
@media (max-width: 640px) {
.col-md-6 {
flex: 0 0 100%;
max-width: 100%;
}
.tooltip .tooltiptext {
width: 300px;
}	
}