@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body h1,p,h2,h3,h4,h5,h6,span,table,div,td,th,input,label, form,ul,li{
    font-family: "Ubuntu Sans" , sans-serif;
}

main{
    margin-top: 80px;
}

body {
    background-color: whitesmoke;
}

.form {
    width: 100%;
    background-color: rgb(37, 32, 32);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    height: 80vh;
}

.form form{
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 370px;
}

.form-heading {
    color: white;
    margin-bottom: 30px;
    font-size: 50px;
    font-weight: 700;
    text-align: center;
}

.form-group {
    width: 100%;
    /* max-width: 1000px; */
    margin-bottom: 20px;
}

.form-group label {
    /* display: block; */
    margin-bottom: 5px;
    margin-top: 10px;
    font-size: 18px;
    color: white;
    font-weight: bold;
    width: 100%;
}

.salary, .pension, .selection {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.salary:focus, .pension:focus, .selection:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
}

.submit-btn {
    background-color: rgb(51, 189, 51);
    padding: 15px;
    border: none;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.submit-btn:hover {
    background-color: rgba(51, 189, 51, 0.85);
}

.input-error {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.error{
    background-color: #ffdddd;
    color: #a10000;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
    margin: 10px auto;
}

.calc-box-heading {
    margin: 30px 0px;
    text-align: center;
    font-size: 50px;
    font-weight: bolder;
    text-decoration: underline;
    color: black;
}

.main-box {
    display: flex;
    justify-content: center;
    width: 1400px;
    margin: 0px auto;
}

.percentage-box{
    display: flex;
    width: 100%;
    justify-content: center;
}

.tax_given-box {
    width: 600px;
    border: 1px solid black;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-left: 20px;
    padding: 10px;
    margin-right: 20px;
}

.heading-tax_given {
    font-size: 25px;
    margin-top: 40px;
    text-align: center;
}

.tax_given {
    margin-top: 40px;
    color: red;
    font-size: 70px;
    font-weight: 600;
}

.difference{
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 23px;
    color: darkblue;
    font-weight: bolder;
    margin-top: 10px;
}

.difference span{
    color: red;
}

#differ{
    font-size: 30px;
}

.heading-info {
    text-align: center;
    font-weight: bold;
    font-size: 36px;
    margin-top: 15px;
    color: #2c3e50;
}

.main-box .information {
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 20px;
    padding: 25px; 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); 
    background-color: #fff;
}

.main-box .information .info-info {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.main-box .information .info-info:last-child {
    border-bottom: none;
}

.main-box .information .info-info h2 {
    font-size: 20px;
    margin: 0; 
    color: #34495e;
}

.red {
    color: red;
    font-family: 600;
}

.green {
    color: green;
    font-weight: 600;
}

.black {
    font-weight: 600;
    color: black;
}

.table {
    display: flex;
    justify-content: center;
}

table {
    width: 1400px;
    margin: 30px 0px 40px 0px;
    border: 1px solid black;
    text-decoration: none;
}

th {
    width: 500px;
    border-bottom: 1px solid black;
    font-size: 30px;
    padding: 5px;
    background-color: rgb(0, 152, 121);
    color: white;
    height: 100px;
}

tr:nth-child(even) {
    background-color: #ffffff;
}

tr:nth-child(odd) {
    background-color: #f2f2f2; 
}


td {
    text-align: center;
    padding: 15px;
    font-size: 23px;
    text-decoration: none;
}

td a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

td a:hover {
    color: rgb(0, 68, 255);
}

.total-row {
    height: 70px;
}

.total-row td {
    border-top: 1px solid black;
    padding: 10px;
    font-size: 30px;
    font-weight: bolder;
}

.total-row-heading {
    border-right: 1px solid black;
}

.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin: 20px 0px 0px 0px; */
    order: 2;
}

.author img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid black;
}

.author h1 {
    font-size: 30px;
    margin: 5px 0px;
}

.author h2 {
    font-size: 25px;
}

.author p {
    font-size: 20px;
    margin: 5px 0px;
    text-align: center;
    width: 400px;
}

.links {
    font-size: 40px;
}

.links a {
    text-decoration: none;
}

.links a:nth-child(1) {
    color: red;
}

.links a:nth-child(2) {
    color: blue;
}

.links a:nth-child(3) {
    color: black;
}

.input-error {
    color: red;
    font-size: 18px;
    margin-bottom: 3px;
}

.footer {
    display: flex;
    justify-content: space-around;
    width: 1500px;
    margin: 0px auto;
    align-items: center;
    height: 400px;
}

.btn-left a,
.btn-right a {
    text-decoration: none;
    background-color: black;
    color: white;
    padding: 20px;
    font-size: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    font-weight: bolder;
}

.btn-left,
.btn-right {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 300px;
}

.btn-left {
    margin-left: 40px;
    order: 1;
}

.btn-right {
    margin-right: 40px;
    order: 3;
}

.btn-left a:hover,
.btn-right a:hover {
    background-color: rgba(0, 0, 0, 0.896);
}

.line {
    width: 100%;
    border-bottom: 1px dotted black;
}

.slab-heading {
    text-align: center;
    font-weight: bolder;
    margin: 20px 0px;
}

.tax-slabs {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 1400px;
    margin: 20px auto;
}

.tax-slab {
    margin-top: 20px;
}

.tax-slabs h1 {
    margin: 0;
    padding: 5px;
    cursor: pointer;
    background-color: #ddd;
    padding: 20px;
    font-size: 25px;
    display: flex;
    justify-content: space-between;
}

.tax-slabs h1:hover {
    background-color: #ccc;
}

.tax-slabs .dropdown {
    display: none;
    padding: 10px;
    background-color: white;
    color: red;
    margin-top: 10px;
    font-weight: bolder;
    font-size: 18px;
}

.tax-slabs.active .dropdown {
    display: block;
    margin-top: 5px;
}

#taxGiven {
    animation: blink 2s infinite;
}

#movingText{
    color: red;
    font-size: 20px;
    font-weight: bolder;
    background-color: white;
    width: 100%;
    padding: 5px 0px;
    display: flex;
    align-items: center;
}

.btn-cont a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff; 
    /* background-color: #007bff;  */
    border: 2px solid #007bff;
    color: #007bff;
    padding: 10px 15px;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    width: 70px;
    text-align: center;
}

.btn-cont a:hover {
    background-color: #0056b3;
    color: #e6e6e6;
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    
    50% {
        opacity: 1;
    }
    
    100% {
        opacity: 0;
    }
}

@media (max-width: 3000px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }
    
    .form form {
        height: 370px;
    }
}

@media (max-width: 1412px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form {
        height: 500px;
    }

    .main-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .tax_given-box {
        margin-top: 20px;
    }

    .information {
        width: 100%;
    }

    .footer {
        margin-top: 20px;
        width: 100%;
    }

    .tax-slabs h1 {
        width: 100%;
    }
    
    .tax-slabs {
        width: 100%;
    }
}

@media (max-width: 990px){
    .form form{
        width: 60%;
    }
}

@media (max-width: 764px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    form {
        display: flex;
        flex-direction: column;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 500px;
        margin-top: 5px;
    }

    .information,
    .tax_given-box {
        width: 90%;
    }

    .information {
        margin: 10px 0;
    }

    .tax-slabs h1 {
        font-size: 19px;
    }

    .salary,
    .pension,
    .selection,
    .submit-btn {
        width: 100%;
        margin-top: 5px;
    }
    
    .form form{
        width: 80%;
    }
}


@media (max-width: 670px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form {
        width: 100%;
        height: 600px;
    }

    form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 400px;
        margin-top: 5px;
    }

    .tax_given-box{
        width: 100%;
    }

    .tax_slabs h1 {
        font-size: 20px;
    }

    .tax_slab h1 span {
        margin-left: 20px;
    }

    .salary,
    .pension,
    .selection,
    .submit-btn {
        width: 100%; 
        margin-top: 5px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }
    
    .form form{
        width: 90%;
    }
}

@media (max-width: 660px) {
    .btn-cont  {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 10px 0px;
    }

    .form {
        height: 90vh;
    }
}

@media (max-width: 610px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .main-box, .information{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0px;
        padding: 0px; 
    }

    .info-info{
        width: 100%;
    }

    .percentage-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 500px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    table {
        width: 100%;
    }

    th {
        width: 300px;
        font-size: 25px;
        padding: 4px;
        height: 80px;
    }

    .tax_given-box{
        width: 100%;
    }

    .differ-text {
        text-align: center;
    }
}

@media (max-width: 464px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    table {
        margin: 20px 10px;
        width: 100%;
    }

    th {
        width: 50px;
        font-size: 18px;
        height: 80px;
    }

    td {
        text-align: center;
        padding: 8px 0px;
        font-size: 17px;
    }

    .total-row {
        height: 50px;
    }

    .total-row td {
        border-top: 1px solid black;
        padding: 8px 0px;
        font-size: 17px;
        font-weight: bolder;
    }

    .total-row-heading {
        border-right: 1px solid black;
    }

    .tax_given-box{
        width: 100%;
    }
}

@media (max-width: 460px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .tax_given-box {
        width: 100%;
        margin: 20px 0px;
    }

    .form {
        height: 90vh;
    }

    .information {
        width: 100%;
    }
}

@media (max-width: 410px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form form {
        width: 100%;
        margin: 0px;
        padding: 0px;
    }

    .salary,
    .pension,
    .selection,
    .submit-btn {
        width: 100%; 
        margin-top: 5px;
    }

    .author p {
        width: 370px;
    }

    .information,
    .tax_given-box {
        width: 100%;
    }
}

@media (max-width: 360px) {
    body{
        font-family: 'Ubuntu Sans' , sans-serif;
    }

    .form form {
        width: 100%;
    }

    .salary,
    .selection,
    .submit-btn {
        width: 100%;
        margin-top: 5px;
    }

    .tax_given-box,
    .information {
        width: 100%;
    }

    .info-info h1 {
        font-size: 18px;
        width: 180px;
    }

    .info-info span {
        font-size: 20px;
    }

    .author p {
        width: 300px;
    }
}

@media (max-width: 355px) {
    .form{
        height: 700px;
    }

    .calc-box-heading{
        font-size: 35px;
    }
}

