/* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 */
@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat-VariableFont_wght.ttf");
    font-display: swap;
}

:root {
    --main-color: #396D54;
    --text-color: #333333;
    --off-white-color: #F7F7F7;

    --page-max-width: 130rem;
    --header-max-width: 100rem;
    --section-max-width: 80rem;
    --page--horizontal-padding: 10rem;
    --page--vertical-padding: 1rem;
    --standard-section-margin: 7rem;
}

/* @media only screen and (max-width: 1500px) {
    :root {
        --section-max-width: 70rem;
    }
} */

@media only screen and (max-width: 1325px) {
    :root {
        --page--horizontal-padding: 5rem;
        --standard-section-margin: 5rem;
    }
}

@media only screen and (max-width: 800px) {
    :root {
        --page--horizontal-padding: 2.5rem;
    }
}

@media only screen and (max-width: 450px) {
    :root {
        --page--horizontal-padding: 2rem;
    }
}

* {
    margin: 0;
    padding: 0;
}

button {
    border: none;
}

html {
    background-color: var(--off-white-color);
    font-size: 16px;
    font-family: "Montserrat", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", 
  Helvetica, Arial, "Lucida Grande", sans-serif;
    margin: 0 auto;
}

body {
    max-width: var(--page-max-width);
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6, p {
    color: var(--text-color);
}

h1 {
    font-size: 5.375rem;
    font-weight: 900;
}

h2 {
    font-size: 2.375rem;
    font-weight: 900;
}

h3 {
    font-size: 1.75rem;
    font-weight: 900;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 200;
}

p, a, li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

button {
    font-size: 0.75rem;
    font-weight: 400;
}

main {
    margin: 3rem var(--page--horizontal-padding) 5rem var(--page--horizontal-padding);
    min-height: 44vw;
}

main > div {
    max-width: var(--section-max-width);
    margin: var(--standard-section-margin) auto;
}

main > div:last-child {
    margin: 3rem auto;
}

span {
    color: var(--main-color);
}

/* nav */

nav {
    margin: 2rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 1000;
}

nav li {
    list-style-type: none;
}

#menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}

#menu > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

#menu > ul a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
}

#menu > ul > li:nth-child(1) > a {
    color: var(--main-color);
    background-color: transparent;
    border: 0.1rem solid var(--main-color);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
}

#menu > ul > li:nth-child(1) > a:hover {
    background-color: var(--main-color);
    color: var(--off-white-color);
}

#menu > ul a:hover {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

#languageToggle {
    position: relative;
    display: flex;
    flex-direction: row;
    border: 0.1rem solid var(--main-color);
    border-radius: 0.75rem;
}

#languageSlider {
    background-color: var(--main-color);
    width: 1rem;
    height: 1rem;
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    border-radius: 0.6rem;
}

#languageToggle a {
    margin: 0;
    padding: 0.2rem 0.5rem;
    display: flex;
    height: 2rem;
    width: 2rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

#languageToggle a:nth-child(1) {
    color: var(--text-color);
}

#languageToggle a:nth-child(2) {
    color: var(--off-white-color);
}

nav > a:first-child > img:first-child {
    height: 3.5rem;
    width: 2.755375rem;
}

#menuButton {
    display: none;
    padding: 1rem;
    background-color: unset;
}

#menuButton img {
    width: 1.875rem;
    height: 1.125rem;
}

#closeButton {
    display: none;
}

@media only screen and (max-width: 900px) {
    nav {
        margin: 1.5rem;
    }

    #menuButton {
        display: unset;
    }

    #menu {
        display: none;
    }
}

@media only screen and (max-width: 900px) {
    /* body {
        overflow: hidden;
    } */

    .mobileMenu > a:first-child > img {
        display: none;
    }
    .mobileMenu {
        position: fixed;
        margin: 0;
        padding: 0;
        top: 0;
        left: 0;
        height: 100%;
        background-color: var(--off-white-color);
        align-items: unset;
    }

    .mobileMenu #menuButton {
        display: none;
    }

    .mobileMenu #closeButton {
        display: unset;
        background-color: transparent;
        justify-self: flex-end;
        padding: 2rem;
    }

    .mobileMenu #closeButton img {
        width: 1.3rem;
        height: 1.3rem;
    }

    .mobileMenu #menu {
        display: grid;
        grid-template-rows: auto 1fr 1fr;
        gap: 0;
    }

    .mobileMenu #menu > ul a {
        color: var(--text-color);
    }

    .mobileMenu #menu > ul > li:nth-child(1) > a {
        margin: 0;
        padding: 0.5rem;
        color: var(--text-color);
        border: none;
    }

    .mobileMenu #menu > ul > li:nth-child(1) > a:hover {
        text-decoration: underline;
        text-underline-offset: 0.5rem;
        background-color: unset;
    }

    .mobileMenu #menu {
        flex-direction: column;
        justify-content: space-between;
    }

    .mobileMenu #menu > ul {
        flex-direction: column;
        align-items:flex-start;
        width: 100vw;
        align-self: flex-start;
        margin-top: 1rem;
    }

    .mobileMenu #menu li {
        margin-left: 2rem;
    }

    .mobileMenu #menu > ul a {
        font-size: 1.75rem;
        font-weight: 900;
    }

    .mobileMenu #languageToggle {
        border: 0.1rem solid var(--main-color);
        width: 6rem;
        justify-self: center;
        align-self: flex-end;
        margin-bottom: 2rem;
    }

    .mobileMenu #languageToggle a:nth-child(1) {
        color: var(--main-color);
    }

    .mobileMenu #languageToggle a:nth-child(2) {
        color: var(--off-white-color);
        z-index: 2;
    }

    .mobileMenu #languageSlider {
        background-color: var(--main-color);
        z-index: 1;
    }
}

/* nav */
/* vacancies */

#vacancies {
    margin-top: 8rem;
    display: flex;
    gap: 5rem;
}

#criteriaSelector {
    height: fit-content;
    width: auto;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    box-shadow: 1rem 1rem 1rem rgb(0 0 0 / 15%);
    gap: 2rem;
}

#criteriaSelector h1 {
    font-size: 2rem;
}

#criteriaSelector h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

input[type="checkbox"] {
    box-sizing: border-box;
    width: 0.7rem;
    height: 0.7rem;
    padding: 0;
    margin-top: 1rem;
    margin-left: 1rem;
    border-radius: 0.1rem;
    appearance: none;
    background-color: #d9d9d9;
    outline: none;
}

input[type="checkbox"]:checked {
    background-color: var(--main-color);
}

@media (hover: hover) {
    input[type="checkbox"]:hover {
      background-color: #9CC7B2;
      cursor: pointer;
    }

    input[type="checkbox"]:checked:hover {
        background-color: #9CC7B2;
        cursor: pointer;
    }

    label:hover {
        cursor: pointer;
    }
}

label {
    font-size: 1rem;
    font-weight: 300;
}

#vacanciesList {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 3rem;
}

#vacanciesList > p {
    text-align: center;
}

#vacancies > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.vacancy {
    min-height: 5rem;
    width: calc(100% - 5rem);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: white;
    box-shadow: 1rem 1rem 1rem rgb(0 0 0 / 15%);
    padding: 2rem;
    align-items: center;
    border-radius: 1rem;
    gap: 1rem;
}

.vacancy h1 {
    font-size: 2rem;
}


.vacancy > div:first-child {
    flex-basis: 0;
}

.vacancy > div:last-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.vacancy > div:last-child > p {
    text-align: right;
}

.vacancy a {
    text-decoration: none;
    color: white;
    background-color: var(--main-color);
    border: 0.1rem solid var(--main-color);
    border-radius: 4rem;
    padding: 0.5rem 1.5rem;
}

.vacancy a:hover {
    color: var(--main-color);
    background-color: transparent;
}

@media only screen and (max-width: 1600px) {
    #vacancies {
        margin-top: 5rem;
    }
}

@media only screen and (max-width: 1100px) {
    #vacancies {
        gap: 3.5rem;
    }
}

@media only screen and (max-width: 1030px) {
    #criteriaSelector {
        display: none;
    }

    #vacancies {
        flex-direction: column;
        align-items: center;
        margin-top: 3rem;
    }

    .vacancy {
        width: auto;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .vacancy > div:first-child {
        flex-basis: none;
    }

    .vacancy h1 {
        text-align: center;
        font-size: 1.5rem;
    }

    .vacancy >div:first-child > p {
        text-align: center;
    }
}

@media only screen and (max-width: 50px) {
    #vacancies {
        flex-direction: column;
    }
}

/* vacancies */
/* footer */

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: var(--text-color) 0.05rem solid;
    padding: 1rem 0;
    margin: 1rem var(--page--horizontal-padding);
}

footer > div:first-child, footer > div:last-child {
    display: flex;
    flex-direction: row;
    margin: 0;
    align-items: center;
}

footer > div > * {
    margin: 0 0.5rem;
}

footer > div:first-child > img {
    height: 3.15rem;
    width: 2.5rem;
}

footer > div:last-child > a {
    height: 2rem;
    width: 2rem;
    background-color: var(--main-color);
    padding: 0.25rem;
    border-radius: 50%;
    cursor: pointer;
}

footer > div:last-child > img {
    margin: auto;
}

@media only screen and (max-width: 800px) {
    footer {
        margin: 0 1rem;
        flex-direction: column;
        align-items: center;
    }

    footer > div:first-child {
        margin: 0;
    }

    footer > div:last-child {
        margin: 1rem 0 0 0;
    }
}


/* footer */