*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: 0;
    transition: all 0.5s ease;
}
body{
    background-image: linear-gradient(to bottom right, rgba(78,51,176,1),rgba(210,53,165,1));
}
a{
    text-decoration: none;
    color: #fff;
}
.container{
    height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
}
.calculator{
    position: relative;
    height: auto;
    width: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px black;
}
.theme-toggler{
    position: relative;
    top: 30px;
    right: 30px;
    color: white;
    cursor: pointer;
    z-index: 1;
}
.theme-toggler.active{
    color: #333;
}
.theme-toggler.active::before{
    background-color: #fff;
}
.theme-toggler::before{
    content: '';
    height: 30px;
    width: 30px;
    position: absolute;
    top: 50%;
    transform: translate(920%, -50%);
    border-radius: 50%;
    background-color: #333;
    z-index: -1;
}
#display{
    margin: 0 10px;
    height: 180px;
    width: auto;
    max-width: 270px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 30px;
    margin-bottom: 20px;
    overflow-x: scroll;
}
#display::-webkit-scrollbar{
    display: block;
    height: 3px;
}
.buttons{
    margin-top: 10px;
}
button{
    height: 60px;
    width: 60px;
    border-radius: 30px;
    border: 0;
    margin: 5px;
    font-size: 21.2px;
    cursor: pointer;
    transition: all 200ms ease;
}
button:hover{
    background-color: #cbcbcb;
}

/* light theme*/

.calculator{
    background-color: white;
}
.calculator #display{
    color: #0a1e23;
}
.calculator button#clear{
    color: rgb(255, 255, 255);
}
.calculator button.btn-number{
    color: black; 
}
.calculator button.btn-operator{
    background-color: #414141;
    color: #ffffff;
}
.calculator button.btn-operator:hover{
    background-color: #4f4f4f;
}
.calculator button.btn-equal{
    background-color: #2ce235;
    color: rgb(255, 255, 255);
}
