@font-face {
  font-family: 'AkkuratLL-Regular';
  src: url('/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AkkuratLL-Light';
  src: url('/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AkkuratLL-Italic';
  src: url('/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AkkuratLL-Bold';
  src: url('/content/dam/spglobal/commodity-insights/en/content-design/infographics/common/fonts/AkkuratLL-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html {
  overflow-y: auto;
}

span.breadcrumb-component_list_lastitem {
  max-width: none;
} 

@media screen and (max-width: 768px) {
  .wrapper {
    padding: 1em;
    width: fit-content;
    margin: 0 auto;
  }

  h1 {
    color: #ffffff;
    text-align: left;
    margin-bottom: 0.25em;
  }

  h2 {
    color: #ffffff;
    align-items: left;
    text-align: left;
    font-size: small;
  }

  h3 {
    text-align: left;
    color: #f0f0f0;
    font-weight: lighter;
  }

  .wrapper a {
    color: #edf86f;
  }

  .wrapper a:hover {
    color: #edf86f;
  }

  .wrapper a:after {
    margin-left: 5px;
  }

  body .price-comp .card {
    display: flex;
    flex-direction: column;
    grid-column: 1 / span 5;
    justify-content: space-between;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
  }

  body .info-container {
    display: block;
    margin-bottom: 0.5em;
    width: 100%;
  }

  .price-comp.active .info-container {
    display: block;
    margin-bottom: 0.5em;
    line-height: 1.5em;
    width: 100%;
  }

  body .chartInfo {
    margin: 1em;
    width: 95%;
  }

  body .chart {
    margin-top: 2em;
    width: 100%;
    margin-bottom: 2em;
  }

  .dropdown-content {
    width: 150%;
    text-align: right;
  }
}

@media screen and (min-width: 769px) {
  .wrapper {
    padding: 1em;
    width: fit-content;
  }

  h1 {
    color: #ffffff;
    text-align: left;
    margin-bottom: 0.25em;
  }

  h2 {
    color: #ffffff;
    align-items: left;
    text-align: left;
    font-size: small;
  }

  h3 {
    text-align: left;
    color: #f0f0f0;
    font-weight: lighter;
  }

  .wrapper a {
    color: #edf86f;
  }

  .wrapper a:hover {
    color: #edf86f;
  }

  .wrapper a:after {
    margin-left: 5px;
  }
}

body {
  font-family: "AkkuratLL-Regular";
  font-size: 1em;
  margin: 0 auto;
  background-color: #000000;
  color: #ffffff;
  margin: 0 auto;
  width: 100%;
}

footer {
  padding-left: 1em;
  padding-right: 1em;
  width: fit-content;
}

.collapse {
  font-family: "AkkuratLL-Regular";
  background-color: #000000;
  cursor: pointer;
  text-align: left;
  color: #edf86f;
  border: none;
  outline: none;
  font-size: 1em;
  padding-inline: 0;
}

.collapse.active,
.collapse:hover {
  color: #edf86f;
  text-decoration: underline;
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-family: "AkkuratLL-Light";
  line-height: 1.3;
}

.nav {
  width: 100%;
  margin-bottom: 2em;
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
}

.wrapper label {
  color: #edf86f;
}

.column {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

#selectAll {
  background-color: #000000;
  font-family: "AkkuratLL-Regular";
  color: #edf86f;
  outline: none;
  border: none;
  font-size: 1em;
  text-align: right;
  padding-inline: 0;
  padding-block: 0;
}

#selectAll:hover {
  text-decoration: underline;
}

#clearAll {
  font-family: "AkkuratLL-Regular";
  background-color: #000000;
  color: #edf86f;
  outline: none;
  border: none;
  font-size: 1em;
  align-items: flex-end;
  padding-inline: 0;
  padding-block: 0;
}

#clearAll:hover {
  color: #edf86f;
  text-decoration: underline;
}

.myCheckbox {
  color: #edf86f;
}

.myCheckbox:hover {
  text-decoration: underline;
}

.grid-item.dPrice {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.grid-item.dCode {
  display: flex;
  align-items: center;
}

.grid-item.iconType {
  display: flex;
  justify-content: center;
}

.grid-item.change {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radioLabels:hover {
  text-decoration: underline;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border: 1px solid #ffffff;
  padding: 0.5 em;
  margin-right: 0.5em;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="checkbox"]:hover {
  width: 15px;
  height: 15px;
  border: 1px solid #edf86f;
  padding: 0.5 em;
  margin-right: 0.5em;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="checkbox"]#radio1:checked {
  background-color: #006d89;
}

input[type="checkbox"]#radio2:checked {
  background-color: #4997ab;
}

input[type="checkbox"]#radio3:checked {
  background-color: #92c0cc;
}

input[type="checkbox"]#radio4:checked {
  background-color: #dc7900;
}

.grid-item {
  background-color: #333333;
  padding: 0.5em;
  max-height: 2em;
}

.grid-item:hover {
  cursor: pointer;
}

.grid-item-label {
  margin-top: 1em;
}

#price-comp-subhead {
  display: grid;
  grid-template-columns: 0.5fr 1fr 3fr 1fr 0.5fr;
  background-color: #222222;
  grid-gap: 0.5em;
  padding: 0.5em;
}

.dimmed {
  opacity: 0.4;
}

.price-comp.dimmed:hover {
  opacity: 1;
}

.price-comp {
  display: grid;
  grid-template-columns: 0.5fr 1fr 3fr 1fr 0.5fr;
  background-color: #222222;
  padding-left: 0.5em;
  padding-right: 0.5em;
  grid-gap: 0.75em;
  padding-top: 0.75em;
}

.price-comp:hover {
  opacity: 0.4;
}

.price-comp.active:hover {
  opacity: 1;
}

.price-comp .card {
  display: flex;
  grid-column: 1 / span 5;
  justify-content: space-between;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow: hidden;
}

.price-comp.active .card {
  max-height: 100%;
}

.price-comp.active .card .info {
  color: #ffffff;
  margin: 0.5em;
}

.price-comp .card .info {
  margin: 0.5em;
}

.info-container {
  display: block;
  margin: 0.5em;
  line-height: 1.5em;
  width: 50%;
}

.chartInfo {
  margin: 0.5em;
  width: 50%;
}

.chart {
  margin-top: 0.5em;
  width: 100%;
}

.dropdownContainer {
  white-space: nowrap;
}

.dropbtn {
  background-color: #000000;
  color: #edf86f;
  font-size: 1em;
  border: none;
  cursor: pointer;
  padding-bottom: 4px;
  min-width: fit-content;
  align-items: flex-end;
}

.dropdown {
  position: relative;
  font-family: "AkkuratLL-Regular";
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: fit-content;
  right: 0;
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 10px;
  text-decoration: none;
  display: block;
  align-items: flex-end;
}

.dropdown-content a:hover {
  background-color: #bdbdbd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #000000;
  text-decoration: underline;
}
