html, body {
    background-color: rgb(10,20,30);
    font-family: sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
main{ /* This is for putting footer outside of main (and on bottom of page) */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    display: flex;
    border: none;
    /*height: 40px; */  
}
input:focus {
    outline: none; 
}
.calc_container{
    /*background-color: white; */
    display: flex;
    flex-direction: column;
    grid: 15px;
    border-radius: 2.5%;
    height: auto;
    width: 350px;
    display: block;
    flex-direction: row;
    justify-content: center;

    /* box shadow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    background-color: #111;
}
.buttons {
    display: grid;
    grid-template-columns: auto auto auto auto;
}
button{
    background-color: white;
    height: 83.44px;
    border-radius: 12px;
    transition: transform 0.1s, background-color 0.2s;
}
button:active{
    transform: scale(0.95);
    background-color: #ddd;
}
.display{
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    border: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}
.result{
    height: 50px;
    margin-left: 5px;
    margin-right: 5px;
    background-color: white;
    font-size: 24px;
    text-align: right;
}
.calchist{
    height: 50px;
    margin-left: 5px;
    margin-right: 5px;
    background-color: white;
    font-size: 16px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fa-backspace{
    color: black;
    opacity: 70%;
}
.number{
    width: auto;
    font-size: 18px;
}
.operator{
    font-size: 26px;
}
.clear, .zero{
    grid-column: span 2;
    font-size: 18px;
}
.remove{
    font-size: 18px;
}

footer {
    margin-top: 30px;
    padding: 15px;
    display: flex;
    justify-content: center;  
    align-items: center;
    gap: 10px;                /* space between text and logo */
    color: #aaa;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

footer .github-logo {
    width: 20px;
    height: 20px;
    filter: invert(1); /* makes logo white on dark bg */
    transition: transform 0.2s;
}

footer .github-logo:hover {
    transform: scale(1.2);
}