@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

/*-----------Main menu--------------*/
.topnav {
    background-color: #f80;
    border-radius: 0.5rem;
}

.topnav a {
    color: #f2f2f2;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav .icon {
    display: none;
}

.dropbtn {
    background-color: inherit;
    padding: 16px;
    color: #f2f2f2;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    list-style-type: none;
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

@media (max-width: 1000px) {
    .topnav {
        overflow: hidden;
    }

    .topnav a {
        float: left;
        display: block;
    }

    .topnav a:not(:first-child),
    .dropdown .dropbtn {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        color: #fff;
    }

    .topnav.responsive .dropdown {
        float: none;
    }

    .topnav.responsive .dropdown-content {
        position: relative;
        min-width: 496px;
        border-radius: 0.5rem;
        background-color: inherit;
    }

    .dropdown-content li {
        max-width: 473px;
        border-bottom: 1px solid #fafafa;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/*-----------main content--------------*/
.container {
    width: 100%;
    padding: 0 24px;
}

.wraper {
    width: 90%;
    height: auto;
    margin: 0 auto;
    background-color: #fafafa;
}

.demoFrame {
    width: 100%;
    height: 60vh;
    border: none;
}

@media (max-width: 600px) {
    .wraper {
        background: inherit;
    }
}

.calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fafafa;
    box-shadow: 0px 0px 0px 10px #444466, 5px 5px 0px 10px #333355, 20px 20px 30px #00000099;
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 0 10px;
}

.result {
    width: 100%;
    height: 3rem;
    font-size: 1.5rem;
    padding: 0 10px;
    border: 2px solid #000;
    font-weight: bold;
    border-radius: 5px;
    text-align: right;
}

.row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    column-gap: 15px;
    margin: 6px 0;

}

.btn {
    width: 50%;
    height: 2.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;
    border: none;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.5), inset 0px -3px 6px -2px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: #E9328D;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

.btnequal {
    width: 102px;
    height: 30px;
    font-weight: bold;
}

@media (min-width: 280px) {
    .calculator {
        max-width: 250px;
        margin: 20px auto;
    }

    .result {
        max-width: 280px;
        height: 4rem;
        font-size: 2rem;
    }

    .row {
        max-width: 280px;
    }
}