@media screen and (max-height: 719px),
screen and (max-width: 999px) {
    .goodScreen {
        display: none !important;
    }

    .goodScreen ~ .modal-backdrop {
        opacity: 0 !important;
    }

    .badScreen {
      display: block !important;
    }
}

.badScreen {
    display: none;
    width: 80vw;
    font-size: 20px;
    padding: 20px;
    margin: auto;
}

.badScreen p {
    padding: 20px;
}

html {
    font-size: 16px !important;
}

body {
    max-width: 2000px;
    min-height: 720px;
}

.show {
  display: block !important;
}

.invisible {
  visibility: hidden;
}

.hidden, .hide, .dep {
  display: none!important;
}

.fa-step-forward {
    font-size: 62.5%;
}

#main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    /*height: 100vh;
    margin: auto;*/
    /*font-family: "Lato", sans-serif;*/
    /*font-size: calc(15px + (32 - 16) * ((100vw - 800px) / (2000 - 800)));*/
    font-size: 1rem;
}

.columns {
    display: flex;
    flex-direction: row;
}

.trialContainer {
    width: 100vw;
    height: 100vh;
    min-width: 800;
    min-height: 600;
    max-width: 2000;
    min-height: 600;
    padding: 0px 1px 0px 1px;
    margin: auto;
}

#instructionStepper {
    float: right
}

#stepButton {
    background-color: #ff8800;
    color: white;
}

.width20 {
    width: 20px;
}

.tooltip {
    font-size: 1em;
}

.tooltip-inner {
    text-align: left;
    min-width: 250px;
}

.fas {
    font-size: 1em;
}

#finishPanel, #partnerTimedOutPanel, #timedOutPanel {
    min-width: 640px;
    width: 50vw;
    margin: 30px auto;
}

#trialPanel {
    width: 480px;
}

.col1-4 {
    width: 200px;
    min-width: 200px;
}

.col2-4 {
    width: 360px;
}

.col1-3 {
    width: 240px;
}

.flg {
    flex: 1
}

.flc {
    flex-direction: column;
    display: flex;
    flex-wrap: nowrap;
}

.flrc {
    justify-content: center;
}

.flre {
    justify-content: space-evenly;
}

.flic {
    align-items: center;
}

.trialHeader, .trialFooter, .panelHeader, .panelFooter, .flr, .flrc, .flre {
    flex-direction: row;
    display: flex;
    flex-wrap: nowrap;
}

.trialHeader {
    margin: 5px;
    padding: 0 5px 0px 5px;
    justify-content: space-between;
    align-items: baseline;
    height: 1.6rem
}

.trialFooter {
    padding: 10px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.contextText {
    margin: 0px;
    font-size: 1.2em;
    font-family: "Lato", sans-serif;
    color: white;
}

#stageText {
    float: left;
    opacity: 0.6;
}

#reminderText {
    opacity: 0.6;
}

.questionText {
    padding-top: 6px;
}

.subPanelColumn {
    width: 33%;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}

.panelColumn {
    padding: 0 2px 0 2px;
    flex: 1 0;
    display: flex;
    flex-direction: column;
}

.panel {
    /*border: 1px solid rgba(0,0,0,0.2);*/
    /*border-radius: 6px;*/
    box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    background-color: white;
    /* min-height: 80vh;*/
    display: flex;
    flex-direction: column;
    position: relative;
}

.panelHeader, .panelFooter {
    /*margin: 5px;*/
    padding: 5px;
    flex: 0 1 auto;
    justify-content: center;
    align-items: center;
    color: white;
}


#ownPanel, #partnerPanel, #testPanel {
    height: 280px;
    width: 560px;
}

#ownPanel.setup {
    height: 600px !important;
}

#partnerPanel {
    margin-top: 5px;
    margin-left: -50px;
    transform: scale(0.75);
}

#ownPanel .panelHeader,
#ownPanel.speaker .sc,
#ownPanel.listener .lc,
#partnerPanel.speaker .lc,
#partnerPanel.listener .sc,
#testPanel .sc,
#testPanel .panelHeader,
#utilityTestPanel .panelHeader,
.ownerror.panelHeader,
.yc
{
    background-color: #01438b !important;
    color: white;
}

#partnerPanel .panelHeader,
#partnerPanel.speaker .sc,
#partnerPanel.listener .lc,
#ownPanel.speaker .lc,
#ownPanel.listener .sc,
.partnererror.panelHeader,
.pc
{
    background-color: #d10056 !important;
    color: white;
}

#scorePanel > .panelHeader,
#utilityLearnPanel > .panelHeader,
#frequencyLearnPanel > .panelHeader
{
    background-color: #bbb; /* #4a6f9f; */
    color: black;
}

#scorePanel > .panelHeader {
    padding: 0px !important;
}

.panelFooter {
    /*background-color: #ffe2d2;*/
    background-color: #f8f1e2;
    color: black;
}

#frequencyLearnPanel {
    min-height: 90vh;
    width: 1020px;
}

#utilityLearnPanel {
    min-height: 90vh;
}

#frequencyLearnPanel {
    min-height: 70vh;
}

#utilityLearnCol, #frequencyLearnCol {
    flex: 1.75 0;
}

#scoreCol {
    flex: 1 0;
}

.dummy.panelColumn {
    flex: 0.7 2
}

.panelBody::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}

.panelBody::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    box-shadow: 0 0 1px rgba(255,255,255,.5);
}

.panelBody {
    padding: 0px 2px 5px 2px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

textarea.error {
    border-color: red;
}

.example.selected {
    /*border-bottom: 2px solid #b0b0b0; */
    border-radius: 2px;
    background-color: #d0d0d0;
}

.example {
    text-align: center;
    margin: 5px 5px 5px 0px;
}

.stimuli {
    background-color: white;
    z-index: 1;
}

.stimuli:hover {
    z-index: 100;
}

.thumbnails .widget.stimuli {
    width: 10.5vw;
    height: 6.3333vw;
    max-width: 14vh;
    max-height: 8.4444vh;
    min-width: 105px;
    min-height: 63px;
}

#utilityPanel .panelBody {
    padding: 0 10px 5px 0;
}

/*
.highlight .guess.exemplar::before {
    content: 'guess';
    animation: fadeInOut 10s;
    opacity: 1;
}

.highlight .target.exemplar::before {
    content: 'target';
    transform: rotate(-90deg);
    transform-origin: left bottom;
    animation: fadeInOut 10s;
    opacity: 1;
}*/

/*
.flipped #utilityMatrix .highlight .stimuli {
    transform: scale(-1.2, 1.2) translate(2px, 2px);
    -webkit-transform: scale(-1.2,1.2);
}
*/

#utilityMatrix .widget.stimuli,
#utilityMatrix .rowHeader,
#utilityMatrix .colHeader {
    width: 20px;
    height: 20px;
}

#utilityMatrix .rowHeader,
#utilityMatrix .colHeader,
#utilityMatrix td {
    padding: 3px;
    vertical-align: center;
    text-align: center;
}


.widget.stimuli {
    width: 136px;
    height: 80px;
}

.thumbnails .roundish.stimuli {
    border-radius : 100px;
}

.thumbnails .roundish.stimuli,
.thumbnails .squarish.stimuli {
    width: 60px;
    height: 60px;
}

.scoreTable .roundish.stimuli, #utilityMatrix .roundish.stimuli,
.scoreTable .squarish.stimuli, #utilityMatrix .squarish.stimuli {
    width: 36px;
    height: 36px;
    background: transparent;
}


#utilityLearnPanel .stimuli,
#frequencyLearnPanel .currentBatch .stimuli {
    width: 50px;
    height: 50px;
}

#scoreCard tr.captioned {
    border-top: 1px solid;
}

#scoreCard {
    border-bottom: 2px solid;
}

#scoreCard td, #scoreCard th {
    padding: 5px;
}

#frequencyLearnPanel .exampleSpan {
    padding: 2px;
}

#frequencyLearnPanel .stimuli,
#scoreCard .stimuli {
    width: 36px;
    height: 36px;
}

#frequencyLearnPanel .frequencyRowKey {
    opacity: 0.5;
    border-right: 1px solid black;
}

#frequencyLearnPanel .frequencyRowValue {
    padding-left: 10px;
}

.frequencyRowValue, .scoreInsertionPoint {
    flex-wrap: wrap;
}


.roundish.stimuli {
    border-radius: 50%;
}

.roundish.stimuli,
.squarish.stimuli {
    width: 80px;
    height: 80px;
}

.flipped .stimuli {
    transform: scale(-1,1);
}

.box {
    fill: none;
    stroke: black;
    stroke-width : 2.5%;
}

.stimLine {
    stroke : black;
    stroke-width : 2.5%;
}

.fishCurve {
    stroke: yellow;
    stroke-width: 1%;
}

.gridLine {
    stroke : lightgrey;
    stroke-width : 1.05%;
}

.modal-dialog {
    width: 65vw;
    max-width: 800px!important;
}

.modal-dialog.followUp,
.modal-dialog.consent,
.modal-dialog.intro {
    width: 90vw;
}

.modal-dialog.demographic {
    width: 40vw;
}

.modal-dialog FORM {
    margin-bottom: 0;
}

.tt {
    font-family: monospace;
    font-size: larger;
}

.tt::before {
    content: "\00ab";
}

.tt::after {
    content: "\00bb";
}

.faded {
    opacity: 0.5;
    /*transition: opacity 200ms ease-in;*/
}

#adminSkip {
    position: absolute;
    right: 1vw;
    bottom: 1vw;
    background-color: darkslategrey;
    color: whitesmoke;
    border-radius: 8px;
    z-index: 9999;
    text-align: center;
    padding: 8px;
    opacity: 0.8;
}

.radioHang {
    margin: 5 1em 5 3em;
    text-indent: -2em;
}

.radioHang INPUT {
    width: 2em;
}

.questionBox {
    padding: 5px;
}

.slider {
    flex: 1
}

.slider-track, .slider-selection {
    /*background: #A1b4d1 !important;*/
    background: #d0d0f0 !important;
}

.slider-handle {
    top: 3px;
    width: 14px;
    height: 14px;
}

#partnerPanel .onlyYou {
    display: none;
}

.thumbnails {
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.panelBody hr {
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
    border: 0;
    border-top: 1px solid #aaa;
}

body {
    background-color: #0363ab;
}

.speechBubble, .revSpeechBubble {
    color: white;
	position: relative;
	border-radius: .4em;
    padding: 2px 8px 2px 8px;
    align-self: center;
    min-width: 46px;
}

#ownPanel.speaker .sc.speechBubble::after,
#ownPanel.listener .lc.speechBubble::after,
#partnerPanel.speaker .lc.speechBubble::after,
#partnerPanel.listener .sc.speechBubble::after,
#testPanel .sc.speechBubble::after,
.yc.speechBubble::after
{
    border-right-color: #01438b !important;
}

#ownPanel.speaker .sc.revSpeechBubble::after,
#ownPanel.listener .lc.revSpeechBubble::after,
#partnerPanel.speaker .lc.revSpeechBubble::after,
#partnerPanel.listener .sc.revSpeechBubble::after,
#testPanel .sc.revSpeechBubble::after,
.yc.revSpeechBubble::after
{
    border-left-color: #01438b !important;
}

#ownPanel.speaker .lc.speechBubble::after,
#ownPanel.listener .sc.speechBubble::after,
#partnerPanel.speaker .sc.speechBubble::after,
#partnerPanel.listener .lc.speechBubble::after,
.pc.speechBubble::after
{
    border-right-color: #d10056 !important;
}

#ownPanel.speaker .lc.revSpeechBubble::after,
#ownPanel.listener .sc.revSpeechBubble::after,
#partnerPanel.speaker .sc.revSpeechBubble::after,
#partnerPanel.listener .lc.revSpeechBubble::after,
.pc.revSpeechBubble::after
{
    border-left-color: #d10056 !important;
}

.speechBubble::after {
    content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 0.5em solid transparent;
	border-left: 0;
	border-top: 0;
	margin-top: -0.25em;
	margin-left: -0.5em;
}

.revSpeechBubble:after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 0.5em solid transparent;
	border-right: 0;
	border-top: 0;
	margin-top: -0.25em;
	margin-right: -0.5em;
}

.placeholder {
    opacity: 0.6;
}

.smaller {
    font-size: 0.75rem;
}

.panelTip {
    font-size: 1.0rem;
    background-color: black;
    opacity: 0.6;
    color: whitesmoke;
    border-radius: 8px;
    padding: 5px;
    position: absolute;
    /*top: 10px;*/
    align-self: center;
    z-index: 9999;
    margin-top: 5px;
}

.panelDim, .panelDim panelHeader {
    opacity: 0.75;
    color: #707070;
    /*background-color: #f0f0f0;*/
}

.dim {
    opacity: 0.25;
}

.loading:after {
  content: '.';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    color: rgba(0,0,0,0);
    text-shadow:
      .25em 0 0 rgba(0,0,0,0),
      .5em 0 0 rgba(0,0,0,0);
  }
  40% {
    color: white;
    text-shadow:
      .25em 0 0 rgba(0,0,0,0),
      .5em 0 0 rgba(0,0,0,0);
  }
  60% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 rgba(0,0,0,0);
  }
  80%, 100% {
    text-shadow:
      .25em 0 0 white,
      .5em 0 0 white;
  }
}

.speakerImg, .listenerImg, .teamImg, .targetImg {
    width: 30px;
    height: 30px;
    border: 3px solid black;
    border-radius: 15px;
    flex-grow: 0;
    /*margin-right: 20px; */
}

.targetImg {
    margin: 5px;
}

.sendButton, .sendButton:focus {
    background-image: url(../images/icons8-send-letter-48.png);
    background-clip: border-box;
    background-size: contain;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border-radius: 15px;
    border: 0;
    outline: 0 !important;
    background-color: transparent;
}

.sendButton:active {
    background-color: #d0d0f0;
}

#sendIcon {
    width: 30px;
    height: 30px;
    flex-grow: 0
    /*margin-right: 20px; */
}

.growMargin {
    flex: 1 0 auto;
}

.scoreTable {
    font-size: 14px;
}

.scoreTable .rightMessage {
    align-self: flex-end;
    margin-bottom: 5px;
}

.scoreTable .leftMessage {
    align-self: flex-start;
    margin-bottom: 5px;
}

.scoreTable .listenerMessage {
    flex-direction: row;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.scoreBlock .score {
    align-self: center;
}

.scoreBlock {
    margin: 3px 3px 2px 3px;
}

.scoreBlock.previous {
    opacity: .50;
}

.scoreBlock:last-child:not(.previous) {
    border-bottom: 2px solid #888;
}

.scoreBlock:nth-last-child(n+9) {
    display: none;
}

.scoreBlock:nth-last-child(8)::before {
    content: "....";
    padding-top: 5px;
    padding-right: 10px;
}

#scorePanel {
    min-height: 390px;
    max-width: 1000px;
}

#scoreInsertionPoint {
    /* display: flex; */
    /* flex-direction: column-reverse; */
    height: 60vh;
    max-height: 60vh;
    overflow-y: auto
}

#speakerScore tr.highlight, #listenerScore tr.highlight {
    background: lemonchiffon;
}

#speakerScore .scoreRowKey {
    height: 40px;
    text-align: center;
    padding-left: 10px;
}

#listenerScore .scoreRowKey {
    height: 80px;
    text-align: center;
}

.listener.panel > .speaker, .speaker.panel .listener {
    display: none;
}

#partnerPanel .partnerHider {
    height: 120px;
    width: 175px;
    font-size: 12pt;
    border: 1px solid;
    border-radius: 16px;
    margin-left: 20px;
    padding-top: 10px;
    color: black
}

#partnerPanel .partnerHidden {
    top: 0;
    left: 0;
    visibility: hidden;
}

#partnerPanel .partnerHidden::after {
    content: "the red player can see this item but we're hiding it from you";
    z-index: 10;
    background-color: #f8f1e2;
    opacity: 1 !important;
    padding-top: 15%;
    border: 1px solid;
    font-size: 65%;
    box-shadow: 5px 5px 5px 4px rgba(96,96,96,1);
    top: -5px;
    left: -5px;
    visibility: visible;
}

#partnerPanel .partnerHidden,
#partnerPanel .partnerHidden::after
{
  width: 100%;
  height: 100%;
  position: absolute;
}


.bluePlayer, .redPlayer {
    padding: 5px;
    flex: 0 1 auto;
    justify-content: center;
    align-items: center;
    color: white;
}

.bluePlayer {
    margin: 5px 5px 0px 5px;
}

.redPlayer {
    margin: 5px;
}

#ownPanel.speaker .listenerName::after,
#ownPanel.listener .speakerName::after,
#partnerPanel.listener .listenerName::after,
#partnerPanel.speaker .speakerName::after
{
    content: "red"
}

#partnerPanel.speaker .listenerName::after,
#partnerPanel.listener .speakerName::after,
#ownPanel.listener .listenerName::after,
#ownPanel.speaker .speakerName::after
{
    content: "blue"
}

.flipped .topicSpan .stimuli:hover {
    transform: scale(-1.1,1.1);
    -webkit-transform: scale(-1.1,1.1);
}

.topicSpan .stimuli:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    box-shadow: 4px 4px 5px #a0a0a0;
}

.flipped #ownPanel .thumbnails .stimuli:hover {
    transform: scale(-1.1,1.1);
    -webkit-transform: scale(-1.1,1.1);
    box-shadow: -4px 4px 5px #a0a0a0;
}

#ownPanel .thumbnails .stimuli:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    box-shadow: 4px 4px 5px #a0a0a0;
}

.flipped #ownPanel .thumbnails .stimuli:active {
    transform: scale(-1.1, 1.1) translate(-2px, 2px);
    -webkit-transform: scale(-1.1, 1.1) translate(-2px, 2px);
    box-shadow: -2px 2px 5px #606060;
    z-index: 100;
}

#ownPanel .thumbnails .stimuli:active {
    transform: scale(1.1) translate(2px, 2px);
    -webkit-transform: scale(1.1) translate(2px, 2px);
    box-shadow: 2px 2px 5px #606060;
    z-index: 100;
    background-color: #e0e0e0;
}

.upsideDown {
    -moz-transform:rotate(-180deg);
    -o-transform:rotate(-180deg);
    transform:rotate(-180deg);
}

.scoreGuide {
    padding: 0px 10px 5px 10px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.errorReport {
    background-color: lightgrey;
}

.points {
    width: 35px;
    height: 35px;
}

.importantMarker {
    height: 35px;
}

#utilityLearnPanel img.points {
    width: 50px;
    height: 50px;
}

#scoreCard .points {
    width: 35px !important;
    height: 35px !important;
}

.scoreContainer div {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-stretch: extra-condensed;
    font-family: "Arial Narrow";
    font-weight: bold;
    letter-spacing: -2px;
}

.scoreTable .scoreContainer div,
#scoreCard .scoreContainer div {
    font-size: 22px;
}

.scoreContainer.mismatch div {
    color: black;
    letter-spacing: 0px;
}

.scoreContainer {
    display: inline-block;
}

.playerTurnImgContainer, .scoreContainer {
    position: relative;
}

.playerTurnOverlay1 {
    position: absolute;
    top: 18px;
    left: 60px;
}

.playerTurnOverlay2 {
    position: absolute;
    top: 18px;
    left: 405px;
}

.nav-tabs .nav-link {
    cursor: pointer;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}


