body {
    background-color: #1c1c1c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.calculator {
    background-color: #333333;
    border-radius: 25px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px;
    max-width: 100%;
    box-sizing: border-box;
}

.button {
    font-size: 2em;
    padding: 25px;
    margin: 10px;
    cursor: pointer;
    border-radius: 15px;
    background-color: #444444;
    border: none;
    transition: background-color 0.2s ease;
    width: 100%;
    height: 100%;
    display: inline-block;
    text-align: center;
    color: #f7f700;

    &:hover {
        background-color: #555555;
    }

    &.button-operator {
        background-color: #f7f700;
        color: #222222;

        &:hover {
            background-color: #e6e600;
        }
    }
}

.button-equal {
    background-color: #007aff;
    color: white;
    width: 180px;
}

.button-clear {
    background-color: #ff3b30;
    color: white;
    width: 180px;
}

#total {
    background-color: #222222;
    color: #f7f700;
    font-size: 3.5em;
    text-align: right;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    height: 100px;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
    transition: all 0.3s ease;
}


@media (min-width: 1024px) {
    .calculator {
        padding: 50px;
        width: 600px;
    }

    #total {
        font-size: 4em;
    }

    .button {
        font-size: 2.2em;
        padding: 30px;
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 1200px) {
    .calculator {
        width: 100%;
        max-width: 800px;
        height: auto;
        margin: 5em auto;
        display: flex;
        flex-direction: column;
    }

    #total {
        font-size: 4.5em;
    }

    .button {
        font-size: 2.5em;
        padding: 35px;
        width: 100px;
        height: 100px;
    }

    .calculator div.row {
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
    }

    .calculator div.row .button {
        width: 80px;
        height: 80px;
    }
}