*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-size: 28px;
}
body{
    background-color: rgba(231, 245, 240, 1);
    height: 150vh;
}

.title{
    position: fixed;
    top: 0;
    width: 100vw;
    height: 2rem;
    line-height: 2rem;
    background-color: #ddeeff;
    text-align: center;
}
.sp_title1{
    font-size: .9rem;
    font-weight: bold;
}
/* .sp_title2{
    font-size: .8rem;
    color: darkblue;
} */
/* .status{
    background-color:#1d80e9;
    height: 2rem;
    position: fixed;
    top: 4rem;
    width: 100vw;
    line-height: 2rem;
    text-align: center;
} */

.nav{
    background-color:#ccccff;
    height: 2rem;
    position: fixed;
    top: 2rem;
    width: 100%;
    text-align: center;
}
.nav ul li{
    display: inline-block;
    margin-right: 1.5rem;
    height: 2rem; 
    background-color:#ccccff;
    position: relative;
}
/* .nav ul li ul{
    position: absolute;
    left: 0;
    top: 50px;
    visibility: hidden;
} */
.nav a{
    color:#333;
    height: 2rem;
    line-height: 2rem;
    font-size: 1rem;
    display: block;
}
/* .status{
    display: flex;
    justify-content: space-around;
}
.status>ul{
    background-color: #ccccff;
    width: 100vw;
    list-style: none;
    position: absolute;
    top: 2rem;
} */

.title2{
    position: fixed;
    top: 4rem;
    width: 100%;
    text-align: center;
    background-color: #fff;
    z-index: 1;
}

.sp1{
    display: inline-block;
    color:red;
    font-size:.8rem;
    line-height: 1.8rem;
    font-weight: bold;
    animation: flash 2s infinite;
}
@keyframes flash {
    0%{opacity: .8;}
    100%{opacity: .2;}
}

.sp2{
    display: inline-block;
    color: blue;
    font-size: 1.2rem;
    line-height: 1.8rem;
    animation: grad 10s infinite;
}
@keyframes grad {
    0%{color: blue;}
    30%{color: green;}
    80%{color: #999;}
    100%{color: red;}
}

@media (max-width:700px) {
 html{
     font-size: 16px;
 }
}

.container-lg{
    display: flex;
    flex-direction: column;
    margin: 6rem 1rem auto;
    width: 100vw;
}
.container-md{
    width: 23rem;
    margin: .5rem auto;
}

.ml-2{
    margin-left: .2rem;
}
.btn{
    margin-left: .3rem;
    font-size: 1rem;
    background-color: lightblue;
    border-radius: .2rem;
    padding:0 .2rem 0 .2rem;
}
.btn:hover{
    cursor: pointer;
    transform: scale(.9);
    transition: .5s;
    background-color: #333;
    color: #fff;
}
.btn-lg{
    margin-left: .3rem;
    font-size: 1.2rem;
}
label{
    display: block;
}
.wd-1{
    width: 2.8rem;
    text-align: center;
    font-size: 1rem; 
    background-color: #fff;
}
.wd-2{width: 5.5rem;
    text-align: center;
    font-size: 1rem;
    background-color: #fff;
}
.mt-2{
    margin-top: .3rem;
}
.mt-5{
    margin-top: .55rem;
}
.wd-1::-webkit-inner-spin-button,.wd-1::-webkit-outer-spin-button{
    -webkit-appearance:none;
    margin: 0;
    -moz-appearance:textfield;
}
.wd-2::-webkit-inner-spin-button,.wd-2::-webkit-outer-spin-button{
    -webkit-appearance:none;
    margin: 0;
    -moz-appearance:textfield;
}
.title{
    display: flex;
    justify-content: center;
}

hr{
    border: .06rem solid blue;
}

.add1,.add2,.add3{
    display: flex;
    display: none;
}
.calcBtn{
    background-color: lightpink;
}
.calcBtn:hover{
    background-color: #333;
    transform: scale(.9);
    transition: .5s;
    font-size: bold;
}

.mask{
    position: fixed;
    top: 0;left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
    visibility: hidden;
}

.preBtn{
    position: fixed;
    top: 50%;
    left: 50%;
    transform:translate(-50%,-50%);
    border-radius: 3%;
    width: 24rem;
    height: 15rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    background-color: #fff;
    border: .06rem dotted #000;
    padding: 10px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}

.preBtn.active{
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.mask.active{
    opacity: 0.7;
    visibility: visible;
    z-index: 1;
}
.close{display: flex;
    margin-left: 10rem;
}
.result1,.nonInt,.message{
    font-weight: bold;
    font-size: 1rem;
}
.premiumS,.interestS,.tax1,.sip1,.pen1{
    margin-left: 10px;
    font-size: 0.9rem;
    color: blue;
}
.message{
    margin-left: .55rem;
    margin-top: .55rem;
}

table{
    margin-left: 2px;
    margin-bottom: 10px;
    border-collapse: collapse;
    table-layout: auto;
}
th{
    border: .1rem solid #666;
    padding: .27rem;
    text-align: center;
    font-size: .8rem;
    background-color:lightpink;
}
td{
    border: 1px solid #666;
    padding: .055rem;
    text-align: center;
    font-size: .8rem;
    text-align: right;
}
tbody tr{
    background-color: #fff;
}
tbody tr:hover{
    background-color:lightpink;
}       