#content {
  overflow: visible; /* sticky */
}

#exercise{
  max-width: 900px;
  min-height: 900px;

  touch-action: manipulation;
  overflow: visible; /* sticky */
}

#exercise .statsBox {
  margin-top: 100px;
}

#exercise.pure{
  max-width: 900px;
}

#playGround {
  overflow: visible; /* sticky */
}

#questionParent{  
  margin-top: 20px;
  min-height: 300px;    
  display: none;
  overflow: visible; /* sticky */
}

#exercise #question{  
  display: block;    
  font-size: 20px;
  text-align: left;
  margin: 0;
  overflow: visible; /* sticky */

  z-index: 0;
  position: relative;
}

/* overwrite fcq.css */
#exercise #question code{
  font-size: inherit;
}

#exercise #cards{
  margin-top: 10px;
  padding-bottom: 10px;
}

#exercise .card{
  font-size: 20px;  
}

#exercise .card img {
  max-height: unset;
  --min-width: calc(50vw - 25px);
  max-width: var(--option-img-max-width, --min-width); /* fallback for older browsers */
  max-width: min(var(--min-width), var(--option-img-max-width, 100vw));
}

@media screen and (min-width: 900px) {
  #exercise .card img {
    max-width: var(--option-img-max-width, 425px); /* fallback for older browsers */
    max-width: min(var(--option-img-max-width, 100vw), 425px);
  }
}

#exercise .card .text{   
  line-height: 1.2em;  
}

#exercise #question .vzorec{
  display: inline-block;
  font-size: 20px;
  text-align: center;
}

/* specialni pripad, kdy to bere margin z text, tak nepridam jeste ze vzorce */
#exercise .card .text .vzorec{
  margin:0px;
}

#exercise .chat{    
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;    
  margin: 5px;
}

/* sticky element */
#exercise .chat:first-child {
  top: 5px;
  background-color: white;
  box-shadow: 0 -5px white, 0 5px 3px white;
  z-index: 1;
}

#exercise .chat img.personA, #exercise .chat img.personB{
  height: 35px;
  width: auto;
  margin:0px;
}


#exercise .personA, #exercise .personB{
  margin-left: 5px;  
  border-radius: 6px;  
  color:white;
  padding:6px 10px;
  line-height: 1.2em;
}

#exercise .personA{
  border-bottom-left-radius: 0px;  
}

#exercise .personB{
  border-bottom-right-radius: 0px;
}

/* JAZYKY */
#exercise .personA{
  color:white;
  background-color: #3897d9;  
}

#exercise .personB{
  color:white;  
  background-color: #35cc73;
  color:var(--black);
  margin-left:50px;  
  background-color: #ffcccc;  
  background-color: #ecf1f2;  
  background-color: #e5f7ed; 
  border:0px solid var(--green);
}



/* VERZE PRO MATIKU */
#exercise .personA.pure{  
  border-radius: 6px;  
  border-bottom-left-radius: 0px;
  color:#2c3e50;   
  background-color: #d8e5ef;    
  background-color: #ecf0f1;  
  /*width: 100%;*/
}

#exercise .personA.pure.firstLine{    
  font-weight: bold;
  border: 1px solid #bdc3c7;      
}

#exercise .personB.pure{
  border-radius: 8px;  
  border-bottom-right-radius: 0px;
  color:#2c3e50;   
  background-color: white;  
  background-color: #e5f7ed;
  margin-top: 5px;
  margin-bottom: 5px;
  border:0px solid var(--green);
  /*width: 100%;*/
}

#exercise .personB.wrong, #exercise .personB.pure.wrong{
  color: var(--gray);    
  border:0px solid black;
  background-color: #fcebea;
  margin-top: 5px;
  margin-bottom: 0px;
}

#exercise #question .image img {
  cursor: pointer;
}

#exercise .image {
  gap: 10px;
}

/* EXPLANATION */
#exercise #explanation{    
  font-size: 18px;
  line-height: 1.2em;
  text-align: left;  
  margin:10px;      
  margin-top: 20px;
  border-radius: 3px;
  padding-top: 7px;  
  padding: 20px;    
  background-color: white;
  display:none;
  box-shadow: 0px 0px 32px 0px rgba(0,0,0,0.1);
}

#exercise #explanation .vzorec{    
  font-size: 20px;
  text-align: center;
  display: inline-block;
}

/********************** WHITE SCREEN *****************************/
#exercise.whiteScreen #abs{ 
  
}

/********************** MOBILNI VERZE *****************************/

@media screen and (max-width: 599px) {
  #exercise .chat img {
    /* override inline style */
    max-width: 100% !important;
  }

}