/* {
border: 2px solid red;

}*/

.header {
  font-weight: bold;
  font-size: 40px;
  color: #c0d3f5;
  background-color: #000012;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
body {
  font-family: sans-serif;
  background-color: #1e1e2e;
  color: #c0d3f5;

  margin-top: 60px;
}
#game-root {
  display: grid;
  justify-content: center;
  grid-auto-rows: 40px; /* Höhe jeder Zeile bleibt konstant */
  gap: 2px;
  color: rgb#000000;
}
.cell {
  width: 40px;
  height: 40px;
  background-color: #2c2c3a;
  border: 1px solid #3e3e4d;
  border-radius: 8px;
}
.cell.void {
  background-color: #1e1e2e;
  border: 1px solid #1e1e2e;
}
.cell.goal {
  background-color: gold;
}
.cell.field-grey {
  background-color: rgb(199, 199, 199);
}
.cell.field-green {
  background-color: green;
}
.cell.field-red {
  background-color: red;
}
.cell.field-blue {
  background-color: blue;
}
.cell.cursor::after {
  content: "►";
  display: block;
  text-align: center;
  font-size: 24px;
  line-height: 40px; 
}
#command-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  padding-left: 10px;
}
#function_input {
  font-weight: bold;
  color: #001842;
}
.setSpeed {
  margin-left: 25px;
  margin-bottom: 25px;
}
.command-cell {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  border: 2px solid #333;
  border-radius: 6px;
  background-color: #f0f0f0;
  user-select: none;
}

.user_controls {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.cursor {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 25px;
  line-height: 40px;
  text-align: center;
  width: 100%;
  height: 100%;
  color: black;
}
.cursor.up {
  transform: rotate(-90deg);
}
.cursor.down {
  transform: rotate(90deg);
}
.cursor.left {
  transform: rotate(180deg);
}
.cursor.right {
  transform: rotate(0deg);
}
.box-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  
}
.box-right button {
    width: 150px;
    height: 50px;
    font-size: 16px;
  }
.box-right .functions-display {
  display: flex;
  align-items: center;
  gap: 10px;
  p {
    color: #c0d3f5;
    font-size: 25px;
  }
}
#command-listF1 {
  display: flex;
  gap: 5px;
}
.command-cell.cond-grey {
  background-color: #aaa;
}
.command-cell.cond-green {
  background-color: #4caf50;
}
.command-cell.cond-red {
  background-color: #f44336;
}
.command-cell.cond-blue {
  background-color: #2196f3;
}
.color-picker {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.color-option {
  width: 30px;
  height: 30px;
  border: 2px solid #222;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.color-option:hover {
  transform: scale(1.1);
}
.color-option.selected {
  outline: 3px solid white;
  outline-offset: 1px;
}
#message {
  padding: 10px;
  font-weight: bold;
  color: #c0d3f5;
  background-color: #1e1e2e; /* z. B. Grün für Erfolg */
  border-radius: 8px;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1e1e2f;
  display: flex;
  justify-content: center; /* Zentriert die Links horizontal */
  gap: 30px;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  font-family: sans-serif;
}
.nav a {
  color: #ddd;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.nav a:hover {
  background-color: #333;
  color: #fff;
}
button:disabled {
  opacity: 0.5 !important;
}
.level-description {
  max-width: 400px;
  word-wrap: break-word;
  white-space: normal;
  padding: 10px;
  background-color: #1e1e2e;
  border-radius: 8px;
  font-size: 20px;
  color: #c0d3f5;
  line-height: 1.4;
  margin: 0 auto;          
  text-align: center;     
}
.command-list_instructions {
  margin-top: 50px;
  display: flex;
  
  flex-direction: column; 
  gap: 10px; 
  color:#c0d3f5;
  p {
    font-size: 20px;
    max-width: 500px ;
  }
  span {
    margin-left: 10px;
    padding: 10px;
  }
}
.button-instructions {
  display: flex;
  text-align: center;
  font-size: 20px;
}
.box-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
button {
  box-sizing: border-box;
  border: none;
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 10px;
  font-size: 24px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}
#next-level-button {
  font-size: 16px;
}
button:hover {
  background-color: #2563eb;
}
button:active {
  transform: translate(0, 1px); /* Verschiebt den Button 3px nach unten */
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: leichter Schatten für 3D-Effekt */
}
.user_options button {
  border-radius: 4px;
  width: 40px;
  height: 40px;

}
