:root {
     --main-color: #004080;
     --second-color: #F5F5F5;
     --text-color: #333333;
     --green: #008060;
     --gold: #FFD700;
     --size-sm: 1em;
     --size-md: 1.5em;
     --size-la: 3em;

}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: poppins;
    src: url('/fonts/Poppins-Regular.woff2') format('woff2');
 
}
@font-face {
    font-family: poppins;
    font-weight: bold;
    src: url(/fonts/Poppins-Bold.woff2) format("woff2");
 
}
  
body {
    background-color: var(--second-color);
    font-family: "Poppins", sans-serif;
    height: 100vh;
    }

p, h1, h2 {
     color: var(--text-color);
}

p {
    font-size: var(--size-sm);
}
header {
    width: 100%;
    height: 100px;
    background-color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-left: 20px;
    box-shadow: 1px 1px 10px #ffeaea;
    margin-bottom: 3px;
    border-bottom: 1px solid #ccc;
   
    
}
.logo {
    width: 50%;
    display: flex;
    align-items: center;

}
.logo span a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 600;
}

.logo img  {
    padding-right: 10px;
    width: 40%;
    height: auto;
}

nav {
    display: flex;
    width: 50%;
    justify-content: end;
    
}
nav a {
    display: flex;
    width: 30%;
    text-transform: capitalize;
    font-weight: 600;
    font-size: 1.1em;
    
    color: black;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
nav a.active {
    color: #004080;
}
.mobile {
    width: 20%;
}
.mobile img {
    width: 20%;
}
#result {
    display: block;
    width: 60%;
    background-color: var(--second-color);
    z-index: 10;
    position: relative;

}
#result p {
    padding: 10px 0px 10px 0px;
}
.posts {
    width: 70%;
    padding: 0px 0px 50px 0px;
    margin-bottom: 80px;
    margin: 0 auto;

}
.posts img {
    display: block;
    margin: 0 auto;
    width: 70%;
    height: auto;
    padding-top: 30px;

}
.posts h1 {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 30px
}

.posts h2 {
    text-align: left;
}
.posts p {
    display: block;
    
    font-size: 1.2em;
    text-align: left;
    width: 100%;
    padding-right: 0px;
    margin: 10px 0px 30px 0px;

}

.hero {
    width: 100%;
    height: auto;
    background-color: var(--main-color);
    display: block;
    text-align: center;
    margin: 0 auto;
    padding-top: 100px;
}
.hero h1 {
    display: block;
    margin: 0 auto;
    font-size: 3.5em;
    color: var(--second-color);
    width: 80%;;
}
.hero p {
    font-family: poppins;
    font-size: 1.5em;
    color: #f5f5f5;
    width: 50%;
    display: block;
    margin: 0 auto;
    padding-top: 2vh;
    padding-bottom: 8vh;
}

.formBox {
    width: 100%;
    display: flex;
    align-items: center;

}
.salary {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 60%;
    margin: 0 auto;
    border-radius: 5px;
}
.salary label {
    display: none;
}
#salary-search {
    width: 100%;
    height: 65px;
}
#salary-search::placeholder {
    text-align: left;
    padding-left: 20px;
}
.salary button {
    width: 30%;
    height: 65px;
    background-color: rgb(45, 138, 45);
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    box-shadow: 1px 1px 3px #868d9d69;
}
.salary button:hover {
    background-color:  rgb(37, 116, 37);
}

#job_title {
    width: 60%;
    height: 65px;
    border: none;
    border-radius: 5px;
    font-size: 1em;    
}


#job_title::placeholder {
    text-align: left;
    padding-left: 20px;
    font-size: 1em;
}


#industry-form {
    width: 30%;
    text-align: left;
    margin-left: 30px;

}
#industry-form label {
    text-align: left;
    padding-left: 0px;
    padding-bottom: 5px;
    margin: 0;

}
#industry {
    width: 85%;
}

#industry option {
    width: 100%;
    text-align: left;
    margin-left: 10px;
   
}

.industry-container h2 {
    padding-bottom: 30px;
    font-size: var(--size-md);
    padding-top: 50px;
    text-align: left;
    padding-left: 32px;
    margin: 0;
    padding-bottom: 30px;
}
.industry-container form select {
    width: 40%;
    height: 40px;
    margin-bottom: 40px;
    font-size: 1.2em;
    padding-left: 0px;
    border-radius: 5px;
    margin-left: 0;

}
.industry-card {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--second-color);
    width: 30%;
    border-radius: 5px;
    padding-left: 15px;
    padding-bottom: 15px;
    padding-top: 15px;
    box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
}
.industry-card h2 {
    font-size: var(--size-md);
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
}
.post-main {
    width: 85%;
    display: block;
    margin: 0 auto;
    padding-top: 50px;
}
.post-main h2 {
    margin: auto;
    text-align: center;
    font-size: var(--size-md);
    padding-bottom: 20px;
}
.post-main p {
    text-align: center;
}
.post-main-cards {
    width: 30%;
    margin-top: 50px;
    margin-right: 30px;
    display: inline-block;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 5px;
    margin-bottom: 100px;
    padding: 10px;

}
.post-main-cards a {
    text-decoration: none;
}

.post-main-cards img {
    width: 100%;
    height: auto;
    padding-bottom: 15px;
    
    
}
.post-main-cards button {
    display: block;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 70%;
    background-color: var(--green);
    color: white;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 1em;
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
}
.post-main-cards button:hover {
    background-color: #349a5e;
}
#salary-chart {
    width: 90%;
    height: 400px;
    padding-left: 30px;
    display: flex;
    align-items: center;
}
#salaryChart {
    width: 50%;
    height: auto;
}
#topJobs {
    display: none;
}
article {
    width: 80%;
    display: block;
    margin: 0 auto;
}
article #top-article {
    background-color: transparent;
    width: 80%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}
article #top-article h1 {
    display: block;
    width: 100%;
    text-align: left;
    padding-bottom: 30px;
    
}
article #top-article img {
    display: block;
    border: none;
    padding: 30px 0px;
    width: 80%;
}
article p {
    text-align: left;
    padding: 15px 0px 5px 0px;
}
article h2 {
    text-align: left;
}

footer {
    background-color: var(--text-color);
   
}
footer p {
    color: var(--second-color);
    text-align: center;
    padding-top: 50px;
}
.hide {
    display: none;
}
.hero-salaries {
    background-color: var(--main-color);
    width: 100%;
    padding-bottom: 50px;
}
.hero-salaries h1 {
    font-size: var(--size-md);
    color: white;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 30px;
}
.salaries-main {
    width: 80%;
    display: block;
    margin: auto;
    height: 100vh;
}
.salaries-main h2 {
    padding-top: 50px;
    padding-bottom: 30px;
}
.salary-box {
    display: flex;
    height: 350px;
    padding-top: 30px;
    align-items: center;
    width: 100%;
}
.salary-number {
    width: 50%;
}
.salary-box p span {
    font-size: var(--size-la);
    font-weight: 600;
    color: var(--green);
}
.salary-amount {
    width: 30%;
}
.salary-amount {
    height: 30px;
}


/* tax calculator page */

.tax-calculator {
    width: 60%;
    margin: 0 auto;
    background-color: white;
    padding-top: 50px;
    
    margin-top: 50px;
    border-radius: 5px;
    box-shadow: 1px 1px 10px #ccc;

}
.tax-calculator h1, h2, h3, h4, label, select, option, p, input, button {
    display: block;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}
.tax-calculator p {
    font-size: 1em;
    color: var(--text-color);
    width: 75%;
}
.tax-calculator input {
    width: 80%;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: var(--second-color);
    font-size: 1.1em;
}
.tax-calculator select {
    width: 80%;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1.1em;
    background-color: var(--second-color); 
}
.tax-calculator option {
    background: white;
}
.tax-calculator button {
    width: 80%;
    background-color: var(--main-color);
    color: white;
    height: 50px;
    border-radius: 5px;
    font-size: 1em;
    text-transform: uppercase;
    border: none;
    margin-top: 30px;
    margin-bottom: 30px;
}
.tax-calculator button:hover {
    background-color: var(--green);
}
.tax-calculator #chartCanvas {  
    width: 60%;
    display: block;
    margin: 50px auto;
    }
.footer-container {
    display: block;
    width: 100%;
    background-color: var(--text-color);
    height: auto;
    padding-bottom: 50px;
}
.footer-container a {
    color: white;
    margin-bottom: 10px;
    padding-top: 10px;

}
.mobile {
    display: none;
}






/*responsive*/




@media only screen and (max-width: 600px){
    
    header {
        position: relative;
    }
    
    .mobile {
        width: 15%;
        display: flex;
        top: 5px;
        right: 0;
        
    }
    .mobile img {
        width: 60%;
        display: fixed;
        top: 5px;
        right: 0;
    }

    .logo h1  {
        font-size: 1.2em;
    }
    .logo {
        width: 100%;
        
    }
    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: var(--text-color);
        padding-left: 0px;
        padding-right: 0px;
        position: absolute;
        top: 105px;
        left: 0;
        height: 100vh;
        z-index: 100;
        display: none;
        align-items: center;
        justify-content: start;
        gap: 20px;
        padding-top: 30px;
    }
    nav a {
        flex-direction: column;
        padding-top: 20px;
        text-align: center;   
        color: white;
        font-size: 1.1em;
        width: 100%;
        
        
    }
    nav a:hover{
        text-decoration: underline;
    }

    #nav.toggle {
        display: flex;
    }
    .hero {
        height: auto;
        overflow: hidden;
        
        
    }
    .hero h1 {
        font-size: 1.8em;
        padding-left: 10px;
        padding-right: 10px;
    }
    .hero p {
        width: 80%;
        padding-right: 10px;
        padding-left: 10px;
        padding-bottom: 20px;
        font-size: 1.2em;

    }
    .salary {
        width: 100%;
        display: flex;
        flex-direction: column;
        
    }
    #salary-search {
        width: 95%;
        height: 55px;
    }
    #job_title {
        width: 80%;
        background-color: white;
        display: block;
        margin: 0px auto;
        text-align: center;
        position: relative;
        height: 50px;
        border: none;
        padding-left: 10px;
        position: relative;
    }   
    
    .salary button {
        display: block;
        font-size: 1em;
        height: auto;
        width: 40%;
        height: 50px;
        border: none;
        margin-top: 20px;
        
    }
    .salaries-main {
        width: 95%;
        height: 800px;
    }
    #salaryChart {
        width: 100% !important;
        height: 320px !important;
        padding-left: 0px;
    }
    .industry-container h2 {
        display: block;
        margin: 0 auto;
        width: 100%;

    }
    #industry {
        width: 90%;

    }
    #industry-form {
        width: 95%;
    }
    .post-main-cards {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .salary-box {
        display: block;
        width: 100%;
        padding-top: 10px;
        
    }
    #salary-title {
        padding-top: 30px;
        padding-bottom: 10px;
    }
    .salary-number {
        width: 100%;
    }
    .salary-chart {
        width: 100%;
        height: auto;
        position: relative;
        
    }
    .salary-chart {
        width: 100%;
        height: auto;
    }
   
    
    .tax-calculator {
        width: 90%;
    }
    .tax-calculator p {
        width: 90%;
        padding-bottom: 10px;
    }
    .posts {
        width: 100%;
        padding: 0 20px;
    }
    .posts img {
        width: 100%;
    }
    .posts h1 {
        width: 100%;
        font-size: 1.5em;
    }
    .posts p {
        width: 100%;
    }
    .post strong {
        font-size: 1.1em;
    }
    #taxChart {
        max-width: 100%;
        height: auto !important;
    }
    
    button {
        width: 100%;
        padding: 12px;
        font-size: 18px;
    }
    article #top-article img {
        width: 100%;
        height: auto;
    }
    
    
    
}

/* @media (min-width: 375px) {
    .hero h1 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 1em;
        width: 90%;
    }
    
    .salary-chart {
        width: 90%;
        position: relative;
        height: auto;
        height: 500px;
    }
    .salary-chart canvas {
        width: 90%;
        
       
        
    }
} */





