
*, *::after, *::before {
  box-sizing: border-box;
}


:root {
  --color: rgba(255,255,255,0.86);
  --bg-color: darkblue;
}

html {

}

body {
  margin: 0px;
  padding: 2rem;
  background-color: var(--bg-color);
  color: var(--color);
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.375em;
}

.pageWrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-width: 900px;
}


/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* TYPE STUFF */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2em;
  margin: 0px 0px 2rem 0px;
  letter-spacing: 0px;
}
h1 {
  font-size: 2.5em;
  line-height: 1.05em;

  a:hover {
    text-decoration: none;
  }
}
h2 {
  font-size: 2em;
  padding: 0px;
}
h3 {

}

p {
  margin: 0px 0px 1.5rem 0px;
}

/* INLINE LINKS */
a { text-decoration: none; color: tomato; outline: 0; }
a:active, a:focus { outline: 0; }
a:hover { text-decoration: underline; outline: none; }

a img {
  border: 0px;
}



#canvas-container {
  margin: 0px 0px 1rem 0px;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


/* ******************************************************************* */
/* btns */

#controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  padding: 1rem 2rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.class-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  border: 0px;
  border-radius: 1rem;
}


#instructions {
  /* max-width: 800px; */
  text-align: left;
  padding: 20px;
  background: #16213e;
  border-radius: 1rem;
}
#instructions h3 {
  color: #00d9ff;
  margin-bottom: 12px;
}
#instructions p {
  color: #aaa;
  line-height: 1.6;
  font-size: 0.9rem;
}
#instructions kbd {
  background: #0f3460;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: #00ff88;
}


/* ******************************************************************* */
/* supervised learning styles */

.class-indicator {
  display: flex;
  gap: 20px;
  justify-content:  start; /* center ; */
  margin-top: 15px;
  flex-wrap: wrap;
}
.class-item {
  background: #0f3460;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.class-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.class-samples {
  font-size: 0.85rem;
  color: #888;
}
#prediction-display {
  margin-top: 0px;
  margin: 0px 0px 1rem 0px;
  padding: 20px;
  background: #16213e;
  border-radius: 1rem;
  min-height: 100px;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#prediction-display h3 {
  color: #f39c12;
  margin-bottom: 15px;
}
.prediction-bar {
  width: 100%;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prediction-label {
  width: 80px;
  text-align: right;
  font-size: 0.9rem;
}
.prediction-fill {
  height: 24px;
  border-radius: 4px;
  transition: width 0.3s;
}
.prediction-value {
  font-weight: bold;
  margin-left: 10px;
}

#prediction-display {
  margin-top: 1rem;
  padding: 1rem;
  background: #16213e;
  border-radius: 12px;
  min-height: 100px;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#prediction-display h3 {
  color: #f39c12;
  margin-bottom: 15px;
}
.prediction-bar {
  width: 100%;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prediction-label {
  width: 80px;
  text-align: right;
  font-size: 0.9rem;
}
.prediction-fill {
  height: 24px;
  border-radius: 4px;
  transition: width 0.3s;
}
.prediction-value {
  font-weight: bold;
  margin-left: 10px;
}



/* ******************************************************************* */
/* unsupervised learning */


.status {
  display: flex;
  gap: 30px;
  justify-content: start; /* center; */
  margin-top: 15px;
  flex-wrap: wrap;
}
.status-item {
  background: #0f3460;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.status-item span {
  color: #f39c12;
  font-weight: bold;
}


/* ******************************************************************* */
/* RF learning */

.stats {
  display: flex;
  gap: 30px;
  justify-content: start; /* center; */
  margin-top: 15px;
  flex-wrap: wrap;
}
.stat-item {
  background: #0f3460;
  padding: 10px 20px;
  border-radius: 8px;
  min-width: 120px;
}
.stat-item span {
  color: #ffd93d;
  font-weight: bold;
  font-size: 1.2rem;
}
.stat-label {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

.legend {
  display: flex;
  gap: 20px;
  justify-content: start; /* center; */
  margin-top: 15px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

#speedSlider {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f3460;
  padding: 10px 20px;
  border-radius: 8px;
}
#speedSlider label {
  font-size: 0.9rem;
}
#speedSlider input {
  width: 100px;
}