* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: 0;
}

body {
    font-family: sans-serif;
    background-image: linear-gradient(73deg, rgba(9,132,235,0.8494748241093313) 0%, rgba(12,113,212,0.7570378493194152) 100%), url(https://thumbs.dreamstime.com/b/color-numbers-symbols-basic-math-work-pink-background-contains-d-rendered-illustrations-copy-space-education-concepts-233295602.jpg);
    
}

.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 #000;
}

.theme {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    cursor: pointer;
    z-index: 1;
}

.theme.active {
    color: #333;
}

.theme.active::before {
    background-color: white;
}

.theme::before {
    position: absolute;
    content: '';
    height: 30px;
    width: 30px;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #333;
    z-index: -1;
}

#display {
    margin: 0 10px;
    height: 130px;
    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;
}

button {
    height: 60px;
    width: 60px;
    border: 0;
    border-radius: 30px;
    margin: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: all 200ms ease;
}

button:hover {
    transform: scale(1.1);
}

button#equal { 
    width: 130px;
    
}

/* bright theme */

.calculator {
    background-color: #fff;
}

.calculator #display {
    color: #0a1e23;
}

.calculator button#clear {
    background-color: #ffd5d5;
    color: #fc4552;
}

.calculator button.btnNumber {
    background-color: #c3eaff;
    color: #000;
}

.calculator button.btnOperator {
    background-color: #d0ffdd;
    color: #9367f9;
}

.calculator button.btnEqual {
    background-color: #ceadf9;
    color: #000;
}

.calculator button.btnPoint {
    background-color: #c3eaff;
    columns: #000;
}

/* Dark Theme */

.calculator.dark {
    background-color: #071115;
}

.calculator.dark #display {
    color: #f8fafd;
}

.calculator.dark button#clear {
    background-color: #2d191e;
    color: #bd3740;
}

.calculator.dark button.btnNumber {
    background-color: #1b2f38;
    color: #f8fafb;
}

.calculator.dark button.btnOperator {
    background-color: #2e1f39;
    color: #aa00a4;
}

.calculator.dark button.btnEqual {
    background-color: #223323;
    columns: #ffffff;
}

.calculator.dark button.btnPoint {
    background-color: #1b2f38;
    color: #f8fafb;
}

