@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');


html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: auto;
  overflow-y: auto;
}


.jspsych-display-element {
  min-height: 100vh;
  height: auto;
  overflow-x: auto;
  overflow-y: auto;
}

.text-image {
  width: 90vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  flex-direction: column;
  box-sizing: border-box;
}
.text-image .instruction1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}
.text-image .instruction2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 50px;

}

.text-image .instruction3 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 200px;
}

.text-image .meet-image {
  max-width: 40vw;
  max-height: 40vh;
  object-fit: contain;
  margin-bottom: 50px;
}

.jspsych-content {
  min-height: 100vh;
  height: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-self: center;

  box-sizing: border-box;
  padding: 20px 20px 50px 20px;
  overflow-x: auto
}
#box-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: flex-start;
  gap: 50px;
  width: 100%;
  max-width: 1210px;
  height: auto;
  box-sizing: border-box;
}
.choice-box {
  position: relative;
  width: 580px;
  height: 480px;
  flex: 0 1 580px;
  border: 3px solid #555;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 20px 20px 20px;
  overflow: hidden;
}

.general-instruction{
  width: 70vw;
  max-width: 70vw;
  min-width: 70vw;
  margin-top:150px;
  text-align: center;
  font-size: 22px;
  line-height: 2;
  box-sizing: border-box;
}
.consent{
  width: 70%;
  text-align: center;
  margin: 0 auto;
  font-size:20px;
  margin-top: 100px;
  line-height: 1.6
}
@media (max-width: 1250px) {
  .choice-box {
    width: calc((100vw - 70px) / 2);
    height: auto;
    aspect-ratio: 580 / 480;
  }
}
@media (max-width: 700px) {
  #box-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .choice-box {
    width: calc(100vw - 40px);
    max-width: 580px;
    height: auto;
    aspect-ratio: 580 / 480;
  }
}
#drag-instruction {
    height: 40px;
    text-align: center;
    font-size: 20px;
    margin-top: 50px;
    visibility: visible;
    font-family:  'Open Sans', 'Arial', sans-serif;
}

#drag-container {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

@media (max-width: 1250px) {
  #box-container {
    column-gap: 30px;
  }
  .choice-box {
    position: relative;
    width: 580px;
    height: 480px;
    border: 3px solid #555;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 20px 20px;
    overflow: hidden;
}

  .box-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

#feedback {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -80px;
    text-align: center;
    font-size: 22px;
    font-family:  'Open Sans', 'Arial', sans-serif;
}

#feedback.correct-feedback {
    color: #098d28;
    font-size:32px;
    font-weight: bold;
    font-family:  'Open Sans', 'Arial', sans-serif;

}

#feedback.incorrect-feedback {
    color: #c40518d0;
    font-size:32px;
    font-weight: bold;
    font-family:  'Open Sans', 'Arial', sans-serif;
}

#left-image,
#right-image
 {
    width: 280px;
    height: 280px;
    min-width: 280px;
    max-width: 280px;
    min-height: 280px;
    max-height: 280px;
    object-fit: contain;
    flex: 0 0 120px;
    transform: translateY(-100px);

}
#drag-image {
    width: 280px;
    height: 280px;
    min-width: 280px;
    max-width: 280px;
    min-height: 280px;
    max-height: 280px;
    object-fit: contain;

    flex: 0 0 120px;
}

#left-box.highlight,
#right-box.highlight {
    border-color: #313232;
    background-color: #e3e7e9;
} 

#left-box.correct,
#right-box.correct {
  border-color: #098d28;
  border-width:8px;
  background-color: #ffffff;
}

#left-box.incorrect,
#right-box.incorrect {
  border-color: #c40518d0;
  border-width:8px;
  background-color: #ffffff;
}

.question {
  text-align: center;
  margin-top: 100px; 
  font-size: 20px;
}

.jspsych-btn {
  display: inline-block;
  padding: 6px 12px;
  margin:0;
  font-size: 20px;
  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: 8px;
  color: #333;
  background-color: #fff;
  border-color: #ccc;
  height: 100%;
  width: fit-content;
  object-fit: contain;
   margin-top: 40px
}

.trial-btn {
  padding: 6px 12px;
  font-size: 20px;
  min-width: 100px;
  font-family:  'Open Sans', 'Arial', sans-serif;
  flex: 1 1 auto;           
  text-align: center;
  box-sizing:border-box;
  white-space: normal;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #333;
  background-color: #fff;
  border-color: #ccc;
  height: 100%;
  width: auto;
  object-fit: contain;
}

@media (hover: hover) {
  .jspsych-btn:hover {
    background-color: #ddd;
    border-color: #aaa;
  }
}
 @media (hover: hover) {
  .trial-btn:hover {
    background-color: #ddd;
    border-color: #aaa;

  }
}

