#layout{
  width: fit-content;
  height: fit-content;
  margin: 2rem;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-areas: "tabela lTab"
  "tabela comandos";
  justify-items: center;
  border: 2px solid darkblue;
  border-radius: 0.3rem;
}

/*======== Infos ===========*/
#infos{
  width: fit-content;
  height: fit-content;
  display: flex;
  gap: 1rem;

  border: 2px solid darkblue;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 2rem;

}

/*======= Settings ===========*/

#settings{
  display: grid;
  gap: 1rem;

  color: black;
  font-size: 1.3rem;
  font-weight: bold;
}

#settings select{
  font-size: 1.3rem;
}

#settings button{
  text-align: center;
  height: fit-content;
  border-radius: 0.25rem;
  padding: 0.5rem;
  transition: 0.3s;
  font-weight: bold;
  font-size: 1rem;
  background-color: darkblue;
  color: aliceblue;
}

#settings button:hover{
  background-color: blue;
  cursor: pointer;
}

#reset{
  display: flex;
  align-items: center;
}

#settings div{
  display: grid;
  align-items: center;
  align-content: center;
  gap: 0.5rem;
}

/*======== Descrição =======*/

#description{
  border: 2px solid darkblue;
  border-radius: 0.5rem;
  padding: 1rem;

  width: 38rem;
}

#description p{
  font-size: 1.2rem;
  text-align: justify;
}

/*====== LAYOUT DO TABULEIRO =========*/
#layoutTabuleiro{
  grid-area: lTab;

  display: grid;

  grid-template-areas: "empty colunas"
  "linhas tabuleiro";
}

#colunas{
  grid-area: colunas;

  display: grid;
  grid-template-columns: repeat(9,1fr);
  justify-items: center;

  font-size: 1.5rem;
  font-weight: bold;
}

.coluna{
  width: 5rem;
  text-align: center;
}

#linhas{
  grid-area: linhas;

  display: grid;
  grid-template-rows: repeat(7,1fr);
  justify-items: center;

  font-size: 1.5rem;
  font-weight: bold;

  margin-right: 1rem;
}


/*=== TABULEIRO ===*/
#tabuleiro{
  grid-area: tabuleiro;

  width: fit-content;
  height: fit-content;
  
  display: grid;
  grid-template-rows: repeat(7,1fr);
  grid-template-columns: repeat(9,1fr);

  align-items: center;
  justify-items: center;

  border: 1px solid black;
}

.casa{
  height: 5rem;
  width: 5rem;
  border: 1px solid black;
}

.cor1{
    background-color: aquamarine;
}

.cor2{
    background-color: cornflowerblue;
}

/*=== TABELA ALGORITMO ===*/
#tabela{
  grid-area: tabela;
  display: flex;
  flex-direction: column;
  border: 1px solid black;
}

#logo_algoritmo{
  width: 12.125rem;
  height: 100%;
}

#algoritmo{
  height: fit-content;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

#algoritmo .comando{
  display: flex;
  height: 2rem;
  width: 12rem;
  border: 1px solid black;
  align-items: center;
}

#algoritmo .number{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 0.25rem;
  margin: 0;
  height: 100%;
  width: 1.2rem;

  background-color: darkblue;

  color: aliceblue;
  font-weight: bold;
}

/*====== TABELA DE ALGORITMO COMPILADA ==========*/
.instrucao{
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  border-radius: 0px;
}

.instrucao select{
  border-radius: 0;
}

/*===== Funções =======*/
#algoritmo .funcao{
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
}

.direita{
  background-color: lightblue;
  color: blue;
}

.esquerda{
  background-color: orange;
  color: blue;
}

.cima{
  background-color: yellow;
  color: blue;
}

.baixo{
  color: aliceblue;
  background-color: blue;
}

/*=== Robomat ===*/
#robomat{
  width: 100%;
  height: 100%;
}

/*=== Obstaculos ===*/
.obstaculo{
  width: 100%;
  height: 100%;
}

/*=== Comandos ===*/
#controles{
  grid-area: comandos; 
  display: flex;
  gap: 2rem;
}

.botao{
  text-align: center;
  height: fit-content;
  width: 4rem;
  border-radius: 0.25rem;
  padding: 1rem;
  transition: 0.3s;
  font-weight: bold;
  background-color: darkblue;
  color: aliceblue;
  border: 2px solid black;
}

#compilar{
  width: fit-content;
}

.botao:hover{
  background-color: blue;
  cursor: pointer;
}

/*====== POP UP ======*/

#noClick{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 199;
}

#popUp{
  border: 1px solid darkblue;
  border-radius: 0.5rem;
  width: fit-content;
  padding: 1rem;
  box-shadow: 0rem 0rem 0.75rem rgba(0, 0, 0,1);
  background-color: white;

  text-align: center;

  z-index: 200;
  position: fixed;
  margin: 20% auto;
  left: 0;
  right: 0;
}

#escolhas{
  display: grid;
  grid-template-columns: repeat(5,1fr);
  
  margin: 1rem;
  gap: 1rem;
}

.opcao{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 5rem;
  height: 5rem;
  border: 2px solid darkblue;
  cursor: pointer;

}


