body {
    margin: 20px 0;
}

#title {
    margin: 20px 0;
    padding: 10px;
    border-radius: 25px;    
    background: white;
    color: black;
    font-size: 2.5em;
    font-family: 'Abel', sans-serif;
    font-weight: bold;
    text-align: center;
}

#cashRegisterBody {
    display: flex;
    flex-flow: column wrap;
    margin: auto;
    padding: 0 50px;
    width: 700px;
    border: outset 25px rgb(231, 231, 231);
    border-radius: 50px;
    background: rgb(78, 78, 78);
}

#eqn {
    flex: 1 1 auto;
    align-self: stretch;
    padding: 5px 20px 5px 0;
    background: white;
    color: dimgray;
    font-size: 40px;
    font-family: 'Abel', sans-serif;
    text-align: right;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    min-height: 1.5em;
}

#display {
    flex: 1 1 auto;
    align-self: stretch;
    padding: 5px 20px 5px 0;
    background: white;
    color: black;
    font-size: 50px;
    font-family: 'Abel', sans-serif;
    text-align: right;
    min-height: 1.5em;
}

#buttons {
    height: 340px;
}

#row1, #row2, #row3, #row4, #row5 {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

input[type=button] {
    flex: 1 1 20%;
    padding: 11px 0;
    background-color: dimgray;
    color: white;
    font-size: 30px;
    font-family: 'Abel', sans-serif;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px #999;
}

input[type=button]#clear {
    background: lightcoral;
}

input[type=button].operator {
    background: lightslategray;
}

input[type=button].function {
    background: lightslategray;
}

input[type=button]#equal {
    background: lightseagreen;
    border-bottom-left-radius: 25px;
    /* border-bottom-right-radius: 25px; */
}

input[type=button]#clear {
    /* border-bottom-left-radius: 25px; */
    border-bottom-right-radius: 25px;
}

input[type=button]:active {
    box-shadow: 0 2px #666;
    transform: translateY(2px);
}

input[type=button]:hover {
    background-color: lavenderblush;
    color: black;
}

input[type=button]#clear:hover{
    background-color: lightpink;
    color: black;
}

input[type=button]#equal:hover {
    background-color: mediumaquamarine;
    color: black;
}

input[type=button].operator:hover {
    background: paleturquoise;
    color: black;
}

input[type=button].function:hover {
    background: moccasin;
    color: black;
}

@media only screen and (max-width: 1000px) {
    #cashRegisterBody {
        width: 20rem;
        display: flex;
        flex-flow: column wrap;
        margin: auto;
        padding: 0 30px;
        width: 500px;
        border: outset 20px rgb(231, 231, 231);
        border-radius: 50px;
        background: rgb(63, 62, 62);
    }
    
    #title {
        margin: 20px 0;
        padding: 10px;
        border-radius: 25px;    
        background: white;
        color: black;
        font-size: 2em;
        font-family: 'Abel', sans-serif;
        font-weight: bold;
        text-align: center;
    }

    #buttons {
        height: 340px;
    }
}

@media only screen and (max-width: 650px) {
    #cashRegisterBody {
        width: 20rem;
        display: flex;
        flex-flow: column wrap;
        margin: auto;
        padding: 0 20px;
        width: 300px;
        border: outset 10px rgb(231, 231, 231);
        border-radius: 50px;
        background: rgb(63, 62, 62);
    }
    
    #title {
        margin: 20px 0;
        padding: 10px;
        border-radius: 25px;    
        background: white;
        color: black;
        font-size: 1.5em;
        font-family: 'Abel', sans-serif;
        font-weight: bold;
        text-align: center;
    }

    #buttons {
        height: 330px;
    }
}