/**
 * Overwrite semantic css html height.
 * Important: DO NOT REMOVE THIS, IS USED FOR iFrameResizer.
 */
html {
    height: inherit;
}

/**
 * Header.
 */
#header {
    border-bottom: 2px solid #5a5a5a;
    padding-bottom: 8px;
    overflow: hidden;
    clear: both;
}

#header h1 {
    margin-top: 0;
}

@media screen and (min-width: 768px) {
    #header h1 {
        float: left;
    }
}

#header .buttons {
    float: right;
    position: relative;
    top: 6px;
}

@media screen and (max-width: 767px) {
    #header .buttons {
        float: none;
        position: initial;
        top: 0;
        margin-bottom: 20px;
    }
}

#header .button i.icons,
#filter .button i.icons {
    font-size: 30px;
    position: absolute;
    top: 2px;
    right: 5px;
    z-index: 999;
}

#header .button,
#form-wrapper .button {
    padding: .3em 50px .3em .7em;
}

/**
 * Form wrapper.
 */
#form-wrapper {
    border-bottom: 2px solid #5a5a5a;
    padding-bottom: 30px;
    margin-bottom: 50px;
}

#form-wrapper .filter {
    margin-top: 32px;
    margin-right: 6px;
    display: inline-block;
}

@media screen and (max-width: 991px) {
    #form-wrapper .filter {
        display: block;
        margin-right: 0;
    }
}

#form-wrapper .filter:last-child {
    margin-right: 0;
}

#submit-button {
    margin-top: 70px;
    margin-bottom: 10px;
}

@media screen and (max-width: 991px) {
    #submit-button {
        margin-top: 0;
    }
}

/**
 * Search.
 */
#search {
    position: relative;
    margin-top: 30px;
}

#search input {
    border: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border-bottom: 1px solid #999;
}

#search i.icons {
    position: absolute;
    top: 10px;
    right: 4px;
    font-size: 24px;
}

/**
 * Jobs.
 */
#jobs {
    display: flex;
    flex-flow: row wrap;
    align-content: stretch;
    justify-content: stretch;
    align-items: stretch;
    margin: 0 -2.5%;
}

#jobs a.job {
    position: relative;
    display: inline-block;
    height: 220px;
    overflow: hidden;
    width: 45%;
    margin: 0 auto 50px;
    padding: 20px;
    border: 1px solid #efefef;
    border-top: 25px solid #00738a;
    color: #5a5a5a;
}

#jobs a.job .place-of-work {
    font-family: "Rokkitt", sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

#jobs a.job .overlay {
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, #fff 70%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(70%, #fff)); /* Chrome, Safari4+ */
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, #fff 70%); /* Chrome10+, Safari5.1+ */
    background: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0%, #fff 70%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(255, 255, 255, 0) 0%, #fff 70%); /* IE10+ */
    background: linear-gradient(rgba(255, 255, 255, 0) 0, #fff 70%);
    width: calc(100% + 40px);
    height: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
}

@media screen and (max-width: 767px) {
    #jobs a.job {
        width: 100%;
    }

    #jobs a.job .overlay {
        width: 100%;
    }
}

#jobs a.job:hover {
    background: #ededed;
}

#jobs a.job h3.title {
    font-family: 'Rokkitt', sans-serif;
    font-weight: bold !important;
    color: #00738a !important;
    font-size: 1.8em;
}

#jobs #no-results {
    padding: 0 20px;
}

/**
 * Pagination.
 */
#pagination {
    float: right;
    clear: both;
}

#pagination a.button {
    display: inline-block;
    overflow: hidden;
    height: 34px;
}

#pagination #button-back,
#pagination #button-forward {
    position: relative;
    width: 34px;
    text-align: center;
}

#pagination .button i.icons {
    font-size: 30px;
    position: absolute;
    top: 2px;
    left: 3px;
    z-index: 999;
}
