:root {
  --main-stroke-width: 2px;
  --main-card-width: 270px;
  --main-card-height: 460px;
  --main-font-size: 16px;
  --main-border-radius: 12px;
  --main-border-width: 1px;
  --main-padding: 28px;
  --primary-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
  --secondary-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  --button-border-radius: 20px;
  --button-padding: 6px 30px;
  --main-transition-duration: 0.5s;
  --blue-primary: blue;
  --blue-secondary: #0049B4;
  --gray-primary: #757575;
  --gray-secondary: #757575;
  --teal-primary: #23ABB6;
  --teal-secondary: #6f9699;
  --teal-tertiary: #005067;
  --pink-primary: #d4026b;
  --arrow-border: 1px solid black;
}

.loader-container {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 10000000;
  background: white;
}

.loader {
  width: 160px;
  aspect-ratio: 4;
  /* Maintains an aspect ratio of 4:1 (width to height) */
  --c: var(--blue-primary) 96%, #0000;
  background:
    radial-gradient(circle closest-side at left 12px top 50%, var(--c)),
    radial-gradient(circle closest-side, var(--c)),
    radial-gradient(circle closest-side at right 12px top 50%, var(--c));
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: l4 1s infinite alternate;
}

@keyframes l4 {
  to {
    width: 24px;
    aspect-ratio: 1
  }
}

/* TYPOGRAPHY */
body,
html {
  height: 100%;
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  /*font-family: "Open Sans", sans-serif;*/
}

#intro h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--blue-primary);
}

h1 {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  color: black;
}

section {
  padding: 6rem;
}

/*https://heropatterns.com/*/
#intro {
  height: max-content;
  position: relative;
  /*background-color: #DFDBE5;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230000ff' fill-opacity='0.26'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");*/
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230000ff' fill-opacity='0.18'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#intro a {
  color: var(--blue-primary);
  text-decoration: none;
  box-shadow: 0 -2px 0 var(--blue-primary) inset;
  -webkit-box-shadow: 0 -2px 0 var(--blue-primary) inset;
  transition: 0.25s;
}

#intro a:hover {
  text-decoration: none;
  box-shadow: 0 -3px 0 var(--blue-primary) inset;
  -webkit-box-shadow: 0 -3px 0 var(--blue-primary) inset;
}

.tabulator-popup > a:-webkit-any-link:active, .tabulator-popup > a:-webkit-any-link:focus  {
  color: var(--blue-primary);
}

#header {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  text-align: center;
}

.blender {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, white, transparent);
}

#intro p {
  font-size: 1.5rem;
  margin: 0;
}

#chart-intro {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* */
button {
  background: white;
  font-family: "Hanken Grotesk", sans-serif;
  border: 1px solid black;
  cursor: pointer;
  height: 24px;
}

button:hover {
  background-color: var(--blue-primary);
  color: white;
}

#align-button, #restore-layout-button {
  transition: 0.25s;
  height: 28px;
}

/* Active button style */
.active {
  background-color: var(--blue-primary);
  color: white;
}

/* BUBBLE CHART */
#viz-container {
  margin-top: 24px;
}

.searchbar-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.searchbar-container {
  display: flex;
  flex-direction: row;
  justify-items: center;
}

#search {
  border: none;
  border: 1px solid black;
  width: 300px;

  padding-left: 6px;
  height: 24px;
  font-size: 14px;
}

::placeholder {
  color: black;
  font-size: 14px;
  opacity: 1;
  /* Firefox */
}

::-ms-input-placeholder {
  /* Edge 12 -18 */
  color: black;
  font-size: 14px;
}

#clearSearch {
  background-color: white;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  border: none;
  opacity: 0;
}

.circ {
  cursor: pointer;
  mix-blend-mode: multiply;
  z-index: 9000 !important;
}

.job-tooltip {
  position: absolute;
  width: 280px;
  z-index: 10000 !important;
  padding: 16px;
  border-radius: 2px;
  background: white;
  box-shadow: var(--secondary-shadow) !important;
  border: 1px solid black;
}

.tooltip-header {
  display: flex;
  flex-direction: row;
  font-weight: bold;
}

.tooltip-marker {
  padding: 2px;
  display: inline-block;
  border-radius: 2px;
  margin-right: 6px;
  border: 2px solid black;
}

.toolitip-title {
  width: 90%;
}

.tooltip-rank {
  margin-left: 14px;
  font-size: 12px;
  margin-top: 4px;
}

.tooltip-row {
  margin-top: 8px;
  margin-left: 14px;
  margin-top: 24px;
}

.tooltip-row-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.job-tooltip p {
  margin: 0;
}

.tooltip-value {
  font-weight: bold;
}

.tooltip-footer {
  float: left;
  margin-top: 18px;
  margin-left: 14px;
}

#read-more {
  text-decoration: none;
  color: black;
  transition: 0.5s;
}

#read-more:hover {
  box-shadow: 0 -2px 0 black inset;
  -webkit-box-shadow: 0 -2px 0 black inset;
  text-decoration: none;
}

#chart p {
  margin: 0;
}

.chart-title {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 24px;
}

.chart-subsubtitle {
  font-weight: normal;
  font-size: 24px;
  fill: var(--gray-primary);
}

.chart-subtitle {
  font-size: 24px;
}

.chart-line {
  stroke: var(--gray-primary);
  stroke-width: 2;
  stroke-dasharray: 6, 6;
  stroke-linecap: round;
}

.chart-value {
  font-size: 22px;
  fill: var(--gray-primary);
}

.sector-label-group {
  user-select: none;
  /* Standard syntax */
  -webkit-user-select: none;
  /* Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
}

.sector-label {
  transform: translateX(26px);
}

.job-counter {
  font-size: 12px;
  margin-top: 2px;
  height: 12px;
  display: block;
  color: var(--gray-primary);
}

.annotations {
  font-size: 22px;
  opacity: 0;
}

/* ARROW */
.scroll-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 160px;
  margin-bottom: 120px;
  color: var(--blue-primary);
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 200px;
  font-size: 16px;
}

.scroll {
  width: 60px;
  height: 60px;
  border: 2px solid var(--blue-primary);
  border-radius: 50%;
  position: relative;
  background-color: white;
  transition: 0.25s;
  cursor: pointer;
}

.scroll:hover {
  background-color: var(--blue-primary);
}

.scroll:hover::before {
  border-left-color: white;
  border-bottom-color: white;
}

.scroll::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 18px;
  width: 18px;
  height: 18px;
  border-left: 2px solid var(--blue-primary);
  border-bottom: 2px solid var(--blue-primary);
  transform: rotate(-45deg);
  transition: 0.25s;
}

#intro .scroll {
  animation: down 1.5s infinite;
  -webkit-animation: down 1.5s infinite;
}

@keyframes down {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translateY(15px);
  }

  40% {
    transform: translate(0);
  }
}

@-webkit-keyframes down {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translateY(15px);
  }

  40% {
    transform: translate(0);
  }
}

.method-component {
  display: grid;
  grid-template-columns: 50% 50%;
  margin-bottom: 24px;
}

.method-explanation p {
  margin: 0;
  margin-top: 31.5px;
}

.term {
  display: flex;
  flex-direction: column;
  margin-right: 24px;
}

.term a {
  color: var(--blue-primary);
  text-decoration: none;
  box-shadow: 0 -2px 0 var(--blue-primary) inset;
  -webkit-box-shadow: 0 -2px 0 var(--blue-primary) inset;
  transition: 0.25s;
}

.term a:hover {
  text-decoration: none;
  box-shadow: 0 -3px 0 var(--blue-primary) inset;
  -webkit-box-shadow: 0 -3px 0 var(--blue-primary) inset;
}

.method-explanation a {
  color: black;
  text-decoration: none;
  box-shadow: 0 -2px 0 black inset;
  -webkit-box-shadow: 0 -2px 0 black inset;
  transition: 0.25s;
}
.method-explanation a:hover {
  box-shadow: 0 -3px 0 black inset;
  -webkit-box-shadow: 0 -3px 0 black inset;
  text-decoration: none;
}

.term h2,
.term p {
  margin: 0;
}

.term p:first-of-type {
  color: var(--blue-primary);
}

#methodology h2 {
  color: var(--blue-primary);
  font-weight: normal;
}

#outro p{
  margin: 0;
}

.paper a {
  color: black;
  text-decoration: none;
  box-shadow: 0 -2px 0 black inset;
  -webkit-box-shadow: 0 -2px 0 black inset;
  transition: 0.25s;
}
.paper a:hover {
  box-shadow: 0 -3px 0 black inset;
  -webkit-box-shadow: 0 -3px 0 black inset;
  text-decoration: none;
}

.final-blender {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, white, transparent);
}

#footer {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: max-content;
  position: relative;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230000ff' fill-opacity='0.18'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#scrollToChartButton {
  position: fixed;
  bottom: 120px;
  right: 40px;
  color: var(--blue-primary);
  background-color: white;
  border: 1.5px solid var(--blue-primary);
  cursor: pointer;
  z-index: 1000;
  display: none; /* Initially hidden */
  transition: 0.25s;
  border-radius: 50%;
  width: 40px; /* Adjust width to accommodate text */
  height: 40px; /* Adjust height to accommodate text */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

#scrollToChartButton i {
  font-size: 16px; /* Adjust icon size as needed */
  margin-bottom: 2px; /* Space between icon and text */
  line-height: 36px;
}

/*
#scrollToChartButton span {
  font-size: 10px; 
  line-height: 1;  
}
*/

#scrollToChartButton span {
  position: relative;
  width: 80px;
}

#scrollToChartButton:hover {
  background-color: var(--blue-primary);
  color: white;
}

/* MODAL */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: var(--blue-primary); /* Fallback color */
  background-color: #9fadc8bf;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fff;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid var(--blue-primary);
  width: 50%; /* Could be more or less, depending on screen size */
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
  border-radius: 6px;
}

.modal-content h2 {
  color: var(--blue-primary);
  font-weight: normal;
  margin-bottom: 12px;
}

#modal-text {
  margin-top: 16px;
}

/* The Close Button */
.close {
  color: var(--blue-primary);
  float: right;
  font-size: 16px;
  font-weight: bold;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  height: 26px;
  width: 26px;
  text-align: center;
  line-height: 26px;
}

.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
  color: white;
  background-color: var(--blue-primary);
}

#logo-container {
  box-shadow: none;
  -webkit-box-shadow: none;
  margin-top: 48px;
}

#logo {
  width: 240px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

form label {
  margin-bottom: 6px;
}

form p {
  font-size: 12px;
  margin: 0;
  margin-top: 2px;
}

form textarea, form input {
  font-size: 16px;
  padding: 4px;
  font-family: "Hanken Grotesk", sans-serif;
}

button[type="submit"] {
  width: max-content;
  margin-top: 12px;
  font-size: 16px;
  height: 28px;
}

.feedback {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#feedback {
  margin-left: 6px;
  font-size: 16px;
}