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

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

/* Container holding jsPsych content */

 .jspsych-display-element {
   display: flex;
   flex-direction: column;
   overflow-y: auto;
 }

 .jspsych-display-element:focus {
   outline: none;
 }

 .jspsych-content-wrapper {
   display: flex;
   margin: auto;
   flex: 1 1 100%;
   width: 100%;
 }

 .jspsych-content {
   max-width: 95%; /* this is mainly an IE 10-11 fix */
   text-align: center;
   margin: auto; /* this is for overflowing content */
 }

 .jspsych-top {
   align-items: flex-start;
 }

 .jspsych-middle {
   align-items: center;
 }

/* fonts and type */

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

/* Form elements like input fields and buttons */

.jspsych-display-element input[type="text"] {
  font-family: 'Open Sans', 'Arial', sans-serif;
  font-size: 14px;
}

/* borrowing Bootstrap style for btn elements, but combining styles a bit */
.jspsych-btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Open Sans', 'Arial', sans-serif;
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.jspsych-btn:hover {
  background-color: #ddd;
  border-color: #aaa;
}

.jspsych-btn:disabled {
  background-color: #eee;
  color: #aaa;
  border-color: #ccc;
  cursor: not-allowed;
}

/* jsPsych progress bar */

#jspsych-progressbar-container {
  color: #555;
  border-bottom: 1px solid #dedede;
  background-color: #f9f9f9;
  margin-bottom: 1em;
  text-align: center;
  padding: 8px 0px;
  width: 100%;
  line-height: 1em;
}
#jspsych-progressbar-container span {
  font-size: 14px;
  padding-right: 14px;
}
#jspsych-progressbar-outer {
  background-color: #eee;
  width: 50%;
  margin: auto;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
#jspsych-progressbar-inner {
  background-color: #aaa;
  width: 0%;
  height: 100%;
}

/* Control appearance of jsPsych.data.displayData() */
#jspsych-data-display {
  text-align: left;
}

.a-label {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 700px;
  height: 100px;
  margin: -50px 0 0 -350px;
  font-weight: bold;
  font-size: 40px;
  color: #00aa00;
}

.a-span {
  font-weight: bold;
  color: #00aa00;
}

.a-reward {
  display: inline-block;
  top: 10px;
  width: 500px; 
  height: 80px; 
  line-height: 80px;
  font-weight: bold;
  font-size: 40px;
  color: #00aa00;
}

.b-label {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 700px;
  height: 100px;
  margin: -50px 0 0 -350px;
  font-weight: bold;
  font-size: 40px;
  color: #1067e8;
}

.b-span {
  font-weight: bold;
  color: #1067e8;
}

.b-reward {
  display: inline-block;
  top: 10px;
  width: 500px; 
  height: 80px; 
  line-height: 80px;
  font-weight: bold;
  font-size: 40px;
  color: #1067e8;
}

.choices-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 100px;
  margin: -50px 0 0 -350px;

}

.choices-inner {
  position: absolute; 
  top: 10px;
  width: 80px; 
  height: 80px; 
  line-height: 80px;
  background-color: #c0c0c0;
  font-size:20px;
}

.a-select {
  position: absolute; 
  top: 10px;
  width: 80px; 
  height: 80px; 
  line-height: 80px;
  background-color: #00aa00;
  font-size:20px;
}

.b-select {
  position: absolute; 
  top: 10px;
  width: 80px; 
  height: 80px; 
  line-height: 80px;
  background-color: #339EFF;
  font-size:20px;
}

.rewardimg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;
}

.parent {
  position: relative;
  width: 975px;
  height: 390px;
}

.box{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
}

.green-span {
  font-weight: bold;
  color: #00aa00;
}

.gray-span {
  font-weight: bold;
  color: #444444;
}

.red-span {
  font-weight: bold;
  color: #cf0000;
}


.outcome-container {
    position: relative; 
    text-align: center; 
    width: 800px; 
    height: 600px;
    color: black; 
}

.token-image {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
}

.token-text-win {
    position: absolute; 
    font-size: 70px;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.token-text-lose {
    position: absolute; 
    font-size: 70px;
    color: #a9a9a9;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.bonus-text {
    position: absolute; 
    font-size: 70px;
    color: yellow;
    top: 70%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.penalty-text {
    position: absolute; 
    font-size: 70px;
    color: red;
    top: 70%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.header-win {
    position: absolute; 
    font-size: 40px;
    top: 10%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.header-lose {
    position: absolute; 
    font-size: 40px;
    color: #a9a9a9;
    top: 10%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000;
}

.header {
    position: absolute; 
    font-size: 35px;
    color: black;
    top: 10%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
}

.iti-text {
    position: absolute; 
    font-size: 60px;
    color: black;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
}

.warning-text {
    position: absolute; 
    font-size: 20px;
    color: black;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
}
