html,
body {
    padding-top: 56px;
    height: calc(100% - 56px);
    margin: 0;
}


h1,
h2 {
    text-align: center;
    padding-left: 20px;
    margin-right: 40px;
}

p {
    padding-left: 40px;
    margin-right: 40px;
    text-align: justify;
}

.wrapper {
    min-height: calc(100vh - 112px);
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: right;
    padding: 1rem 0;
}

.calculator-container {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.calculator {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.calculator label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.calculator input {
    width: 90%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.calculator button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: cyan;
    color: black;
    font-size: 16px;
    cursor: pointer;
}

.calculator button:hover {
    background-color: lightcyan;
}

.calculator h2 {
    margin-top: 20px;
}


/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {

    /* CSS rules for screens smaller than 576px */

    .img-container {
        padding: 0 calc(8% / 4);
    }

    .calculator-img {
        width: 42%;
        margin-left: calc(10% / 4);
    }

    .navbar-brand {
        font-size: 14px;
    }

    h1 {
        font-size: 22px;
    }

}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {

    /* CSS rules for screens between 576px and 767.98px */

    .img-container {
        padding: 0 calc(8% / 4);
    }

    .calculator-img {
        width: 42%;
        margin-left: calc(10% / 4);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* CSS rules for screens between 768px and 991.98px */
    .img-container {
        padding: 0 calc(25% / 4);
    }

    .calculator-img {
        width: 35%;
        margin: 0 calc(25% / 4);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* CSS rules for screens between 992px and 1199.98px */
    .img-container {
        padding: 0 calc(40% / 4);
    }

    .calculator-img {
        width: 25%;
        margin: 0 calc(40% / 4);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    /* CSS rules for screens 1200px and up */
    .img-container {
        padding: 0 calc(40% / 4);
    }

    .calculator-img {
        width: 25%;
        margin: 0 calc(40% / 4);
    }
}