/* Fonts */

@font-face {
  font-family: "MarkForMC";
  src: url("https://asset.mastercard.com/content/dam/dxp/fonts/Mark-For-MC/MarkForMC.woff2") format('woff2');
}

@font-face {
  font-family: "MarkForMC-Lt";
  src: url("https://asset.mastercard.com/content/dam/dxp/fonts/Mark-For-MC/MarkForMC-Lt.woff2") format('woff2');
}

@font-face {
  font-family: "MarkForMC-Lt";
  src: url("https://asset.mastercard.com/content/dam/dxp/fonts/Mark-For-MC/MarkForMC-Med.woff2") format('woff2');
  font-weight: 500;
};

@font-face {
  font-family: "MarkForMC-Lt";
  src: url("https://asset.mastercard.com/content/dam/dxp/fonts/Mark-For-MC/MarkForMC-Bold.woff2") format('woff2');
  font-weight: 700;
}

@font-face {
  font-family: "MarkForMCNarrowW00-Book";
  src: url("./static/fonts/MarkForMCNarrowW00-Book.woff2") format('woff2');
  font-style:normal;
  font-weight:400
}

.capitalize:first-letter {
  text-transform: capitalize;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Header */

#header {
  background-color: rgb(20 20 19);
  top: 0;
  z-index: 50;
  width: 100%;
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

#logo-container {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#back-to-main-site {
  text-decoration: none;
  color: white;
  padding-right: 1em;
}

/* Tabs */

  .tab {
    overflow: hidden;
    padding-right: 3em;
  }

  .tablinks {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Style the buttons inside the tab */
  .tab button {
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'MarkForMC';
    -webkit-font-smoothing: auto;
  }

  .tab button:hover {
    color: #ff671b;
  }

  /* Create an active/current tablink class */
  .tab button.active {
    color: #ff671b;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    height: 100%;
    }

    .indented {
      padding: 6px 12px;
    }

/* Table */

.render {
    background-color: #fefefe;
    font-family: 'Lato','Roboto',Arial,Tahoma,sans-serif;
}

.render td, .render th {
    border: .1px solid #b4b4b4;
}

table {
    border-top: 0;
    margin-bottom: 1.5em;
    position: relative;
    table-layout: fixed;
    width: 100%;
    z-index: 1;
}

table {
    border-top: 1px solid #eee;
    margin: 0 0 1.75em;
    max-width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    border-style: hidden; /* hide standard table (collapsed) border */
    box-shadow: 0 0 0 .5px #b4b4b4; /* this draws the table border  */ 

}

.render td, .render th {
    padding: 5px;
}

table tr:first-of-type {
  background-color: rgba(0,0,0,.05);
}

table tr:first-of-type td {
  color: rgba(0,0,0,.6);
  font-weight: 500;
  font-size: .9em;
}

th {
    font-weight: 100;
}

tr th,td:first-of-type {
  font-size: .9em;
  padding-top: .7em !important;
  padding-bottom: .7em !important;

}

.subrow {
    text-align: left;
    font-weight: 500;
    border-bottom: 1px solid black !important;
}

.bubble.bubble-negative {
    background-color: #F38800;
    color: black;
}
.bubble {
    display: inline-block;
    width: 24px;
    height: 24px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    font-family: 'MarkForMC-Lt';
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    background-color: #e4e4e4;
    color: #4e4e4e;

}

.bubble.bubble-neutral {
    background-color: #FFC61E;
    color: black;
}

.bubble.bubble-positive {
    background-color: #628020;
    color: #fff;
}

.modal-header-positive {
  color: #628020;
  font-weight: 500;
  font-size: 1.8em;  
}

.modal-header-negative {
  color: #F38800;
  font-weight: 500;
  font-size: 1.8em;  
}

.modal-header-neutral {
  color: #FFC61E;
  font-weight: 500;
  font-size: 1.8em;  
}

#number-of-studies {
  font-weight: 500;
  font-size: 1.3em;  
}

#modal-transition-word {
  font-weight: 500;
  font-size: 1.3em;
  margin-left: .2em;
}

.table-legend {
  font-size: .8em;
}

.legend-label {
  font-weight: 500;
  color: rgba(0,0,0,.6);
}

/* Text */

h1, h2, h3, h4, h5, h6 {
    font-family: 'MarkForMC-Lt';
    font-weight: normal;
    font-style: normal;
    line-height: 0.93;
}

h3 {
    margin-bottom: 0.8em;
    font-size: 48px; 
    margin-top: 0.3em;
    font-weight: 300;
    letter-spacing: 1.2px;
    line-height: 1.1;
}

h4 {
  font-size: 1.8em;
    font-weight: 500;
    font-weight: 500;
    font-size: 1.8em;  
    margin-top: 0.9em;
  font-weight: 500;
    font-size: 1.8em;  
    margin-top: 0.9em;
}

/* Filters */

.dropdown-check-list {
    display: inline-block;
  }
  
  .dropdown-check-list .anchor {
    position: relative;
    cursor: pointer;
    display: inline-block;
    padding: 5px 50px 5px 10px;
    border: 1px solid #14141357;
    margin-right: 5px;
    margin-bottom: 5px;
    padding-top: 0.8em;
    padding-bottom: 0.8em;
    font-weight: normal;
    font-size: 16px;
    padding-left: 1.5em;
    color: #141413;
    transition: .5s;
    border-radius: .375rem;
    font-family: 'MarkForMCNarrowW00-Book';
  }

    .dropdown-check-list .anchor:after {
    position: absolute;
    content: "";
    border-left: 2.2px solid black;
    border-top: 2.2px solid black;
    padding: 3px;
    right: 15px;
    top: 35%;
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }

  .dropdown-check-list ul.items {
    padding: 10px;
    position: absolute;
    overflow: hidden;
    max-height: 0;
    margin: 0;
    background-color: #fff;
    z-index: 100;
    list-style: none;
    border-radius: .375rem;
    content: #000000bf;
    transition: all .1s ease-in;
    opacity: 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.05);
    font-family: 'MarkForMCNarrowW00-Book';
  }

  .dropdown-check-list.visible .items {
    display: block;
    max-height: 500px;
    overflow: scroll;
    border: .5px solid #b4b4b4;
    opacity: 1;
    transform: translate(0, 0)
  }

  .dropdown-check-list ul.items li {
    font-size: 16px;
    padding-top: .5em;
    padding-bottom: .5em;
    padding-left: .3em;
    padding-right: 1em;
  }

  .dropdown-check-list ul.items li:hover {
    opacity: .8;
  }

  .dropdown-check-list ul.items li {
    vertical-align: middle;
  }

  .dropdown-check-list ul.items span {
    vertical-align: middle;
  }
  
  .dropdown-check-list ul.items [type="checkbox"] {
    vertical-align: middle;
  }



  .dropdown-check-list ul.items label {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: .5em;
    margin-top: .5em;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Hide the browser's default checkbox */
  .dropdown-check-list ul.items label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .dropdown-check-list ul.items .checkmark {
    position: absolute;
    top: 0.1em;
    left: 0;
    height: 12.5px;
    width: 12.5px;
    border: 1px solid #b4b4b4;
    background-color: white;
  }
  
  /* On mouse-over, add a grey background color */
  .dropdown-check-list ul.items label:hover input ~ .checkmark {
    border: 1px solid #ff671b;
  }
  
  /* When the checkbox is checked, add a blue background */
  .dropdown-check-list ul.items label input:checked ~ .checkmark {
    border: 1px solid #ff671b;
    background-color: #ff671b;
  }
  

  /* Create the checkmark/indicator (hidden when not checked) */
  .dropdown-check-list ul.items .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .dropdown-check-list ul.items label input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .dropdown-check-list ul.items label .checkmark:after {
    left: 4.5px;
    top: 2.5px;
    width: 2.5px;
    height: 5px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }



  .dropdown-check-list ul.items li span {
    margin-left: .5em;
  }

  #reset-button {
    padding: 0.5em 2.5em;
    border: 0;
    background-color: #ff671b;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    border-radius: .375rem;
  }

/* Modal */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 5000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    font-family: 'Lato','Roboto',Arial,Tahoma,sans-serif;
  }
  
  /* Modal Content */
  .modal-content {
    font-family: 'MarkForMC';
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
  }
  
  /* The Close Button */
  .close {
    color: #888;
    float: right;
    font-size: 1.2em;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #bibliography {
    margin: 1.2em 0;
    padding: 1.2em 0 0;
    border-top: 1px solid #d9d9d9;
    list-style-type: none;
    height: 500px;
    overflow-y: scroll;
}

#bibliography a {
  line-height: 22px !important;
  color: rgb(255 103 27);
  text-decoration: none;
}

#bibliography > li {
    font-size: 16px !important;
    line-height: 24px;
    padding-left: 0;
    padding-bottom: 1.2em;
    margin-bottom: 1.2em;
    border-bottom: 1px solid #d9d9d9;
}

#filters {
    padding-left: 12px;
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1000;
    padding-top: 1em;
    font-family: 'MarkForMC-Lt';
    letter-spacing: .01em;
}

#results-map, #study-map {
  font-family: 'MarkForMC-Lt';
  letter-spacing: .01em;
}

#results-map-table tr:first-of-type {
  position: sticky;
  top:0;
  z-index: 1000;
  background-color: rgb(241,241,241);
}

#study-map-table tr:first-of-type {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgb(241,241,241);
}

#results-map-table tr:first-of-type td:first-child {
  border-top-left-radius: 10px;
}

#results-map-table tr:first-of-type td:last-child {
  border-top-right-radius: 10px;
}

#number-of-data-points, #modal-transition-word, #number-of-studies {
  font-weight: bold;
}

/* Footer */

.site-footer {
  color: #fff;
  background-color: #4fbdb9;
  margin-top: auto;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.bg-grey-7 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 20 19/var(--tw-bg-opacity));
}

.border-grey-5 {
  --tw-border-opacity: 1;
  border-color: rgb(85 82 80/var(--tw-border-opacity));
}

.justify-between {
  justify-content: space-between;
}

.pt-3 {
  padding-top: 0.75rem;
}

.justify-between {
  justify-content: space-between;
}
.items-end {
  align-items: flex-end;
}

.max-w-250-px {
  max-width: 250px;
}

.w-full {
  width: 100%;
}

.w-7 {
  width: 1.75rem;
}

.h-7 {
  height: 1.75rem;
}

.managed-by {
  float: right;
  padding-top: 1.25em;
  text-align: end;
  max-width: 24rem;
}


.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

menu, ol, ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

svg {
  display: block;
  vertical-align: middle;
}

.justify-center {
  justify-content: center;
}
.items-center {
  align-items: center;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255/var(--tw-text-opacity));
}

.text-orange {
  color: #ff671b;
}

.hover-orange:hover {
  --tw-text-opacity: 1;
  color: rgb(255 103 27/var(--tw-text-opacity));
}

a {
  text-decoration: none;
}

.space-x-6 {
  margin-right: 1.5rem;
}

.space-x-3 {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

.space-between {
  justify-content: space-between;
}

.text-sm {
  font-family: 'MarkForMCNarrowW00-Book';
  font-size: 14px;
  line-height: 20px;
}

.center {
  text-align: center;
}

.bubble-small {
  width: 20px;
  height: 20px;
  vertical-align: bottom;
  font-size: 15px;
  margin: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bubble-medium {
  margin: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bubble-big {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    vertical-align: top;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bubble-bigger {
  width: 35px;
  height: 35px;
  border-radius: 100%;
  vertical-align: top;
  margin: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#filters-label {
  font-size: 1.2em;
  margin-bottom: 0.7em;
  margin-top: .7em;
  font-weight: 500;
  font-family: 'MarkForMC-Lt';
  letter-spacing: .01em;
}

.footer-logo {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}

.footer-logo:hover {
  opacity: .75
}

/* Hero */

.hero-about {
  background-image: linear-gradient(90deg,#121024 17.4%,#403d58 41.87%,rgba(64,61,88,0)), url("static/images/hero-about.jpg");
}

.hero-how-to {
  background-image: linear-gradient(90deg,#121024 17.4%,#403d58 41.87%,rgba(64,61,88,0)), url("static/images/hero-how-to.jpg");
}

.hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  color: white;
  padding-top: 5em;
  padding-bottom: 5em;
  min-height: 20em;
  height: auto;
  font-size: 1.2em;
  line-height: 1.5em;
}

.hero-text div {
  font-family: 'MarkForMCNarrowW00-Book';
  font-size: 1.125rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .hero-text {
      width: 66.666667%;
  }
}

@media (min-width: 1280px) {
  .hero-text {
      width: 50%;
  }
}

.hero h3 {
  max-width: 20em;
}

.hero .preset {
  font-size: 14px;
  font-weight: bold;
  letter-spacing:  2.4px;
  line-height: 20px;
}

.hero-content {
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 1.2em;
  line-height: 1.5em;

}

.hero-content h2 {
  margin-top: 1.3em;
  margin-bottom: 1.3em;

  font-family: 'MarkForMC-Lt';
  font-size: 28px;
  font-weight: 300;
  line-height: 35px;
}

.hero-content div {
  font-family: MarkForMCNarrowW00-Book;
  font-size: 18px;
  line-height: 28px;
}

.hero-content .bullet {
  font-family: 'MarkForMC-Lt';
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 28px;

}

/* Blog */

#blog {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-item {
  max-width: 20em;
  position: relative;
  padding-bottom: 2em;
	width: 30%;
}

.blog-thumbnail {
  width: 100%;
  height: auto;
}

.blog-thumbnail:hover {
  opacity: .8;
  transition: .2s;
}

.blog-label {
  font-size: .8em;
  color: rgba(0,0,0,.6);
}

.blog-title {
  font-weight: bold;
  padding-top: .5em;
}

.blog-summary {
  font-size: .9em;
  padding-top: 1em;
}

.read-article {
  font-size: .9em;
  padding-top: 1em;
  color: black;
}

.blog-read-more {
  position: absolute;
  bottom: 0;
}

.blog a {
  text-decoration: none;
  color: black;
}

/* Strive community grid functionality */

.app-grid {
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: 1rem;
}

@media (min-width: 1024px) {
  .app-grid {
      grid-template-columns: repeat(12,minmax(0,1fr));
  }
}

@media (min-width: 768px) {
  .app-grid {
      grid-template-columns: repeat(12,minmax(0,1fr));
      gap: 1.5rem;
  }
}

.wrapper {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 1024px) {
  .lg-col-start-2 {
    grid-column-start: 2 !important;
    grid-column-end: 12 !important;
  }
  .lg-col-span-10 {
    grid-column: span 10/span 10;
  }
}

@media (min-width: 768px) {
  .wrapper {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
  }
}

.col-span-full {
    grid-column: 1/-1;
}

.col-span-5 {
  grid-column: span 5/span 10;
}

.infoClick {
  color: rgb(255 103 27);
  font-size: 12px;
}

#definitionWord {
  font-weight: bold;
  font-size: 1.3em;
}

#definitionDefinition {
  margin-top: 1em;
}

.white-block {
  background-color: white;
  padding-top: 4em;
  padding-bottom: 4em;
}

.grey-block {
  background-color: rgb(243 240 238);
  padding-top: 4em;
  padding-bottom: 4em;
}

.block-content {
  display: flex;
  gap: 5em;
}

.about-icon {
  max-width: 150px;
}

.tags li {
  margin-top: 5px;
}

.tags li label {
  font-weight: bold;
}