* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #c4fbed;
}

/* Calculator body */
#calBody {
    border-radius: 20px;
    width: 450px;
    height: 560px;
    background-color: #bdffe4;
    margin: 50px auto;
}

/* Calculator Display */

#calDisplay {
    width: 450px;
    height: 160px;
    border: none;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background-color: #000000;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

/* Operations display */

#opsDisplay h2 {
    font-size: 50px;
    letter-spacing: 3px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: white;
}

#opsDisplay h2:first-child {
    padding-left: 20px;
}

#opsDisplay h2:last-child {
    padding-right: 20px;
}

#opsDisplay {
    border: 20px solid #467468;
    border-top: none;
    display: flex;
    height: 80px;
    width: inherit;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow: hidden;
}

/* Total display */

#totalDisplay {
    border: 20px solid #467468;
    border-bottom: none;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    height: 80px;
    width: inherit;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

#totalDisplay h2 {
    font-size: 25px;
    letter-spacing: 3px;
    margin: 0;
    padding-bottom: 20px;
    color: white;
}

#totalDisplay h2:last-child {
    padding-right: 20px;
}

/* Calculator numpad */
.numpad {
    width: inherit;
    height: 80px;
    border-top: none;
    border-left: 10px solid #467468;
    border-right: 10px solid #467468;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.row-5 {
    border-bottom: 10px solid #467468;
}

.numpad:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.button {
    font-size: 25px;
    appearance: none;
    border-width: 0;
    border-radius: 40px;
    padding: 0;
    width: 100px;
    height: 48px;
    text-align: center;
    background-color: #369781;
    color: white;
    box-shadow: rbga(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
    cursor: pointer;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    text-decoration: none;
    transition: box-shadow .10s, transform .10s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow, transform;
}

.button:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rbga(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -13px, #D6D6E7 0 -3px 0 inset;
}

.button:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -4px 0 inset;
    transform: translateY(-2px);
}

#Equals:hover {
    background-color: rgb(81, 194, 81);
}

#AC:hover, #Del:hover {
    background-color: rgb(238, 71, 71);
}

.operator:hover {
    background-color: rgb(81, 81, 222);
}

.button:active {
    box-sizing: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
}

.row-5 button:last-child {
    flex: 1;
}

/* Footer */

.footer {
    display: flex;
    justify-content: center;
    height: 34px;
}

#github {
    height: 30px;
    width: 30px;
    margin: 0;
    margin-left: 10px;
    padding: 0;
    flex: 0;
}

#author {
    text-align: center;
    align-self: center;
}