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

*, *::after, *::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    
    /* background */
    --Very-dark-desaturated-blue1 : hsl(222, 26%, 31%); /* (main background) */
    --Very-dark-desaturated-blue2 : hsl(223, 31%, 20%); /* (toggle background, keypad background) */
    --Very-dark-desaturated-blue3 : hsl(224, 36%, 15%); /* (screen background) */

    /* keys */
    --Desaturated-dark-blue1 : hsl(225, 21%, 49%); /* (key background) */
    --Desaturated-dark-blue2 : hsl(224, 28%, 35%); /* (key shadow) */
    --Red : hsl(6, 63%, 50%); /* (key background, toggle) */
    --Dark-red : hsl(6, 70%, 34%); /* (key shadow) */
    --Light-grayish-orange : hsl(30, 25%, 89%); /* (key background) */
    --Grayish-orange : hsl(28, 16%, 65%); /* (key shadow) */

    /* text */
    --Ver-dark-grayish-blue: hsl(221, 14%, 31%);
    --White: hsl(0, 0, 100%);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--Very-dark-desaturated-blue1);
    font-family: 'Spartan', sans-serif;
    font-weight: 700;
}

button {
    border: none;
    /* border: var(--Grayish-orange); */
    box-shadow: 0 6px 2px -2px var(--Grayish-orange);
    cursor: pointer;
    top: 0;
}

button:active{
    /* margin-top: 2px; */
    /* height: 10px */
    box-shadow: none;
}

.number-btn:hover , .operator-btn:hover {
    background-color: #B6B1AC;
}

#equals-btn {
    grid-column: span 2;
    background-color: red;
    box-shadow: 0 6px 2px -2px var(--Dark-red);
    color: white;
}

#equals-btn:active, #reset-btn:active, #delete-btn:active{
    box-shadow: none;
}



#reset-btn:hover, #delete-btn:hover{
    background-color: #414A64;
    color:rgb(193, 185, 185);
}

#equals-btn:hover {
    background-color: var(--Dark-red);
    color:rgb(193, 185, 185);
}

#reset-btn{
    grid-column: span 2;
    background-color: var(--Desaturated-dark-blue1);
    box-shadow: 0 6px 2px -2px var(--Desaturated-dark-blue2);
    color: white;
    
}

#delete-btn {
    background-color: var(--Desaturated-dark-blue1);
    box-shadow: 0 6px 2px -2px var(--Desaturated-dark-blue2);
    color: white;
}


.calculator {
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 480px;
    text-align: center;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.3);
}

.calc {
    margin: 10px;
}
.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 10%;
    color: white;  
    font-size: 32px;
    margin-bottom: 0;
}

.theme {
    font-size: 15px;
}

.display {
    height: 20%;
    background-color: var(--Very-dark-desaturated-blue3);
    border-radius: 10px;
    
    text-align: right;
    padding-top: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    /* word-wrap: break-word;
    word-break: break-all; */
}

.calculation {
    font-size: 15px;
    height: 30%;
    color: rgb(154, 182, 182);
}

.output {
    font-size: 50px;
    height: 70%;
    color: white;
    overflow-x: auto;
    overflow-y: hidden;
}



.keypad {
    height: 70%;
    background-color: var(--Very-dark-desaturated-blue2);
    border-radius: 10px;
    padding: 20px;
    display: grid;
    gap: 20px;
    text-align: center;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /* justify-content: center; */
    /* align-items: center; */
}

.keypad button {
    border-radius: 10px;
    font-family: 'Spartan', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    background-color: var(--Light-grayish-orange);

    
}


