.calcDiv{
    margin-top: 7rem;
    position: relative;
    width: 100%;
    height: fit-content;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.salaryCalcDiv{
    position: relative;
    width: 100%;
    height: fit-content;
    padding-top: 4rem;
}

.incomeCalcDiv{
    position: relative;
    width: 100%;
    height: fit-content;
    padding-top: 4rem;
}

.horSelect3{
    justify-content: space-around;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    gap: 20px;
    justify-items: center;
}

.horSelect2{
    justify-content: space-around;
    display: grid;
    grid-template-columns: 1fr  1fr;
    padding: 10px;
    gap: 20px;
    justify-items: center;
}

.horSelect2 input[type=number]{
    max-width: unset;
    margin-left: auto;
    margin-right: auto;
}


.binRadio{
    display: flex;
    justify-content: center;
}

.salaryGridCell:last-of-type {
    display: grid;
    align-content: center;
    justify-content: center;
}

h2{
    text-align: center;
}

.errorHint{
    margin-left: -50px;
    width: 120%;
}

.salaryDiv {
    background: linear-gradient(#0d5eb4,#07416b );
    padding: 20px;
    width:  fit-content;
    height: fit-content;
    min-width: 60%;
}

.salaryDiv  p{
    color: #fff;
    text-indent: 0;
    text-align:center;
    font-size: 1.5rem;
}

.loaderDiv{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

.loaderDiv.active{
    display: flex;
}

.loader{
    position: relative;
    border: 16px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

.loaderInner{
    position: absolute;
    border: 12px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border-top: 12px solid #3498db;
    width: 70px;
    height: 70px;
    left: 3%;
    top: 3%;
    animation: spinRev 1s linear infinite;
}

.incomeCalcDiv .salaryGridCell{
    display: grid;
    justify-content: center;
}

.horSelect2.main{
    justify-content: space-around;
    display: flex;
    gap: 0px;
    justify-items: unset;
    width: 80%;
    margin-left: 10%;
}

.horSelect2.main .horSelect2{
    gap: 50px;
}

.income{
    -webkit-print-color-adjust: exact;
    text-align: left;
}

.printIncomeButton{
    margin-top: 20px;
    height: 4rem;
    margin-left: auto;
    margin-right: auto;
}

.salaryGridCell.result{
    display: ruby;
    position: relative;
    margin-left: 33.3%;
}

.salaryGridCell.resultIncome{
    display: grid;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}
.salaryGridCell.resultIncome button{
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.salaryGridCell.resultIncome input{ 
    width: 400px;
}

.horSelect2.incomeSecond{
    margin-left: 5%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRev {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@media (max-width: 600px) {
    .horSelect3{
        grid-template-columns: 1fr;
    }
    .horSelect2{
        grid-template-columns: 1fr;
    }
    .salaryCalcDiv{
        padding-top: 2rem;
    }
    input[type='number']{
        width: 75%;
    }
    .salaryDiv{
        margin-top: 20px;
        width: 80%;
    }
    h1{
        font-size: 4rem;
        padding: 0;
    }
    .errorHint{
        width: 90%;
        margin-left: 3%;
    }
    .salaryDiv  p{
        font-size: 1rem;
    }
    .salaryGridCell.result{
        margin-left: 0;
    }
    .salaryGridCell.resultIncome{
        margin-left: 0;
    }
    .horSelect2.main{
        width: 100%;
        margin-left: -5%;
    }
    h2{
        font-size: 1rem;
    }
    span{
        font-size: 0.9rem;
    }
    .income{
        font-size: 0.5rem;
        margin-top: 5rem;
    }
    .printIncomeButton{
        margin-top: 0; 
        margin-left: auto;
        margin-right: auto;
        height: fit-content;
    }
    .errorHint.errorIncome{
        width: 150%;
        margin-left: 12.5%;
        font-size: 1rem;
    }
    .salaryGridCell.resultIncome input{ 
        width: 80%;
    }
    .horSelect2.incomeSecond{
        margin-left: 0%;
    }
}