#exercise{  
  max-width: 840px;   
}

/*#exercise{  
  padding-top:20px;  
  max-width: 840px; 
  margin: 0px auto;        
  text-align: center;
  background-color: transparent;
  border:0px;
  min-height: 400px;
  padding-bottom: 60px;  
}
*/

#exercise .exercise-frame {
  background-color: white;
  padding: 30px;
  border-radius: 3px;
}

#exercise.whiteScreen .exercise-frame {
  padding: 10px;
}

#exercise #dictate{
  font-size: 24px;    
  line-height: 1.5;
  text-align: left;
  border-radius: 3px;
}

#exercise .nobr { 
  white-space: nowrap; 
}

#exercise .gap-dropdown{
  position: relative;  
}

#exercise #explanation {
  font-size: 18px;
  line-height: 28px;
  border-radius: 3px;
  padding: 20px;
  background-color: white;
  display: none;

  text-align: left;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 20px;
  margin-bottom: 10px;
  box-shadow: none;
}

#exercise .gap-cursor{
  background-color: #ffebaa;  
  padding-left:0px;
  padding-right:0px;
  text-align: center;
  cursor: pointer;   
  display:inline-block;    
  border-radius:4px; 
  min-width: 20px;
}

#exercise .gap-cursor.current{
  background-color: var(--orange);
}

#exercise .gap-cursor.answered{
  background-color: white;  
}

#exercise .gap-dropdown-content{    
  z-index: 15;
  left:50%;
  transform: translate(-50%, 0);  
  background-color: white;
  box-shadow: 0px 0px 32px 0px rgba(0,0,0,0.15);   
  border-radius: 5px;
  border: 1px solid var(--lightGray);
  overflow: hidden;
}

.toggle-button-container {
  margin: 30px 0 15px;
}

#exercise.whiteScreen .toggle-button-container {
  margin-bottom: 0;
}

#toggleGapPosition.down .up,
#toggleGapPosition.up .down {
  display: none;
}

/*#exercise .gap-dropdown-content .toggleGapPosition{ 
  padding:0px 5px; 
  font-size: 18px;
  cursor: pointer;
}

#exercise .gap-dropdown-content .toggleGapPosition:hover{
  background-color:var(--lightGray);  
}*/

#exercise .gap-dropdown-content.up{
  position: absolute;
  top: auto;
  bottom:100%;  
}

#exercise .gap-dropdown-content.down{
  position: absolute;
  bottom: auto;
  top:100%;   
}

#exercise .variant,#exercise .inlineVariant{
  background-color: #fffec0;  
  min-width: 50px;
  font-weight: 500;
  cursor: pointer;
}

#exercise .inlineVariant {
  letter-spacing: -0.005em;
}

#exercise .variant {
  padding:10px 10px;
  vertical-align: middle;
  text-align: center;
  display: inline-block;
}

#exercise .variant:hover,#exercise .inlineVariant:hover{
  background-color: #c8ecee;    
}

/* VYSVICENE ODPOVEDI INLINE */
#exercise .gap span:not(.slash){
  border-radius: 5px;
  padding: 3px;  
}

/* VYSVICENE ODPOVEDI */
#exercise .gap-cursor span:not(.slash){
  border-radius: 5px;
  padding: 3px;
}

#exercise .variantRight{ 
  border-left:1px solid #dfe6e9; 
}
#exercise .inlineVariant.variantRight{ 
  border-left:0px solid #dfe6e9;  
}

#exercise .correct{ background-color: #30de83; }
#exercise .wrong{ background-color: #fe7b7c; }

#exercise .hide {
  display: none;
}
#exercise .unchosen:not(.slash) {
  color: var(--gray);
  background-color: var(--lightGray);
}
#exercise .unchosen.slash {
  color: var(--lightGrayHover);
}
#exercise .linethroughLeft{
  text-decoration: line-through;
}
#exercise .linethroughRight{
  text-decoration: line-through;
}

#exercise h1{
  margin: 5px 0 15px;
}

#exercise #image {
  margin: 10px 0;
}

#exercise #playGround #image.larger{
  max-height: 150%;  
  max-width: 150%;  
  width: 1200px;
  height: auto;
}

#exercise.larger{
  overflow: visible;
  max-width: 1250px;
}

.imageTitle{
  cursor: pointer;  
}

/********************** MOBILNI VERZE *****************************/

@media screen and (max-width: 550px) {

  #exercise #dictate{    
    line-height: 1.6em;
  }

  #exercise .exercise-frame {
    padding-left: 10px;
    padding-right: 10px;
  }

  #exercise #dictate{
    font-size: 20px;
  }

  #exercise .variant:hover{
    background-color: #fffec0;
  }


}
