
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
}

.form-container {
  margin-bottom: 20px;
}


.drzewo-container {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
}

.drzewo {
  display: inline-block;
  position: relative;
}

.galaz {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
  position: relative;
}


.galazki {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  position: relative;
}


.galaz::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 1px;
  height: 10px;
  background-color: #ccc;
}

.galazki::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ccc;
}


.wezly {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  background-color: #0077cc;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #005fa3;
  transition: background-color 0.3s ease;
}

.wezly:hover {
  background-color: #005fa3;
}


.wartosc {
  background-color:  #32CD32;
  color: white;
  font-weight: bold;
}
.korzen {
  background-color: #f4b400; 
  color: white;
  font-weight: bold;
  border: 1px solid #c69500;
}


.atrybut {
  background-color:#1E90FF ;
  color: white;
}


.decyzja {
  background-color: #FF4500;
  margin-top: 5px;
  font-style: italic;
  padding: 5px 10px;
}

.decyzja:hover {
  background-color: #D84315;
}


.log-container {
  margin-top: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}


table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

table th, table td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ccc;
}


.reguly-container {
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.reguly-container h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.reguly-content {
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}


.legenda {
  margin-top: 20px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 300px;
  text-align: left;
}

.legenda h3 {
  margin: 0 0 10px;
  font-size: 16px;
  text-align: center;
}

.legenda-element {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legenda-element span {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 5px;
}

.legenda-element .korzen {
  background-color: #f4b400;
  border: 1px solid #c69500;
}

.legenda-element .atrybut {
  background-color: #32CD32;
}

.legenda-element .wartosc {
  background-color: #1E90FF;
}

.legenda-element .decyzja {
  background-color: #FF4500;
}
