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

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

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

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

p a,
li a {
  font-weight: 600;
  background: linear-gradient(to right, #FF52A4, #FF294E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
  transition: 0.4s;
  text-decoration: none;
}

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

a:hover {
  opacity: 1;
}

p,
li {
  color: white;
  opacity: 0.9;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

/** front page video **/

.content {
  position: fixed;
  bottom: 250px;
  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.5;
}

/** 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;
  color: white;
  border-color: white;
  background-image: linear-gradient(to right, #FF52A4, #FF294E);
}

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;
  height: 80px;
  width: 120px;
  justify-content: center;
  align-items: center;
}

/** Style Buttons **/

.style-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 100px;
}

#AE,
#PI,
#R,
#all {
  height: 200px;
  width: 200px;
  margin: 5px;
}

#AE {
  background-image: url('glitch-assets/A_37263.png');
}

#PI {
  background-image: url('glitch-assets/P_24876.png');
}

#R {
  background-image: url('glitch-assets/R_18439.png');
}

#all {
  background-image: linear-gradient(to right, #FF52A4, #FF294E);
}

.last-button {
  margin-bottom: 100px;
}

.submit {
  margin-left: 5px;
}

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

.modal {
  position: absolute;
  top: 0;
  left: 0;
  height: 200%; /** height of modal **/
  width: 100%;
  z-index: 111;
  background-color: #08032c;
  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;
}

.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;
  flex-wrap: wrap;
}

.rules {
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-around;
}

.rule-item {
  width: 32%;
}

.rule-item img {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 800px) {
  .modal {
    height: 350%;
  }
  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 100px;
  }
  .rules {
    flex-direction: column;
  }
  .rule-item {
    width: 90%;
  }

  #AE,
  #PI,
  #R,
  #all {
    height: 120px;
    width: 120px;
    margin: 5px;
  }
}

/** 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;
}

.smallStack {
  margin-bottom: 50px;
}

.filterDiv {
  float: left;
  text-align: center;
  margin: 24px;
  max-width: 180px;
  max-height: 180px;
  display: none; /* Hidden by default */
  /* TEXT STYLING */
  color: white;
  opacity: 0.8;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 40px;
}

.filterDiv img {
  max-height: 140px;
  max-width: 140px;
}

.filter-label {
  font-size: 14px;
  font-weight: bold;
}

/* Summary page: Sense, Spec, and Acc squares */

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

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

#sense {
  background: #00DCFF;
}

#spec {
  background: #8a00ff;
}

#acc {
  background: #da1b60;
}

/* .tp, .fn {
  background-color: #00DCFF;
  padding-right: 12px;
  padding-bottom: 12px;
}

.tn, .fp {
  background-color:#8a00ff;
  padding-right: 12px;
  padding-bottom: 12px;
} */

/* from frame: https://codepen.io/chris22smith/pen/PbBwjp */
.frame {
  background-color: #f2f2f2;
  border: solid 2vmin #eee;
  border-bottom-color: #fff;
  border-left-color: #eee;
  border-radius: 2px;
  border-right-color: #eee;
  border-top-color: #ddd;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25) inset,
    0 5px 10px 5px rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 3vmin;
  position: relative;
  text-align: center;
}

/* 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;
}

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

.btn:hover {
  opacity: 1;
}

.btn.active {
  opacity: 1;
  font-weight: 14px;
  background: linear-gradient(to right, #FF52A4, #FF294E);
  -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 #ccc;
}

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 {
  height: 300px;
  width: 300px;

  /* from frame: https://codepen.io/chris22smith/pen/PbBwjp */
  background-color: #f2f2f2;
  border: solid 4vmin #eee;
  border-bottom-color: #fff;
  border-left-color: #eee;
  border-radius: 2px;
  border-right-color: #eee;
  border-top-color: #ddd;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25) inset,
    0 5px 10px 5px rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 5vmin;
  position: relative;
  text-align: center;
  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 0.4s ease, max-height 0.75s ease;
  transition: all 0.4s ease, max-height 0.75s ease;
}

.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: 60px;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  position: flex;
  flex-direction: column;
  align-items: center;
}

/* CHECKBOX DESIGN */
/* Reference: https://stackoverflow.com/questions/30663562/use-images-like-checkboxes */
input[type="checkbox"] {
  display: none;
}

label {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

label::before {
  background-color: white;
  color: white;
  content: " ";
  display: block;
  border-radius: 50%;
  border: 1px solid #FF294E;
  position: absolute;
  top: -5px;
  left: -5px;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 28px;
  transition-duration: 0.4s;
  transform: scale(0);
}

label img {
  height: 100px;
  width: 100px;
  transition-duration: 0.2s;
  transform-origin: 50% 50%;
}

:checked + label {
  border-color: #FF294E;
}

:checked + label::before {
  content: "✓";
  background-color: #FF294E;
  transform: scale(1);
}

:checked + label img {
  transform: scale(0.96);
  box-shadow: 0 0 5px #333;
  z-index: -1;
}
