@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200;300;400;500&family=Open+Sans:wght@400;500;600;700;800&family=Orbitron:wght@400;500&family=Outfit:wght@200;400;700&family=Playfair+Display:wght@400;500;600&family=Poppins:wght@200;300;400;500;600&family=Raleway:ital,wght@0,200;0,300;0,400;0,600;0,800;0,900;1,700&family=Roboto:wght@300;500;700&display=swap');

:root {
    --btn-orange: #FC942A;
    --all-btn: #333333;
    --grey-btn: #A7A7A7;
    --black-clr: rgb(12, 12, 12);
    --white-clr: #fff;
}

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

h1 {
    width: 100%;
    height: 12vh;
    /* background: red; */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-family: Poppins;
}

.main {
    height: 88vh;
    /* background: yellow; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.calci {
    width: 22rem;
    height: 34rem;
    background-color: var(--black-clr);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 30px;
}

.input {
    width: 19rem;
    height: 3rem;
    background-color: var(--black-clr);
    color: var(--white-clr);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
    font-size: 1.7rem;
    font-family: sans-serif;
    font-weight: 600;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.rows {
    width: 19rem;
    height: 5.5rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#splBtn,
#AC,
#back {
    background-color: var(--grey-btn);
}

#operator {
    background-color: var(--btn-orange);
}

.rows button {
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    outline: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 500;
    background: var(--all-btn);
    color: white;
}


#zero {
    width: 8rem;
    height: 3rem;
    border-radius: 35px;
}

.rows button:hover {
    opacity: .7;
}

.rows button:active {
    opacity: .7;
}



/* ~~~~~~~~~~~ Media Queries ~~~~~~~~~~~ */

@media only screen and (min-width: 321px) and (max-width: 425px) {
    /* body {
        background-color: pink;
    } */

    h1 {
        font-size: 1.6rem;
    }

    .calci {
        transform: scale(.8);
    }
}


@media only screen and (max-width: 320px) {
    h1 {
        font-size: 1.2rem;
    }

    .calci {
        transform: scale(.65);
    }
}