body, input {
    font-family: Lato, sans-serif;
}

body {
    margin: 0px auto;
    background-color: #EEE;
    color: #333;
    -webkit-text-size-adjust: none;
    font-size: 16px;
}

a {
    color: #003a79;
    text-decoration: none;
}

p {
    margin-bottom: 20px;
}

input, button {
    -webkit-appearance: none;
}

input {
    padding: 9px 24px 10px;
    background-color: #FFF;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    font-size: 16px;
    box-sizing: border-box;
}

section {
    position: relative;
    width: 100%;
}

form {
    display: inline-block;
}

table {
    border-collapse:collapse;
    width: 100%;
    min-width: 400px;
}

/* HELPERS */
.clear {
    clear: both;
}

.max-div {
    position: relative;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding: 0px 30px;
    margin: 0px auto;
}

.text-center {
    text-align: center;
}

.content-block {
    padding-top: 20px;
}

.light {
    opacity: 0.5;
}

.table-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-sizing: border-box;
    padding: 0px 30px;
}

/* HEADER */
header {
    background-color: #003a79;
    padding: 30px 30px 0px;
    color: #FFF;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

a#logo {
    display: inline-block;
    position: absolute;
    font-weight: bold;
    font-size: 28px;
    top: 30px;
    left: 30px;
    color: #FFF;
}

#languages {
    position: absolute;
    top: 33px;
    right: 30px;
}

a.languages__link {
    display: inline-block;
    margin: 0px 5px;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0.6;
    font-size: 12px;
    color: #FFF;
}

.languages__link.active {
    font-weight: bold;
    background-color: #004591;
    opacity: 1;
}

.languages__link:hover {
    opacity: 1;
}

form#search-form {
    width: 100%;
}

#search-bar {
    position: relative;
    width: 100%;
    max-width: 300px;
    background-image: url('../images/search-icon.png');
    background-size: 16px;
    background-position: 19px 11px;
    background-repeat: no-repeat;
    padding-left: 45px;
}

#search-type {
    position: relative;
    margin-top: 22px;
    margin-bottom: -2px;
}

a.search-type__link {
    display: inline-block;
    margin-left: -4px;
    color: #FFF;
    padding: 12px 20px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
}

a.search-type__link.active{
    color: #003a79;
    background-color: #FFF;
    color: #003a79;
    font-weight: bold;
}

/* CONTENT */
section#content {
    padding-bottom: 20px;
    background-color: #FFF;
}

#filter {
    
}

.filter__link {
    display: inline-block;
    font-size: 14px;
    margin: 0px 0px;
    border-radius: 20px;
    width: 24px;
    height: 24px;
    text-align: center;
    padding: 2px 2px 2px;
    box-sizing: border-box;
}

.filter__link.active {
    background-color: #004591;
    color: #FFF;
}

#search-results {
    color: #666;
    padding-top: 15px;
}

/* TABLE LISTING */
table#listing {
    margin-top: 20px;
    text-align: left;
    margin-bottom: 10px;
}

table#listing thead tr {
    background-color: #EEE;
}

table#listing th, table#listing td {
    padding: 10px 14px;
}

table#listing thead th {
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
}

table#listing thead th.sortable {
    padding-right: 30px;
}

table#listing thead th.sortable:before {
    content: "";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0,0,0,0.2);
}

table#listing thead th.sorted.order1:before {
    border-top: 5px solid rgba(0,0,0,0.8);
}

table#listing thead th.sorted.order2:before {
    top: 10px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid rgba(0,0,0,0.8);
}

table#listing tbody tr {
    border-left: 1px solid rgba(0,0,0,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
}

table#listing tbody tr:nth-child(odd) {
    
}

table#listing tbody tr:nth-child(even) {
    background-color: #e8eff4;
}

table#listing tbody tr:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#results-updated {
    color: #AAA;
    padding-top: 15px;
    font-size: 14px;
}

/* FOOTER */
footer {
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 30px 30px;
    box-sizing: border-box;
    background-color: #EEE;
}


/* MOBILE STYLES */
@media (max-width: 860px) {
    a#logo {
        font-size: 20px;
        top: 20px;
        left: 20px;
    }
    
    #search-bar {
        margin-top: 40px;
    }
    
    #languages {
        top: 15px;
        right: 15px;
    }
    
    a.languages__link {
        font-size: 11px;
        margin: 0px;
        padding: 10px 14px;
    }
    
    a.search-type__link {
        font-size: 12px;
        padding: 10px 12px;
        border-radius: 40px;
        margin: 0px 5px 10px;
    }
    
    .table-wrapper {
        padding: 0px 0px;
    }
}
