.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-top: 10px;
}
input, select {
margin-bottom: 10px;
}
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;
font-size: 18px;
font-weight: bold;
}
.formula {
font-family: times new roman;
font-size: 1.6em;
padding-left: 6px;
font-weight: 400;
}
.fraction {
display: inline-block;
position: relative;
vertical-align: middle;
letter-spacing: 0.001em;
text-align: center;
}
.fraction > span {
display: block;
padding: 0.1em;
}
.fraction span.fdn {
border-top: 2px solid black;
}
@media (max-width: 480px) {
.container {
padding: 10px;
}
input, select {
font-size: 14px;
}
button {
font-size: 14px;
}
}