/*
 * 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: 0px;
  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;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* only apply the hover style on devices with a mouse/pointer that can hover - issue #977 */
@media (hover: hover) {
  .jspsych-btn:hover {
    background-color: #ddd;
    border-color: #aaa;
  }
}

.jspsych-btn:active {
  background-color: #ddd;
  border-color: #000000;
}

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

/* custom style for input[type="range] (slider) to improve alignment between positions and labels */

.jspsych-slider {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: transparent;
}
.jspsych-slider:focus {
  outline: none;
}
/* track */
.jspsych-slider::-webkit-slider-runnable-track {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #eee;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border-radius: 2px;
  border: 1px solid #aaa;
}
.jspsych-slider::-moz-range-track {
  appearance: none;
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #eee;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border-radius: 2px;
  border: 1px solid #aaa;
}
.jspsych-slider::-ms-track {
  appearance: none;
  width: 99%;
  height: 14px;
  cursor: pointer;
  background: #eee;
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border-radius: 2px;
  border: 1px solid #aaa;
}
/* thumb */
.jspsych-slider::-webkit-slider-thumb {
  border: 1px solid #666;
  height: 24px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -9px;
}
.jspsych-slider::-moz-range-thumb {
  border: 1px solid #666;
  height: 24px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}
.jspsych-slider::-ms-thumb {
  border: 1px solid #666;
  height: 20px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  margin-top: -2px;
}

/* 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;
}


/* JC additions */

/* Images */
.image {
  border:1px solid black;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  width: 20%;
  height: 25%;
}

.image:hover {
  opacity: 0.7;
  border:3px solid black;

}

.image:disabled {
  opacity: 0.4;
  border:1px solid grey;
  cursor:not-allowed;

}

.self{
    margin: 0em;
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1.5em;
    /*border-bottom: 2px solid black;*/
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    display: inline-block;
}

/* borrowing Bootstrap style for btn elements, but combining styles a bit */
.jspsych-btn-big {
  display: inline-block;
  padding: 6px 12px;
  margin: 0px;
  font-weight: bold;
  font-size: 1.4em;
  line-height: 1.5em;
  cursor: pointer;
  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-big:hover {
  background-color: #ddd;
  border-color: #aaa;
}

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

.centered {
  display: block;
  /*width: 60%;*/
  margin-left:auto;
  margin-right: auto;
}

.column {
  float: left;
  width: 48%;
  padding: 5px;
  margin: auto;
}

.row {
  margin-top: 5%;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
}

/* CSS for picture choice added by JC*/
.image {
  display: inline-block; 
  border:thin solid grey;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin: 15px;
  padding: 0;
  width: 25%;
  height: 25%;
}

.image:hover {
/*  opacity: 0.7;*/
  border:3px solid black;

}

.image:disabled {
/*  opacity: 0.4;*/
  border:1px solid grey;
  cursor:not-allowed;

}

.construction-field {
    height: 30px;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    line-height: 1.1em;
}

.prompt {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 25px;
}

.words {
    font-size: 25px;
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    /*margin: 0.25em;*/
    outline: 0;
    background: transparent;
    border-radius: 0;
}

.button-option {
    display: inline-block;
    padding: 6px 12px;
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    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: #333333;
    background-color: #fff;
    border-color: #ccc;
}

.button-option:hover {
    background-color: #ddd;
    border-color: #aaa;
}

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

.bag-of-words {
    display: inline-block;
    position: static;
    margin-left: 2px;
    margin-top: 10px; /* space between bag and the previous thing */
    padding: 2px; /* space at the top and bottom inside the bag, above the buttons */
    border: 1px solid darkgrey;
    border-radius: 5px; /* square vs. round corners */
    margin-bottom: 10px; /* space between bag and the next thing */
}

#feedback-holder {
    visibility: hidden;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 15px;
}