body {
    background-color: #a3f30d;
}

.layout {
    background-color: #222;
    width: 30%;
    height: 300px;
    align-items: center;
    box-sizing: border-box;
    margin: 10px auto;
    padding: 30px 40px;
}

.butt {
    width: 20%;
    height: 40px;
    font-size: 17px;
    margin: 0 auto;

}

.total {
    width: 85%;
    height: 30px;
    font-size: 20px;
    margin: 0% auto;
}

#result {
    width: 83%;
    height: 30px;
    margin: 8px auto;
    color: rgb(250, 13, 13);
    text-align: right;
    font-size: 20px;

}

h3 {
    text-align: right;
    color: rgb(245, 66, 16);
    font-size: 15px;
    margin-top: 10px;
}

h1 {
    font-size: 23px;
}

.per {
    width: 321px;
    height: 55px;
    background-color: rgb(251, 12, 12);
    text-align: center;
    box-sizing: border-box;
    margin: 0% auto;
    text-align: center;
    padding: 1px 0px 0px 0px;
    border-radius: 20px;
}

@media(max-width:768px) {
    body {
        background-color: rgb(33, 5, 78);
    }

    .butt {
        width: 50px;
        height: 80px;
        font-size: 20px;
    }

    .layout {
        width: 300px;
        height: 500px;
        background-color: aqua;
        margin: 30px 0px 0px 5px;
    }

    .total {
        width: 210px;
        height: 40px;

    }

    #result {
        width: 200px;
        height: 40px;
        color: rgb(248, 55, 12);
        font-size: 25px;
        background-color: aquamarine;

    }

    .per {
        margin-top: 60px;
        margin-left: -3px;
        background-color: red;

    }

    h1 {
        font-size: 23px;
    }
}