#exercise{   
  clear: both;

  max-width: 1300px;
  min-height: 600px;

  margin: 0 auto;
  border: none;

  background-color: transparent;
  touch-action: manipulation;
}

#playGround {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#instructions{
  font-weight: 400;
  background-color: white;
  text-align: left;

  border-radius: 3px;
  margin-bottom: 10px;

  min-width: 500px;
}

#instructions-content {
  margin: 15px;
}

@media screen and (max-width: 500px) {
  #instructions {
    min-width: auto;
    width: 100%;
  }
}

#exercise #plan-control {
  width: 100%;

  display: flex;
  gap: 10px;
  align-items: stretch;
}

#exercise #plan-control .side {
  flex: 1 1 0;
  display: flex;
  align-items: flex-start;

  position: relative;
  overflow: hidden;
}

#exercise #plan-control .side.commandBar-container {
  justify-content: flex-end;
}

#exercise #plan-control .side.notification-container {
  justify-content: flex-start;
}

#exercise #plan-control .plan-container {
  flex: 0 1 auto;
}

#exercise #plan{
  background-color: white;
  padding: 7px;
  border: 3px solid transparent;
  box-shadow: 0 0 32px 0 rgba(0,0,0,0.1);
}

#exercise #plan.correct{
  border-color: #00d872;
}

#exercise table.plan{
  margin: 0;
}

#exercise table.plan tbody {
  display: flex;
  flex-direction: column;
}

#exercise table.plan tr {
  display: flex;
  position: relative;
}

#exercise table.plan td{
  font-weight: 700;

  width: 80px; /* responsive */
  height: 80px;

  margin: 0;
  padding: 0;

  border-radius: 6px;
  border: 1px solid white;

  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
}

#exercise table.plan td img{
  height: 87.5%;
  width: 87.5%;
  margin: 0;
}

#exercise table.plan td.sand:hover{
 border-color: #f8cb3a;
 cursor: pointer;
}

#exercise .circleX{ 
  width: 12.5%;
  height: 12.5%;
  border-radius: 50%;
}
#exercise .circleX.red { background-color: #e9260b; }
#exercise .circleX.green { background-color: #1470bf; }
#exercise .circleX.brown { background-color: #653108; }
#exercise .circleX.black { background-color: black; }

#exercise .circleX.big{
  width: 25%;
  height: 25%;
  border-radius: 25%;
}

#exercise #commandBar .circleX.big {
  position: absolute;
  left: 38.5%;
  top: 38.5%;
}

#exercise .bot {
  position: absolute;
}

#exercise .bot.green, #exercise .bot.red {
  z-index: 1;
}

#exercise .bot.black {
  z-index: 2;
}

/* POLICKA BARVY */
#exercise table.plan td.red{ color: #e9260b; } /*border-bottom:1px solid #ff6370; }*/
#exercise table.plan td.green{ color: #1470bf; } /*border-bottom:1px solid #6bb050; }*/
#exercise table.plan td.brown{ color: #653108; } /*border:1px solid #f6e987; }*/
#exercise table.plan td.brown{ color: black; } /*border:1px solid #f6e987; }*/

#backOverview{
  text-decoration:none;
}


#commandBar{  
  color: black;
  font-weight: 400;
  background-color: white;

  border-radius: 3px;
  padding: 10px;
  box-shadow: 0 0 32px 0 rgba(0,0,0,0.1);
}

#exercise table.commandBar{
  margin: 0;
}

#exercise table.commandBar tbody {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#exercise table.commandBar tr {
  display: flex;
  margin: 0;
}

#exercise table.commandBar td{
  color: black;
  background-color: #ecf0f1;
  font-size: 24px;

  margin: 0;
  padding: 5px;
  border-radius: 6px;

  width: 65px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

#commandBar .img {
  width: 60%;
  padding-bottom: 60%;
  height: 0;
  position: relative;
}

#commandBar img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


#exercise table.commandBar td.red{ border:0px solid #e64f43; color: #e9260b; }
#exercise table.commandBar td.green{ border:0px solid #006dc0; color: #1470bf; }
#exercise table.commandBar td.brown{ border:0px solid #653108; color: #653108; }

#exercise table.commandBar td.selected{ background-color: #feebaa; }
#exercise table.commandBar td:hover{ cursor: pointer; }

#exercise #bucket {
  background-color: transparent;
  pointer-events: none;
  position: absolute;

  font-size: 26px;

  width: 80px; /* responsive */
  height: 80px;

  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (hover: none) {
  #bucket {
    visibility: hidden;
  }
}

#exercise #bucket.red{ color: #e9260b; }
#exercise #bucket.green{ color: #1470bf; }
#exercise #bucket.brown{ color: #653108; }

#exercise #bucket img{
  height: 87.5%;
  width: 87.5%;
}

#exercise #notification {
  position: absolute;
  margin: 0;
}

#exercise #notification td{
  font-size: 14px;
  text-align: left;
}
#exercise #notification td img{
  max-height: 30px;
}

#exercise #alert {
  font-size: 14px;
  color: #e74c3c;
  padding: 5px;
}

.control-panel + .control-panel {
  margin-top: 30px;
}

.tlacitko.disabled {
  pointer-events: none;
}

/***** SMALLER SCREENS (for extremely wide boards) *****/
@media screen and (max-width: 1200px) {
  #exercise table.plan td, #exercise #bucket {
    width: 70px;
    height: 70px;
  }
}

@media screen and (max-width: 960px) {
  #exercise table.plan td, #exercise #bucket {
    width: 60px;
    height: 60px;
  }
}

/***** MOBILE SCREENS *****/
@media screen and (max-width: 600px), screen and (max-height: 500px) {
  #exercise table.plan td, #exercise #bucket {
    width: 50px;
    height: 50px;
  }
}

/***** RECOMPOSE CONTENT (smaller and mobile screens) *****/
@media screen and (max-width: 900px) {
  #exercise #plan-control {
    flex-direction: column;
    width: auto;
    max-width: 100%;
  }
  #exercise #plan-control .side {
    flex: 0 0 auto;
    align-items: flex-start;
  }

  #exercise #plan-control #plan {
    align-self: flex-start;
  }

  #exercise #plan-control .side.commandBar-container {
    justify-content: flex-start;
  }

  #exercise table.commandBar tbody {
    flex-direction: row;
  }

  #exercise #plan-control .notification-container {
    height: 50px;
    overflow: scroll;
  }

  #exercise #plan-control #notification {
    position: relative;
  }
}
