@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --lighter_blue: #0054A4;
    --dark_blue: #003A71;
    --gray: #D9D9D9;
    --dgray: #b0b0b0;
    --offwhite: rgb(240, 240, 240);
    --black: rgb(10, 10, 10);

    --w: maroon;
    --d: green;

    --standard-font: 24px;
    --standard-check-font: 20px;
    --standard-border: 1px solid var(--black);

    --white-arrow: url(/img/down-white.png);
    --black-arrow: url(/img/down.png);
}

html {
    scrollbar-width: thin;
    overflow-x: hidden;
}

.hero {
    background-image: url(/img/hero_background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    height: 100vh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;
}

.hero > img {
    height: 10%;
}

.main-hero-section {
    width: 20%;
}

.main-hero-section h1 {
    color: white;
    font-weight: 300;
    text-align: center;
    margin-top: 0;
}

.main-hero-section img {
    width: 100%;
}

.hero * {
    flex-grow: 0;
    flex-shrink: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto';
    font-weight: 300;
    font-size: var(--standard-font);
    height: 100%;
}

.dark-mode {
    background-color: rgb(10, 10, 10);
    color: var(--offwhite);

    --gray: rgb(40, 40, 40);
    --dgray: rgb(32, 32, 32);
    --black: var(--offwhite);
    --standard-border: 1px solid var(--offwhite);

    --d: rgb(0, 220, 0);
    --w: rgb(220, 0, 0);

    --lighter_blue: #00315e;
    --dark_blue: #00264a;

    --black-arrow: var(--white-arrow);
}

h2,
h3 {
    font-weight: 500;
}

.career_income_info {
    display: flex;
    flex-flow: row;
    background-color: var(--lighter_blue);
}

.career_income_info>section h3,
.career_income_info h2 {
    font-size: var(--standard-font);
}

.income {
    width: 70%;
    color: white;
    display: flex;
    flex-flow: column nowrap;
    padding-top: 25px;
    padding-left: 25px;
}

#careerdropdown {
    border: none;
    font-size: var(--standard-font);
    background-color: var(--dark_blue);
    color: white;
    width: 50%;
    text-align: center;
    scrollbar-width: none;
    appearance: none;
    cursor: pointer;
}

.career_selection section {
    display: flex;
    flex-flow: row nowrap;
}

.career_selection p {
    width: fit-content;
}

#balance {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column nowrap;
    background-color: var(--dark_blue);
    font-size: 40px;
    color: white;
    width: 30%;
}

#balance * {
    margin: 0;
    text-align: left;
    width: fit-content;
}

#balance h2 {
    font-size: 40px;
    font-weight: bold;
}

#balance p {
    font-size: var(--standard-font);
}

.info-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    background-color: var(--lighter_blue);
    -webkit-box-shadow: 0px 22px 47px 0px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0px 22px 47px 0px rgba(0, 0, 0, 0.08);
    box-shadow: 0px 22px 47px 0px rgba(0, 0, 0, 0.08);
}

.career_income_info {
    margin-top: 25px;
    margin-bottom: 25px;
    justify-content: space-between;
    width: 90%;
}

.career_selection {
    width: 70%;
}

.career_selection>section {
    margin-left: 55px;
}

.career_selection,
.career_income_info {
    display: flex;
    flex-flow: row nowrap;
}

.career_income_info section {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

.career_income_info section * {
    margin: 0;
}

.career_income_info section:not(:last-child) {
    margin-right: 55px;
}

#yearlyIncome * {
    text-align: center;
    font-size: var(--standard-font);
}

#yearlyIncome>h3 {
    margin-right: 25px;
    font-weight: 500;
}

main {
    display: flex;
}

main * {
    font-size: var(--standard-font);
}

.deduction-non-update *,
.deduction * {
    margin: 0;
    padding: 0;
}

.deduction-non-update p:nth-child(2),
.deduction p:nth-child(2) {
    width: 55px;
}

.check,
.deduction-non-update,
.deduction {
    width: 80%;
    margin-bottom: 15px;
    display: flex;
    background-color: var(--gray);
    justify-content: space-between;
}

.deduction-non-update p:first-child,
.deduction p:first-child {
    width: 240px;
    padding-left: 10px;
}

.deduction-non-update p:last-child,
.deduction p:last-child {
    padding-right: 10px;
    width: 95px;
}

#taxDeductions {
    width: 40%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: sticky;
    top: 0;
}

#checkbook {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    border-left: 2px solid var(--black);
}

main>section>h2 {
    text-align: center;
}

.deductionTotal {
    width: 80%;
}

.description {
    width: 80%;
    border-top: 2px solid var(--black);
}

.description>p {
    text-indent: 55px;
}

.checkinputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkinputs * {
    border: none;
    background-color: var(--gray);
    width: 20%;
    appearance: none;
    color: var(--black);
}

.checkinputs>input::placeholder,
select {
    text-align: center;
}

.checkinputs>button {
    color: var(--black);
}

.checkinputs>select {
    background-image: var(--black-arrow);
    background-size: 15%;
    background-repeat: no-repeat;
    background-position: right;
    background-origin: content-box;
    padding-right: 5px;
    color: var(--black);
}

button:not(.ps-hide) {
    cursor: pointer;
    padding: 0 15px 0 15px;
}

#checkbook>.temp {
    margin: auto;
}

#checks {
    width: 100%;
    overflow-y: auto;
}

.check {
    width: 100%;
    margin-bottom: 0;
    border-bottom: var(--standard-border);
    justify-content: space-between;
    align-items: center;
}

.check * {
    margin: 0;
    padding: 0;
}

.check:not(.legend) {
    font-size: var(--standard-check-font);
}

.check>div {
    display: flex;
    width: 30%;
}

.check>p:first-of-type {
    margin-left: 15px;
}

.check>p:last-of-type,
.check>p:first-child {
    width: 30%;
}

.checkAmount:first-child {
    border-left: var(--standard-border);
}

.checkAmount:last-child {
    border-left: var(--standard-border);
    border-right: var(--standard-border);
}

.checkAmount {
    width: 200px;
    text-align: center;
}

.w {
    color: var(--w);
}

.d {
    color: var(--d);
}

#checkbook-inner-container {
    width: 90%;
}

.check-legend {
    display: flex;
    border-bottom: var(--standard-border);
}

.check-legend * {
    margin: 0;
    padding: 0;
}

.check-legend p {
    width: 32%;
    text-align: center;
}

.check-legend p:first-child {
    text-align: left;
}

.check-legend p:last-child {
    text-align: left;
}

.hidden {
    display: none;
}

.check>button:not(.ps-hide) {
    background: none;
    border: none;
    color: red;
    padding-right: 25px;
    padding-left: 25px;
}

.ps-hide {
    background: none;
    border: none;
    color: transparent;
    padding-right: 25px;
    padding-left: 25px;
}

.check>button:hover:not(.ps-hide) {
    cursor: pointer;
}

.typeContainer {
    display: flex;
    justify-content: flex-start;
}

.legend {
    background-color: var(--dgray);
}

.arrow {
    width: 100vw;
    background-image: var(--black-arrow);
    height: 55px;
}

@media only screen and (max-width: 1200px),
only screen and (max-width: 600px) {
    :root {
        --standard-font: 18px;
    }

    body {
        overflow-x: hidden;
    }

    .info-container {
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
    }

    .career_selection {
        flex-flow: column nowrap;
    }

    #careerdropdown {
        width: 100%;
    }

    #yearlyIncome {
        margin-left: 0;
    }

    .income {
        width: 100%;
        padding-left: 0;
        justify-content: center;
        align-items: center;
    }

    .career_income_info section:not(:last-child) {
        margin-right: 15px;
    }

    .career_income_info {
        display: flex;
        flex-flow: column nowrap;
    }

    .career_income_info section {
        display: flex;
        flex-flow: column nowrap;
        align-items: flex-start;
    }

    #balance {
        padding-top: 15px;
        padding-bottom: 15px;
        width: 100%;
    }

    main {
        flex-flow: column;
    }

    #taxDeductions {
        width: 100%;
    }

    .description,
    .deductionTotal,
    .deduction-non-update,
    .deduction {
        width: 100%;
    }

    .description {
        margin-left: 10px;
    }

    #checkbook {
        width: 100%;
        border-left: none;
    }

    #checkbook-inner-container {
        width: 100%;
    }

    .checkinputs {
        display: flex;
        flex-flow: column;
        margin-bottom: 25px;
    }

    .checkinputs * {
        width: 100%;
    }

    .checkinputs *:not(:last-child) {
        margin-bottom: 10px;
    }

    .check {
        justify-content: space-between;
    }

    .typeContainer p:empty {
        display: none;
    }

    .check>div,
    .typeContainer {
        width: fit-content;
    }

    .checkAmount {
        width: 100%;
        text-align: left;
    }

    .check>p:first-child {
        margin-left: 5px;
    }

    .check>p:last-of-type {
        margin-right: 0;
    }

    .check p {
        width: fit-content;
        text-align: center;
    }

    .checkAmount:first-child,
    .checkAmount:last-child {
        border-left: none;
        border-right: none;
    }

    .check-legend {
        justify-content: space-between;
    }

    .check-legend p {
        width: 28%;
    }

    .check>button {
        padding-right: 0;
        padding-left: 0;
    }
}

@media only screen and (max-width: 1200px) {
    .check {
        flex-flow: row nowrap;
    }

    .check>button {
        padding-left: 5px;
        padding-right: 5px;
    }

    .career_income_info {
        flex-flow: row nowrap;
        width: 80%;
        justify-content: space-between;
    }

    .career_income_info section:not(:last-child) {
        margin-right: 0;
    }

    .career_selection {
        flex-flow: row nowrap;
        width: 80%;
        justify-content: space-between;
    }

    #yearlyIncome>p {
        text-align: center;
        width: fit-content;
        font-size: var(--standard-font);
    }

    #careerdropdown {
        width: 40%;
    }

    .checkinputs>select {
        background-size: 2%;
    }
}

@media only screen and (max-width: 600px) {

    .career_selection,
    .career_income_info {
        width: 90%;
    }

    .career_income_info section {
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }

    .checkinputs>select {
        background-size: 5%;
    }
}

@media only screen and (max-width: 450px) {

    .career_selection,
    .career_income_info {
        width: 99%;
    }

    .career_income_info section {
        justify-content: flex-start;
        align-items: center;
    }

    .deduction-non-update p:first-child,
    .deduction p:first-child {
        width: 180px;
        padding-left: 10px;
    }
}