@import url('https://fonts.googleapis.com/css2?family=Graduate&display=swap');

html {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #d9a7c7, #fffcdc);
}

.calculator {
    background-color: white;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.6);
}

.calculator-display {
    background-color: whitesmoke;
    color: black;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 10px 10px 0 0;
}

.calculator-display h1 {
    margin: 0;
    padding: 25px;
    font-size: 45px;
    font-family: 'Graduate', cursive;
    font-weight: 100;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    padding: 10px;
}

button {
    min-height: 50px;
    font-size: 30px;
    font-weight: 100;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: rgb(232, 216, 216);
}

button:hover {
    filter: brightness(110%);
}

/*a link becomes active when you click on it */
button:active {
    transform: translateY(1px);
}

.operators {
    background-color: rgb(253, 159, 159);
    color: white;
    font-size: 30px;
}

.clear {
    background-color: rgb(161, 221, 249);
    color: white;
    font-size: 30px;
}
.back {
    background-color:  rgb(127, 220, 220);
    color: white;
    font-size: 30px;
}

.clear:hover {
    filter: brightness(90%);
}

.equal-sign {
    grid-column: -2;
    grid-row: 2 /span 3;
    background-color: rgb(120, 230, 177);
}

/* Media Query for Largert Smartphone */
@media screen and (max-width: 600px) {

    /* this means anything less than 600px will be effected */
    .calculator {
        width: 93%;
    }
}