body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
   max-width: 600px;
   margin: 50px auto; 
   padding: 20px;
   border: 2px solid #d1cfcf;
   border-radius: 5px;
}

h1 {
    text-align: center;
}

label {
    display: block;
    margin-bottom: 5px;
}
.input-container {
    position: relative;
    width: 100%;
}

input[type="number"],
select {
    width: calc(100% - 30px);
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #a3a1a1;
}

/* button style */
button {
    background-color: #007bff;
    width: 100%;
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Error icon */
.error-icon {
    display: none;
    width: 20px;
    height: 20px;
    background-image: url(https://th.bing.com/th/id/OIP.JdprdNI-0GtDRsXMYN0sCQHaHa?pid=ImgDet&w=207&h=207&c=7&dpr=1.3); /* Path to your error icon image */
    background-size: cover;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}
/* Tooltip */
.tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: -30px;
    left: calc(100% + 5px);
}

/* Show tooltip on hover */
.input-container:hover .error-icon:hover + .tooltip {
    visibility: visible;
}

.input-error .error-icon {
    display: block;
}

#result{
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}