*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background: rgb(52, 52, 52);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.cacl_container {
    height: 500px;
    width: 350px;
    border-radius: 8px;
    box-shadow: 0px 0px 12px 0px;
}

.calc_topbar {
    height: 45px;
    background: rgb(67, 66, 66);
    border-radius: 8px 8px 0px 0px;
    padding: 8px;
    display: flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.undo_btn {
    padding: 6px 16px;
    font-weight: 600;
    background: inherit;
    border-radius: 4px;
    border: 2px solid rgb(95, 93, 93);
    color: rgb(228, 228, 228);
    cursor: pointer;
    user-select: none;
}

.undo_btn:hover {
    background: rgb(99, 98, 98);
}

.undo_btn:active {
    background: rgb(40, 39, 39);
}

.calc_topbar_menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calc_close {
    height: 16px;
    width: 16px;
    font-size: 12px;
    font-weight: 900;
    color: white;
    background: rgb(210, 121, 12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.calc_close:hover {
    background: rgb(99, 98, 98);
}

.calc_close:active {
    background: rgb(40, 39, 39);
}

.calc-min {
    height: 16px;
    width: 16px;
    font-size: 14px;
    font-weight: 900;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.calc-min:hover {
    background: rgb(99, 98, 98);
}

.calc-min:active {
    background: rgb(40, 39, 39);
}

.calc_ham_box {
    padding: 6px;
    display: flex;
    gap: 4px;
    flex-direction: column;
    justify-content: space-around;
    border-radius: 4px;
    border: 2px solid rgb(95, 93, 93);
    cursor: pointer;
    user-select: none;
}

.calc_ham_box:hover {
    background: rgb(99, 98, 98);
}

.calc_ham_box:active {
    background: rgb(40, 39, 39);
}

.calc_ham {
    width: 18px;
    height: 2px;
    background: rgb(228, 228, 228);;
}

.calc_type {
    height: 30px;
    padding: 4px 12px;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid rgb(95, 93, 93);
    color: rgb(228, 228, 228);
    cursor: pointer;
    user-select: none;
}

.calc_type:hover {
    background: rgb(99, 98, 98);
}

.calc_type:active {
    background: rgb(40, 39, 39);
}

.calc_hist_container {
    height: 120px;
    background: rgb(35, 35, 35);
    overflow-y: scroll;
}

.calc_display {
    height: 80px;
    background-color: rgb(47, 46, 46);
}

.calc_btn_grid {
    height: 255px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    background-color: rgb(42, 41, 41);
}

.calc_btn {
    background-color: inherit;
    color: rgb(220, 214, 214);
    border: 1px solid black;
    border-radius: 10%;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0px 0px 2px 0px black;
}

.calc_btn:active {
    background: rgb(18, 17, 17);
}

.calc_bs {
    font-size: 1.6em;
    font-weight: 400;
    border: 1px solid rgb(165, 83, 83);
    background: rgb(209, 103, 103);
    color: black;
}

.calc_bs:active {
    background: rgb(165, 83, 83);
}

.calc_eq {
    grid-row: span 2;
    border: 1px solid rgb(88, 167, 106);
    background: rgb(147, 232, 167);
    color: black;
}

.calc_eq:active {
    background: rgb(88, 167, 106);
}

.calc_display {
    padding: 20px;
    color: rgb(220, 214, 214);
    font-size: 18px;
}

.calc_hist_box {
    padding: 10px;
    color: rgb(220, 214, 214);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgb(73, 73, 73);
}

/* scrollbar customization */
/* width */
::-webkit-scrollbar {
    width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #8a8a8a;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(95, 94, 94);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(93, 92, 92);
}