
/* instructions page */
.instructionsPage {
  text-align: left;
}

.instructionsImage {
  text-align: center;
  width: 90vw;
}

/* consent page and form */
.consentPage {
  text-align: left;
}

.consentForm {
  line-height: 3;
}

.consentForm > * {
  display: inline-block;
}

#dobShow {
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.3s cubic-bezier(0,1,1,1);
}

#dobShow.show {
  opacity: 1;
  transform: translateY(0);
}

/* wait parents page */
.waitParentsPage {
  text-align: left;
}

/* setup page */
.setupPage {
  text-align: left;
}

.setupIcon {
  width: 2em;
  vertical-align: middle;
  margin-right: 0.5em;
}

.setupIcon.setupFullscreenBtn,
.setupIcon.setupAudioBtn {
  cursor: pointer;
}

/* general */
.pageTitle {
  text-align: center;
  font-weight: bold;
}

.requirementAsterisk {
  color: #f00;
  font-weight: bold;
}

/*
.jspsych-content .jspsych-btn {
  transform: scale(1.5);
  margin-bottom: 5em;
  transition: all 0.3s cubic-bezier(0,1,1,1);
}

.jspsych-content .jspsych-btn:hover,
.jspsych-content .jspsych-btn:focus,
.jspsych-content .jspsych-btn:active {
  transform: scale(1.6);
}
*/

.jspsych-content {
  padding-bottom: 5em;
}

.jspsych-content.no-margin-y {
  margin: 0 auto;
}

.jspsych-target, body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#robot {
  width: 100px;
  position: absolute;
  bottom: 25px;
  left: -150px;
  cursor: pointer;
  transition: left 0.3s ease-out;
  z-index: 999999;
  display: none;
}

#robot.hey {
  left: 25px;
}

#robot.speaking {
  margin-right: -41.5px;
  width: 141.5px;
}

/* practice trials */
.trialBall {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
  cursor: pointer;
}

.practiceTrial .offContainer,
.practiceTrial .dropContainer {
  width: 100px;
  height: 100px;
  padding: 25px;
  position: absolute;
  top: 55%;
  text-align: center;
}

.practiceTrial .offContainer {
  right: 75%;
}

.practiceTrial .dropContainer {
  width: 200px;
  top: 55%;
  background-image: url(../assets/soccernet.png);
  background-size: contain;
  background-repeat: no-repeat;
  left: 70%;
}

.practiceTrialBackground {
  background-image: url(../assets/park.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.practiceScript {
  color: #fff;
  margin-top: 38em;
}

.trialBall.highlight {
  border: 8px solid #f00;
  margin-top: -8px;
  margin-left: -8px;
  animation: blink 1s linear infinite;
}

.dropContainer.highlight::after,
.dropContainerLeft.highlight::after,
.dropContainerRight.highlight::after {
  width: 100px;
  height: 100px;
  content: " ";
  display: block;
  border-radius: 50%;
  border: 8px solid #f00 !important;
  border-color: #f00 !important;
  margin: auto;
  animation: blink 1s linear infinite !important;
}

.trialGear.highlight {
  border: 8px solid #f00;
  margin-top: -8px;
  animation: blink 1s linear infinite;
}

@keyframes blink {
  50% {
    border: 8px solid rgba(255,0,0,0);
  }
}

/* fam trials */
/* 1 gear */
.trialGear {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  transition: opacity 0.3s cubic-bezier(0,1,0,1);
  z-index: 101;
  cursor: pointer;
}

.trialGear:hover {
  opacity: 0.75;
}

.trialGearbox {
  display: inline-block;
  width: 704px;
  height: 397.75px;
  text-align: center;
  background-image: url(../assets/fam/box_nogears.png);
  background-size: contain;
  margin-top: 0;
}

.trialGearbox.trialGearboxStory {
  background-image: url(../assets/fam/fam_gears.png);
}

.trialGearbox .dropContainerLeft,
.trialGearbox .dropContainerRight {
  display: inline-block;
  border-radius: 50%;
  vertical-align: middle;
  width: 155px;
  height: 155px;
  margin: 115px auto 0;
  z-index: 100;
  overflow: hidden;
}

.trialGearbox .dropContainerLeft {
  margin-right: -10px;
}

.trialGearbox .dropContainerRight {
  margin-left: -10px;
}

.trialGearbox .dropContainerLeft.hidden,
.trialGearbox .dropContainerRight.hidden {
  opacity: 0;
}

.trialGearbox .dropContainerLeft:not(.ui-droppable-hover)::after,
.trialGearbox .dropContainerRight:not(.ui-droppable-hover)::after {
  display: inline-block;
  border-radius: 50%;
  border: 2px solid #D3D3D3;
  vertical-align: middle;
  width: 75px;
  height: 75px;
  z-index: 100;
  content: ' ';
  margin-top: 50%;
  transform: translateY(-50%);
}

.famTrial {
  text-align: center;
}

.famTrial .offContainer {
  width: 704px;
  height: 155px;
  border: 1px solid #a4a4a4;
}

.trialButton {
  width: 90px;
  text-align: center;
  margin: auto;
  padding-top: 30px;
  border: none;
}

.trialButton button {
  color: #EF4836;
  background-color: #EF4836;
  display: block;
  position: relative;
  padding: 20px 40px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  filter: dropshadow(color=#000, offx=0px, offy=1px);
  -webkit-box-shadow: inset 0 1px 0 #FF9E80, 0 10px 0 #8F0000;
  -moz-box-shadow: inset 0 1px 0 #FF9E80, 0 10px 0 #8F0000;
  box-shadow: inset 0 1px 0 #FF9E80, 0 10px 0 #8F0000;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  width: 90px;
  border: none;
  outline: none;
}

.trialButton button:active {
  top: 10px;
  color: #EF4836;
  background-color: #EF4836;
  -webkit-box-shadow: inset 0 1px 0 #FF9E80, inset 0 -3px 0 #8F0000;
  -moz-box-shadow: inset 0 1px 0 #FF9E80, inset 0 -3pxpx 0 #8F0000;
  box-shadow: inset 0 1px 0 #FF9E80, inset 0 -3px 0 #8F0000;
  border: none;
  outline: none;
}

.trialButtonFix {
  margin-top: -160px;
}

.trialCard {
  display: inline-block;
  width: 200px;
  height: 100px;
  margin-top: 20px;
  text-align: center;
  background: #eee;
  border: 1px solid #ccc;
  padding: 0.25em;
  z-index: 999999;
}

.trialCard img {
  position: relative;
  text-align: center;
  height: 100%;
  cursor: auto;
  opacity: 0.75;
}

.trialCard + .trialCard {
  margin-left: 10px;
}

/* 2 gears */
.famTrial .offContainerLeft,
.famTrial .offContainerRight {
  width: 352px;
  height: 155px;
  border: 1px solid #a4a4a4;
  display: inline-block;
  margin: 0;
}

.famTrial .offContainerRight {
  margin-left: -5px;
}

/* intervention */
.interImage {
  width: 300px;
}

.trialPreIntervention .interImage {
  background: #f7f7f7;
  border: 1px solid #ddd;
  margin: 1em;
  border-radius: 0.5em;
}

.trialPreIntervention .interImage.highlight {
  border: 8px solid #f00;
  animation: 1s blink linear infinite;
  margin-top: -8px;
}

.confetti {
  position: absolute;
  top: -150%;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -99999999;
  transition: all 3s cubic-bezier(0,1,1,1);
}

.confetti.showing {
  top: 0%;
}

.finalForm > div {
  display: inline-block;
}

.finalPage, .finalForm {
  text-align: left;
}

.finalForm {
  line-height: 3;
}

.demoBox {
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 0.5em;
  box-shadow: 0 0 32px rgba(0,0,0,0.03);
  padding: 2em;
  margin: 2em;
}
