main{
color: black;
}
main > h1{
    background: linear-gradient(45deg, #eb7171, brown, #eb7171, brown);
    background-size: 100px 100px;
    background-clip:text;
    color: transparent;
    font-size: 80px;
    text-align: center;
}
main > p{
    text-align: center;
    font-size: 25px;
    color: brown;
}
main > .about-flex{
    width: 80vw;
    margin: 30px auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 20px;
    align-items: center;
}
.about-flex > div:first-child{
    width: 40%;
    min-width: 300px;
    font-size: 20px;
    line-height: 30px;
}
.about-flex h2{
    font-size: 30px;
    color:#eb7171;
    text-decoration: 2px solid #eb7171 underline;
    margin: 10px 0px;
}

@media screen and (max-width: 850px){
    main > h1{
        font-size: 50px;
    }
    main > p{
        font-size: 15px;
    }
    .about-flex > div:first-child{
    width: 100%;
    min-width: 300px;
    font-size: 20px;
    line-height: 30px;
}
}
@media screen and (max-width: 500px){
    main > h1{
        font-size: 30px;
    }
    .about-flex h2{
        font-size: 20px;
    }
    .about-flex >p{
        font-size: 18px;
    }
    .about-flex img{
        width: 100%;
        height: 300px;
    }
}

.founder-message{
    width: 80vw;
    margin: 10px auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 20px;
    align-items: center;
    border: 1px solid gray;
    padding: 5px;
}
.founder-message > div:last-child{
    font-family: 'Dancing Script', cursive;
    height: 800px;
    width: 40%;
    min-width: 300px;
    font-size: 20px;
    display: flex;
    flex-flow: column;
    gap: 20px;
}
.founder-message h4{
    color: blue;
    text-align: right;
}
@media screen and (max-width: 1300px){
    .founder-message img{
        height: 600px;
        width: 400px;
    }
}
@media screen and (max-width: 900px){
    .founder-message img{
        height: 800px;
        width: 100%;
    }
    .founder-message > div:first-child{
        width: 100%;
    }
    .founder-message > div:last-child{
        height: auto;
        width: 100%;
    }
}
@media screen and (max-width: 600px){
    .founder-message img{
        height: 600px;
        width: 100%;
    }
}
@media screen and (max-width: 400px){
    .founder-message{
        width: 95vw;
    }
    .founder-message img{
        height: 400px;
        width: 100%;
    }
    .founder-message h4 {
        font-size: 15px;
    }
}
/* ----------------------- GST Tool CSS --------------------- */

header{
    height: 300px;
    width: 100vw;
    background-color: #eb7171;
    padding-top:100px;
    box-sizing: border-box;
    border-radius: 0px 0px 50px 50px;
}
@keyframes openup {
    to{transform: scale(1,1);}
}
header > h1{
    background: linear-gradient(45deg, violet, blue, green, yellow, orange, red);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 80px;
    text-align: center;
    transform: scale(0,0);
    animation: openup 1s 500ms linear normal forwards;
}
header > p{
    text-align: center;
    color: white;
}
@media screen and (max-width: 600px){
    header > h1{
        font-size: 40px;
    }
}
/* ------------------------------------------------------------*/
dialog{
    height: 100vh;
    width: 100vw;
    background-color: transparent;
    overflow: visible;
    border: none;
}
dialog::backdrop{
    background-color: rgba(0, 0, 0, 0.4);
}
.gst{
    height: 300px;
    width: 80%;
    margin: auto;
    margin-top: calc(60vh - 300px);
    background-color: #eb7171;
    border-radius: 20px;
    padding: 10px;
    padding-bottom: 40px;
    box-sizing: border-box;
    position: relative;
}
#close-gst{
    height: 50px;
    width: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#close-gst > div{
    height: 10%;
    margin: 5% auto;
    width: 90%;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    top: 30%;
    left: 1%;
}
#close-gst > div:first-child{
    transform: translateY(20%) rotate(45deg);
}
#close-gst > div:last-child{
    transform: translateY(10%) rotate(-45deg);
}
#close-gst:hover{
    transform: scale(1.05, 1.05);
}
.gst > h2{
    text-align: center;
}
.gst > .calculator{
    width: 80%;
    background-color: white;
    margin-left: 10%;
    margin-top: 25px;
    color: black;
    padding: 10px;
    border-radius: 20px;
    box-sizing: border-box;
}
.calculator > .inputs-flex{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    margin: 20px auto;
}
.calculator > .inputs-flex input, .calculator > .inputs-flex select{
    width: 200px;
    font-size: 20px;
    height: 30px;
    padding:0px;
}
.calculator > .outputs-flex{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    margin: 20px auto;
}
.calculator > .outputs-flex > div{
    height: 70px;
    width: 150px;
    text-align: center;
    display: grid;
    grid-template-rows: 1fr 20px;
}
.calculator > .outputs-flex > div > span:first-child{
    font-size: 35px;
}
.calculator > .outputs-flex > div:nth-child(2n){
    width: 50px;
    font-size: 35px;
}
@media screen and (max-width: 900px){
    .calculator > .outputs-flex > div{
        height: 50px;
    width: 100px;
}
.calculator > .outputs-flex > div > span:first-child{
    font-size: 20px;
}
.calculator > .outputs-flex > div{
    font-size: 15px;
}
.calculator > .outputs-flex > div:nth-child(2n){
    width: 30px;
    font-size: 20px;
}
}
@media screen and (max-width: 480px){
    .gst{
        width: 100%;
        margin-left: 5vw;
    }
    .calculator > .outputs-flex > div{
        height: 30px;
    width: 60px;
}
.calculator > .outputs-flex > div > span:first-child{
    font-size: 15px;
}
.calculator > .outputs-flex > div{
    font-size: 10px;
}
.calculator > .outputs-flex > div:nth-child(2n){
    width: 15px;
    font-size: 15px;
}
.calculator > .inputs-flex input, .calculator > .inputs-flex select{
    width: 100px;
    font-size: 18px;
    height: 25px;
    padding:0px;
}
#close-gst{
    height: 30px;
    width: 30px;
}
}
/* ----------------------- SIP Calculator ------------------- */
.sip-calc{
    height: 500px;
    width: 90vw;
    margin: auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    position: relative;
    margin-top: 3vh;
}
#close-sip{
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#close-sip > div{
    height: 10%;
    margin: 5% auto;
    width: 90%;
    background-color: black;
    border-radius: 20px;
    position: absolute;
    top: 30%;
    left: 1%;
}
#close-sip > div:first-child{
    transform: translateY(20%) rotate(45deg);
}
#close-sip > div:last-child{
    transform: translateY(10%) rotate(-45deg);
}
#close-sip:hover{
    transform: scale(1.05, 1.05);
}
.sip-calc > h2 {
    margin-bottom: 20px;
    color: #333333;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.sip-calc label {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-size: 14px;
}

.sip-calc input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.sip-calc input:focus {
    border-color: #eb7171;
}

.sip-calc button {
    width: 100%;
    padding: 14px;
    background-color: #eb7171;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sip-calc button:hover {
    background-color: #dd5a5a;
}

.results {
    margin-top: 25px;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #555555;
    font-size: 15px;
}

.result-item .value {
    font-weight: 600;
    color: #333333;
}

.result-item.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dddddd;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

.result-item.total .value {
    color: #eb7171;
}
@media screen and (max-width: 450px){
    .sip-calc{
        width: 90vw;
        padding: 5px;
        margin-left: 3%;
    }
    .sip-calc input{
        width: 90%;
    }
}

/* ----------------------- Income tax ----------------------- */
#income-tax{
    overflow-y: auto;
}
.tax-container {
    background-color: white;
    max-width: 850px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: auto;
    margin: auto;
    position: relative;
}

#close-income-tax{
    height: 30px;
    width: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
}
#close-income-tax > div{
    height: 10%;
    margin: 5% auto;
    width: 90%;
    background-color: black;
    border-radius: 20px;
    position: absolute;
    top: 30%;
    left: 1%;
}
#close-income-tax > div:first-child{
    transform: translateY(20%) rotate(45deg);
}
#close-income-tax > div:last-child{
    transform: translateY(10%) rotate(-45deg);
}
#close-income-tax:hover{
    transform: scale(1.05, 1.05);
}

.tax-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

.tax-container h2 small {
    color: #64748b;
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.regime-toggle-info {
    grid-column: span 2;
    background-color: #f8fafc;
    padding: 10px;
    border-left: 4px solid #3b82f6;
    font-size: 13px;
    color: #475569;
}

.tax-container label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

.tax-container input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}

.tax-container input:focus {
    border-color: #3b82f6;
}

.tax-container button {
    grid-column: span 2;
    padding: 14px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.tax-container button:hover {
    background-color: #1d4ed8;
}

.result-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.regime-card {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.new-regime {
    border-top: 5px solid #10b981;
}

.old-regime {
    border-top: 5px solid #f59e0b;
}

.regime-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #1e293b;
    text-align: center;
}

.res-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #64748b;
}

.bold {
    color: #0f172a;
    font-weight: 600;
}

.green {
    color: #10b981;
    font-weight: 600;
}

.res-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
}

.tax-value {
    font-size: 18px;
    color: #0f172a;
}

.verdict-box {
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 6px;
    display: none;
}

@media (max-width: 650px) {
    .form-section, .result-section {
        grid-template-columns: 1fr;
    }
    button, .regime-toggle-info {
        grid-column: span 1;
    }
}
