*, *::after, *::before{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body{
    width: 100%;
    height: 100vh;
    display: grid;
    place-items: center;
}
:root{
--color1: hsl(51, 92%, 57%);
--color2: hsla(197, 97%, 24%, 0.832);
--color3 :rgb(241, 220, 95);
--color4: rgb(197, 191, 191);
--label : rgb(91, 88, 88);
--heading:  rgb(57, 56, 56);
}
.container{
width: 750px;
height: 400px;
display: grid;
grid-template-columns: 1fr 1fr;
border-radius: 5px;
position: relative;
backdrop-filter: blur(20px);
background-color: white;
box-shadow: 10px 10px  rgb(232, 241, 241), -10px -10px  rgb(232, 241, 241);
}

.calculator{
height: 100%;
border-right: none;
border-top-left-radius: 5px;
border-bottom-left-radius: none;
padding: 10px 10px;
width: 410px;
position: relative;
background-color: white;
}
.results{
height: 100%;
border-left: 1px solid;
border-bottom-left-radius: 50px;
padding: 10px 10px;
background-color: var(--color2);
width: 340px;
}
.calculator-heading{
    display: flex; 
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}
.calculator-heading span{
    color: var(--heading);
    font-weight: bold;
}
.calculator #mortgage-amount {
    width: 100%;
    height: 40px;
    margin-top: 15px;
}
.mortgage-inputs{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 12px;
    
}
#mortgage-amount{
    padding-left: 10px;
    font-size: 1em;
    color: rgb(93, 108, 121);
    border-color: var(--color2);
}


#mortgage-term{
    padding-left: 10px;
}
#interest-rate{
    padding-left: 10px;
}
.mortgage-inputs input{
    height: 40px;
    border: 1px solid var(--color2);
    font-size: 1em;
    color: rgb(93, 108, 121);
}

h4{
    color: var(--heading);
    font-weight: bold;
}
.mortgage-type1{
    border: 1px solid gold;
    width: 100%;
    margin-top: 20px;
    padding: 10px 10px;
    margin-top: 5px;
    border-radius: 5px;

}
 .calculator h4{
margin-top: 5px;
}
.mortgage-type2{
    border: 1px solid gold;
    width: 100%;
    margin-top: 10px;
    padding: 10px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.calculator button{
    margin-top: 20px;
    width: 80%;
    padding: 10px 10px;
    border-radius: 30px;
    font-size: 15px;
    text-align: center;
    background-color: var(--color1);
    border: none;
    color: var(--color2);

}
.calculator button span{
    position: absolute;
    left: 35px;
    transform: translateY(-2px);
}
.results .monthly-repayments{
    border  :0.5px solid var(--color2) ;
    width: 100%;
    height: 180px;
    margin-top: 30px;
    padding: 15px;
    box-shadow: 0px -4px gold ;
    
    background-color: #1e85b2f4
}

.results p{
    margin-top: 28px;
    color: var(--color4);
    font-size: 14px;
}
#results-active h3{
margin-top: 10px;
color: var(--color4);

}
#monthly-income{
    width: 100%;
    height: 60px;
    border-bottom: 1px solid;
    margin-top: 10px;
    font-size: 3em;
    padding: -10px;
    padding-left: 10px;
    overflow-y: scroll;
    color: gold;

}
#monthly-income::-webkit-scrollbar{
    display: none;
}
    
.results h5{
    margin-top: 10px;
    color: var(--color4);
    font-weight: bold;
}
#total-income{
    width: 100%;
    height: 30px;
    margin-top: 10px;
    font-size: 1.5em;
    padding: -20px;
    transform: translateY(-10px);
    padding-left: 10px;
    color: var(--color4)
}
#results-empty.hide{
    display: none;
}
#results-active.hide{
    display: none;
}
#results-empty h2{
text-align: center;
font-size: 23px;
margin-top: 15px;
color: var(--color4);

}
#results-empty p{
    text-align: center;
    text-wrap: wrap;
    font-size: 14px;
    margin-top: 10px;
    color: var(--color4);
}
#results-empty div img{
transform: translateX(90px);
margin-top: 60px;
}
label{
    color: var(--label);
    font-size: 13px;
}
#declaration{
    position: absolute;
    right: 340px;
    top:600px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body #wrapper{
   padding: 50px 50px; 
   background-color: rgb(232, 241, 241);
   width: 1000px;
   height: 650px;
   display: grid;
   place-content: center;
   margin-top: 50px;
   margin-bottom: 50px;
   
}
@media only screen and (max-width:600px){
    body{
        display: grid;
        place-content: center;
    }
    .container{
        width: 380px;
        height: 100vh;
        display: block;
        border: none;
        position: relative;
        margin-left: 20px;
        padding-left: 10px;
        margin-right: 20px;
        margin-top: 20px;
        box-shadow: none
        }
        .calculator{
            border-radius: none;
            padding: 10px 10px;
            width: 360px;
            height: 480px;
            position: relative;
            border: 2px solid rgb(232, 241, 241);
            }
            .results{
            border-bottom-left-radius: 5px;
            border-bottom-right-radius: 5px;
            border: 2px solid rgb(232, 241, 241);
            background-color: var(--color2);
            padding: 10px 10px;
            width: 360px;
            height: 340px;
            border-top: none;
            }
            .mortgage-inputs{
                display: block;
                margin-top: 20px;
                margin-bottom: 12px;
            }
            .calculator #mortgage-amount{
                width: 340px;
                height: 40px;
                margin-top: 15px;
            }
            #mortgage-term{
                padding-left: 10px;
                width: 340px;
            }
            #interest-rate{
                padding-left: 10px;
                width: 340px;
            }
            .mortgage-inputs input{
                height: 40px;
                margin-bottom: 10px;
            }
            .mortgage-type1{
                border: 1px solid gold;
                width: 340px;
                margin-top: 20px;
                padding: 10px 10px;
                margin-top: 5px;
                border-radius: 5px;
                
            }
             .calculator h4{
            margin-top: 5px;
            }
            .mortgage-type2{
                border: 1px solid gold;
                width: 340px;
                margin-top: 10px;
                padding: 10px 10px;
                border-radius: 5px;
            }
            .calculator button{
                margin-top: 20px;
                width: 340px;
                padding: 10px 10px;
                border-radius: 30px;
                font-size: 15px;
                text-align: center;
                background-color: var(--color1);
                border: none;
            
            }
            .calculator button span{
                position: absolute;
                left: 75px;
                transform: translateY(-2px);
            }
            #clear-all{
                transform: translatex(-10px);
            }
            #results-empty, #results-active{
                margin: 0;
            }
            .results .monthly-repayments{
                
                width: 100%;
                height: 180px;
                margin-top: 15px;
                padding: 15px;
            }
            #results-active p{
                margin-top: 10px;
            }
            
            #declaration{
                position: absolute;
                right: 20px;
                top:840px;
                font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            }
            body #wrapper{
                
                 background: transparent;
                 
                 
                 display: grid;
                 place-content: center;
                margin-top: 50px;
                margin-bottom: 50px;
            }
        }




