body {
  font-family: "IBM Plex Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: #111;
  margin: 0;
  overflow: hidden;
}

h1 a {
  font-weight: 400;
  margin-bottom: 1em;
  margin-top: 2em;
  background: linear-gradient(to right, #ff8a00, #da1b60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1.0;
  transition: 0.4s;
  text-decoration: none; 
  font-size: 36px; 
}

h2 a {
 font-weight:400;
 background: linear-gradient(to right, #ff8a00, #da1b60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1.0;
  transition: 0.4s;
  text-decoration: none; 
  font-size: 26px; 
}

h5 a, h5 {
 font-weight:400;
 background: linear-gradient(to right, #ff8a00, #da1b60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1.0;
  transition: 0.4s;
  font-size: 18px; 
  align-self: center;
}

p a, li a {
 font-weight:400;
 background: linear-gradient(to right, #ff8a00, #da1b60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1.0;
  transition: 0.4s;
  text-decoration: none; 
}

.links a {
  opacity: 0.7;
  transition: 0.4s;
  margin: 0.5em;
  text-decoration: none;
  font-weight: 300;
  color: white;
}

a:hover {
  opacity: 1.0;
}

p, li {
  color: white;
  opacity: .8;
  font-size: 14px;
  font-weight: 300;
  line-height: 26px;
}

/** front page video **/

.content {
  position: fixed;
  bottom: 200px;
  width: 100%;
  text-align: center;
}

#myVideo {
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  object-fit: cover;
  z-index: -99;
  position: relative;
  opacity: 0.25;
}

/** front page "?" button **/
#about-btn {
  position: absolute;
  top: 25px;
  left: 25px;
}

.citation {
  position: absolute;
  bottom: 25px;
  right: 25px;
  font-size: 12px;
}

iframe {
  width: 60vw;
  height: 70vh;
}


/** BUTTON (GENERIC) **/

.button-container {
  flex-direction: column;
  justify-content: space-between;
}

button {
  font-family: "IBM Plex Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  opacity: 0.7;
  transition: 0.4s;
  background-color: transparent;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  margin-top: 13px;
  border: solid 1px;
  border-color: white;
}

button:hover {
	opacity: 1.0;
  color:white;
  border-color:white;
  background-image:
    linear-gradient(
       to right, #ff8a00, #da1b60);
}

button a:hover {
  background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

button:focus {
  outline: none;
}

#result-btn {
  display: none;
  margin-top: 15em;
}

/** MODAL **/
/** Original: https://codepen.io/maziarzamani/pen/oxBKxX **/

.modal {
  position: absolute;
  top: 0;
  left: 0;
  height: 300%;
  width: 100%;
  z-index: 111;
  background-color: #111;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.modal.activated {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}


.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 35px 100px;
}

.flexy-container {
  display:flex;
  align-items: center;
}

.square {
  height:50px;
  width:50px;
  margin:15px;
}

#sense {
  background: linear-gradient(to top, #00FFC4, #00DCFF);
}

#spec {
  background: linear-gradient(to top, #da1b60, #8a00ff);
}

#acc {
  background: linear-gradient(to right, #ff8a00, #da1b60);
}

.top-content {
  display: flex;
  align-items: baseline;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 15px;
}

.top-content button {
  margin-top: 0;
}

.top-content h1 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.explanation {
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}


/** CHART STYLING **/

canvas {
  border: 1px solid #ddd;
}

.chart-container {
  position: relative;
  display: block;
  margin-bottom: 25px;
  height: 60vh;
  width: 88vw;
}

/** IMAGE ARRAY Styling **/

.img-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 30px;
  margin-bottom: 600px;
}

.filterDiv {
  float: left;
  background-color: #FFFFFF;
  text-align: center;
  margin: 10px;
  max-width: 180px;
  max-height:180px;
  display: none; /* Hidden by default */
}

.filterDiv img {
  max-width: 180px;
}

.tp, .fn {
  border-width: : 5px;
  border-style: solid;
  border-image-source: linear-gradient(to top, #00FFC4, #00DCFF);
  border-image-slice: 1;
}

.tn, .fp {
  border-width: : 5px;
  border-style: solid;
  border-image-source: linear-gradient(to top, #da1b60, #8a00ff);
  border-image-slice: 1;
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}


/** BUTTON (FILTER IMAGES) **/

#myBtnContainer a {
  color: white;
  cursor: pointer;
}


#myBtnContainer a:hover {
  opacity: 1.0;
}

.btn {
  color: white;
  opacity: .7;
  transition: 0.4s;
  font-size: 14px;
  font-weight: 400;
  padding: 3px;
}

.btn:hover {
  opacity: 1.0;
}

.btn.active {
  opacity:1.0;
  font-weight: 14px;
  background: linear-gradient(to right, #ff8a00, #da1b60);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.filter-controls {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;;
}

span {
  color: #ddd;
  font-size: 14px;
  font-weight: 300;
}

/** CARDS **/
/** Original: https://codepen.io/colin/pen/bdxoZL **/

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:center;
}

.card {
  background: #111;
  /**border-radius: .15em;**/
  height: 300px;
  width: 300px;
  padding: 0.5em;
  border-style: solid;
  border-color: white;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1), 0 2px 3px rgba(0, 0, 0, 0.16);

  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-transform-origin: 50% 0;
          transform-origin: 50% 0;
  -webkit-transform: perspective(100px) translateY(75px) scale(0.9) rotateX(-10deg);
          transform: perspective(100px) translateY(75px) scale(0.9) rotateX(-10deg);

  opacity: 0;
  -webkit-transition: all .4s ease, max-height .75s ease;
  transition: all .4s ease, max-height .75s ease;
}

/*.card:hover {
  opacity:1;
  border-width: : 5px;
  border-style: solid;
  border-image-source: linear-gradient(to right, #ff8a00, #da1b60);
  border-image-slice: 1;
}*/

.card--added {
  -webkit-transform: translateY(0px) scale(1);
          transform: translateY(0px) scale(1);
  opacity: 1;
}

.card:nth-last-of-type(2) {
  -webkit-transform: translate3d(0, -10px, -32px);
          transform: translate3d(0, -10px, -32px);
  opacity: 1;
}

.card:nth-last-of-type(3) {
  -webkit-transform: translate3d(0, -20px, -64px);
          transform: translate3d(0, -20px, -64px);
  opacity: 0.85;
}

.card:nth-last-of-type(4) {
  -webkit-transform: translate3d(0, -30px, -96px);
          transform: translate3d(0, -30px, -96px);
  opacity: 0.7;
}

.card:nth-last-of-type(5) {
  -webkit-transform: translate3d(0, -40px, -128px);
          transform: translate3d(0, -40px, -128px);
  opacity: 0.55;
}

.card:nth-last-of-type(6) {
  -webkit-transform: translate3d(0, -50px, -160px);
          transform: translate3d(0, -50px, -160px);
  opacity: 0.4;
}

.card:nth-last-of-type(7) {
  -webkit-transform: translate3d(0, -60px, -192px);
          transform: translate3d(0, -60px, -192px);
  opacity: 0.25;
}

.card:nth-last-of-type(8) {
  -webkit-transform: translate3d(0, -70px, -224px);
          transform: translate3d(0, -70px, -224px);
  opacity: 0.1;
}

.card:nth-last-of-type(9) {
  -webkit-transform: translate3d(0, -80px, -256px);
          transform: translate3d(0, -80px, -256px);
  opacity: -0.05;
}

.card:nth-last-of-type(10) {
  -webkit-transform: translate3d(0, -90px, -288px);
          transform: translate3d(0, -90px, -288px);
  opacity: -0.2;
}

.card:nth-last-of-type(11) {
  -webkit-transform: translate3d(0, -100px, -320px);
          transform: translate3d(0, -100px, -320px);
  opacity: -0.35;
}

.card:nth-last-of-type(n+10) {
  display: none;
}
.card:nth-last-of-type(n+2) {
  position: absolute;
  height: 300px;
  overflow: hidden;
}

.stacked-cards {
  margin-top: 120px;
  -webkit-perspective: 1000px;
          perspective: 1000px;
  position: flex;
  flex-direction; column;
  align-items: center;
}
