/* ===================================== */
/* GENERAL & LAYOUT */
/* ===================================== */
@import url(https://fonts.googleapis.com/css?family=Roboto|Raleway|Roboto+Slab);

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', 'Arial', sans-serif;
}

.display_stage_background {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
}

.display_stage {
  position: fixed;
  left: 5vw;
  top: 2vh;
  height: 94vh;
  width: 90vw;
  background-color: white;
  box-shadow: 1px 1px 1px #999;
  border-radius: 15px;
  z-index: 0;
  padding: 30px;
  box-sizing: border-box;
  overflow: auto;
}

/* ===================================== */
/* JSPSYCH CORE */
/* ===================================== */
.jspsych-display-element {
  width: 80vw;
  height: 90vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.jspsych-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.jspsych-content {
  max-width: 100%;
  width: 100%;
  text-align: center;
}

/* ===================================== */
/* TEXT CLASSES */
/* ===================================== */
.centerbox {
  width: 50vw;
  height: 60vh;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

.block-text {
  width: 100%;
  text-align: justify;
  margin: 0 auto 1em;
  font-size: 24px;
  line-height: 120%;
}

.center-block-text {
  width: 100%;
  text-align: center;
  margin: 0 auto 1em;
  font-size: 26px;
  line-height: 120%;
}

.center-text {
  text-align: center;
  font-size: 60px;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

/* ===================================== */
/* BUTTONS */
/* ===================================== */
.jspsych-btn,
#jspsych-instructions-next,
#jspsych-instructions-back,
#jspsych-survey-text-next {
  font-size: 22px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 12px 20px;
  color: white;
  background-color: cornflowerblue;
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 4px;
}

#jspsych-instructions-next,
#jspsych-instructions-back {
  width: 250px;
  padding: 12px 40px;
}

.jspsych-btn:hover,
#jspsych-instructions-next:hover,
#jspsych-instructions-back:hover {
  border-color: #999;
  background-color: darkblue;
}

/* ===================================== */
/* INSTRUCTIONS */
/* ===================================== */
.jspsych-instructions-nav {
  text-align: center;
  margin-top: 0px;
  position: relative;
  z-index: 1;
}

.jspsych-instructions-nav button {
  margin: 20px;
}

.jspsych-instructions-nav p {
  font-family: 'Roboto', serif;
  font-size: 20px;
  line-height: 20px;
}

/* ===================================== */
/* SURVEY TEXT */
/* ===================================== */
.jspsych-survey-text-question {
  margin: 2em 0;
}

.jspsych-survey-text-question input[type="text"] {
  display: block;
  margin: 12px auto;
  width: 60%;
  max-width: 400px;
  font-size: 18px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.jspsych-survey-text-question > textarea,
#jspsych-survey-text-next {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================== */
/* TOWER OF LONDON SPECIFIC */
/* ===================================== */
.tol_canvas {
  width: 90%;
  height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: hsl(0, 0%, 98%);
  border-radius: 25px;
  border: 2px solid #606060;
}

.tol_peg_board {
  width: 25vw;
  height: 20vw;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(10%, -60%);
}

.tol_your_board {
  width: 25vw;
  height: 20vw;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-110%, -60%);
}

.tol_base {
  width: 100%;
  height: 3vw;
  background-color: brown;
  position: absolute;
  top: 100%;
}

.tol_board_label {
  width: 50%;
  height: 2vw;
  position: relative;
  top: 102.5%;
  left: 50%;
  transform: translate(-50%, 0%);
  font-size: 30px;
  color: white;
  text-align: center;
}

#tol_peg_1 {
  width: 20%;
  height: 103%;
  position: absolute;
  top: 0%;
  left: 0%;
  margin-right: -50%;
  transform: rotate(180deg);
}

#tol_peg_2 {
  width: 20%;
  height: 70%;
  position: absolute;
  top: 33%;
  left: 35%;
  margin-right: -50%;
  transform: rotate(180deg);
}

#tol_peg_3 {
  width: 20%;
  height: 36%;
  position: absolute;
  top: 67%;
  left: 70%;
  margin-right: -50%;
  transform: rotate(180deg);
}

.tol_peg {
  width: 25%;
  height: 101%;
  background-color: brown;
  margin-left: 37%;
  margin-right: 37%;
  position: relative;
  vertical-align: bottom;
  border-radius: 15px;
}

.tol_ball {
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  margin-top: 1vw;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tol_hand_ball {
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tol_ball_label {
  font-size: 40px;
  text-transform: lowercase;
  transform: rotate(180deg);
}

/* Couleurs des billes */
.tol_rouge {
  background: red;
}

.tol_vert {
  background: #00CC33;
}

.tol_bleu {
  background: #0099FF;
}

.tol_hand_box {
  width: 10vw;
  height: 9vw;
  position: absolute;
  top: 15%;
  left: 30%;
  margin-right: -50%;
  background-color: rgb(228, 226, 226);
  border-radius: 25px;
  border: 2px solid hsl(0, 3%, 87%);
  transform: rotate(180deg);
}

.tol_hand_label {
  width: 15vw;
  height: 10vw;
  position: absolute;
  top: 11.5%;
  left: 31%;
  margin-right: -50%;
  font-size: 25px;
}

.tol_topbox {
  width: 60vw;
  height: 30vw;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -60%);
}

.tol_bottombox {
  width: 60vw;
  height: 20vw;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, 60%);
}

.tol_feedbackbox {
  width: 42vw;
  height: 10vh;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -400%);
}