:root {
  --text-blue: #1c71bf;
  --button-blue: #11406e;
}

body,
.custom-font {
  font-family: "Barlow Condensed";
  margin: 0;
  padding: 0;
  background-color: #fff;
}

a,
a:hover {
  color: var(--text-blue);
}

.btn {
  border-radius: 0;
  transition: none;
}

.btn-default,
.btn-primary 
{
  background-color: var(--button-blue);
  border-color: var(--button-blue);
  color: white;
  box-shadow: none;
}

.btn-default:hover,
.btn-default:active,
.btn-default:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary:focus 
{
  background-color: #0d3357 !important;
  border-color: #0d3357 !important;
  color: white;
  box-shadow: none;
}

.btn-success {
  box-shadow: none;
}

.dropdown-item:active {
  background-color: var(--button-blue);
}

.category-caret {
  display:inline-block;
  width:0;
  height:0;
  margin-left:2px;
  vertical-align:middle;
  border-top:4px dashed;
  border-top:4px solid \9;
  border-right:4px solid transparent;
  border-left:4px solid transparent
}

#header-logo h1.logo {
  color: #11406e;
  font-weight: bold;
  font-size: 1.875rem;
  margin-right: 1rem;
  letter-spacing: -0.063rem;
}

#header-logo h1.logo span {
  color: #919191;
}

.account-masthead {
  background: #fff;
  border-bottom: 1px solid #efefef;
  color: black;
}

.account-masthead .account ul li {
  border-left: 1px solid #efefef;
}

.account-masthead .account ul li:last-of-type {
  border-right: 1px solid #efefef;
}

.account-masthead .account ul li a {
  color: #333;
  font-size: 16px;
  font-weight: normal;
}

.account-masthead .account ul li a:hover {
  background: #fff;
  color: #333;
}

.account-masthead .account ul li #field-lang-select {
  border: none;
  height: 31px;
}

.masthead {
  background: #fff;
  min-height: 60px;
  border-bottom: 1px solid #efefef;
  padding: 0;
}

.social .nav-item {
  width: 100%;
}

.social .nav-item > a {
  color: var(--text-blue);
  font-size: 20px;
}

/* Remove padding around dataset view on dataset detail page */
.main .primary {
  padding: 0;
}

/* We don't want word breaking on the org description on dataset page (might get fixed in the future)
https://github.com/ckan/ckan/commit/5ffb68605662fe8684923b0aee276c234aa21727#diff-a19520f39f684e3013186e5566f9207fe98615bf537fa27dcae8688ada0d3621R9594
*/
#organization-info .context-info .description {
  word-break: normal;
  word-wrap: normal;
}

.page-header .nav-tabs li a,
.page-header .nav-tabs li a:hover {
  color: var(--text-blue);
}

#ngi-copyright {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

#main-navigation-toggle > ul > li > a {
  color: var(--text-blue);
  font-size: 20px;
  background-color: white;
  border-radius: 0;
  border-bottom: 3px solid white;
}

#main-navigation-toggle > ul > li > a:hover,
#main-navigation-toggle > ul > li.active > a {
  border-bottom: 3px solid var(--text-blue);
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0);
}

.form-control#field-sitewide-search {
  background-color: #efefef;
  border: none;
  max-width: 150px;
  border-radius: 2px;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.form-control#field-sitewide-search::placeholder {
  font-size: 16px;
}

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

.site-footer .attribution p {
  color: #666;
  font-weight: bold;
}

.site-footer .lang-select .form-group {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0;
}

#lang > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control {
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.form-control:focus {
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  border-color: #58a1e6;
}

#field-account-masthead-lang-select {
  border: none;
  background-color: #fff;
  height: 31px;
}

div.main {
  background: #fff;
}

.wrapper {
  border: 1px solid #efefef;
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.media-grid {
  background: #fff;
  border: none;
}

.media-item {
  float: none;
  width: auto;
}

.media-view {
  transition: none;
}

.media-view:hover {
  box-shadow: none;
  border-color: black;
}

.badge-default,
.badge[data-format] {
  background-color: rgb(170, 170, 170);
}

#td-dataset-heading > h2 {
  margin: 0;
}

/* Fixes a styling bug in the pagination component
no box is drawn around hyphenation symbol

The code generated by ckan should be: 
<li class="page-item disabled">
  <a class="page-link" href="#">...</a>
</li>
But the classes are missing
This is a fix
*/
.pagination > li.disabled > a {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
  margin-left: -1px;
  padding: 0.375rem 0.75rem;
  position: relative;
  display: block;
  border: 1px solid #dee2e6;
}


.module-narrow .nav-item > a {
    color: #1c71bf;
}

.module-content p a:link {
  text-decoration: none;
}

.module-content p a:link:hover {
  text-decoration: underline;
}

#homepage-grid-container {
  display: grid;
  gap: 1.5rem;

  /* Default: 4x1 (mobile-first) */
  grid-template-columns: 1fr;
}


@media only screen and (min-width: 992px) {
  #homepage-grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio = 9 / 16 = 0.5625 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/**
 * Collapsible parts on custom pages
 */
.collapsible-item-title-link-text {
  font-size: 16px;
  font-weight: 700;
}

/**
 * Hamburger menu on small screen, fix 
 */
.masthead .navbar-toggler {
  border: none;
}

.masthead .navbar-toggler .fa-bars {
  color: var(--text-blue) !important;
}

.caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 2px;
	vertical-align: middle;
	border-top: 4px dashed;
	border-top: 4px solid \9;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
}

.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
  content:"";
  border-top:0;
  border-bottom:4px dashed;
  border-bottom:4px solid \9
}

/* Copied from https://github.com/belgium-its-steering-committee/ckanext-scheming/tree/MobilityDCAT/root/ckanext/scheming/fanstatic */
/*dif & js styles for doc/image upload validation error*/
table.diff {
    font-family: 'Courier New';
    border: medium;
}
.diff_header{
    background-color: #e0e0e0;
}
.td.diff_header{
    text-align: right;
}
.diff_next{
    background-color: #c0c0c0;;
}
.diff_add{
    background-color: #aaffaa;
}
.diff_chg{
    background-color: #ffff77;
}
.diff_sub{
    background-color: #ffaaaa;
}

/*js scheming-doc_upload css*/
.js .scheming-doc_upload #field-doc-url {
padding-right: 90px;
}
.js .scheming-doc_upload #field-doc-upload {
cursor: pointer;
position: absolute;
z-index: 1;
filter: alpha(opacity=0);
opacity: 0;
}
.js .scheming-doc_upload .controls {
position: relative;
}
.js .scheming-doc_upload .btn {
position: relative;
top: 0;
margin-right: 10px;
}
.js .scheming-doc_upload .btn.hover {
color: #333333;
text-decoration: none;
background-position: 0 -15px;
-webkit-transition: background-position 0.1s linear;
-o-transition: background-position 0.1s linear;
transition: background-position 0.1s linear;
}
.js .scheming-doc_upload .btn-remove-url {
position: absolute;
margin-right: 0;
top: 6px;
right: 5px;
padding: 0 12px;
border-radius: 100px;
}

.js .scheming-doc_upload .btn-remove-url .icon-remove {
margin-right: 0;
}

.js .scheming-doc_upload .error-inline {
    margin-top: 5px;
    margin-left: 2px;
    font-weight: bold;
}

/* Copied from https://github.com/belgium-its-steering-committee/ckanext-scheming/tree/MobilityDCAT/root/ckanext/scheming/fanstatic */
.js .scheming-organisation_upload_logo #field-logo-file{
    border-color: blue;
}

.js .scheming-organisation_upload_logo #field-logo-upload{
    border-color: red;
}

.js .scheming-organisation_upload_logo #field-logo-file{
    padding-right:90px;
}

.js .scheming-organisation_upload_logo #field-logo-upload {
    cursor: pointer;
    position: absolute;
    z-index: 1;
    filter: alpha(opacity=0);
    opacity: 0;
}

.js .scheming-organisation_upload_logo .controls {
    position: relative;
}

.js .scheming-organisation_upload_logo .btn {
    position: relative;
    top: 0;
    margin-right: 10px;
    }

.js .scheming-organisation_upload_logo .btn.hover {
    color: #333333;
    text-decoration: none;
    background-position: 0 -15px;
    -webkit-transition: background-position 0.1s linear;
    -o-transition: background-position 0.1s linear;
    transition: background-position 0.1s linear;
}

.js .scheming-organisation_upload_logo .btn-remove-url {
    position: absolute;
    margin-right: 0;
    top: 6px;
    right: 5px;
    padding: 0 12px;
    border-radius: 100px;
}

.js .scheming-organisation_upload_logo .btn-remove-url .icon-remove {
    margin-right: 0;
    }
    
.js .scheming-organisation_upload_logo .error-inline {
    margin-top: 5px;
    margin-left: 2px;
    font-weight: bold;
}
/* Copied from https://github.com/belgium-its-steering-committee/ckanext-scheming/tree/MobilityDCAT/root/ckanext/scheming/fanstatic */
.js .scheming-proxy_upload #field-proxy-url{
    border-color: blue;
}

.js .scheming-proxy_upload #field-proxy-upload{
    border-color: red;
}

.js .scheming-proxy_upload #field-proxy-url{
    padding-right:90px;
}

.js .scheming-proxy_upload #field-proxy-upload {
    cursor: pointer;
    position: absolute;
    z-index: 1;
    filter: alpha(opacity=0);
    opacity: 0;
}

.js .scheming-proxy_upload .controls {
    position: relative;
}

.js .scheming-proxy_upload .btn {
    position: relative;
    top: 0;
    margin-right: 10px;
    }

.js .scheming-proxy_upload .btn.hover {
    color: #333333;
    text-decoration: none;
    background-position: 0 -15px;
    -webkit-transition: background-position 0.1s linear;
    -o-transition: background-position 0.1s linear;
    transition: background-position 0.1s linear;
}

.js .scheming-proxy_upload .btn-remove-url {
    position: absolute;
    margin-right: 0;
    top: 6px;
    right: 5px;
    padding: 0 12px;
    border-radius: 100px;
}

.js .scheming-proxy_upload .btn-remove-url .icon-remove {
    margin-right: 0;
    }
    
.js .scheming-proxy_upload .error-inline {
    margin-top: 5px;
    margin-left: 2px;
    font-weight: bold;
}
/* Youtube consent prompt */
.youtube-consent-prompt {
  padding: 12px 16px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 8px;
}

.youtube-consent-prompt:hover {
  background: #eee;
}

iframe.hidden {
  display: none;
}
#overlay-cookies {
  position: fixed; /* Sit on top of the page content */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.8); /* Black background with opacity */
  z-index: 100; /* Specify a stack order in case you're using a different order for other elements */
  display: none; /* initially hidden only visible when no cookies are found in js */
  justify-content: center;
  align-items: center;
}
#overlay-cookies-content {
  display: flex;
  width: 50%;
  background: #DDD;
  border: 2px solid #666;
  padding: 16px;
}
div#wrapper-cookies-2>div:nth-child(n+2) {
  margin-top: 10px;
}

#wrapper-cookies-2 .category-item-nav label {
  margin-right: 10px;
  font-weight: normal;
}

#wrapper-cookies-2 .category-item-nav label:after {
  display: none;
}

.clickable {
  cursor: pointer;
}
.clickable:hover {
  text-decoration: underline;
}
.class, .category-item-nav:hover {
  background-color: #ccc;
}
.category-item-description {
  display: none;
  overflow: hidden;
}
.accept-all {
  font-size: 18px;
  background-color: #11406e;
  color: white;
  padding: 0 5px;
}
.w50 {
  font-size: 18px;
  width: 50%;
  float: left;
  margin-bottom:5px;
}
cookie-table tr {
  border: 1px gray solid;
}
cookie-table thead tr {
  background-color: #11406e;
  color: white;
}
cookie-table th {
  padding: 5px;
}
cookie-table td {
  padding: 5px;
}
cookie-table tbody td {
  vertical-align: top;
}