@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pangolin&family=Poppins&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: "Nunito", serif;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    min-width: 320px;
    background: #333;
}

/* HEADER SECTION --------HEADER SECTION--------HEADER SECTION-------- */
/* HEADER SECTION --------HEADER SECTION--------HEADER SECTION-------- */

#logo {
    color: #fff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #538d22;
    padding: 10px 7%;
    width: 100%;
}

nav {
    display: flex;
    gap: 4em;
    display: none;
}

nav a {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

/* HOME SECTION ------------------HOME SECTION----------------HOME SECTION-----------------HOME SECTION------------------ */
/* HOME SECTION ------------------HOME SECTION----------------HOME SECTION-----------------HOME SECTION------------------ */

.wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .5em;
    padding: 10px 10px 0 10px;
    height: 500px;
}

.wrap>* {
    background: #46a937;
    width: 31%;
    height: 61.5%;
    border-radius: 10px;
    flex-grow: 1;
}

/* #FIRST DIV ------------------------- SIMPLE CALCULATOR -----------------------SIMPLE CALCULATOR--------------------------------SIMPLE CALCULATOR---- */

#first {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background: #538d22;
}

#first h1 {
    color: #aad576;
}

#first>div {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 1em;
}

#first input {
    border-radius: 10px;
    text-align: center;
    border: none;
    font-size: 20px;
    font-weight: 700;
    width: 60px;
    height: 40px;
    background: rgba(255, 255, 255, 0.87);
}

#first .result {
    background: rgba(255, 255, 255, 0.87);
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    width: 60px;
    height: 40px;
}

#first div>*:nth-child(even) {
    color: #aad576;
    font-size: 30px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#first div>*:nth-child(4) {
    cursor: pointer;
    transition: 0.6s;
}

#first div>*:nth-child(4):hover {
    transform: scale(1.2);
}

#first .img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    font-size: 45px;
    background: #73a942;
    box-shadow: 0 0 10px black;
    font-weight: 600;
    color: #1a4301e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* #SECOND DIV ---------- Squaring a number --------------------------------- Squaring a number------------------------------- Squaring a number--- */

#second>* {
    border-radius: 10px;
    background: #73a942;
}

#second {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    background: #538d22;
}

#second h1 {
    position: absolute;
    color: #aad576;
    top: 5px;
    background: none;
}

#second .second-wrap {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
    padding: 20px;
    width: 60%;
    margin-top: 30px;
    box-shadow: 0 0 10px black;
}

#second .button-wrap {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1em;
    padding: 20px;
    width: 60%;
    box-shadow: 0 0 10px black;
}

#second .second-wrap p:nth-child(1) {
    width: 70px;
    color: #245501;
    font-weight: 800;
    text-align: center;
    font-size: 15px;
    display: flex;
    align-items: center;
}

#second button {
    width: 70px;
    height: 40px;
    background: #2b610484;
    color: #aad576;
    border-radius: 7px;
    border: none;
    box-shadow: 0 0 5px black;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: 0.7s;
}

#second button:hover {
    filter: brightness(120%);
    transform: scale(1.05);
    box-shadow: 0 0 15px black;
}

#second input {
    width: 80px;
    height: 50px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.87);
}

#second #result {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#second .img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    font-size: 45px;
    background: #73a942;
    box-shadow: 0 0 10px black;
    font-weight: 600;
    color: #1a4301;
    display: flex;
    align-items: center;
    justify-content: center;
}

#second .img sup {
    font-size: 20px;
}

/* THIRD DIV -------------------Random Number-------------------------Random Number---------------------------Random Number------------------ */

#third {
    background: #538d22;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 1em;
}

#third h1 {
    color: #aad576;
    background: none;
    font-size: 23px;
}

#third .input-div {
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 5px;
    background: #73a942;
}

#third .thirdInputDiv {
    display: flex;
    gap: 1.5em;
}

#third .input-div .thirdInputDiv>* {
    display: flex;
    align-items: center;
    padding: 10px;
}

#third .input-div p {
    margin-right: 10px;
    font-weight: 700;
    color: #245501;
}

#third input {
    width: 90px;
    height: 50px;
    border-radius: 10px;
    border: none;
    text-align: center;
    font-size: 25px;
    background: rgba(255, 255, 255, 0.87);
}

#third button {
    background: #2b610484;
    color: #aad576;
    box-shadow: 0 0 10px black;
    height: 40px;
    width: 120px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    border: none;
    transition: 0.6s;
    margin-bottom: 10px;
}

#third button:hover {
    transform: scale(1.1);
    filter: brightness(130%);
}

#third #third-result {
    background: rgba(255, 255, 255, 0.788);
    width: 90px;
    height: 50px;
    border-radius: 10px;
    font-size: 25px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 0 8px black;
}

#third .img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    font-size: 35px;
    background: #73a942;
    box-shadow: 0 0 10px black;
    font-weight: 600;
    color: #1a4301;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* #FOURTH DIV -------------------------Number Exponentiation--------------------------- Number Exponentiation-----------------------Number Exponentiation--- */

#fourth {
    position: relative;
    background: #538d22;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

#fourth h1 {
    color: #aad576;
    margin-top: 5px;
    margin-bottom: 50px;
}

#fourth .fourth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5em;
    border-radius: 10px;
}

#fourth .fi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.2em;
}

#fourth .fi p {
    color: #aad576;
    text-align: center;
    font-size: 15px;
}

#fourth .fi #ffi {
    height: 60px;
    width: 70px;
    font-size: 30px;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    border: none;
    background: rgba(255, 255, 255, 0.87);
}

#fourth .si {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 0.2em;
    margin-left: -30px;
}

#fourth .si p {
    font-size: 12px;
    text-align: center;
    color: #aad576;
}

#fourth .si #fsi {
    height: 35px;
    width: 40px;
    border-radius: 8px;
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.87);
}

#fourth .fourthEq {
    color: #aad576;
    font-size: 60px;
    height: 30px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.6s;
}

#fourth .fourthEq:hover {
    transform: scale(1.2);
}

#fourth .fr p:nth-child(1) {
    visibility: hidden;
}

#fourth .fr #fourth-result {
    height: 60px;
    width: 70px;
    font-size: 30px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fourth .img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
    background: #73a942;
    color: #1a4301;
    font-size: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

#fourth .img sup {
    font-size: 20px;
}
/* FIFTH DIV --------------Number Square Root---------------------Number Square Root-----------------------Number Square Root---------- */

#fifth>* {
    border-radius: 10px;
    background: #73a942;
}

#fifth {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    background: #538d22;
}

#fifth h1 {
    position: absolute;
    color: #aad576;
    top: 5px;
    background: none;
}

#fifth .fifth-wrap {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
    padding: 20px;
    width: 60%;
    margin-top: 30px;
    box-shadow: 0 0 10px black;
}

#fifth .button-wrap {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1em;
    padding: 20px;
    width: 60%;
    box-shadow: 0 0 10px black;
}

#fifth p:nth-child(1) {
    width: 70px;
    color: #245501;
    font-weight: 800;
    text-align: center;
    font-size: 15px;
    display: flex;
    align-items: center;
}

#fifth button {
    width: 70px;
    height: 40px;
    background: #2b610484;
    color: #aad576;
    border-radius: 7px;
    border: none;
    box-shadow: 0 0 5px black;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: 0.7s;
}

#fifth button:hover {
    filter: brightness(120%);
    transform: scale(1.05);
    box-shadow: 0 0 15px black;
}

#fifth input {
    width: 80px;
    height: 50px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.87);
}

#fifth .fifth-result {
    width: 80px;
    height: 50px;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#fifth .img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    color: #1a4301;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #73a942;
    box-shadow: 0 0 10px black;
}

/* SIXTH DIV ---------------------Percentage-------------------------Percentage------------------Percentage----------------------------Percentage------- */

#sixth {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #538d22;
}

#sixth .img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    font-size: 35px;
    color: #1a4301;
    background: #73a942;
    box-shadow: 0 0 10px black;
    border-radius: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sixth h1 {
    position: absolute;
    color: #aad576;
    margin-top: 15px;
    top: -10px
}

#sixth .sixth-content {
    position: absolute;
    top: 120px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 1em;
    border-radius: 10px;
    margin-bottom: 30px;
    width: 95%;
}

#sixth .percent-div {
    display: flex;
    align-items: center;
}

#sixth #sixthResult {
    background: rgba(255, 255, 255, 0.87);
    height: 60px;
    width: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 800;
}

#sixth .number-div {
    margin-bottom: 22px;
}

#sixth .percent-div p {
    color: #245501;
    text-align: center;
    font-weight: 700;
    margin-left: 10px;
    font-size: 30px;
}

#sixth .number-div p {
    color: #aad576;
    text-align: center;
}

#sixth input {
    height: 60px;
    width: 80px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 25px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.87);
}

#sixth #sixthEqual {
    color: #aad576;
    cursor: pointer;
    font-size: 50px;
    cursor: pointer;
    transition: 0.6s;
}

#sixth #sixthEqual:hover {
    transform: scale(1.2);
}

/* RESPONSIVE ---------------------------------- RESPONSIVE------------------------- RESPONSIVE --------------------------------- */
/* RESPONSIVE ---------------------------------- RESPONSIVE------------------------- RESPONSIVE --------------------------------- */
/* RESPONSIVE ---------------------------------- RESPONSIVE------------------------- RESPONSIVE --------------------------------- */

@media(max-width: 1470px) {
    #third .img {
        width: 45px;
        height: 45px;
        font-size: 30px;
    }

    #third #third-result {
        height: 45px;
    }

    #third input {
        height: 45px;
    }

    #third .input-div {
        padding: 5px;
        gap: 1em;
    }
}


@media(max-width: 1300px) {
    #first .img {
        font-size: 40px;
        width: 45px;
        height: 45px;
    }
}

@media(max-width: 1220px) {

    #first h1 {
        position: absolute;
        left: 10px;
        top: 2px;
    }

    #first .addition {
        margin-top: 40px;
    }

    #first .img {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    #second h1 {
        left: 10px;
    }

    #second .img {
        width: 40px;
        height: 40px;
        font-size: 37px;
    }

    #second .second-wrap {
        width: 80%;
    }

    #second .button-wrap {
        width: 80%;
    }

    #third .img {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    #third h1 {
        position: absolute;
        left: 10px;
        top: 5px;
    }

    #third .input-div {
        margin-top: 70px;
    }

    #fourth h1 {
        position: absolute;
        left: 10px;

    }

    #fourth .fourth-content {
        position: absolute;
        top: 120px;
    }

    #fourth .img {
        width: 40px;
        height: 40px;
    }

    #fifth h1 {
        left: 10px;
    }

    #fifth .img {
        width: 40px;
        height: 40px;
    }

    #fifth .fifth-wrap {
        width: 80%;
    }

    #fifth .button-wrap {
        width: 80%;
    }

    #sixth .img {
        width: 40px;
        height: 40px;
    }

    #sixth h1 {
        left: 10px;
    }
}

@media(max-width: 1160px) {

    #first h1 {
        font-size: 23px;
    }

    #second h1 {
        font-size: 23px;
    }

    #third h1 {
        font-size: 22px;
    }

    #fourth .fourth-content {
        gap: 1.5em;
    }

    #fourth h1 {
        font-size: 22px;
    }

    #fourth .si {
        margin-left: -20px;
    }

    #fifth h1 {
        font-size: 22px;
    }

    #sixth h1 {
        font-size: 23px;
    }

    #sixth .sixth-content {
        gap: 0.5em;
    }

    #sixth .percent-div p {

        margin-left: 2px;
        font-size: 25px;
    }

    #sixth input {
        width: 70px;
    }

    #sixth #sixthEqual {
        font-size: 40px;
    }

    #sixth #sixthResult {
        width: 70px;
    }

    @media(max-width: 1100px) {


        #third .input-div {
            padding: 0;
        }

        #third .thirdInputDiv {
            gap: 1em;
        }

        #third input {
            width: 80px;
        }

        #third #third-result {
            width: 80px;
        }

        #third button {
            width: 100px;
        }
    }


}

@media(max-width: 1000px) {
    .wrap>* {
        width: 48%;
    }

    #first {
        order: 1;
    }

    #second {
        order: 3;
    }

    #third {
        order: 2;
    }

    #third .input-div {
        width: 80%;
    }

    #third .thirdInputDiv {
        gap: 2.5em;
    }

    #fourth {
        order: 5;
    }

    #fifth {
        order: 4;
    }

    #sixth {
        order: 6;
    }
}

@media(max-width: 850px) {
    #third .thirdInputDiv {
        gap: 0;
    }

    #third .thirdInputDiv p {
        margin-right: 3px;
        font-size: 14px;
    }
}

@media(max-width: 650px) {
    .wrap>* {
        width: 70%;
        flex-grow: 0;
    }

    #first h1 {
        position: relative;
    }

    #first .addition {
        margin-top: 0;
    }

    #third h1 {
        position: relative;
        margin-bottom: 30px;
    }

    #third .input-div {
        margin-top: 0;
    }

    #third .thirdInputDiv {
        gap: 1.5em;
    }

    #third .thirdInputDiv p {
        margin-right: 10px;
        font-size: 17px;
    }
}

@media(max-width: 600px) {
    .wrap>* {
        width: 80%;
    }
}

@media(max-width: 500px) {
    .wrap>* {
        width: 90%;
        flex-grow: 1;
    }

    #third .input-div {
        width: 90%;
    }
}

@media(max-width: 400px) {
    #first .img {
        top: 5px;
        right: 5px;
    }

    #first .addition {
        margin-top: 40px;
    }

    #first h1 {
        position: absolute;
    }

    #second .img {
        top: 5px;
        right: 5px;
    }

    #third h1 {
        position: absolute;
    }

    #third .input-div {
        margin-top: 80px;
        width: 80%;
    }

    #third .thirdInputDiv {
        gap: 0.5em;
    }

    #third .thirdInputDiv p {
        font-size: 14px;
        margin-right: 5px;
    }

    #third input {
        width: 60px;
    }

    #third .img {
        top: 5px;
        right: 5px;
    }

    #fourth h1 {
        font-size: 20px;
    }

    #fourth .fourth-content {
        gap: 1em;
    }

    #fourth .si {
        margin-left: -10px;
    }

    #fifth .img {
        top: 5px;
        right: 5px;
    }

    #sixth .img {
        top: 5px;
        right: 5px;
    }

    #third .input-div {
        padding: 10px 5px;
    }

    #sixth .sixth-content {
        gap: 0;
    }
}