@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

.loan-calculator {
    font-family: "Inter", sans-serif;
    margin-bottom: 30px;
    width: 98%;
    margin-left: 1%;
    background: #fff;
    box-shadow: 12px 12px 50px -11px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #14213d;
    overflow: hidden;
    display: flex;
    height: fit-content;
    flex-direction: row;
    padding-bottom: 25px;
}

.sun {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in 0.1s;
}

.sun.visible {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.2s ease-in 0.1s;
}

.moon {
    pointer-events: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
    opacity: 0;
    display: hidden;
    transition: opacity 0.2s ease-in 0.1s;
}

.moon.visible {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.2s ease-in 0.1s;
}

.dark-mode {
    background-color: #000;
    color: white;
}

.dark-mode .loan-calculator {
    background: #212222;
    color: #fff;
}

.loan-calculator,
.loan-calculator * {
    box-sizing: border-box;
}

.loan-calculator .top {
    background: #050A30;
    color: #fff;
    padding: 32px;
    width: 50%;
}

.end {
    font-weight: 800;
}

.subtop {
    border: 0;
    border-radius: 6px;
}

.loan-calculator form {
    padding-right: 10px;
    padding-left: 10px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
}

.loan-calculator form .group {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 40px;
    justify-content: space-between;
}

.loan-calculator .title {
    margin-bottom: 16px;
}

.loan-calculator form input {
    font-size: 20px;
    padding: 10px 0px 10px 20px;
    border-radius: 10px;
    width: 100%;
    color: #000;
}

.loan-calculator .result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
}

.loan-calculator .result .left {
    width: 100%;
    padding: 8px 32px;
}

.loan-calculator .left h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.loan-calculator .left h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.loan-calculator .result .value {
    font-size: 30px;
    font-weight: 900;
    padding-bottom: 5px;

}

.words {
    font-size: small;
    font-weight: 600;
    border-bottom: 1px solid rgba(20, 33, 61, 0.2);
    padding-bottom: 5px;
}

.loan-calculator .result .value::before {
    content: "\20B9";
    font-size: 27px;
    font-weight: 400;
    margin-right: 6px;
    opacity: 0.4;
}

.loan-calculator .group1 {
    padding-top: 32px;
    text-align: center;
}

.loan-calculator .group1 .calculate-btn {
    background: #e63946;
    color: #fff;
    border: none;
    padding: 8px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    margin: 24px 0;
}

.loan-calculator .right {
    width: 90%;
}

.start {
    float: right;
    cursor: pointer;
    right: 80px;
    box-sizing: border-box;
    padding: 12px;
    background: none;
    border: none;
    justify-content: center;
    align-items: center;
    position: relative;
}

.head {
    font-family: "Poppins", sans-serif;
    text-align: center;
    margin-top: 60px;
}

.footer {
    position: relative;
    width: 100%;
    font-family: "Montserrat", sans-serif;
    background: #3586ff;
    max-height: 200px;
    padding: 15px 0px 40px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.connect {
    font-weight: 900;
}

.innerspan {
    margin-right: 30px;
}

.social-icon {
    display: flex;
    margin: 0px;
    padding: 0px;
}

.social-icon__item {
    list-style: none;
}

.social-icon__link {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

.social-icon__link:hover {
    transform: translateY(-8px);
}

.menu__link {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
    font-weight: 300;
}

.footer p {
    color: #fff;
    font-size: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 300;
}

.wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("https://i.ibb.co/wQZVxxk/wave.png");
    background-size: 500px 100px;
}

.wave#wave1 {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animateWaves 3s linear infinite;
}

.wave#wave2 {
    z-index: 999;
    opacity: 0.5;
    bottom: 2px;
    animation: animate 3s linear infinite !important;
}

.wave#wave3 {
    z-index: 1000;
    opacity: 0.2;
    bottom: 4px;
    animation: animateWaves 2s linear infinite;
}

.wave#wave4 {
    z-index: 999;
    opacity: 0.7;
    bottom: 6px;
    animation: animate 2s linear infinite;
}

@keyframes animateWaves {
    0% {
        background-position-x: 170px;
    }

    100% {
        background-positon-x: 0px;
    }
}

@keyframes animate {
    0% {
        background-position-x: -150px;
    }

    100% {
        background-positon-x: 0px;
    }
}

@media (max-width: 750px) {
    .loan-calculator {
        width: 96%;
        max-width: 600px;

        display: flex;
        flex-direction: column;
    }

    .loan-calculator .top {
        width: 100%;
    }

    .loan-calculator form {
        padding-left: 0px;
        padding-right: 0px;
    }

    .loan-calculator form .group {
        flex-direction: column;
        gap: 20px;
    }

    .loan-calculator .result {
        flex-direction: column;
        text-align: center;
    }

    .footer {
        font-size: 0.2rem;
        text-align: center;
    }

    .innerspan {
        display: block;
        margin-bottom: 12px;
    }

    .start {
        top: 20px;
        right: 45px;
    }
}