/* style.css */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    background:linear-gradient(to right,#141e30,#243b55);
    transition:0.4s;
}

.container{
    text-align:center;
}

h1{
    color:white;
    margin-bottom:20px;
}

.calculator{
    background:rgba(255,255,255,0.1);
    padding:20px;
    border-radius:20px;
    backdrop-filter:blur(10px);
    box-shadow:0 0 15px rgba(0,0,0,0.3);
}

#display{
    width:100%;
    height:60px;
    margin-bottom:15px;
    border:none;
    outline:none;
    border-radius:10px;
    padding:10px;
    font-size:25px;
    text-align:right;
}

.buttons{
    display:grid;
    grid-template-columns:repeat(4,80px);
    gap:10px;
}

button{
    height:60px;
    border:none;
    border-radius:12px;
    font-size:20px;
    cursor:pointer;
    transition:0.3s;
}

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

.operator{
    background:#ff9500;
    color:white;
}

.equal{
    background:#34c759;
    color:white;
}

.theme-btn{
    margin-top:20px;
    padding:10px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
}

.history{
    margin-top:20px;
    background:white;
    padding:15px;
    border-radius:15px;
    max-height:200px;
    overflow-y:auto;
}

.history h2{
    margin-bottom:10px;
}

.history ul{
    list-style:none;
}

.history li{
    margin-bottom:5px;
}

.light-mode{
    background:linear-gradient(to right,#f5f7fa,#c3cfe2);
}