body {
  background-color: rgb(12, 40, 57);
  padding-top: 80px;
}

.jumbotron {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Navbar */

nav.navbar {
  background-color: rgb(12, 40, 57);
}

h1 {
  color: #fff;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-style: normal;
  font-size: 2.4rem;
  letter-spacing: -1px;
  padding-left: 0;
  padding-bottom: 1rem;
  text-align: left;
  white-space: nowrap;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Filter, sort, search menu */

#filter-button {
    background-color: rgb(17, 56, 80);
    border: none;
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    height: 58px;
    padding-top: 0;
    padding-right: 4px;
    padding-left: 4px;
    width: 100%;
  }

#filter-button-label {
  display: block;
  font-size: .7rem;
  margin-top: 5px;
  margin-bottom: -7px;
  white-space: nowrap;
}

#sort-by-container label {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 20px;
}

#sort-by-container .form-select~label::after {
  background-color: rgb(17, 56, 80);
}

#sort-by {
  background-color: rgb(17, 56, 80);
  border: none;
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  padding-left: 20px;
  width: 100%;
}

#search-container {
  margin-top: 10px;
  position: relative;
}

  #search-container .search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
  }

  #search-container input {
    background-color: rgb(17, 56, 80);
    border: none;
    border-radius: 25px;
    color: #fff;
    padding-left: 2.75rem;
    height: 38px;
    width: 100%;
  }

  #search-container input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
  }

/* Filter modal */

#filters-modal h1 {
  color: #195172;
  padding: 0;
  font-size: 1.8rem;
  text-shadow: none;
}

  #career-filters h2 {
    font-size: 1.4rem;
    padding: 0 0 20px;
    text-align: left;
  }

  #career-filters select {
    margin: 20px auto;
  }

  #income-filter-header {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
  }

/* Loading results message */

#loading-results {
  align-items: center;
  display: grid;
  column-gap: 1rem;
  contain: layout paint style;
  grid-template-columns: 40px 1fr;
  margin-top: 20px;
}

#loading-results::before {
  content: "";
  width: 40px;
  height: 40px;
  border: .25rem solid #adb5bd;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

#loading-results-text {
  color: white;
  min-width: 0;
}

/* Loading career box */

.career-box-loading > * {
  visibility: hidden;
}

.career-box-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#e9ecef, #e9ecef) 0 0 / 100% 120px no-repeat,
    linear-gradient(#e9ecef, #e9ecef) 1rem 145px / 65% 1.4rem no-repeat,
    linear-gradient(#e9ecef, #e9ecef) 1rem 185px / 40% 1rem no-repeat,
    linear-gradient(#e9ecef, #e9ecef) 1rem 215px / 55% 1rem no-repeat;
  border-radius: inherit;
}

.career-box-loading::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 20px;
  width: 80px;
  height: 80px;
  border: .25rem solid #adb5bd;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

/* Confidence */

#confidence-container {
  align-items: start;
  color: white;
  column-gap: .25rem;
  display: grid;
  grid-template-columns: 24px 1fr;
  padding: 20px 5px 2px;
}

#info-icon {
  height: 20px;
  fill: currentColor;
  margin-top: 2px;
  width: 20px;
}

#confidence-container a {
  color: yellow;
  font-weight: bold;
  text-decoration: none;
}

  #confidence-container a:hover {
    color: #dddd00;
    text-decoration: underline;
  }

  #confidence-container p {
    margin-bottom: 0;
  }

/** Careers list */

#career-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-items: center;
  padding-top: 2rem;
  padding-bottom: 40px;
}

.career-box {
  background-color: #fff;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  content-visibility: auto;
  contain: strict;
  height: 300px;
  max-width: 300px;
  position: relative;
  width: 100%;
}

  .career-box:hover {
    background-color: #fffbd1;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
    cursor: pointer;
  }

.career-box:hover:not(:has(.fit:hover)) a.go-to {
  text-decoration: underline;
}

.career-box picture {
  display: block;
  position: relative;
  height: 120px;
  background: #dcdcdc;
  overflow: hidden;
  z-index: 1;
}

.career-box picture::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 4px solid #adb5bd;
  border-right-color: transparent;
  border-radius: 50%;
  animation: career-img-spinner .75s linear infinite;
}

  .career-box picture.loaded::before {
    display: none;
  }

.career-box img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}

@keyframes career-img-spinner {
  to {
    transform: rotate(360deg);
  }
}

#career-list h2 {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: -.03em;
  min-height: 2.5rem;
  margin-top: 15px;
  padding: 0 5px 0 10px;
  text-align: left;
}

.income {
  font-weight: bold;
  padding-left: 10px;
}

.income-period {
  font-size: .8rem;
}

.stats {
  color: #6e6e6e;
  font-size: .8rem;
  padding-left: 10px;
}

.stats span {
  display: block;
}

a.go-to {
  position: absolute;
  bottom: 15px;
  left: 10px;
  font-size: .8rem;
  text-decoration: none;
}

.filled-circle {
  fill: #0c2839;
  fill-opacity: 0.8;
}

.bg-circle {
  fill: none;
  stroke: white;
  stroke-opacity: 0.4;
}

.fit-circle {
  fill: none;
  stroke: white;
}

.fit {
  position: absolute;
  top: 0;
  right: 0;
  height: 100px;
  padding-top: 3px;
  padding-right: 5px;
  text-align:  center;
  width: 100px;
  z-index: 2;
}

  .fit:hover a.to-fit-report {
    color: blue;
    text-decoration: underline;
  }

  .fit:hover .fit-circle, .fit:hover .bg-circle {
    stroke: blue;
  }

  .fit:hover .filled-circle {
    fill: white;
  }

  .fit:hover svg text {
    fill: blue;
  }

a.to-fit-report {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  font-size: 10pt;
  font-weight: bold;
  padding: 2px 5px;
  text-decoration: none;
}

.fit-radial-graph {
  height: 90px;
  overflow: visible;
  width: 90px;
}

/* Page loading spinners */

svg.loading {
  background-color: #b3b3b3;
  border-radius: 10px 0 0 10px;
}

span.loading {
  color: black;
  padding-left: 10px;
}

/* Income Slider */

#income-range-bar {
  left: 0;
  right: 0;
}

#min-income-thumb {
  left: 0;
}

#max-income-thumb {
  left: 100%;
}

#min-income-value-container {
  left:0
}

#max-income-value-container {
  left: 100%;
}

#income-slider {
  position: relative;
  height: 14px;
  border-radius: 10px;
  text-align: left;
  margin: 45px 0 10px 0;
}

#income-slider > div {
  position: absolute;
  left: 13px;
  right: 15px;
  height: 14px;
}

#inverse-left {
  position: absolute;
  left: 0;
  height: 14px;
  border-radius: 10px;
  background-color: #CCC;
  margin: 0 7px;
}

#inverse-right {
  position: absolute;
  right: 0;
  height: 14px;
  border-radius: 10px;
  background-color: #CCC;
  margin: 0 7px;
}

#income-range-bar {
  position: absolute;
  left: 0;
  height: 14px;
  border-radius: 14px;
  background-color: #195172;
}

#max-income-thumb, #min-income-thumb {
  position: absolute;
  top: -7px;
  z-index: 2;
  height: 28px;
  width: 28px;
  text-align: left;
  margin-left: -11px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  background-color: #FFF;
  border-radius: 50%;
  outline: none;
}

#income-slider > input[type=range] {
  position: absolute;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 3;
  height: 14px;
  top: -2px;
  width: 100%;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0);
  -moz-opacity: 0;
  opacity: 0;
}

#income-slider > input[type=range]::-ms-track {
  -webkit-appearance: none;
  background: transparent;
  color: transparent;
}

#income-slider > input[type=range]::-moz-range-track {
  -moz-appearance: none;
  background: transparent;
  color: transparent;
}

#income-slider > input[type=range]:focus::-webkit-slider-runnable-track {
  background: transparent;
  border: transparent;
}

#income-slider > input[type=range]:focus {
  outline: none;
}

#income-slider > input[type=range]::-ms-thumb {
  pointer-events: all;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 0 none;
  background: red;
}

#income-slider > input[type=range]::-moz-range-thumb {
  pointer-events: all;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 0 none;
  background: red;
}

#income-slider > input[type=range]::-webkit-slider-thumb {
  pointer-events: all;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 0 none;
  background: red;
  -webkit-appearance: none;
}

#income-slider > input[type=range]::-ms-fill-lower {
  background: transparent;
  border: 0 none;
}

#income-slider > input[type=range]::-ms-fill-upper {
  background: transparent;
  border: 0 none;
}

#income-slider > input[type=range]::-ms-tooltip {
  display: none;
}

.slider-sign {
  position: absolute;
  margin-left: -15px;
  top: -50px;
  z-index:3;
  background-color: #195172;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 35px;
  -webkit-border-radius: 35px;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}

.slider-sign:after {
  position: absolute;
  content: '';
  left: 1px;
  border-radius: 16px;
  top: 27px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top-width: 18px;
  border-top-style: solid;
  border-top-color: #19517266;
}

.slider-sign > span {
  font-size: 12px;
  font-weight: 700;
  line-height: 35px;
}

@media only screen and (min-width: 576px) {
  #career-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-box {
    max-width: none;
  }

  .stats {
    font-size: .9rem;
  }

  .stats span {
    display: inline;
  }

  .stats .growth::after {
    content: " | ";
    color: #999;
  }

  #search-container {
    margin-top: 0;
    padding-left: 0;
  }

  #search-container input {
    height: 58px;
  }

  #search-container .search-icon {
    left: 1rem;
  }
}

@media only screen and (min-width: 768px) {
  h2.career-name {
    margin-top: 25px;
  }

  #career-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    padding-bottom: 0;
  }
}

@media only screen and (min-width: 992px) {
  #career-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media print {
  body {
    background-color: #fff;
  }

  h1 {
    color: #195172;
    text-shadow: none;
  }

  .career-box {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  #career-list .career-box:nth-child(6n + 5), #career-list .career-box:nth-child(6n + 6) {
    break-before: page;
    page-break-before: always;
    margin-top: 60px;
  }

  #confidence-container {
    color: black;
  }

  #confidence-container svg {
    fill: black;
  }

  #confidence-container a {
    color: blue;
  }

  .page-break {
    break-before: page;
    page-break-before: always;
    margin-top: 80px;
  }

  #footer {
    display: none;
  }
}