/* --- */
/* FONTS */
@font-face {
  font-family: "Metropolis";
  src: url("fonts/metropolis/metropolis-light.otf");
  font-weight: 300;
}

@font-face {
  font-family: "Metropolis";
  src: url("fonts/metropolis/metropolis-regular.otf");
}

@font-face {
  font-family: "Metropolis";
  src: url("fonts/metropolis/metropolis-medium.otf");
  font-weight: 500;
}

@font-face {
  font-family: "Metropolis";
  src: url("fonts/metropolis/metropolis-semibold.otf");
  font-weight: 600;
}

@font-face {
  font-family: "Metropolis";
  src: url("fonts/metropolis/metropolis-bold.otf");
  font-weight: bold;
}

.font-metropolis {
  font-family: "Metropolis", sans-serif;
}


body {
  font-family: "Metropolis", sans-serif;
  font-size:20px;
}

h1,
h2,
h3,
h4 {
  color: #132856;
  font-family: "Metropolis", sans-serif;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 32px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 968px) {
  h1 {
    font-size: 45px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }
}


@media (max-width: 576px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }
}


/* --- */
/* MARGIN AND PADDING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Metropolis", sans-serif;
}

section.content {
  padding: 1rem 13rem;
  font-family: "Metropolis", sans-serif;
} 

section.content li {
  list-style: none; /* Remove default bullet points */
  position: relative; /* Ensure the pseudo-element is positioned relative to the list item */
  padding-left: 30px;
}

section.content li::before {
  content: '';
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBkPSJNNDM4LjYgMjMzLjRsLTE3Ni0xNzZDMjU0LjIgNTIuMyAyNDUuMSA0OCAyMzUuNSA0OGMtOS42IDAtMTguNyA0LjMtMjQuNiAxMi0xMS41IDEzLjYtOS42IDMzLjcgNC4xIDQ1LjNMMzIyLjcgMjA4SDI0Yy0xMy4zIDAtMjQgMTAuNy0yNCAyM3Y0OGMwIDEzLjMgMTAuNyAyNCAyNCAyNGgyOTguN2wtMTA3LjcgMTAyLjdjLTEzLjcgMTMuMS0xNS42IDMzLjItNC4xIDQ1LjMgMTEuNSAxMy42IDMxLjYgMTUuNSA0NS4zIDQuMWwxNzYtMTc2YzQuOS00LjcgNy43LTExIDcuNy0xNy42cy0yLjgtMTIuOS03LjctMTcuNnoiLz48L3N2Zz4=');
  background-size: 0.8em 0.8em; /* Adjust the size of the icon */
  background-repeat: no-repeat;
  display: inline-block;
  width: 1em; /* Adjust the width of the icon */
  height: 1em; /* Adjust the height of the icon */
  position: absolute;
  left: -5px; /* Adjust the position of the icon */
  top: 7px;
}


/* --- */
/* HEADER AND FOOTER */
.eiti-logo-img {
  max-height: 40px;
  min-height: 18px;
  min-width: 48px;
  width: auto;
  height: auto;
  max-width: 149px;
}

.eiti-logo-img-footer {
  margin: 0 1em 1em 0;
}

header,
footer {
  background: #132856 !important;
  color: #ffffff;
  width: 100%;
  padding: 2rem 14rem !important;
}

footer {
  bottom: 0px;
  font-size: 0.9rem;
}

.eiti-footer {
  display: flex;
  justify-content: space-between;
  align-items: top;
  padding-top: 2em;
}

.eiti-footer-left-part div {
  padding-top: 50px;
}

.eiti-footer-right-part {
  flex: 1;
  justify-self: flex-end;
}

.footerRightNav {
  display: flex;
  justify-content: end;
  gap: 1.5em;
}

.footerRightNav a {
  text-decoration: none;
}

.license-source {
  display: flex;
  justify-content: end;
  gap: 1.5em;
  padding-top: 50px;
}

.license-source a{
  text-decoration: none;
}

@media (max-width: 996px) {

  .footerRightNav {
    display: flex;
    justify-content: end;
    align-items: end;
    flex-direction: column;
    gap: 0.1em;
    margin-right: 1.5em;
    /* Stack navigation links vertically */
  }

  .footerRightNav a:link {
    text-align: left;
    padding-bottom: 1em;
  }
}

/* --- */
/* NAVBAR */
.main-nav {
  display: flex;
  justify-content: space-between;
  /* flex-direction: row; */
  /* align-items: center; */
  /* padding: 0 20px; */
}

.nav-logo-container {
  display: flex ;
  align-items: center;
  width: 100%;
  /* justify-content: space-between; */
}

.eiti-logo {
  width: 109px;
  height: 40px;
  background: url('/static/img/eiti-logo-negative-no-xy-margin.png') no-repeat center center;
  background-size: contain;
}

.nav-links-container {
  display: flex;
  /* justify-content: flex-end; */
  gap: 1.5em;
}

.nav-link-a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight:600;
}

.nav-link-a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #F6A70A;
  text-underline-offset: 10px;
}

.dropdown {
  display: none;
  font-size: 2em;
  color: white;
  cursor: pointer;
}



.nav-menu.active {
  display: flex;
}

.nav-logo-container .dropdown {
  position: absolute;
  top: 1.5em;
  right: 2em;
}

.close-menu {
  display: none;
  font-size: 2em;
  color: white;
  position: absolute;
  top: 1.5em;
  right: 2em;
  cursor: pointer;
}

@media (max-width: 996px) {
  .nav-links-container {
    display: none;
    flex-direction: column;
    text-align: left;
    width: 100%;
    /* width: 100%; */
  }

  .nav-links-container.active {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 34, 85, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
  }
  
  .dropdown {
    display: block;
    position: fixed;
    top: 40px;
    right: 40px;
  }
  .close-menu {
    display: block;
  }

  .nav-logo-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link-a {
    padding: 0.5em;
    text-align: center;
    margin-left: 0;
    /* Reset margin for mobile view */
  }
}

  /* .ddmain-menu {
    display: flex;
  } */

/* .ddmain-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  align-items: end;
} */

/* .ddmain-caret {
  width: 0;
  height: 0;
  border-left: 0.65em solid transparent;
  border-right: 0.65em solid transparent;
  border-top: 1.1em solid #F6A70A;
  margin-top: 0.5em;
} */

/* Breadcrumb Styles */
/* .crumbs {
  margin-top: 10px;
}

.crumbs a {
  color: #fff;
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
} */




/* --- */
/* DS UI */
/* EXPLORE BUTTON */
.explore-button {
  display: inline-block;
  padding: 10px 40px;
  background-color: #132856;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 5px;
  margin: 20px 0px;
  transition: color 0.3s ease;
}

.explore-button:hover {
  background-color: #F6A70A !important;
}

.explore-button:active {
  color: #cccccc;
}

/* TABLE PAGES */
.wrapped-sql {
  display: none;
}

#datasette-write-ui-insert-button {
  display: none;
}

/* Remove line before page header */
.page-header {
  margin-left: 0;
  border: 0;
  padding-left: 0;
}

/* TABLES */
/* Border style for table */
table,
td {
  border: 0.5px solid #dddddd;
  /* Add a 1px solid border with a light gray color */
}

/* Style for odd rows */
tr:nth-child(odd) {
  background-color: #f8fafb;
  /* Light gray background */
}

/* Style for even rows */
tr:nth-child(even) {
  background-color: #ffffff;
  /* White background */
}

td,
th {
  font-family: "Metropolis", sans-serif;
  font-size: 0.9em;
  padding: 0.8em 1em;
}

th {
  background-color: #132856;
  border: none;
  font-weight: 700;
  color: white;
}

th a:link {
  color: white;
}

th a {
  color: white;
}

/* GRID AND CARD VIEWS */
.db-table-card {
  position: relative;
  background: linear-gradient(180deg, #132856, #15517F);
  border-radius: 8px;
  padding: 16px 16px 20px 16px;
  margin-bottom: 16px;
  aspect-ratio: 2;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.db-table-card::after {
  content: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNyAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMjI1IDEuNzEyNUw4LjA1IDAuODg3NDk5QzguNDI1IDAuNTQ5OTk5IDguOTg3NSAwLjU0OTk5OSA5LjMyNSAwLjg4NzQ5OUwxNi42Mzc1IDguMTYyNUMxNi45NzUgOC41Mzc1IDE2Ljk3NSA5LjEgMTYuNjM3NSA5LjQzNzVMOS4zMjUgMTYuNzVDOC45ODc1IDE3LjA4NzUgOC40MjUgMTcuMDg3NSA4LjA1IDE2Ljc1TDcuMjI1IDE1LjkyNUM2Ljg4NzUgMTUuNTUgNi44ODc1IDE0Ljk4NzUgNy4yMjUgMTQuNjEyNUwxMS43NjI1IDEwLjNIMC45OTk5OTlDMC40NzQ5OTkgMTAuMyAwLjA5OTk5OTQgOS45MjUgMC4wOTk5OTk0IDkuNFY4LjJDMC4wOTk5OTk0IDcuNzEyNSAwLjQ3NDk5OSA3LjMgMC45OTk5OTkgNy4zSDExLjc2MjVMNy4yMjUgMy4wMjVDNi44ODc1IDIuNjUgNi44NSAyLjA4NzUgNy4yMjUgMS43MTI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==');
  position: absolute;
  bottom: 16px; /* Adjust as needed */
  right: 30px; /* Adjust as needed */
  transform: scale(1.2); /* Scale to twice the size and mirror on the x-axis */
}

.db-table-card:hover {
  background: linear-gradient(180deg, #132856 20%, #15517F 70%);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1em 0 0 1em
}

.lock-icon {
  font-size: 1.2em;
  /* Adjust size as needed */
}

.card-body {
  color: #ffffff;
  /* White text color */
}

.table-description {
  font-size: 14px;
  /* Smaller font size */
  margin-top: 8px;
  /* Top margin */
}


.db-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 20px;
}

.db-table-grid a {
  text-decoration: none;
  color: #ffffff;
}

#views {
  padding-top: 2em;  
}

#views + .db-table-grid .card-header a {
  padding-top: 3em;
}

#tables {
  padding-top: 2em;  
}

#tables + .db-table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 10px;
}

#tables + .db-table-grid .db-table-card {
  aspect-ratio: 2/3;
}

/* Specific styles for general database cards */
#tables + .db-table-grid .db-table-card {
  background: url('/static/img/card-bg.png'), rgba(10, 10, 10, 0.5); 
  background-size: 200% 200%,cover; /* Adjust based on the number of cards */
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

#tables + .db-table-grid .db-table-card:nth-child(1) {
  background-position:  0% 0%, center;
}

#tables + .db-table-grid .db-table-card:nth-child(2) {
  background-position: 100% 0%, center ;
}

#tables + .db-table-grid .db-table-card:nth-child(3) {
background-position: 0% 100%, center;
}

#tables + .db-table-grid .db-table-card:nth-child(4) {
  background-position: 100% 100%, center;
}

#tables + .db-table-grid .db-table-card:hover {
  background: linear-gradient(180deg, #132856, #15517F); 
  background-size: cover, 200% 200%; /* Adjust based on the number of cards */
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

#tables + .db-table-grid .card-header a {
  text-transform: uppercase;
  font-weight:300;
  padding-bottom: 1em;
}

#tables + .db-table-grid .db-table-card:nth-child(1) .table-description::before {
  content: "The About section of the summary data files, with one row per declaration";
  display: block;
  color: inherit; /* Inherit color from the parent element */
  padding: 4em 0 1em 0;
  font-size: 16px;
}

#tables + .db-table-grid .db-table-card:nth-child(2) .table-description::before {
  content: "The data specific to declared government entities";
  display: block;
  color: inherit; /* Inherit color from the parent element */
  padding: 4em 0 1em 0;
  font-size: 16px;
}

#tables + .db-table-grid .db-table-card:nth-child(3) .table-description::before {
  content: "The data related to declared company payments";
  display: block;
  color: inherit; /* Inherit color from the parent element */
  padding: 4em 0 1em 0;
  font-size: 16px;
}

#tables + .db-table-grid .db-table-card:nth-child(4) .table-description::before {
  content: "The data specific to declared projects";
  display: block;
  color: inherit; /* Inherit color from the parent element */
  padding: 4em 0 1em 0;
  font-size: 16px;
}


@media (max-width: 1200px) {

  /* Medium screens */
  .db-table-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    /* 2 cards per row */
  }
  #tables + .db-table-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 768px) {

  /* Small/mobile screens */
  .db-table-grid {
    grid-template-columns: repeat(1, minmax(150px, 1fr));
    /* 1 card per row */
  }

  #tables + .db-table-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(120px, 1fr));
    gap: 10px;
  }

  .db-table-card::after {
    content: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNyAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMjI1IDEuNzEyNUw4LjA1IDAuODg3NDk5QzguNDI1IDAuNTQ5OTk5IDguOTg3NSAwLjU0OTk5OSA5LjMyNSAwLjg4NzQ5OUwxNi42Mzc1IDguMTYyNUMxNi45NzUgOC41Mzc1IDE2Ljk3NSA5LjEgMTYuNjM3NSA5LjQzNzVMOS4zMjUgMTYuNzVDOC45ODc1IDE3LjA4NzUgOC40MjUgMTcuMDg3NSA4LjA1IDE2Ljc1TDcuMjI1IDE1LjkyNUM2Ljg4NzUgMTUuNTUgNi44ODc1IDE0Ljk4NzUgNy4yMjUgMTQuNjEyNUwxMS43NjI1IDEwLjNIMC45OTk5OTlDMC40NzQ5OTkgMTAuMyAwLjA5OTk5OTQgOS45MjUgMC4wOTk5OTk0IDkuNFY4LjJDMC4wOTk5OTk0IDcuNzEyNSAwLjQ3NDk5OSA3LjMgMC45OTk5OTkgNy4zSDExLjc2MjVMNy4yMjUgMy4wMjVDNi44ODc1IDIuNjUgNi44NSAyLjA4NzUgNy4yMjUgMS43MTI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==');
    position: absolute;
    bottom: 8px; /* Adjust as needed */
    right: 15px; /* Adjust as needed */
    transform: scale(0.7); /* Scale to twice the size and mirror on the x-axis */
  }
}

/* FILTERS */

.metadata-description + h3 {
  position: relative;
  color: transparent; /* Hide the original text */
  margin-top: 50px;
}

.metadata-description + h3::before {
  content: 'Filter by';
  color: #132856; 
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  font-size: 0.8em;
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: calc(33.33% - 10px);
  margin-right: 10px;
  margin-top: 7px;
  border-radius: 9px;
}

.select-wrapper.filter-op {
  width: calc(15% - 10px); /* Adjust width for the middle select box */
}

.select-wrapper select {
  font-size: 1em;
  color: #132856;
  border: 1px solid #ddd;
  padding: 13px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 9px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%23132856" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  pointer-events: none;
}

.select-wrapper select:hover,
.filters input.filter-value:hover {
  border: 1px solid #F6A70A;
  box-shadow: 0 0 5px rgba(246, 167, 10, 0.5);
  outline: none;
}

/* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
.core input.filter-value:hover {
  border: 1px solid #F6A70A;
  box-shadow: 0 0 5px rgba(246, 167, 10, 0.5);
  outline: none;
}

.filters input.filter-value {
  font-size: 1em;
  color: #132856;
  width: calc(33.33% - 10px);
  padding: 13px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  border-radius: 9px;
}

/* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
.core input.filter-value {
  font-size: 1em;
  color: #132856;
  width: calc(33.33% - 10px);
  padding: 13px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  border-radius: 9px;
}

.filters input.filter-value:focus {
  border: 1px solid #132856;
  box-shadow: 0 0 5px rgba(19, 40, 86, 0.5);
  outline: none;
}

/* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
.core input.filter-value:focus {
  border: 1px solid #132856;
  box-shadow: 0 0 5px rgba(19, 40, 86, 0.5);
  outline: none;
}

form input[type="submit"] {
	color: #132856;
	background: white;
	border: 1px solid #132856;
	padding: 13px 18px 10px 18px;
	font-family: "Metropolis", sans-serif;
	font-size: 1.1em;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
	border-radius: 9px;
	text-transform: uppercase;
	font-weight: bold;
	margin-top: 7px;
  margin-bottom: 20px;

}

/* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
.core input[type="submit"] {
	color: #132856;
	background: white;
	border: 1px solid #132856;
	padding: 13px 18px 10px 18px;
	font-family: "Metropolis", sans-serif;
	font-size: 1.1em;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
	border-radius: 9px;
	text-transform: uppercase;
	font-weight: bold;
	margin-top: 7px;
  margin-bottom: 20px;

}

form input[type="submit"]:hover {
  background: #F6A70A;
  border-color: #F6A70A;
}

/* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
.core input[type="submit"]:hover {
  background: #F6A70A;
  border-color: #F6A70A;
}

.export-links a {
  text-decoration: none;
}

.export-links a:visited {
  color: rgb(39, 104, 144);
}

.export-links a:hover {
  color: #132856;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #F6A70A;
  text-underline-offset: 10px;
}

.suggested-facets {
  margin-bottom: 50px;
  position: relative;
  visibility: hidden;
}

.suggested-facets::before {
  content: "Suggested filters: ";
  visibility: visible;
  position: absolute;
  left: 0;
}

.suggested-facets a {
  visibility: visible;
  display: inline;
  position: relative;
  text-decoration: none;
}

.suggested-facets a::after {
  content: ", ";
}

.suggested-facets a:last-child::after {
  content: "";
}

.suggested-facets a:visited {
  color: rgb(39, 104, 144);
}

.suggested-facets a:hover {
  color: #132856;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #F6A70A;
  text-underline-offset: 10px;
}


.facet-results {
  position:relative;
  font-size: 16px;
  margin: 5em 0 1em 0;
}

.facet-results::before {
  content: 'Filters';
  position: absolute;
  top: -40px;
  left: 0;
  font-weight: bold;
  font-size: 20px; 
  background-color: #f9f9f9; 
}
.facet-results .tight-bullets a{
  text-decoration: none;
  margin-left: -50px;
}


.facet-results .tight-bullets a:visited{
  color: rgb(39, 104, 144);
}

.facet-results .tight-bullets a:hover {
  color:#F6A70A;
}

.facet-results .tight-bullets li::before{
  content: none;
}

/* a:visited {
  color: #F6A70A;
} */

/* a:hover {
  color: #F6A70A;
} */

/* a:active {
  color: #F6A70A;
} */

/* BUTTONS */
.index-full-button {
  position: relative;
  padding: 5px 20px;
  font-size: 16px;
  color: #132856;
  text-decoration: none;
}

.index-full-button:link,
.index-full-button:visited {
  text-decoration: none;
  color: #132856;
}

.index-full-button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #F6A70A;
  text-underline-offset: 10px;
}

.index-full-button::before {
  content: '';
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBkPSJNNDM4LjYgMjMzLjRsLTE3Ni0xNzZDMjU0LjIgNTIuMyAyNDUuMSA0OCAyMzUuNSA0OGMtOS42IDAtMTguNyA0LjMtMjQuNiAxMi0xMS41IDEzLjYtOS42IDMzLjcgNC4xIDQ1LjNMMzIyLjcgMjA4SDI0Yy0xMy4zIDAtMjQgMTAuNy0yNCAyM3Y0OGMwIDEzLjMgMTAuNyAyNCAyNCAyNGgyOTguN2wtMTA3LjcgMTAyLjdjLTEzLjcgMTMuMS0xNS42IDMzLjItNC4xIDQ1LjMgMTEuNSAxMy42IDMxLjYgMTUuNSA0NS4zIDQuMWwxNzYtMTc2YzQuOS00LjcgNy43LTExIDcuNy0xNy42cy0yLjgtMTIuOS03LjctMTcuNnoiLz48L3N2Zz4=');
  background-size: 0.8em 0.8em;
  background-repeat: no-repeat;
  display: inline-block;
  width: 1em;
  height: 1em;
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.guide-button {
  position: relative;
  text-decoration: none;
	color: #132856;
	background: white;
	border: 1px solid #132856;
	padding: 13px 18px 10px 18px;
	font-family: "Metropolis", sans-serif;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
	border-radius: 9px;
	font-weight: 700;
	margin-top: 7px;
  margin-bottom: 20px; 
  text-transform: uppercase;
}

.guide-button::after {
  content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItZG93bmxvYWQiPjxwYXRoIGQ9Ik0yMSAxNXY0YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0ydi00IiAvPjxwb2x5bGluZSBwb2ludHM9IjcgMTAgMTIgMTUgMTcgMTAiIC8+PGxpbmUgeDE9IjEyIiB5MT0iMTUiIHgyPSIxMiIgeTI9IjMiIC8+PC9zdmc+');
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  margin-bottom: 3px;
  vertical-align: middle;
}

.guide-button:link,
.guide-button:visited,
.guide-button:hover,
.guide-button:focus,
.guide-button:active {
  text-decoration: none;
  color: #132856;
}

.guide-button:hover {
  background: #F6A70A;
  border-color: #F6A70A;
}

.hero-section {
  width: 300;
  min-height: 400px;
  /* Full viewport height */
  background: #132856;
  text-align: left;
  color: white;
  padding: 2rem 30rem 3rem 14rem;
  margin-bottom: 4rem;
  position: relative;
  background-image: url('/static/img/hero-bg.png');
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: right;
}

.hero-h1 {
  color: white;
  margin-top: 2em;
}

.metadata-description {
  padding-right: 5em;
}

.metadata-description a:visited {
  color:rgb(39, 104, 144)
}

.metadata-description a:hover {
  color: #132856;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #F6A70A;
  text-underline-offset: 10px;
}

.return-link {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  text-decoration: none;
}

.return-link:link,
.return-link:visited {
  text-decoration: none;
  color: white;
}

.return-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #F6A70A;
  text-underline-offset: 10px;
}

.return-link::before {
  content: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjQ4OTMxIDYuOTc1OUgxMi4zNzE0QzEyLjc5OTIgNi45NzU5IDEzLjE0NDUgNy4zMjEgMTMuMTQ0NSA3Ljc1MDgyVjguMjY3NDNDMTMuMTQ0NSA4LjY5NzI1IDEyLjc5OTIgOS4wNDIzNCAxMi4zNzE0IDkuMDQyMzRINi40ODkzMUw4LjkyMTEgMTEuMzgwNUM5LjIzMzQ1IDExLjY4MDIgOS4yMzk2NCAxMi4xODEzIDguOTMzNDcgMTIuNDg3MUw4LjU3ODg2IDEyLjgzOTRDOC4yNzY4MSAxMy4xNDMyIDcuNzg4MTkgMTMuMTQzMiA3LjQ4ODIxIDEyLjgzOTRMMy4yMTMyMyA4LjU1Nzc2QzIuOTA5MTMgOC4yNTM5OSAyLjkwOTEzIDcuNzY0MjUgMy4yMTMyMyA3LjQ2MzU4TDcuNDg4MjEgMy4xNzg4MUM3Ljc5MDI1IDIuODc1MDQgOC4yNzk5MSAyLjg3NTA0IDguNTc4ODYgMy4xNzg4MUw4LjkzMzQ3IDMuNTMxMTRDOS4yMzk2NCAzLjgzNjk3IDkuMjMzNDUgNC4zMzgwOCA4LjkyMTEgNC42Mzc3Mkw2LjQ4OTMxIDYuOTc1OU0wLjAwMDE5MzE4IDguMDA5MDFDMC4wMDAxOTMxOCAxMi40MzIyIDMuNTc2MjUgMTYuMDE2NSA3Ljk4OTM2IDE2LjAxNjVDMTIuNDAyNSAxNi4wMTY1IDE1Ljk3ODUgMTIuNDMyMiAxNS45Nzg1IDguMDA5MDFDMTUuOTc4NSAzLjU4NTc4IDEyLjQwMjUgMC4wMDE1MzM1MSA3Ljk4OTM2IDAuMDAxNTMzNTEzQzMuNTc2MjUgMC4wMDE1MzM1MTMgMC4wMDAxOTMxOCAzLjU4NTc4IDAuMDAwMTkzMTggOC4wMDA5MDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');
  position: absolute;
  left: 0;
  top: 60%;
  transform: translateY(-50%) scale(0.8);
}

#sql-format {
  color: #132856;
	background: white;
	border: 1px solid #132856;
	padding: 10px 15px 7px 15px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
}

#sql-format:hover {
  border: 1px solid #F6A70A;
  box-shadow: 0 0 5px rgba(246, 167, 10, 0.5);
  outline: none;
}

#sql-format + input {
  color: #132856;
	background: white;
	border: 1px solid #132856;
	padding: 10px 15px 7px 15px;
  margin: 0px 0px 0px 20px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s;
}

#sql-format + input:hover {
  box-shadow: 0 0 5px rgba(24, 14, 82, 0.5);
  outline: none;
  background-color: #132856;
  color: #ffffff;
}

/* --- */
/* RESPONSIVE */
@media (max-width: 1200px) {
  section.content {
    padding: 1rem 11rem;
  }

  header,
  footer {
    padding: 3rem 12rem !important;
  }

  .hero-section {
    padding: 1rem 12rem 4rem 12rem;
    position: relative;
    background-image: url('/static/img/hero-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;

  }

}

@media (max-width: 968px) {
  section.content {
    padding: 1rem 5rem;
  }

  header,
  footer {
    padding: 3rem 6rem !important;
  }

  .hero-section {
    padding: 1rem 6rem 4rem 6rem;
    margin-bottom: 1rem;
  }
  .select-wrapper {
    width: 100%;
    margin-bottom: 10px;
  }

  .select-wrapper.filter-op {
    width: 100%;
    margin-bottom: 10px;
  }

  .filters input.filter-value {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
  .core input.filter-value {
    width: 100%;
    margin-bottom: 10px;
  }

}

@media (max-width: 576px) {
  section.content {
    padding: 1rem 1.5rem;
  }

  header,
  footer {
    padding: 3rem 2.5rem !important;
  }

  .hero-section {
    padding: 0.5rem 2.5rem 1.5rem 2.5rem;
    margin-bottom: 1rem;
  }
  .select-wrapper {
    width: 100%;
    margin-bottom: 10px;
  }

  .select-wrapper.filter-op {
    width: 100%;
    margin-bottom: 10px;
  }

  .filters input.filter-value {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 1.0a19 UPDATE: added .core versions of the .filters elements, 1.0a19 added the core class to the forms */
  .core input.filter-value {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 1.0a19 UPDATE: make sure the sort checkbox only appears in small screens */
  .sort_by_desc.small-screen-only {
    display: inline !important;
  }

}


/* 1.0a19 UPDATE and FIXES */
/* Correct navbar colors */
nav a:link {
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  color: #fff;
}

/* 1.0a19 UPDATE: make sure the sort checkbox only appears in small screens */
.sort_by_desc.small-screen-only {
    display: none;
}