body{
    background-color: #ff00;
    display: flex;
    justify-content: center;
    overflow: hidden;
    font-family:'Courier New', Courier, monospace;
    height: 100vh;
    margin: 0;
    align-items: center;

}

#calculator{
    display: flex;
    flex-direction: column;
    border: 2px solid  #ccc;
    margin: 10px;
    background-color: linear-gradient(150deg,#fffff0, #ffffff);
    box-shadow:inset 0 8px 60px rgba(0, 0, 0, 0.1),
               inset 0 8px 8px rgba(0, 0, 0, 0.1),
               inset 0 -4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    max-width: 100%;
}
#toggleSwitch{
    display: flex;
    flex-direction: row;
}
#switch{
    background-color: rgb(255, 255, 255);
    height: 20px;
    width: 40px;
    border-radius: 17px;
    float: left;
    margin: 15px 5px 15px 15px;
    position: relative;
    cursor: pointer;
    box-shadow:-1px 1px 10px black;
    
}
#switch::before{
    position: absolute;
    content: '';
    background-color:rgb(0, 0, 0) ;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    margin: 2.4px;
    transition: 0.3s;
    box-shadow:-1px 1px 15px rgb(0, 0, 0);
}
input:checked + #switch{
    background-color: rgb(0, 0, 0);

    
}
input:checked + #switch:before{
    transform: translateX(20px);
    background-color: rgb(255, 251, 251);
    box-shadow:-1px 1px 15px rgb(255, 255, 255);
}
#equation{
    border-top: 1px solid #ccc;
    font-size: 1.5em;
    padding-top: 70px;
}
.display{
    position: relative;
    overflow: hidden;
    height: 90px;
    width: 100%;
    border: none;
    background-color: transparent;
    backdrop-filter: blur(8px);
    font-size: 4em;
    text-align: right;
    padding: 10px;
    box-sizing: border-box;
}
.display:focus{
    outline: none;
    box-shadow: none;
}
#keys{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 100%; 
    font-weight:bolder;
}
#keys button{
    height: 75px;
    border:none;
    font-size:1.75em;
    color:inherit;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.2s;
}
#keys button:active{
    background-color: rgb(163, 163, 163);
}
#keys button:nth-child(1){
    grid-column: span 2;
}
@media screen and (min-width: 600px){
    #keys button:hover{
        background-color: rgb(90, 90, 90);
}
#keys button:active{
    background-color: rgb(163, 163, 163);
}
}

@media screen and (max-width: 600px){
    #calculator{
        width:90vw;   
    }
    .display{
        width: 100%;  
    }
}