/*
 * CSS for jsPsych experiments.
 *
 * This stylesheet provides minimal styling to make jsPsych
 * experiments look polished without any additional styles.
 *
 */

/*
 *
 * fonts and type
 *
 */

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);

html {
 font-family: 'Open Sans', 'Arial', sans-serif;
 font-size: 18px;
 line-height: 1.6em;
}

body {
	margin: 0;
	padding: 0;
	text-align: center;
	
}

p {
    clear:both;
}

.very-small {
    font-size: 50%;
}

.small {
    font-size: 75%;
}

.large {
    font-size: 125%;
}

.very-large {
    font-size: 150%;
}

@font-face {
    font-family: digitalDisplay;
    src: url('../../fonts/digital-7.otf');
	src: url('../../fonts/digital-7.otf') format('otf'), url('../../fonts/digital-7.eot?#iefix') format('embedded-opentype'), url('../../fonts/digital-7.woff') format('woff');
}

/*
 *
 * Classes for changing location of things
 *
 */

.left {
    float: left;
}

.right {
    float: right;
}

.center-content {
    text-align: center;
}

/*
 *
 * Form elements like input fields and buttons
 *
 */

input[type="text"] {
    font-family: 'Open Sans', 'Arial', sans-sefif;
    font-size: 14px;
}

button {
    padding: 0.8em;
    background-color: #eaeaea;
    border: 1px solid #eaeaea;
    color: #555;
    font-weight: bold;
    font-family: 'Open Sans', 'Arial', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

button:hover {
    border:1px solid #ccc;
}

/*
 *
 * Container holding jsPsych content
 *
 */


.jspsych-display-element {
    width: 800px;
    margin: 50px auto 50px auto;
	background-repeat: no-repeat;
	background-position: center;
	height: 400px;
    /* add this if the spaceship is not in position in emergency scr*/
    /*position: relative;*/
}

/*
 *
 * jsPsych progress bar
 *
 */

#jspsych-progressbar-container {
	color: #777;
	border-bottom: 2px solid #dedede;
	background-color: #f3f3f3;
	margin-bottom: 1em;
	text-align: center;
	padding: 10px 0px;
}

#jspsych-progressbar-container s {

}

#jspsych-progressbar-outer {
	background-color: #dedede;
	border-radius: 5px;
	padding: 1px;
	width: 800px;
	margin: auto;
}

#jspsych-progressbar-inner {
	background-color: #aaa; /* #3EB3D7; */
	width: 0%;
	height: 1em;
	border-radius: 5px;
}

/*
 *
 * PLUGIN: jspsych-animation
 *
 */

#jspsych-animation-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-categorize-animation
 *
 */

#jspsych-categorize-animation-stimulus {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-categorize
 *
 */

#jspsych-categorize-stimulus {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.feedback {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-free-sort
 *
 */

#jspsych-free-sort-arena {
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #444;
}

.jspsych-free-sort-draggable {
  cursor: move;
}

#jspsych-free-sort-done-btn {
  display: block;
  margin: auto;
  margin-top: 25px;
}

/*
 *
 * PLUGIN: jspsych-instructions
 *
 */

 .jspsych-instructions-nav {
   text-align: center;
   margin-top: 2em;
 }

 .jspsych-instructions-nav button {
   margin: 20px;
 }
/*
 *
 * PLUGIN: jspsych-multi-stim-multi-response
 *
 */

#jspsych-multi-stim-multi-response-stimulus {
  display: block;
  margin: auto;
}

/*
 *
 * PLUGIN: jspsych-palmer
 *
 */

#jspsych-palmer-snapCanvas {
    margin-left: auto;
    margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-same-different
 *
 */

.jspsych-same-different-stimulus {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-single-stim
 *
 */

#jspsych-single-stim-stimulus {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-space-daw-stim
 *
 */

#jspsych-space-daw-top-stim-left, #jspsych-space-daw-top-stim-right {
	display: inline-block;
	width: 170px;
	height: 50px;
	padding-top: 150px;
	background-repeat: no-repeat;
	background-position: center bottom;
}

#jspsych-space-daw-top-stim {
	display: inline-block;
	width: 165px;
	height: 50px;
	padding-top: 150px;
	background-repeat: no-repeat;
	background-position: center bottom;
}

#jspsych-space-daw-top-stim-middle {
	display: inline-block;
	width: 65px;
	height: 50px;
	padding-top: 150px;
	background-repeat: no-repeat;
	background-position: center bottom;
}

#jspsych-space-daw-bottom-stim-left, #jspsych-space-daw-bottom-stim-right {
	position: relative;
	display: inline-block;
	width: 170px;
	height: 170px;
	background-repeat: no-repeat;
	background-position: center bottom;
	border-width: 4px;
	border-style: dashed;
	border-color: rgba(0, 0, 0, 0);
	font-size: 500%;
	vertical-align: top;
}
.jspsych-space-daw-bottom-stim-border:after {
    content: '';
    position: absolute;
	width: 170px;
	height: 170px;
	left: -4px;
	top: -4px;
    border-style: solid;
  	border-width: 4px;
	border-color: rgba(255,255,255,1);
    z-index: -1;  /* to be below the parent element */
}

#jspsych-space-daw-bottom-stim-middle {
	display: inline-block;
	width: 65px;
	height: 170px;
	background-repeat: no-repeat;
	background-position: center bottom;
}

#jspsych-space-daw-top-rewards {
	display: inline-block;
	margin-top: 35px;
	margin-bottom: 35px;
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 10px;
	padding-right: 10px;
	font-family: digitalDisplay;
	color:#b8fff6;
	background-color:#0738db;
	border: 5px solid #197bff;
	border-radius: 10px;
	font-size: 200%;
	align: center;
	
}
#jspsych-space-daw-top-rewards-container {	
	display: inline-block;
	width: 200px;
	height: 50px;
	background-color: #197bff;
	border-radius: 10px;
	line-height: 50px;
	vertical-align: middle;
}
img {
    vertical-align: middle;
}

#jspsych-space-daw-top-rewards-text {
	display: inline-block;
	height: 50px;
	padding-left: 10px;
	line-height: 50px;
	vertical-align: top;
}


/*
 *
 * PLUGIN: jspsych-survey-text
 *
 */

 .jspsych-survey-text {
     margin: 0.25em 0em;
 }

 .jspsych-survey-text-question {
     margin: 2em 0em;
 }

 /*
  *
  * PLUGIN: jspsych-survey-likert
  *
  */

.jspsych-survey-likert-sliderlabels {
  font-size: 75%;
  line-height: 1.15em;
}

.jspsych-survey-likert-question {
  margin-top: 2em;
  margin-bottom: 2em;
}

.jspsych-survey-likert-text {
  text-align: center;
}

#jspsych-survey-likert-next {
  display: block;
  margin: auto;
}

/*
*
* PLUGIN: jspsych-visual-search-circle
*
*/

#jspsych-visual-search-circle-svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/*
 *
 * PLUGIN: jspsych-vsl-animate-occlusion
 *
 */

#jspsych-vsl-animate-occlusion-canvas {
  display: block;
  margin: auto;
}

/*
 *
 * PLUGIN: jspsych-xab
 *
 */

 .jspsych-xab-stimulus {
   display: block;
   margin-left: auto;
   margin-right: auto;
 }

 /*
  * emergency frame design
  *
  */
#emergency-box {
    position: absolute;
    top: 80px;
    left:50%; /*or 200px*/
    transform:translateX(-50%);
    font-family: digitalDisplay;
    color:#b8fff6;
    background-color:#0738db;
    border: 5px solid #197bff;
    border-radius: 10px;
    padding: 20px 40px;
    font-size: 200%;
    z-index: 4; /*should be above the ship and the planets */
    /*padding:20px 40px;
    background:rgb(255, 255, 255);
    border:4px solid rgb(245, 51, 51);
    color:rgb(245, 51, 51);
    font-size:34px;
    font-weight:bold;*/
}

#emergency-frame {
    position: relative; /*was relative;*/
    width: 800px;
    height: 400px;
    z-index: 9999;
    background: transparent;
    /* bc empty-bg may not be correct size*/
    overflow: hidden;/* cuts of all outside em frame -> both planets get cut partly */
    background-position: center; /*img will be centered */
    background-repeat: no-repeat;  /*img will not repeat if not filled out */
    background-size: auto;  /*will cover all of screen */
}

#emergency-ship{
    position:absolute;
    top:180px;
    width:170px;
    height:170px;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    z-index: 3;
}

/* 
 *
 *additional planets for emergency frame 
 *
 */
#emergency-planet-left,
#emergency-planet-right {
    position: absolute;
    top: 35px;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1; /*should be below the ship and the emergency box */
}

#emergency-planet-left {
    left: 155px;
}

#emergency-planet-right {
    right: 155px;
}

/* 
 *
 *additional arrows for emergency frame (shows planet for common==0)
 *
 */
#emergency-arrow {
    position: absolute;
    top: 5px;
    /*left: 50%;
    transform: translateX(-50%);*/
    width: 250px;
    height: 90px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

/* 
 * different arrow start for left and right 
 *
 */

/* arrow starts around the emergency-box middle and points left */
#emergency-arrow.arrow-to-left {
    left: 200px; /* was 160px*/
}

/* arrow starts around the emergency-box middle and points right */
#emergency-arrow.arrow-to-right {
    left: 350px;
}
