/* * {
    margin: 0;
    padding: 0;
    font-family: "poppins", sans-serif;
}
body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: rgba(10, 10, 10, 0.1);
} */
.main {
    left: 40px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 250px;
    /* padding: 15px 10px; */
    box-shadow: 5px 5px 10px 5px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
    margin-top: 10px;
}
.display {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    /* overflow-wrap: break-word; */
}
.display #result {
    font-size: 2em;
}
.buttons {
    margin-top: 20px;
    width: 100%;
}
.buttons button {
    height: 30px;
    width: 30px;
    padding: 3px;
    border-radius: 10px;
    background: none;
    border: none;
    outline: none;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.3em;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1),
        5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
}
.buttons button:hover {
    background: rgba(0, 0, 0, 0.2);
}
#equalTo {
    width: 90px;
    background: #58d68d;
}
#clear {
    background: #ff8a65;
}
.dark_mode_btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}
.dark_mode_active {
    background: #1c1c25;
}
.dark_mode_active button {
    color: #ddd;
}
.dark_mode_active #clear,
#equalTo {
    color: #000;
}
.dark_mode_active #result {
    color: #ddd;
}
.dark_mode_active #history {
    color: #ddd;
}
#history {
    position: absolute;
    bottom: 5px;
    right: 0;
}
#cal_div {
    margin:0;
    display: block;
    position: absolute;
    background: white;
    z-index: 99;
}
/* body {
    background-color: #a8c99a;
    /*---------------------------
    make text selection impossible
    --------------------------------*/
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
} */

#brand a {
    padding: 5px 0 0 0;
    color: #aaa;
    font-size: 10px;
    letter-spacing: 3px;
    text-decoration: none;
    outline: 0;
}

#brand a:hover {
    color: #bfccd2;
}

#calculator {
    position: relative;
    text-align: center;
    background-color: #555;
    width: 300px;
    height: 390px;
    /* margin: 27px auto; */
    padding: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 0 6px 3px #444, 0 2px 2px #ccc inset;
    -moz-box-shadow: 0 6px 3px #444, 0 2px 2px #ccc inset;
    box-shadow: 0 6px 3px #444, 0 2px 2px #ccc inset;
    cursor: default;
}

#displayM {
    position: absolute;
    width: 27px;
    height: 12px;
    left: 23px;
    top: 45px;
    line-height: 1;
    color: #88a0ac;
    text-align: left;
    padding-left: 3px;
}

#screen {
    width: auto;
    height: 70px;
    margin: 9px 10px 8px 10px;
    background-color: #ecf5ff;
    -webkit-box-shadow: 0 4px 2px rgba(0, 0, 0, 0.2) inset,
        0 -4px 2px rgba(0, 0, 0, 0.2) inset, 0 4px 2px 2px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 4px 2px rgba(0, 0, 0, 0.2) inset,
        0 -4px 2px rgba(0, 0, 0, 0.2) inset, 0 4px 2px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.2) inset,
        0 -4px 2px rgba(0, 0, 0, 0.2) inset, 0 4px 2px 2px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(#d7eaff),
        to(#ffffff)
    );
    background-image: -webkit-linear-gradient(top, #d7eaff, #ecf5ff, white);
    background-image: -moz-linear-gradient(top, #d7eaff, #ecf5ff, white);
    background-image: -ms-linear-gradient(top, #d7eaff, #ecf5ff, white);
    background-image: -o-linear-gradient(top, #d7eaff, #ecf5ff, white);
    background-image: linear-gradient(180deg, #d7eaff, #ecf5ff, white);
    padding: 7px 3px 5px 3px;
}

#outputScr {
    font-size: 14px;
    overflow: hidden;
    height: 21px;
    width: 250px;
    background-color: transparent;
    color: #777;
    border: 0;
    margin: 3px auto;
    outline: 0;
    text-align: right;
    cursor: default;
}

#inputScr {
    width: 250px;
    background-color: transparent;
    color: #777;
    border: 0;
    margin: 3px auto;
    outline: 0;
    text-align: right;
    cursor: default;
    font-size: 21px;
    line-height: 1;
    padding-top: 3px;
    overflow: hidden;
    height: 27px;
}

#buttons {
    padding-top: 2px;
}

#zero,
#decpoint,
#plus,
#one,
#two,
#three,
#minus,
#equals,
#four,
#five,
#six,
#times,
#reciprocal,
#seven,
#eight,
#nine,
#divide,
#percent,
#backspace,
#ce,
#c,
#plusminus,
#sqroot,
#mc,
#mr,
#ms,
#mp,
#mm {
    color: #333;
    font-size: 17px;
    padding: 5px 3px 3px 3px;
    -webkit-text-shadow: 0 -1px white, 0 1px #bbb;
    -moz-text-shadow: 0 -1px white, 0 1px #bbb;
    text-shadow: 0 -1px white, 0 1px #bbb;
    display: inline-block;
    width: 45px;
    height: 34px;
    margin: 5px 2px;
    background-color: #ebebeb;
    background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(#ffffff),
        to(#d8d8d8)
    );
    background-image: -webkit-linear-gradient(top, #ffffff, #d8d8d8);
    background-image: -moz-linear-gradient(top, #ffffff, #d8d8d8);
    background-image: -ms-linear-gradient(top, #ffffff, #d8d8d8);
    background-image: -o-linear-gradient(top, #ffffff, #d8d8d8);
    background-image: linear-gradient(180deg, white, #d8d8d8);
    border-radius: 7px;
    -webkit-box-shadow: 0 3px 1px rgba(0, 0, 0, 0.2),
        0 -2px 3px rgba(0, 0, 0, 0.3) inset, 0 -2px 0 white inset;
    -moz-box-shadow: 0 3px 1px rgba(0, 0, 0, 0.2),
        0 -2px 3px rgba(0, 0, 0, 0.3) inset, 0 -2px 0 white inset;
    box-shadow: 0 3px 1px rgba(0, 0, 0, 0.1),
        0 -2px 3px rgba(0, 0, 0, 0.4) inset, 0 -2px 0 white inset;
    vertical-align: middle;
}

#minus,
#plus {
    margin-right: -4px;
}

#zero {
    width: 98px;
}

#equals {
    height: 78px;
    margin-right: 11px;
    float: right;
}

#backspace {
    font-size: 160%;
    line-height: 0.8;
}

#plusminus {
    line-height: 1.3;
}

#times {
    font-size: 150%;
    line-height: 1.5;
}

#minus {
    font-size: 123%;
    line-height: 1.2;
}

#plus {
    font-size: 123%;
    line-height: 1.4;
}

#decpoint {
    font-size: 160%;
    line-height: 1;
}

#equals {
    font-size: 170%;
    padding-top: 20px;
}

#buttons div:hover {
    background-color: #ebebeb;
    background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(#f7f9f9),
        to(#bfccd2)
    );
    background-image: -webkit-linear-gradient(top, #f7f9f9, #bfccd2);
    background-image: -moz-linear-gradient(top, #f7f9f9, #bfccd2);
    background-image: -ms-linear-gradient(top, #f7f9f9, #bfccd2);
    background-image: -o-linear-gradient(top, #f7f9f9, #bfccd2);
    background-image: linear-gradient(180deg, #f7f9f9, #bfccd2);
}

#notes {
    width: 300px;
    margin: auto;
    background-color: #cde0c5;
    border: 2px solid #aaa;
    border-radius: 10px;
    padding: 5px;
}

ul {
    padding-left: 21px;
    margin-bottom: 0;
}
