.stm32_nfmc_calculator {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(0, 46, 137, 0.074);
    position: relative;
    font-size: 18px;
    margin-bottom: 20px;
}

.stm32_nfmc_calculator h2 {
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 20px;
}

.stm32_nfmc_calculator h3 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 20px;
}

@media (max-width: 800px) {
    .stm32_nfmc_calculator {
        width: 80%;
    }

    .stm32_nfmc_calculator h2 {
        margin-top: 0px;
    }
}

.stm32_nfmc_calculator h4 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.stm32_nfmc_calculator .form-group {
    margin-bottom: 1px;
    display: flex;
    align-items: center;
}

.stm32_nfmc_calculator label {
    width: 60px;
    margin-left: 10px;
    font-size: 14px;
}

.stm32_nfmc_calculator input {
    flex: 1;
    padding: 4px;
    box-sizing: border-box;
    margin-right: 10px;
    min-width: 10px;
}

.stm32_nfmc_calculator input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.stm32_nfmc_calculator #calc_button {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 20px;
}

.stm32_nfmc_calculator button.toggle-button {
    position: absolute;
    bottom: 0px;
    right: calc(50% - 15px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    display: none;
}

.stm32_nfmc_calculator button.toggle-button.up {
    top: auto;
    bottom: 10px;

}

.stm32_nfmc_calculator .hidden {
    display: none;
}

.stm32_nfmc_calculator button:hover {
    background-color: #45a049;
}

.stm32_nfmc_calculator .result {
    margin-top: 20px;
}

/*LCD Calculator************************************************/

.stm32_lcdfmc_calculator {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(0, 46, 137, 0.074);
    position: relative;
    margin-bottom: 20px;
}

.stm32_lcdfmc_calculator h2 {
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 20px;
}

@media (max-width: 800px) {
    .stm32_lcdfmc_calculator {
        width: 80%;
    }

    .stm32_lcdfmc_calculator h2 {
        margin-top: 0px;
    }
}

.stm32_lcdfmc_calculator h3 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 20px;
}

.stm32_lcdfmc_calculator h4 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.stm32_lcdfmc_calculator .form-group {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.stm32_lcdfmc_calculator .hform-group {
    margin-bottom: 5px;
    display: grid;
    gap: 5px;
}

.stm32_lcdfmc_calculator .hform-group label {
    min-width: 20%;
    margin-left: 20px;
    font-size: 14px;
    width: auto;
}

.stm32_lcdfmc_calculator label {
    width: 60px;
    margin-left: 10px;
    font-size: 14px;
}

.stm32_lcdfmc_calculator input {
    padding: 5px;
    box-sizing: border-box;
    margin-right: 10px;
    margin-left: 20px;
    min-width: 10px;
}

.stm32_lcdfmc_calculator input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.stm32_lcdfmc_calculator #calc_button {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.stm32_lcdfmc_calculator button.toggle-button {
    position: absolute;
    bottom: 0px;
    right: calc(50% - 15px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    display: none;
}

.stm32_lcdfmc_calculator button.toggle-button.up {
    top: auto;
    bottom: 10px;
}

.stm32_lcdfmc_calculator .hidden {

    display: none;


}

.stm32_lcdfmc_calculator button:hover {
    background-color: #45a049;
}

.stm32_lcdfmc_calculator .result {
    margin-top: 20px;
}