@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('./assets/fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype'),
         url('./assets/fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'plus Jakarta Sans', sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center; 
    align-items: center; 
    background-color: hsl(191, 100%, 94%); 
}

.container {
    width: 80%;       
    max-width: 700px; 
    height: 400px;    
    background-color: rgb(255, 255, 255); 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 15px; 
    display: flex;
    flex-direction: row;
}

.form {
    padding: 20px;
    min-width: 50%;
}

.results {  
    /* flex: 1; */
    padding: 20px;
    background-color: rgb(1, 35, 59);
    color: #efefef;
    border-radius: 0px 15px 15px 50px;
    min-width: 50%;

}


header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px; */
    /* text-align: center; */
}

header h2{
    font-size: 1rem;
    color: rgb(1, 35, 59);
    margin: 0;
    padding: 0;
}

header a{
    font-size: 0.7rem;
    color: rgb(133, 133, 133);
    margin: 0;
    padding: 0;
}

label{
    font-size: 0.7rem;
    color: rgb(133, 133, 133);
    margin: 0;
    padding: 0px 0px 0px 5px;  
}

#mort, #mt, #ir{
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
    color: rgb(1, 35, 59);
    /* font-weight: 700; */
}

#mort{
    margin-bottom: 15px;
}

#mortgage{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

#box{
    border: 1px solid #ccc;
    padding: 7px;
    border-radius: 3px;
    margin: 7px;
   
}

#box #inter{
    font-size: 12px;
    font-weight: 700px;
    font-style: bold;
    color: rgb(1, 35, 59);
}


#calculator > img{
    width: 17px;
    height: 17px;
   
} 

button{
    background-color: rgb(175, 219, 0);
    color: rgb(1, 35, 59);
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.results{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    #emptyResultBox{
        display: flex;
        flex-direction: column;
        justify-self: center;
        align-items: center;
        margin: 40px;

        .title{
            font-size: 15px;
            font-weight: 700;
            margin: 8px 0 10px;
            color: #efefef;
        }
    
        p{
            font-size: 10px;
            font-weight: 100;
            text-align: center;
            color: var(--slate300);
            line-height: 130% ;
            opacity: 0.5;

        }

        img{
            width: 140px;
            height: 140px;
            margin: 0 auto;
            margin: 0px;
            padding: 0px;
        } 
    
        @media (max-width: 850px) {
            margin: 32px;
        }
    }


    #fullResultBox{
        display: none;
    }
    
    .fullResultBox{
        display: none;
        margin: 38px;
    
        &_header{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0 20px;

            .title{
                font-size: 24px;
                font-weight: 700;
                color: #efefef;
            }
        }

        &_text{
            line-height: 150%;
            margin-bottom: 40px;
            color: var(--slate300);
            
            @media (max-width: 850px) {
                margin-bottom: 22px;
            }
        }

        &_repayment{
            background-color: hsl(202, 56%, 12%);
            border-top: 3px solid hsl(var(--lime));
            border-radius: 12px;
            padding: 30px 34px;

            .resultBox {

                &_monthRepay, &_totalRepay{
                    color: var(--slate300);
                }

                &_mouthAmoun{
                    font-size: 56px;
                    font-weight: 700;
                    padding: 10px 0 34px;
                    border-bottom: 1px solid hsl(var(--slate300));
                    color: hsl(var(--lime));

                    @media (max-width: 850px) {
                        font-size: 40px;
                        padding: 6px 0 22px;
                    }
                }

                &_totalRepay{
                    margin: 32px 0 8px;

                    @media (max-width: 850px) {
                        margin: 16px 0 8px;
                    }
                }

                &_totalAmoun{
                    font-size: 24px;
                    font-weight: 700;
                    color: hsl(var(--lime));
                }
            
            }

            @media (max-width: 850px) {
                border-radius: 8px;
                padding: 24px 20px;
            }
        
        }

        @media (max-width: 850px) {
            margin: 32px 22px;
        }

    }

    @media (max-width: 850px) {
        border-radius: 0;
    }
}


.fullResultBox .titlee{
    text-align: left;
    
}

.fullResultBox  .fullResultBox_text{
    font-size: 12px;
    font-weight: 100;
    text-align: center;
    color: var(--slate300);
    line-height: 130% ;
    opacity: 0.5;
    text-align: left;

}

.fullResultBox_repayment{
    background-color: hsl(206, 61%, 8%);
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 3px solid hsl(74, 95%, 48%);
    border-radius: 5px;
    
}

.resultBox_monthRepay,
.resultBox_totalRepay{
    font-size: 12px;
    font-weight: 100;
    text-align: center;
    color: var(--slate300);
    line-height: 130% ;
    opacity: 0.5;
    padding-bottom:8px;
    padding-left: 20px;
    text-align: left;
}

.resultBox_mouthAmount{
    font-size: 30px;
    font-weight: 100;
    text-align: center;
    color: hsl(74, 95%, 48%);
    line-height: 130% ;
    padding-bottom:18px;
    padding-left: 20px;
    text-align: left;
}

.resultBox_totalAmount{
    padding-left: 20px;
    text-align: left;
}


@media (max-width: 850px) {
    .container {
        flex-direction: column ;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}