/*
 * global site styles
 */

html, body {
  margin: 0;
  padding: 0;
}

hp-content {
  display: flex;

  width: 100vw;
  height: 100vh;

  justify-content: center;
  align-items: center;
}

hp-presentation>hp-slide {
  display: none;
}

hp-presentation>hp-slide.active {
  display: flex ;
}

hp-presentation {
  display: block;
  background-color: #fff;

  width: 80vmin;
  height: 80vmin;

  border: .2em solid #000;
  border-radius: 1em;
}

hp-slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: center;

  width: 80%;
  height: 80%;

  margin: 10%;

  font-size: 8vmin;
  font-weight: bold;
  font-family: sans-serif;
  text-align: center;
}

hp-chooser {
  display: flex;
  width: 100%;
  height: 20vmin;

  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
}

hp-chooser.fixed {
  height: auto;
}

hp-chooser * {
  max-width: 20%;

  margin: 5% 2.5%;
}

hp-chooser.chosen>*.chosen {
  max-width: 30%;
}

hp-chooser.fixed>*.chosen {
  max-width: 50%;
  animation-name: chosen_fixed;
  animation-duration: .5s;
}

@keyframes chosen_fixed {
  from {
    max-width: 30%;
  }

  to {
    max-width: 50%;
  }
}

hp-chooser.chosen.animate>*.chosen {
  animation-name: chosen;
  animation-duration: .5s;
  animation-timing-function: ease;
}

@keyframes chosen {
  from {
    max-width: 20%;
  }

  to {
    max-width: 30%;
  }
}

hp-chooser.chosen>*:not(.chosen) {
  max-width: 16.6%;
  opacity: .25;
}

hp-chooser.fixed>*:not(.chosen) {
  max-width: 0%;
  opacity: .25;

  animation-name: unchosen_fixed;
  animation-duration: .5s;
}

@keyframes unchosen_fixed {
  from {
    max-width: 16.6%;
  }
  to {
    max-width: 0%;
  }
}

hp-chooser.chosen.animate>*:not(.chosen) {
  animation-name: unchosen;
  animation-duration: .5s;
  animation-timing-function: linear;
}

@keyframes unchosen {
  from {
    max-width: 20%;
    opacity: 1.0;
  }

  to {
    max-width: 16.6%;
    opacity: .25;
  }
}

hp-learn {
  width: 100%;
  height: auto;

  display: flex;
  align-items: center;
  justify-content: space-around;
}

hp-learn hp-learn-no, hp-learn hp-learn-yes {
  max-width: 20%;
}

hp-learn img {
  max-width: 50%;
  transition-property: margin;
  transition-duration: .5s;
}

hp-learn.match img {
  margin-top: 5%;
  margin-right: 14%;
}

hp-learn-no, hp-learn-yes {
  visibility: hidden;
}

.learn-yes hp-learn-yes {
  visibility: visible;
  color: #0f0;
}

.learn-no hp-learn-no {
  visibility: visible;
  color: #f00;
}

#tfo hp-title {
  opacity: 0;
  animation-name: tfo;
  animation-duration: 2s;
}

@keyframes tfo {
  from {
    opacity: 1.0;
  }

  to {
    opacity: 0;
  }
}

.hidden {
  display: none;
}

path {
  fill: none;
  stroke: #0f0;
  stroke-width: 1.5vmin;
}