@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Space+Grotesk:wght@300..700&display=swap');

*{
    font-family: 'Source Code Pro', monospace;
    font-weight: normal;
}

html{
    color-scheme: dark;
}

body{
    background-image: url("dark-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    margin:0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}

#calculator{
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 24px;
    background-color: rgba(69, 69, 69, 0.1);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    max-width: 400px;
    overflow: hidden; 
    transition: all 0.25s;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

#calculator:hover{
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    backdrop-filter: blur(20px);
}

#keys{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px;
    align-items: center;
}

#display{
    font-size: 4rem;
    text-align: left;
    padding: 10px;
    width: 92%;
    
}

button{
    background-color: hsla(0, 0%, 55%, 0.1);
    border: 0;
    padding: 10px;
    border-radius: 9999999px;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    width: 80px;
    height: 80px;
    text-align: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(249, 248, 248, 0.1);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    transition: all 0.25s;
}

button:hover{
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    background-color: hsla(0, 0%, 70%, 0.1);

}

button:active{
    border: 1.1px solid hsla(0, 0%, 100%, 0.4);
    background-color: hsla(0, 0%, 85%, 0.1);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.operatorBtn{
    background-color: hsla(198, 100%, 45%, 0.1);
}

.operatorBtn:hover{
    background-color: hsla(198, 100%, 65%, 0.1);
}

.operatorBtn:active{
    background-color: hsla(198, 150%, 75%, 0.1);
}

input{    
    background-color: rgba(140, 140, 140, 0.1);
    border-radius: 16px;
    box-shadow: rgba(2, 2, 3, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    transition: all 0.25s;
    color: hsla(0, 0%, 100%, 0.9);
    text-shadow: 0 1px 5px rgba(249, 248, 248, 0.25);
    
}

input:focus{
    outline: none;
    border: 1px solid hsla(0, 0%, 100%, 0.2);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        min-height: 90dvh;
    }

    #calculator {
        width: 90%;
        max-width: 90%;
        padding: 10px;
        border-radius: 16px;
    }

    #keys {
        gap: 10px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    button {
        font-size: 1.5rem;
    }

    #display {
        font-size: 2.5rem;
        width: 85%;
    }
}
