 @import url('https://fonts.googleapis.com/css2?family=Gilda+Display&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
}

body{
    background-color: lightblue;
}

.main{
    width: 900px;
    height: 470px;
    margin-top: 100px;
    margin-left: 200px;
    background-color: white;
    font-family: "Gilda Display", serif;  ;
    border-radius: 20px;
    display: flex;
}

.container{
    margin-left: 10px;
}

.header{
    width: 400px;
    margin-left: 20px;
    display: flex;
    margin-top: 20px;
}

.header h1{
    margin-top: 20px;
    font-size: 20px;
    color: black;
}

#link{
    margin-left: 20px;
    margin-top: 25px;
    margin-left: 140px;
    color:blue;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
}

.amount{
    margin-left: 20px;
    margin-top: 30px;
}

.Ma{
    margin-bottom: -15px;
}

.money{
    width: 400px;
    height: 42px;
    border-radius: 5px;
    display: flex;
    background-color: hsl(202, 86%, 94%);
    border: 1px solid black;
}

.pound{
    font-size: 23px;
    margin-left: 20px;
    margin-top: 5px;
}

.amount input{
    width: 360px;
    height: 42px;
    border: none;
    margin-left: 20px;
    background-color: white;
    overflow: hidden;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    text-align: justify;
}

.term-interest{
    margin-top: 20px;
    margin-left: 20px;
    display: flex;
}

.T{
    margin-bottom: -15px;
}

.tarm{
    width: 195px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid black;
    display: flex;
}

.year{
    width:60px;
    height: 40px;
    font-size: 16px;
    text-align: center;
    background-color: hsl(202, 86%, 94%);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.new-year{
    margin-top: 10px;
}

.term input{
    width: 135px;
    height: 40px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: none;
    text-align: justify;
}

.interest{
    margin-left: 10px;
}

.Ir{
    margin-bottom: -15px;
}

.rate{
    width: 195px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid black;
    display: flex;
}

input[type="text"] {
    padding-left: 10px;
}


.interest input{
    width: 155px;
    height: 40px;
    border-radius: 5px;
    border: none;
    text-align: justify;
}

.percent{
    width: 40px;
    height: 40px;
    font-size: 16px;
    text-align: center;
    background-color: hsl(202, 86%, 94%);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.pent{
    margin-top: 10px;
}

.Mt{
    margin-bottom: -15px;
}

.morgage-type{
    margin-top: 20px;
    margin-left: 20px;
}

.type{
    margin-top: 10px;
}

.repay{
    width: 400px;
    height: 40px;
    border: 1px solid black;
    border-radius: 5px;
    align-content: center;
}

.repay input{
    margin-left: 10px;
}

.repay:active{
    border:1px solid hsl(61, 70%, 52%) ;
}

.repay input:active{
    color: hsl(61, 70%, 52%);
}

.interest-only{
    width: 400px;
    height: 40px;
    border: 1px solid black;
    border-radius: 5px;
    align-content: center;
    margin-top: 10px;
}

.interest-only input{
    margin-left: 10px;
}

.calculate{
    margin-top: 20px;
    margin-left: 20px;
    display: flex;
    align-content: center;
}

.calculate button{
    width: 250px;
    height: 40px;
    background-color:hsl(61, 70%, 52%);
    border-radius: 50px;
    display: flex;
    border: none;
}

button ion-icon{
    margin-left: 10px;
    font-size: 17px;
}

.lac{
    margin-top: 8px;
    margin-left: 20px;
}

.calc{
    margin-top: 10px;
    margin-left: 5px;
}

.results{
    width: 440px;
    height: 469px;
    margin-left: 40px;
    border: 2px solid black;
    background-color: rgb(2, 2, 58);
    font-family: serif;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 70px;
}

.result{
    margin-top: 30px;
    margin-left: 30px;
    color: white;
}

.result h2{
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    margin-bottom: 20px;
}

.result p{
    font-size: 17px;
    line-height: 1.5;
    color: lightgrey;
}

.repayment{
    width: 350px;
    height: 250px;
    background-color: rgb(24, 5, 121);
    margin-left: 30px;
    margin-top: 20px;
    border-radius: 5px;
    border-top: 4px solid hsl(61, 70%, 52%);
}

.repayment h3{
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    margin-top: 20px;
    margin-left: 20px;
    color: lightgray;
}

#credit{
    width: 300px;
    height: 50px;
    margin-top: 10px;
    margin-left: 20px;
    margin-bottom: 20px;
    color:hsl(61, 70%, 52%) ;
    font-size: 45px;
    align-content: center;
}

hr{
    border: 1px solid grey;
    margin-left: 20px;
    margin-right: 20px;
}

.total{
    width: 300px;
    height: 80px;
    margin-top: 20px;
    margin-left: 20px;
}

.total p{
    color: lightgrey;
}

#total{
    width: 100%;
    height: 40px;
    margin-top: 10px;
    color: lightgray;
    font-size: 25px;
}