* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eeeeee;
    font-family: Arial, Helvetica, sans-serif;
}

.calculator {
    width: 690px;
    min-height: 385px;
    background: #087d;
    border-radius: 7px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.top-line {
    height: 35px;
    background: #ffffff;
    padding: 9px 15px 0;
    color: #111111;
    font-size: 12px;
}

.title {
    position: absolute;
    top: 9px;
    left: 250px;
    background: #dddddd;
    color: #111111;
    padding: 2px 7px 3px;
    font-size: 18px;
    font-weight: bold;
}

.main-content {
    display: flex;
    padding: 55px 22px 25px;
}

.left-side {
    width: 58%;
}

.right-side {
    width: 42%;
    position: relative;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 23px;
}

.input-row label {
    width: 125px;
    text-align: right;
    margin-right: 20px;
    font-size: 17px;
    font-weight: bold;
    color: #111111;
}

.input-row input {
    width: 67px;
    height: 26px;
    border: 1px solid #ffffff;
    background: #ffffff;
    font-size: 16px;
    padding: 2px 5px;
    outline: none;
}

.result-row {
    display: flex;
    align-items: center;
    margin-top: 19px;
}

.first-result {
    margin-top: 50px;
}

.dollar {
    width: 26px;
    text-align: center;
    color: #111111;
    font-size: 17px;
    font-weight: bold;
}

.result-box {
    width: 62px;
    height: 30px;
    margin-left: 6px;
    border: 2px solid #ffffff;
    background: #69e6d1;
    color: #111111;
    text-align: right;
    padding: 2px 5px;
    font-size: 15px;
    outline: none;
}

.result-label {
    margin-left: 19px;
    font-size: 17px;
    font-weight: bold;
}

.red {
    color: #ff0000;
}

.white {
    color: #ffffff;
}

#calcular {
    display: block;
    margin: 12px auto 0;
    width: 154px;
    height: 67px;
    border: 1px solid #222222;
    background: #777777;
    color: #000000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
}

#calcular:hover {
    background: #888888;
}

#calcular:active {
    transform: translateY(1px);
}

.right-result {
    margin-top: 35px;
    text-align: center;
}

.right-title {
    color: #000000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 17px;
}

.big-result {
    width: 100px;
    height: 32px;
    border: 2px solid #ffffff;
    background: #2baeb0;
    color: #ffffff;
    text-align: right;
    padding: 2px 5px;
    font-size: 16px;
    outline: none;
}

.final-result {
    margin-top: 30px;
}

@media (max-width: 720px) {
    body {
        align-items: flex-start;
        padding: 15px;
    }

    .calculator {
        width: 100%;
        max-width: 690px;
    }

    .title {
        left: 66%;
        transform: translateX(-50%);
        white-space: nowrap;
        font-size: 18px;
    }

    .main-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .input-row label {
        width: 105px;
        margin-right: 10px;
    }

    .result-label {
        margin-left: 10px;
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .main-content {
        display: block;
    }

    .left-side,
    .right-side {
        width: 100%;
    }

    .right-side {
        margin-top: 25px;
    }

    #calcular {
        margin-top: 5px;
    }

    .right-result {
        margin-top: 25px;
    }

    .first-result {
        margin-top: 35px;
    }
}