/* Fonts */
@font-face {
  font-family: 'm-icons';
  src: url('https://dataviz.moodys.com/fonts/m-icons.woff?iy5a80') format('woff');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'Financier Display Semibold';
  src: url('https://dataviz.moodys.com/fonts/FinancierDisplaySemiBold.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'Financier Display Bold';
  src: url('https://dataviz.moodys.com/fonts/FinancierDisplayBold.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'GT America Light';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaLight.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'GT America Light Italic';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaLightItalic.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'GT America Regular';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaRegular.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'GT America Regular Italic';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaRegularItalic.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: 'GT America Bold';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaBold.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: 'GT America Bold Italic';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaBoldItalic.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}
@font-face {
  font-family: 'GT America Black';
  src: url('https://dataviz.moodys.com/fonts/GTAmericaBlack.woff2') format('woff2');
  font-style: normal;
  font-display: auto;
}

/* Progress bar */
#mdvt-embed #scrollProgressBar {
  position: fixed;
  top: 0;
  height: 105px;
  width: 100%;
  background-color: #f0f0f1;
  z-index: 3;
}
#mdvt-embed #scrollProgressBar #scrollProgress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #005eff;
  transition: width 50ms ease;
}

#showroom #mdvt-embed #scrollProgressBar {
  position: fixed;
  top: 0;
  height: 10px;
  width: 100%;
}
#showroom #mdvt-embed #scrollProgressBar #scrollProgress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  transition: width 50ms ease;
}

body:has(#showroom) {
  margin: 0;
}
body:has(#dashboard) {
  background-color: #0a1264;
}

/* Loading screen */
#mdvt-embed #loadingScreen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #0a1264;
}
#mdvt-embed #loadingScreen span {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05rem;
  word-spacing: 0.15rem;
  color: white;
  text-align: center;
  font-family: 'GT America Bold';
}
#mdvt-embed #loadingScreen #loadingBar {
  width: 50%;
  height: 0.25rem;
  background-color: #f0f0f1;
  position: relative;
  border-radius: 1rem;
}

#mdvt-embed #loadingScreen #loadingBar #loadingProgress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #005eff;
  transition: width 500ms ease;
  border-radius: 1rem;
}

#mdvt-embed #loadedContent {
  opacity: 0;
}

/* Scrolly */

#mdvt-embed .small {
  font-family: 'GT America Regular';
  font-size: 0.875rem;
  line-height: 1.4;
  padding-left: 0.7rem;
}

#mdvt-embed .supplyRisk {
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
  word-spacing: 0.15rem;
}

#mdvt-embed .bold {
  font-family: 'GT America Bold';
}
#mdvt-embed .transition {
  font-size: 1.5rem;
  line-height: 1.7;
}

#mdvt-embed h2 {
  font-family: 'Financier Display Semibold', 'Times New Roman', Times, serif;
  line-height: 1.125;
  font-size: 3.7rem;
  margin-top: 5rem;
  margin-bottom: 0.5rem;
  color: white;
}

#mdvt-embed p {
  margin: 0;
  font-size: 1.55rem;
  line-height: 2.2rem;
}
#mdvt-embed .noPadLeft {
  padding-left: 0;
  margin-top: 1.5rem;
}

main {
  background-color: #0a1264;
}
#mdvt-embed #scrolly {
  font-size: 13px;
  font-family: 'GT America Regular';
  display: grid;
  width: min(100%, 2800px);
  margin: 0 auto;
}

#mdvt-embed #scrolly #background {
  position: sticky;
  position: -webkit-sticky;
  top: 100px;
  width: 100%;
  height: calc(100vh - 100px);
  z-index: 1;
  grid-row: 1 / -1;
  grid-column: 1 / -1;
}

#mdvt-embed #scrolly #foreground {
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  pointer-events: none;
  grid-row: 1 / -1;
  grid-column: 1 / -1;
}

#mdvt-embed #scrolly #foreground > div:not(:nth-child(7)),
#mdvt-embed #scrolly #foreground > div:not(:nth-child(11)) {
  width: min(60ch - 3rem, 90% - 2rem);
  margin: 85vh 0 0 2rem;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  pointer-events: all;
  color: white;
  opacity: 1;
}

#mdvt-embed #scrolly #foreground > div:nth-child(7),
#mdvt-embed #scrolly #foreground > div:nth-child(11) {
  width: min(100ch - 3rem, 90% - 2rem);
  margin: 85vh auto 0 auto;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  pointer-events: all;
  color: white;
}

#mdvt-embed #scrolly #foreground > div p {
  color: white;
}

#mdvt-embed #scrolly #foreground > div:first-child,
#mdvt-embed #scrolly #foreground > div:last-child {
  opacity: 0;
  height: 1px;
  pointer-events: none;
}

#mdvt-embed #scrolly #foreground > div:first-child {
  margin-top: -58vh;
}

#mdvt-embed #scrolly #foreground > div:last-child {
  margin-top: 85vh;
}

/* For large displays */
/* @media screen and (min-width: 1070px) and (max-width: 1150px) {
  #mdvt-embed #scrolly #foreground > div:not(:nth-child(7)),
  #mdvt-embed #scrolly #foreground > div:not(:nth-child(11)) {
    margin: 85vh auto 0 auto;
    background-color: #0a116400;
    width: min(80ch - 3rem, 90% - 2rem);
  }
} */

@media screen and (max-width: 800px) {
  #mdvt-embed #scrolly #foreground {
    padding: 0;
    margin: 0 auto;
  }

  #mdvt-embed #scrolly #foreground > div {
    background: #0a1164d6;
  }

  #mdvt-embed #scrolly #foreground > div:not(:nth-child(7)),
  #mdvt-embed #scrolly #foreground > div:not(:nth-child(11)) {
    margin: 110vh 0 0 2rem;
  }

  #mdvt-embed h2 {
    font-family: 'Financier Display Semibold', 'Times New Roman', Times, serif;
    line-height: 1.125;
    font-size: 2rem;
  }

  #mdvt-embed p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  #mdvt-embed .transition {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  #mdvt-embed #scrolly {
    /* display: block; */
    font-size: 12px;
  }

  #mdvt-embed #scrolly #background {
    top: 200px;
    height: calc(100vh - 80px);
  }

  #mdvt-embed #scrolly #foreground > div:first-child {
    margin-top: -50vh;
  }
}

@media screen and (max-width: 600px) {
  #mdvt-embed #scrolly {
    font-size: 12px;
  }
}

@media screen and (max-width: 550px) {
  #mdvt-embed #scrolly {
    font-size: 11px;
  }
  #mdvt-embed #scrolly #foreground > p {
    font-size: 1rem;
    line-height: 1.3rem;
    padding: 1.5rem;
  }

  #mdvt-embed #scrolly #foreground > div:last-child {
    margin-top: 65vh;
  }
}

/* AEM */
iframe {
  margin-bottom: -12px;
}

@media only screen and (min-width: 1024px) and (max-width: 1239px) {
  .cmp-container--full-width {
    margin-left: -40px;
    margin-right: -40px;
  }
}

@media only screen and (min-width: 1239px) and (max-width: 1364px) {
  .cmp-container--full-width {
    margin-left: -64px;
    margin-right: -64px;
  }
}

@media screen and (max-width: 500px) {
  #mdvt-embed #scrollProgressBar {
    height: 87px;
  }
}


