/* Jobcafe - Combined Production CSS */
:root {
    --font-color: #0d1b2a;
    --muted: #161616;
    --bg-color: #f5f3f3;
    --primary: #004e89;
    --secondary: #81b29a;
    --accent: #1b263b;
    --error: orangered
}

* {
    box-sizing: border-box;
    margin: 0
}

html,
body {
    font-family: Roboto, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: var(--bg-color);
    color: var(--font-color);
    font-size: 18px;
    line-height: 1.6;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    scrollbar-width: thin;
    overflow: auto
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto
}

header,
footer,
main {
    width: 100%;
    padding: 1em
}

header,
footer {
    flex: 1
}

main {
    flex: 10
}

a {
    text-decoration: none
}

ul {
    list-style: none;
    padding: 0;
    margin: 0
}

ul li {
    margin-bottom: .5rem
}

ul a {
    color: var(--font-color)
}

h1 {
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 200;
    margin: 2rem auto
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-height: 90px;
    box-shadow: 0 2px 6px var(--muted)
}

header a {
    color: var(--primary);
    font-weight: 600
}

header a.active {
    color: var(--muted)
}

.logo {
    padding: 1em
}

.logo a {
    color: var(--font-color)
}

.menu-toggle {
    display: none
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 1em;
    position: absolute;
    right: 1em;
    top: 1em
}

.bar {
    width: 30px;
    height: 4px;
    margin: 6px 0;
    transition: .3s;
    background-color: var(--font-color)
}

.menu {
    display: none;
    padding: 1em 1em 1em 3em;
    margin: 1em auto;
    position: fixed;
    right: 0;
    top: 4em;
    width: 100%;
    height: min-content;
    box-shadow: -2px 0 5px rgba(0, 0, 0, .2);
    z-index: 1000;
    background: var(--bg-color)
}

.menu hr {
    border: none;
    border-top: 2px solid var(--font-color)
}

.menu a {
    display: block;
    padding: 1em
}

.menu a:hover {
    background: var(--muted);
    color: var(--bg-color)
}

#menu-checkbox:checked+.hamburger .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 6px)
}

#menu-checkbox:checked+.hamburger .bar:nth-child(2) {
    opacity: 0
}

#menu-checkbox:checked+.hamburger .bar:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -6px)
}

#menu-checkbox:checked~.menu {
    display: block
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: var(--bg-color);
    opacity: .8
}

#menu-checkbox:checked~.overlay {
    display: block
}

.card-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .4rem;
    padding: .3em;
    overflow-y: auto;
    scrollbar-width: thin
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: .5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer
}

.selected {
    background: #fff
}

.card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, .2)
}

.card p {
    margin-top: .5rem;
    font-size: 1rem;
    color: var(--muted)
}

.card a {
    margin-top: 1rem;
    font-size: 1rem;
    color: #007bff;
    text-decoration: none
}

.card a:hover {
    color: #0056b3
}

.details-container {
    padding: .3em;
    overflow-y: auto;
    scrollbar-width: thin;
    right: 0;
    width: 100%;
    position: relative
}

.details-container h2 {
    margin: 1em 0
}

.details-container article {
    padding-bottom: 2em
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: 0 0;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: gold;
    z-index: 10;
    transition: transform .2s
}

.favorite-btn:hover {
    transform: scale(1.2)
}

.details-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    font-weight: 700;
    height: 5.2rem
}

.details-logo img,
.details-logo-placeholder {
    width: 128px;
    height: auto;
    max-height: 5rem;
    max-width: 140px;
    aspect-ratio: auto;
    border-radius: .2em
}

.krav {
    padding: .6rem;
    border: 1px solid var(--font-color);
    border-radius: .2em;
    margin-bottom: 1rem
}

.krav h3 {
    padding-bottom: 1rem
}

.krav-item {
    line-height: 1;
    padding-left: 1rem
}

.ads {
    width: 100%;
    max-height: calc(100vh - 175px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: .8em;
    padding-top: .8em;
    position: relative;
    border-top: 1px solid var(--muted)
}

header {
    height: 70px;
    max-height: 80px
}

footer {
    display: none
}

.form-group {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
    gap: .4em;
    padding: .4em;
    margin: 0 auto
}

.form-input {
    padding: .5rem;
    border-radius: 3px;
    border-color: var(--bg-color);
    width: 44%;
    font-size: 1rem
}

.form-input:focus {
    border-color: var(--secondary)
}

.search-button {
    padding: 12px 20px;
    background-color: var(--primary);
    color: var(--bg-color);
    border: 3px solid var(--primary);
    font-weight: 700;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer
}

.search-button:hover {
    border-color: var(--font-color)
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 240px;
    width: 100%
}

.loading p {
    font-size: 1.4rem;
    color: var(--font-color);
    border: 1px solid var(--muted);
    border-radius: 5px;
    padding: 2rem;
    margin: 0
}

input:invalid {
    border: 1px solid var(--error)
}

input:valid {
    border: 1px solid var(--accent)
}

.skeleton {
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite ease-in-out;
    border-radius: 4px
}

@keyframes pulse {

    0%,
    100% {
        background-color: #e0e0e0
    }

    50% {
        background-color: #f0f0f0
    }
}

.loading-details,
.details {
    height: 100%;
    width: 100%
}

.loading-card {
    height: 150px
}

.loading-card,
.loading-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05)
}

.loading-line {
    height: 18px
}

@media(max-width:599px) {
    .card-container {
        width: 100%
    }

    .details-container {
        display: none
    }

    .display-over {
        display: flex;
        width: 100%;
        z-index: 999
    }

    .search-form,
    .form-group {
        padding: 0;
        margin: 0;
        border: none
    }
}

@media(min-width:600px) {
    .details-container {
        display: flex;
        z-index: 1;
        left: 0
    }
}

@media(min-width:600px) and (max-width:699px) {
    .card-container {
        min-width: 280px;
        max-width: 49%
    }
}

@media(min-width:700px) {
    .card-container {
        min-width: 340px;
        max-width: 400px
    }
}

@media(max-width:768px) {
    .hamburger {
        display: inline-block
    }

    .menu a {
        text-align: center
    }
}

@media(min-width:769px) {
    .menu {
        display: flex;
        position: static;
        width: auto;
        box-shadow: none;
        background-color: transparent;
        padding: 0
    }
}