*{
  
    font-family: "Afacad", sans-serif;
    background-color: white;
}
body {
 
    background-color: white;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}



.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.calculator-container, .result-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.calculator-container h1 {
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.default-values {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.default-values span {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.default-values span:hover {
    background-color: #e0e0e0;
}

button {
    width: 100%;
    padding: 10px;
    background-color: rgba(46, 204, 113,1.0);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

button:hover {
    background-color: rgba(46, 204, 113,1.0);
}

.result h2 {
    color: #333;
}

#emiChart {
    margin-top: 20px;
}

#emi-details {
    margin-top: 20px;
    text-align: left;
    color: #555;
}
/* extra css 
 */
 .emiHeading{
    text-align: center;
    margin: 15px 0px;
    font-weight: 300;
    font-size: 35px;
    text-decoration: underline 1px;
    text-underline-offset: 7px;

 }

/* Responsive design */
@media (min-width: 768px) {
    .container {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
    }
    
    .calculator-container, .result-container {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .calculator-container h1 {
        font-size: 24px;
    }
    
    .result h2 {
        font-size: 16px;
    }
    
    #emi-details {
        font-size: 14px;
    }
}
