/*root styles*/
:root {
  font-size: 10px;
}

:root {
  --mc-logo: url(img/mc_logo.png);
}

:root {
  --meibg: #1a1a1a;
  --meigold: #f0c771;
  --meigray: #b3b3b3;
  --meiwhite: #ffffff;
  --meiblack: #141413;
  --meidarkgrey: #323231;
  --meiturquoise: #4fcdb0;
  --meilightgrey: #656159;
  --meiextralightgrey: #d3d3d3;
  --meitan: #bfb29e;
  --meipeach: #ffd9a5;
  --meiwhiteGrey: #f8f7f5;
  --meiorange: #cf4500;
  --meilighttan: #f2efeb;
}

:root {
  --meiblackTransparent: #14141340;
  --meibgTransparent: #1a1a1a40;
  --meidarkgreyTransparent: #32323140;
  --meiturquoiseTransparent: #4fcdb040;
  --meilightgreyTransparent: #65615940;
  --meiextralightgreyTransparent: #d3d3d340;
  --meigoldTransparent: #f0c77140;
  --meitanTransparent: #bfb29e40;
  --meipeachTransparent: #ffd9a540;
  --meiwhiteTransparent: #ffffff40;
  --meiwhiteGreyTransparent: #f8f7f540;
  --meiorangeTransparent: #cf450040;
}

:root {
  --main-font: "Mark For MC";
  --meifullsizefont: 2rem;
  --meimedsizefont: 1.85rem;
  --meismallsizefont: 1.5rem;
  --chartsizefont: calc(max(1.5rem, 20px));
}

:root {
  --bg-color: var(--meibg);
  --font-color: var(--meiwhite);
  --contrast-bg: var(--meidarkgrey);
  --contrast-color: var(--meiwhite);
  --contrast-color2: var(--meiwhite);
  --callout-font-color: var(--meipeach);
  --heading-color: var(--meitan);
  --link-color: var(--meiorange);
  --light-section: var(--contrast-bg);
  --tab-color: var(--font-color);
  --font-family: var(--main-font);
}

:root {
  --bg-color-transparent: var(--meibgTransparent);
  --font-color-transparent: var(--meiwhiteTransparent);
  --contrast-bg-transparent: var(--meiwhiteTransparent);
  --contrast-color-transparent: var(--meiwhiteTransparent);
  --contrast-color2-transparent: var(--meiwhiteTransparent);
  --callout-font-color-transparent: var(--meipeachTransparent);
  --heading-color-transparent: var(--meitanTransparent);
  --link-color-transparent: var(--meiorangeTransparent);
}

:root {
  --meichartRootSize: 1.5rem;
  --meichartAxisSize: calc(var(--meichartRootSize) + 0.3rem);
  --meichartSubTitleSize: calc(var(--meichartRootSize) + 0.6rem);
  --meichartTitleSize: calc(var(--meichartRootSize) + 1rem);
}

/*font faces*/
/*base font 200*/
@font-face {
  font-family: "Mark For MC";
  font-weight: 200;
  font-style: normal;
  src: url(fonts/MarkForMC-ExtraLt.ttf) format("truetype");
}

@font-face {
  font-family: "Mark For MC";
  font-weight: 300;
  font-style: normal;
  src: url(fonts/MarkForMC-Lt.ttf) format("truetype");
}

@font-face {
  font-family: "Mark For MC";
  font-weight: 400;
  font-style: normal;
  src: url(fonts/MarkForMCNrw.ttf) format("truetype");
}

@font-face {
  font-family: "Mark For MC";
  font-weight: 500;
  font-style: normal;
  src: url(fonts/MarkForMC-Med.ttf) format("truetype");
}

@font-face {
  font-family: "Mark For MC";
  font-weight: 700;
  font-style: normal;
  src: url(fonts/MarkForMC-Bold.ttf) format("truetype");
}

@font-face {
  font-family: "Mark For MC";
  font-weight: 800;
  font-style: normal;
  src: url(fonts/MarkForMC-Heavy.ttf) format("truetype");
}

/* body*/
body {
  margin-left: auto;
  margin-right: auto;
  font-family: "Mark For MC" !important;
  font-weight: 200 !important;
  color: var(--font-color) !important;
  font-size: var(--meifullsizefont) !important;
  overflow-x: hidden;
  background: var(--bg-color) !important;
  line-height: 1.6;
  background-color: var(--meibg);
  color: var(--font-color);
  margin: 0;
}

/*------------------  Typography ------------------ */
/*
#mei is the id name of the "mastercard economics institute" on the banner;
h1 is the Main title on the banner,
h2 is the report subtitle (on the banner)
h3 is the section header
h4 is the section sub header
h5 is the font for "footnotes/ About the MEI/ Disclaimer" under the section of "Note & Disclaimer"
p is the content
*/
#meiBannerTitle {
  font-family: "Mark For MC";
  font-weight: 400;
  font-size: 2.2rem; /*22pixels*/
  color: var(--meigold);
  margin: 0 !important;
}

#meiTopBanner{
  padding-bottom: 3.5rem;
}

.banner-text > h1, .banner-text > h2{
  margin: 0 !important;
}

h1 {
  font-family: "Mark For MC";
  font-weight: 300;
  font-size: 3.9rem; /*39pixels*/
  padding: 1.5rem 0 0.8rem 0;
}

h2 {
  font-family: "Mark For MC";
  font-weight: 300;
  color: var(--meigray);
  font-size: 2.7rem; /*27 pixels*/
}

h3 {
  /*h3 is the section header"*/
  font-family: "Mark For MC";
  font-weight: 300;
  font-size: 3.3rem; /*33px*/
  color: var(--meigold);
  margin-top: 4.5rem; /*45px*/
}

h4 {
  /*h4 is the sub header*/
  font-family: "Mark For MC";
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--meigray);
  border-left: 3.2px solid var(--meigold); /*#e8c374*/
  padding-left: 12px;
  line-height: 1.2;
  margin-top: 1.12rem; /*11.2px*/
  margin-bottom: 1.92rem; /*19.2px*/
}

h5 {
  /*h5 is the font for "footnotes/ About the MEI/ Disclaimer" under the section of "Note & Disclaimer"*/
  font-family: "Mark For MC";
  font-weight: 300;
  font-size: 2.4rem; /*24 pixels*/
  color: var(--meigold);
  margin-top: 1.35rem; /*13.5px*/
  margin-bottom: 2.5rem;
}

h6 {
  font-family: "Mark For MC";
  font-weight: 300;
  font-size: 2.1rem;
  color: var(--meiwhite);
  margin-top: 1.35rem;
  margin-bottom: 2.5rem;
}

p {
  font-family: "Mark For MC";
  font-weight: 200;
  margin: 0 0 25px;
}

b,
strong {
  color: var(--meiwhite);
}

/*------------------  Banner: flexbox ------------------ */
.banner {
  height: 50rem;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: 70%;
  display: flex;
  align-items: center;
  width: calc(100vw - 20px);
  margin-left: calc(-50vw + 50% + 10px);
}

/*Texts on the banner*/
.banner-text {
  padding-left: 13vw;
  padding-right: 47.5vw;
}

/*------------------  Content, banner excluded  ------------------*/
.main-container {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding: 0 13vw 0 13vw; /* Indentation on the left/ right: 13% of the browser width*/
}

.content {
  font-size: 2rem; /*20px*/
  line-height: 1.6;
}

blockquote {
  font-size: 2.4rem; /*24px*/
  padding: 1.92rem 12.5% 1.92rem 12.5%;
  line-height: 1.6;
}

/*Link*/
a {
  color: var(--meigold);
}
a:link,
a:uri,
a:email,
sup {
  font-weight: 200;
  text-decoration: none;
  color: var(--meigold);
}

a:hover {
  text-decoration: underline;
  transition: 0.3s;
}

a:focus,
a:hover {
  color: var(--meigold);

  text-decoration: underline;
}

.chart-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chart-iframe-wrapper {
  margin-left: auto;
  margin-right: auto;
  display: block;
  position: relative;
  min-width: 100%;
  overflow: hidden;
  min-height: 480px;
}

/*may be a better route here, but avoidiing going against bootstrap upstream*/

.container-fluid {
  padding-right: 5rem;
  padding-left: 5rem;
}

/*------------------  Learnmore and Notes and Disclaimer  ------------------*/
.learnmore {
  margin: 6.4rem 0;
  padding: 3.2rem 12.5% 3.2rem 12.5%; /* Indentation on the left/ right: 12.5% of the .main-container width*/
  border-top: 1px solid #444340;
  border-bottom: 1px solid #444340;
  display: grid;
  grid-gap: 3.2rem;
  grid-template-columns: 0.75fr 0.25fr;
  justify-items: end;
  align-items: center;
}

.notendisclaimer {
  margin: 0 0 3.2rem 0;
  padding: 0 0 3.2rem 0;
}

#request_btn {
  font-size: 1.6rem; /*16px*/
  padding: 0.8rem 1.6rem 0.8rem 1.6rem;
  border-radius: 3.2rem;
  background: none;
  color: var(--meigold) !important;
  border: 1.5px solid var(--meigold) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
  height: 3.68rem;
  width: 19.2rem;
  font-weight: 100 !important;
  line-height: 0 !important;
}

#request_btn:hover, .learnMore:hover {
  background-color: var(--meigold) !important;
  color: #ffffff !important;
}

/*------------------  progress bar ------------------*/
body {
  .scroll-line {
    background: #f7bd1e; /*It's more vibrant than mei gold*/
    top: 0;
    left: 0;
    height: 3.5px;
    position: fixed;
    transition: 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 1;
  }
}

/*------------------  On mobile: when width is 600px or less ------------------*/
@media (max-width: 600px) {
  .banner {
    background-image: var(--cover-mobile-image);
    align-items:end;
  }

  .banner-text {
    display: table-cell;
    vertical-align: middle;
    padding: 0 12.5vw 5vw 12.5vw;
  }

  .banner-text h1 {
    font-size: 3.3rem; /*33pixels*/
  }

  #subtitle {
    font-size: 2.4rem; /*24pixels*/
  }

  h3 {
    line-height: 3.2rem;
  }

  .content {
    font-size: 1.8rem; /*18px*/
  }

  #meiBannerTitle {
    font-size: 2rem; /*20pixels*/
    margin: 0 !important;
  }


  blockquote {
    font-size: 2.2rem; /*22px*/
    line-height: 1.5;
  }

  #request_btn {
    margin: 0;
  }

  .learnmore > p{
    margin-bottom: 25px !important;
  }
}

/*------------------  On mobile: when width is 912px or less ------------------*/
@media (max-width: 912px) {
  .learnmore {
    margin: 5.1rem 0;
    padding: 3.2rem 0 3.2rem 0;
    display: block;
  }
  .learnmore > p{
    margin-bottom: 25px !important;
  }

  #learnmore {
    margin-bottom: 1.92rem;
  }

  :root {
    --meichartRootSize: 1.3rem;
  }
}

/* tabsets */
.nav-tabs {
  border-bottom: none;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 24px;
  padding-left: 0px !important;
}

.nav-tabs > li > a {
  color: #d0cabd;
}

.nav-tabs > li > a:focus,
.nav-tabs > li > a:hover {
  color: #d0cabd;
  text-decoration: underline;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: #d0cabd;
  background-color: transparent;
  border: none;
}
.nav-tabs > li.active > a:after,
.nav-tabs > li.active > a:focus:after,
.nav-tabs > li.active > a:hover:after {
  color: #d0cabd;
  background-color: transparent;
  border: none;
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 1px;
  border-width: 0 0 3px;
  border-style: solid;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: var(--meiwhite) !important;
  background-color: var(--contrast-bg);
  border: none;
}

.nav > li > a:focus,
.nav > li > a:hover {
  text-decoration: none;
  background-color: transparent;
}

.nav-tabs > li > a:hover {
  border-color: transparent;
}

ul.nav li {
  display: inline-block;
  float: none;
}

/*presentation format*/

/*storyboard*/
.storyboard-nav .sbframelist ul li.active {
  background-color: #373736 !important;
  color: #ffffff !important;
}
.storyboard-nav .sbframelist ul li {
  border: 1px solid transparent !important;
  background-color: #37373680 !important;
  color: #ffffff !important;
  border-radius: 0px !important;
  margin-right: 5px !important;
  font-size: 1.2rem !important;
  font-weight: 200 !important;
  font-size: 1.7rem !important;
  width: initial !important;
}

.chart-wrapper,
.nav-tabs-custom,
.sbframe-commentary {
  background: #171716;
  border: 1px solid transparent;
}

.chart-wrapper .chart-stage {
  padding: 5px 10px;
  position: relative;
}

.chart-shim,
.flowing-content-shim {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

.storyboard-nav .sbframelist {
  margin: 0 auto;
  width: 94%;
  height: 120px;
  text-shadow: none;
  margin-bottom: 8px;
}

.storyboard-nav .sbnext,
.storyboard-nav .sbprev {
  height: 100% !important;
}

.storyboard-nav .sbframelist {
  height: 100% !important;
  margin-bottom: 0px !important;
}

/*need to revisit whether this is the right component*/
.storyboard-nav {
  height: 50px;
  margin-top: 10px;
  padding: 0px 30px;
}

.chart-wrapper,
.nav-tabs-custom,
.sbframe-commentary {
  background: var(--bg-color) !important;
}

.chart-wrapper,
.nav-tabs-custom,
.sbframe-commentary {
  background: transparent !important;
  border: none !important;
}
.chart-shim,
.flowing-content-shim {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

.storyboard-nav .sbnext,
.storyboard-nav .sbprev {
  height: 100% !important;
  max-height: 55px;
}

.storyboard-nav .sbframelist {
  height: 100% !important;
  max-height: 55px;
  margin-bottom: 0px !important;
}

.chart-wrapper,
.nav-tabs-custom,
.sbframe-commentary {
  background: var(--bg-color) !important;
}

/*arrow toggles*/
.sbprev > i.fa.fa-angle-left,
.sbnext > i.fa.fa-angle-right {
  vertical-align: top;
}

/*navbar header*/
#ei-header {
  color: var(--meigold);
  font-size: 2.3rem;
  font-weight: 400;
  background-color: var(--contrast-bg);
  padding: 0px 0 0px 25px;
  margin: auto;
  height: 40px;
}

#ei-header-side {
  line-height: 10px;
}

#full-screen-toggle {
  position: absolute;
  top: 7px;
  right: 50px;
  font-weight: 800;
  color: var(--meiwhite);
}

#mei-confidential {
  position: absolute;
  top: 15px;
  color: #d22a2f;
  right: 100px;
}

/*hide old navbar*/
div.navbar.navbar-inverse.navbar-fixed-top {
  display: none;
  background-color: transparent;
  border-color: transparent;
  color: transparent;
}

/*headers*/

.light-header {
  font-weight: 300;
  font-size: 3rem;
  line-height: 3.8rem;
  font-weight: 300;
  color: var(--meigold);
}

.subtitle {
  font-weight: 300;
  font-size: 2.7rem;
  color: var(--meigray);
  border-left: 3.2px solid var(--meigold);
  padding-left: 12px;
  line-height: 1.2;
  margin-top: 1.12rem;
  margin-bottom: 1.92rem;
}

.data-source {
  text-align: right;
  font-size: 1.6rem;
  color: var(--meigray);
}

.sbframe-content {
  padding: 10px 75px 0px 75px;
}

/*landing page for pres*/
#globalLandingPageHeader,
#globalLandingPageSubHeader {
  font-size: 2.5rem;
  color: #f0c771;
  padding-bottom: 1.25rem;
}

#globalLandingPageSubHeader {
  font-size: 3.7rem;
  color: white;
}

#GlobalLandingPageTitle > p {
  margin: 0;
  font-weight: 300;
}

#GlobalLandingPageTitle {
  position: absolute;
  z-index: 1;
  top: 40%;
  transform: translateY(-50%);
  left: 6.25%;
}

@keyframes landingFadeOut {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    display: none;
    opacity: 0;
  }
}

@keyframes landingFadeIn {
  from {
    opacity: 0;
    display: none;
    transform: translateY(70%);
  }
  to {
    display: block;
    opacity: 1;
  }
}

.landingFadeOutPara {
  animation-name: landingFadeOut;
  animation-fill-mode: forwards;
}

.landingFadeInPara {
  animation-name: landingFadeIn;
  animation-duration: 1.29s;
  animation-fill-mode: forwards;
}

#globalLandingframe {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 0;
  border: 0 none;
  height: 1px;
  width: 1px;
  min-height: 100%;
  min-width: 100%;
}



/*buttons selects and inputs*/

.selector-label {
  display: inline;
  padding-left: 10px;
  padding-right: 5px;
}

.selector-output {
  display:inline;
  color:var(--font-color) !important;
}

button,
input,
select,
textarea {
  background: var(--bg-color);
  background-color: var(--bg-color) !important;
  color: var(--contrast-font-color) !important;
  font-weight: 400 !important;
  border: none;
  border-bottom: 1px solid;
  border-color: var(--contrast-color2) !important;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0;
  cursor: pointer;

}

.btn-default,
.btn-default:hover,
.btn-default.active.focus,
.btn-default.active,
.btn-default:active,
.open > .dropdown-toggle.btn-default,
.btn-default.active:focus,
.btn-default.active:hover,
.btn-default:active.focus,
.btn-default:active:focus,
.btn-default:active:hover,
.open > .dropdown-toggle.btn-default.focus,
.open > .dropdown-toggle.btn-default:focus,
.open > .dropdown-toggle.btn-default:hover {
	color: var(--contrast-color2) !important;
	background-color: var(--bg-color) !important;
	border: none;
	border-bottom: 1px solid;
	border-color: var(--contrast-color2) !important;
}

.dropdown-menu {
  background: var(--bg-color);
  background-color: var(--bg-color);
  color: var(--contrast-color);
  float: right;
  right: 0;
  left: unset;
}

.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.43;
  color: var(--font-color) !important;
  white-space: nowrap;
}

.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover {
  color: var(--font-color) !important;
  text-decoration: none;
  background-color: var(--bg-color) !important;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover {
  color: #fff;
  text-decoration: none;
  background-color: var(--bg-color) !important;
  outline: 0;
}

.btn-default.focus,
.btn-default:focus {
  color: var(--font-color);
  background-color: var(--bg-color) !important;
  border-color: var(--meilightgrey);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover {
  color: var(--font-color);
  text-decoration: none;
  background-color: var(--meiblack);
  outline: 0;
}

/*auto complete*/
.autoComplete_wrapper {
  display: inline-block;
  position: relative;
  float: right;
  margin-top: -40px;
  margin-right: 250px;
}

/*macro snap popup*/
a#openaboutMacroSnapshot {
  cursor: pointer;
  color: #cea97b;
  font-size: 18px;
  font-weight: 450;
}
.about-msnap-model-button {
  font-weight: 450;
  font-size: 18px;
  color: #cea97b;
  color: var(--heading-color);
}
.about-msnap-modal {
  display: none;
  position: fixed;
  z-index: 9999999999999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.about-msnap-modal-content {
  display: flex;
  flex-direction: column;
  margin: 5% auto;
  padding: 20px;
  height: 90%;
  width: 90%;
}
#aboutMacroSnapshot {
  min-width: 800px;
  width: 80%;
  height: auto;
  margin: auto;
  background: var(--contrast-bg);
  padding: 20px 30px;
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
}

.footnotes > hr {
    border-top: 1px solid #444430 !important;
}

/* multi-select dropdown box with checkboxes */

.selector_multi_dropdown_label_wrapper {
  display:inline-block;
}

.selector_multi_dropdown_label_hidden {
  display: none;
}

.selector_multi_dropdown_content {
  display: none;
  z-index: 2;
  position: absolute;
  background: var(--bg-color);
  background-color: var(--bg-color);
  color: var(--contrast-color);
}


.selector_multi_dropdown_label {
  background: var(--bg-color);
  background-color: var(--bg-color);
  color: var(--contrast-font-color);
  font-weight: 400;
  border: none;
  border-bottom: 1px solid;
  border-color: var(--contrast-color2);
  padding-left: 5px;
  padding-right: 3px;
  padding-bottom: 3px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0;
  cursor: pointer;
}

.selector_multi_dropdown_label_arrow {
  font-size: 10px;
  padding-left: 10px;
}

.selector_multi_dropdown_label_hidden:checked+.selector_multi_dropdown_content {
  display: block;
}

.selector_multi_dropdown_content>ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  max-height: 300px;
  padding-right: 10px;
  border: 1px solid;
  border-color: var(--meilightgrey);
}

.selector_multi_dropdown_content>ul>li {
  padding-top: calc(var(--bs-gutter-y)* -1);
  padding-right: calc(var(--bs-gutter-x)* -.5);
  padding-left: calc(var(--bs-gutter-x)* -.5);
  font-size: small;
}

.selector_multi_dropdown_content>ul>li:hover {
  background-color: darkgrey;
}

/* modal pop-ups for more information for slides */

button.open-slide-guide {
  float: right;
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
}

.slide-guide {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.slide-guide-content {
  background-color: #201f20;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid;
  border-radius: 10px;
  width: 80%;
}

.close-slide-guide {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-slide-guide:hover,
.close-slide-guide:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
