/* font family */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@500&family=Poppins:wght@300&display=swap');

* {
    font-family: poppins;
}

:root {
    --color-1: #818dff;
    --color-2: #afb6f3;
    --color-3: #0f1722;
    --color-4: #161e29;
    --color-5: #1d283a;
    --color-6: #363636;
    --color-7:#fdfdfd;
}

.light-theme {
    --color-1: #afb6f3;
    --color-2: #161e29;
    --color-3: #8297b4;
    --color-4: #e4e4e4;
    --color-5: #6b71ac;
    --color-6: #dddddd;
    --color-7:#6e6e6e;
}

body {
    background: var(--color-6);
    transition: 1s all;
}

.container {
    width: 800px;
    margin: 0 auto;
    min-height: 98vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* theme icon */
#theme-btn i {
    cursor: pointer;
}

/* all buttons */
.buttons {
    cursor: pointer;
    background-color: var(--color-4);
    margin-bottom: 10px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 18px;
    transition: all 0.2s;
    color: var(--color-7);
    user-select: none;
}

.buttons:hover {
    background-color: var(--color-1);
}

.buttons:active {
    transform: scale(.9);
    background-color: var(--color-2);

}

.buttons>span:last-of-type {
    font-size: 10px;
    transform: translateX(-5px);
    padding-top: 20px;
}

.buttons>span:first-of-type {
    font-size: 12px;
    padding-left: 1px;
    padding-bottom: 5px;
}


/* left div START*/

#left-div {
    width: 340px;
    background-color: var(--color-3);
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    gap: 20px;
}

/* h2 */
#left-div h2 {
    font-size: 23px;
    font-weight: 400;
    display: flex;
    margin-top: 60px;
    margin-bottom: 10px;
    gap: 10px;

}

.button-box {
    margin-top: 6px;
}

#operators-box {
    display: flex;
    gap: 10px;
}

/* left div END*/

/* right div START */

#right-div {
    background-color: var(--color-5);
    width: 560px;
    height: 600px;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* calculator */
#calculator {
    color: #fff;
}

/* answer page */
#answer-page textarea {
    outline: none;
    border: none;
    background-color: var(--color-5);
    height: 50px;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    width: 260px;
    margin-block: 10px;
    user-select: none;
    resize: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--color-3);
}

::-webkit-scrollbar-track {
    background-color: #919191ab;
    border-radius: 5px;
}

/* numbers */
.rows {
    display: flex;
    margin-right: 20px;
}

.rows>span {
    margin-right: 10px;
    font-weight: 600;
}

/* more width number */
#more-width-number {
    width: 100%;
}

/* right div END */

/* responsive */
@media screen and (max-width:500px) {
    .container {
        width: 350px;
    }

    #calculator {
        top: 35px;
        left: 20px;
        color: #fff;
    }

    .button-box {
        display: flex;
        flex-direction: row;
    }

    .buttons {
        width: 40px;
        height: 40px;
        font-size: 13px;
        transform: scale(1);
    }

    #answer-page textarea {
        width: 200px;
        height: 34px;
        font-size: 20px;
    }

    #left-div h2 {
        font-size: 12px;
        font-weight: 400;
        margin-top: 40px;
        margin-bottom: 24px;
        gap: 10px;
    }

    #left-div,
    #right-div {
        height: 450px;
    }
    #right-div{
        padding-left: 30px;
    }
}