@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Marcellus&family=New+Amsterdam&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Quicksand:wght@300..700&display=swap');

* {

    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {

    font-family: kanit, Geneva, Tahoma, sans-serif;
}

:root {

    --accent-color:#00bf58;
}

/* Navigation*/

#container-nav {

    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.7em;
}

#logo-h1 {

    color: rgb(0, 0, 0);

}

#logo-a {

    text-decoration: none;
}

#nav-ul {

    display: flex;
    list-style: none;
    gap: 20px;
}


.nav-a {

    text-decoration: none;
    color: rgb(0, 0, 0);
    padding-inline: 1em;
    padding-block: 0.5em;
}

.nav-a:hover {

    background-color: var(--accent-color);
    color: black;
}

/*home*/

#home {

    background-image: url(images/pexels-a-darmel-8134189.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

#home-wrapper {

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#container-home {

    display: flex;
    flex-direction: column;
    align-items: center;
}

#home-h1,#home-h1-2 {

    font-size: 3rem;
    color: white;
}

#home-h2 {

    font-size: 2rem;
    color: white;
}

#home-logo-h1 {

    font-size: 4rem;
    color: white;
}

#search-input {

    width: 50em;
    height: 3em;
    border: none;
    text-align: center;
}

#search-btn {

    color:white;
    text-decoration: none;
    padding-block: 0.5em;
    padding-inline: 1em;
    background-color: var(--accent-color);
}

#search-btn:hover {

    background-color:white;
    color:var(--accent-color);
}

form {

    display: flex;
    gap: 20px;
    align-items: center;
}

/*jobs*/

#jobs-h1 {

    text-align: center;
    margin-bottom: 1em;
    font-size: 3rem;
}

#jobs {

    margin-top: 3em;
}

.job-img {

    height: 200px;
    width: 200px;
}

.job {

    display: flex;
    gap: 20px;
    align-items: center;
    margin-inline: 5em;
}

#job-title {

    font-size: 2rem;
}

#apply {

    background-color: black;
    color: white;
    padding-inline: 2em;
    padding-block: 0.3em;
    text-decoration: none;
}

#apply:hover {

    background-color: white;
    color: black;
    border: 2px solid black;
    transition: 0.2s all linear;
}

/*categories*/

#categories {

    display: flex;
    flex-direction: column;
    align-items: center;
}

#category-h1 {

    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 3rem;
}

#cat-img {

    width: 300px;
    height: 300px;
}

#div1 {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#cat1 {

    display: flex;
    flex-direction: column;
    align-items: center;
}

#cat-name {

    font-size: 1.2rem;
    text-align: center;
}

#cat-name-a {

    text-decoration: none;
    color: black;
}

/*contact*/

#contact-h1 {

    font-size: 3rem;
    margin-top: 2em;
    margin-bottom: 1em;
    text-align: center;
}

#contact-input1 {

    width: 780px;
    height: 50px;
    text-align: center;
}

#contact-input2 {

    
    height: 200px;
    width: 780px;
    text-align: center;
}

#form-main {

    display: flex;
    justify-content: center;
}

#contact-btn {

    text-decoration: none;
    background-color: black;
    padding-inline: 5em;
    padding-block: 0.5em;
    color: white;
}

#email {

    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 1.5rem;
}

#social-links-main {

    display: flex;
    justify-content: center;
    margin-top: 3em;
}

#social-links {

    display: flex;
    gap: 60px;
    margin-bottom: 2em;
}

#detail {

    text-align: center;
    font-size: 2rem;
    margin-top: 2em;
}


/*media query for 986px*/

@media(max-width:986px) {

    #cat-img {

        width: 250px;
        height: 250px;
    }

}

/*media query for 949px*/

@media(max-width:949px) {

    #home-h1,#home-h1-2 {

        font-size: 2rem;
    }
    
    #home-h2 {
    
        font-size: 1.5rem;
    }
    
    #home-logo-h1 {
    
        font-size: 3rem;
    }
}

/*media query for 875px*/

@media(max-width:875px) {

    #cat-img {

        width: 150px;
        height: 150px;
    }
}

/*media query for 811px*/

@media(max-width:811px) {

    #contact-input1 {

        width: 480px;
        height: 50px;
        text-align: center;
    }
    
    #contact-input2 {
    
        
        height: 200px;
        width: 480px;
        text-align: center;
    }

    #search-input {

        width: 40em;
        height: 2em;
    }
    
    #search-btn {
    
        color:white;
        text-decoration: none;
        padding-block: 0.5em;
        padding-inline: 1em;
        background-color: var(--accent-color);
    }
}

/*media query for 720px*/

@media(max-width:720px) {

    .job {

        flex-direction: column;
        text-align: center;
    }

    #container-nav {

        flex-direction: column;
    }

    #logo-h1 {

        padding-bottom: 0.6em;
    }

    #social-links {

        gap: 40px;
    }

}

/*media query for 668px*/

@media(max-width:668px) {

    form {

        flex-direction: column;
    }

    #email {

        font-size: 1rem;
    }
}

/*media query for 645px*/

@media(max-width:645px) {

    #home-h1,#home-h1-2 {

        font-size: 1.5rem;
    }
    
    #home-h2 {
    
        font-size: 1rem;
    }
    
    #home-logo-h1 {
    
        font-size: 2rem;
    }

    #search-input {

        width: 30em;
        height: 2em;
    }
    
    #search-btn {
    
        color:white;
        text-decoration: none;
        padding-block: 0.2em;
        padding-inline: 1em;
        background-color: var(--accent-color);
    }

    #social-links-main {

        display: flex;
        justify-content: center;
        margin-top: 2em;
    }
    
    #social-links {
    
        display: flex;
        gap: 30px;
        margin-bottom: 2em;
    }
}

/*media query for 600px*/

@media(max-width:600px) {

    #div1 {

        flex-direction: column;
    }

    #cat-img {

        width: 250px;
        height: 250px;
    }
}

/*media query for 524px*/

@media(max-width:524px) {

    #nav-ul {

        display: flex;
        list-style: none;
        gap: 0px;
    }

    #jobs-h1,#category-h1,#contact-h1 {

        font-size: 2rem;
    }

    #job-title {

        font-size: 1.5rem;
    }
}

/*media query for 521px*/

@media(max-width:521px) {

    #contact-input1 {

        width: 280px;
        height: 50px;
        text-align: center;
    }
    
    #contact-input2 {
    
        
        height: 200px;
        width: 280px;
        text-align: center;
    }

    #contact-btn {

        padding-inline: 3em;
        padding-block: 0.5em;
    }

    #home-h1,#home-h1-2 {

        font-size: 1.2rem;
    }
    
    #home-h2 {
    
        font-size: 0.8rem;
    }
    
    #home-logo-h1 {
    
        font-size: 1.2rem;
    }

    #search-input {

        width: 20em;
        height: 2em;
    }
    
    #search-btn {
    
        color:white;
        text-decoration: none;
        padding-block: 0.2em;
        padding-inline: 0.7em;
        background-color: var(--accent-color);
    }

    #jobs-h1,#category-h1,#contact-h1 {

        font-size: 1.5rem;
    }

    #job-title {

        font-size: 1.2rem;
    }
}

/*media query for 454px*/

@media(max-width:454px) {

    #social-links {

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #email {

        font-size: 1.2rem;
    }
    #nav-ul {

        text-align: center;
    }

    #home {

        background-image: url(images/building-4884852_1280.jpg);
    }

    #home-h1,#home-h1-2,#home-logo-h1,#home-h2 {

        font-size: 1.2rem;
        color: gray;
        -webkit-text-stroke: 1px rgb(255, 255, 255);
    }

    #container-home {

        text-align: center;
    }
}

/*media query for 402px*/

@media(max-width:402px) {

    #home-h1,#home-h1-2 {

        font-size: 1rem;
    }
    
    #home-h2 {
    
        font-size: 0.8rem;
    }
    
    #home-logo-h1 {
    
        font-size: 1rem;
    }
}

/*media query for 338px*/

@media(max-width:338px) {

    .nav-a {

        font-size: 0.8rem;
    }
}