*, *::before, *::after {
    box-sizing: border-box;
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: normal;
}

body {
    padding: 0;
    margin: 0;
    background: linear-gradient(to right, rgb(134, 134, 134), rgb(235, 235, 235), rgb(235, 235, 235), rgb(134, 134, 134));
}

.calculadora {
    display: grid;
    justify-content: center;
    align-content: center;
    min-height: 100vh;
    grid-template-columns: repeat(4, 100px);
    grid-template-rows: minmax(160px, auto) repeat(5, 100px);
}

.calculadora > button {
    cursor: pointer;
    font-size: 2rem;
    border: 1px solid rgb(168, 157, 157);
    outline: none;
    background-color: rgb(243, 237, 237);
}

.calculadora > button:hover {
    background-color: rgba(211, 205, 205, 0.9);
    transition: 300ms;
}

.duplo-espaço {
    grid-column: span 2;
}

.saida {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.89);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex-direction: column;
    padding: 10px;
    word-wrap: break-word;
    word-break: break-all;
    border: 1px solid rgb(168, 157, 157);
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.saida .saida-anterior {
    color: rgba(255, 255, 255, .75);
    font-size: 2rem;
}

.saida .saida-atual {
    color: rgba(255, 255, 255);
    font-size: 3rem;
}

#zero {
    border-bottom-left-radius: 20px;
}

#igual {
    border-bottom-right-radius: 20px;
    background-color: rgba(253, 72, 0, 0.911);
    color: white;
}

#gray {
    background-color: rgb(196, 190, 190);
}

#orange {
    background-color: rgba(253, 72, 0, 0.911);
    color: white;
}

/* Cellphone on horizontal */
@media (min-height: 300px) and (max-width: 920px) {
    *, *::before, *::after {
        box-sizing: border-box;
        font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: normal;
    }
    
    body {
        padding: 0;
        margin: 0;
        background: linear-gradient(to right, rgb(134, 134, 134), rgb(235, 235, 235), rgb(235, 235, 235), rgb(134, 134, 134));
    }
    
    .calculadora {
        display: grid;
        justify-content: center;
        align-content: center;
        min-height: 100vh;
        grid-template-columns: repeat(4, 130px);
        grid-template-rows: minmax(60px, auto) repeat(5, 40px);
    }

    .calculadora > button {
        cursor: pointer;
        font-size: 1.5rem;
        border: 1px solid rgb(168, 157, 157);
        outline: none;
        background-color: rgb(243, 237, 237);
    }
    
    .calculadora > button:hover {
        background-color: rgba(211, 205, 205, 0.9);
        transition: 300ms;
    }
    
    .duplo-espaço {
        grid-column: span 2;
    }

    .saida {
        grid-column: 1 / -1;
        background: rgba(0, 0, 0, 0.89);
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        flex-direction: column;
        padding: 10px;
        word-wrap: break-word;
        word-break: break-all;
        border: 1px solid rgb(168, 157, 157);
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
    }

    .saida .saida-anterior {
        color: rgba(255, 255, 255, .75);
        font-size: 1.5rem;
    }
    
    .saida .saida-atual {
        color: rgba(255, 255, 255);
        font-size: 2rem;
    }

    #zero {
        border-bottom-left-radius: 20px;
    }
    
    #igual {
        border-bottom-right-radius: 20px;
        background-color: rgba(253, 72, 0, 0.911);
        color: white;
    }
    
    #gray {
        background-color: rgb(196, 190, 190);
    }
    
    #orange {
        background-color: rgba(253, 72, 0, 0.911);
        color: white;
    }
}

/* Cellphone on vertical */
@media (min-width: 250px) and (max-width: 500px) {
    *, *::before, *::after {
        box-sizing: border-box;
        font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: normal;
    }
    
    body {
        padding: 0;
        margin: 0;
        background: linear-gradient(to right, rgb(134, 134, 134), rgb(235, 235, 235), rgb(235, 235, 235), rgb(134, 134, 134));
    }
    
    .calculadora {
        display: grid;
        justify-content: center;
        align-content: center;
        min-height: 100vh;
        grid-template-columns: repeat(4, 70px);
        grid-template-rows: minmax(100px, auto) repeat(5, 70px);
    }

    .calculadora > button {
        cursor: pointer;
        font-size: 1.5rem;
        border: 1px solid rgb(168, 157, 157);
        outline: none;
        background-color: rgb(243, 237, 237);
    }
    
    .calculadora > button:hover {
        background-color: rgba(211, 205, 205, 0.9);
        transition: 300ms;
    }
    
    .duplo-espaço {
        grid-column: span 2;
    }

    .saida {
        grid-column: 1 / -1;
        background: rgba(0, 0, 0, 0.89);
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        flex-direction: column;
        padding: 10px;
        word-wrap: break-word;
        word-break: break-all;
        border: 1px solid rgb(168, 157, 157);
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
    }

    .saida .saida-anterior {
        color: rgba(255, 255, 255, .75);
        font-size: 1.5rem;
    }
    
    .saida .saida-atual {
        color: rgba(255, 255, 255);
        font-size: 2rem;
    }

    #zero {
        border-bottom-left-radius: 20px;
    }
    
    #igual {
        border-bottom-right-radius: 20px;
        background-color: rgba(253, 72, 0, 0.911);
        color: white;
    }
    
    #gray {
        background-color: rgb(196, 190, 190);
    }
    
    #orange {
        background-color: rgba(253, 72, 0, 0.911);
        color: white;
    }
}
