*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden !important;
}
.content{
    text-align: center;
}
.content h1{
    margin: -10vh 0;
    font-size: 5vmin;
    position: relative;
    color: brown !important;
    -webkit-text-stroke: 0.3vw brown;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-style:wavy;
    text-decoration-color: white;
}
.content h1::before{
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: #01fe87;
    -webkit-text-stroke: 0vw #383d52;
    border-right: 2px solid #01fe87;
    overflow: hidden !important;
    animation: animate 6s linear infinite;
}
@keyframes animate {
    0%, 10%, 100%{
        width: 0;
    }
    70%, 90%{
        width: 100%;
    }
}
.content p{
    margin: 13vh 0;
    font-size: 3vmin;
    padding: 0 15px !important;
}
.section{
    margin: 15vh 10vh;
    color: black;
}
.loan{
    border: 2px solid gray;
    width: 50%;
    box-shadow: 2px 2px 2px 2px black;
    height: 40vh;
    padding: 2vh 7vh;
    margin: 5vh 50vh;
}
.loan:hover{
    background-color: brown;
    transform: scale(1.1);
}
.loan input{
    width: 40%;
    height: 5vh;
    margin: 0 3vh;
}
.loan input:hover{
    transform: scale(1.1);
    margin-left: 3vh !important;
    background-color: rgb(86, 233, 164);
    box-shadow: 4px 4px 4px black;
    border: none;
    border-radius: 30px;
}
#amount{
    margin: 2vh 0;
}
#rate{
    margin: 2vh 0;
}
#years{
    margin: 2vh 0;
}
.loan button{
    border: 1px solid transparent;
    border-radius: 30px;
    margin: 2vh 20vh;
    padding: 7px 90px;
    text-align: center;
    color: white;
    background-color: rgb(86, 233, 164);
    cursor: pointer;
}
.loan button:hover{
    border: 1px ridge rgb(86, 233, 164);
    background-color: brown;
    color: rgb(86, 233, 164);
    transform: scale(1.1);
    box-shadow: 4px 4px 4px black;
}
.result{
    text-align: center;
    font-size: 3vmin;
}
.all{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    margin: 5vh 0;
}
.payment{
    background-color: rgb(86, 233, 164);
    width: 35vmin;
    height: 30vh;
    text-align: center;
    padding: 3vh 0;
    font-size: 3vmin;
    box-shadow: 5px 5px 5px 5px blue;
}
.payment:hover{
    background-color: rgb(64, 138, 223);
    transform: scale(1.1) !important;
}
.interest{
    background-color: rgb(64, 138, 223);
    width: 35vmin;
    height: 30vh;
    text-align: center;
    padding: 3vh 0;
    font-size: 3vmin;
    box-shadow: 5px 5px 5px 5px rgb(86, 233, 164);
}
.interest:hover{
    background: linear-gradient(234deg, rgb(86, 233, 164), blue);
    /* transition: ease-in-out !important; */
    transform: scale(1.1) !important;
}
.amount{
    background-color: blue;
    width: 35vmin;
    height: 30vh;
    text-align: center;
    padding: 3vh 0;
    font-size: 3vmin;
    box-shadow: 5px 5px 5px 5px rgb(64, 138, 223);
}
.amount:hover{
    background-color: rgb(86, 233, 164);
    transform: scale(1.1) !important;
}

@media screen and (min-width: 300px) and (max-width: 413px) {
    .section{
        width: 100%;
    }
    .content p{
        padding: 0 15px !important;
    }
    .loan{
        margin: 5vh 35vh !important;
        width: 100% !important;
        height: 55vh !important;
       }
       .loan input{
        width: 100% !important;
        border: 2px solid grey !important;
        box-shadow: none !important;
       }
       .loan button{
        margin: 3vh 0 !important;
        padding: 4px 70px !important;
        text-align: center !important;
       } 
       .all{
        display: block !important;
        margin: 5vh 45vh !important;
       }
       .payment{
        margin: 5vh 0;
        width: 45vmin !important;
       }
       .interest{
        margin: 5vh 0;
        width: 45vmin !important;
       }
       .amount{
        margin: 5vh 0;
        width: 45vmin !important;
       }
}
@media screen and (max-width: 414px) {
    .section{
        width: 100% !important;
    }
    .content p{
        padding: 0 15px !important;
    }
    .loan{
        margin: 5vh -1vh !important;
        width: 100% !important;
        height: 55vh !important;
       }
       .loan input{
        width: 100% !important;
       }
       .loan button{
        margin: 3vh 4vh !important;
        padding: 4px 70px !important;
        text-align: center !important;
       } 
       .all{
        display: block !important;
        /* grid-template-rows: 1fr !important; */
        margin: 5vh 8vh !important;
       }
       .payment{
        margin: 5vh 0;
        width: 45vmin !important;
       }
       .interest{
        margin: 5vh 0;
        width: 45vmin !important;
       }
       .amount{
        margin: 5vh 0;
        width: 45vmin !important;
       }
}

@media screen and (max-width: 600px) {
    .section{
        width: 100%;
    }
   .loan{
        margin: 5vh 7vh;
        width: 75%;
        height: 51vh;
   }
   .loan input{
    width: 100%;
   }
   .loan button{
    margin: 3vh 2vh;
   } 
   .all{
    display: block;
    margin: 5vh 15vh;
   }
   .payment{
    margin: 5vh 0;
    width: 45vmin;
   }
   .interest{
    margin: 5vh 0;
    width: 45vmin;
   }
   .amount{
    margin: 5vh 0;
    width: 45vmin;
   }
}

@media screen and (min-width: 601px) and (max-width: 750px) {
    .loan{
        margin: 5vh 0;
        width: 100%;
        height: 48vh;
    }
    .loan input{
        width: 65%;
    }
    #rate{
        width: 64% !important;
    }
    .loan button{
        margin: 7vh 20vh;
        align-items: center;
    } 
    .all{
        display: block;
        margin: 5vh 20vh;
    }
    .payment{
        margin: 5vh 0;
        width: 40vmin;
    }
    .interest{
        margin: 5vh 0;
        width: 40vmin;
    }
    .amount{
        margin: 5vh 0;
        width: 40vmin;
    }
}
@media screen and (min-width: 751px) and (max-width: 900px) {
    .loan{
        margin: 5vh 15vh;
        width: 80%;
        height: 50vh;
    }
    .loan input{
        width: 50%;
        margin: 2vh 5vh !important;
    }
    .loan button{
        margin: 3vh 20vh;
        align-items: center;
    } 
    .all{
        display: block;
        margin: 5vh 25vh;
    }
    .payment{
        margin: 5vh 0;
    }
    .interest{
        margin: 5vh 0;
    }
    .amount{
        margin: 5vh 0;
    }
}

@media screen and (min-width: 901px) and (max-width: 1000px) {
    .loan{
        margin: 5vh 20vh;
        width: 70%;
        height: 50vh;
    }
    .loan input{
        width: 55%;
        margin: 2vh 5vh !important;
    }
    .loan button{
        margin: 3vh 30vh;
        align-items: center;
    }
}

@media screen and (min-width: 1001px) and (max-width: 1200px) {
    .loan{
        margin: 5vh 20vh;
        width: 70%;
        height: 50vh;
    }
    .loan input{
        width: 55%;
        margin: 2vh 5vh !important;
    }
    .loan button{
        margin: 3vh 25vh;
        align-items: center;
    } 
}
@media screen and (min-width: 1201px) {
    .loan{
        margin: 5vh 20vh;
        width: 70%;
        height: 50vh;
    }
    .loan input{
        width: 55%;
        margin: 2vh 5vh !important;
    }
    .loan button{
        margin: 3vh 35vh;
        align-items: center;
    } 
}