html, body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;

  font-family: 'Montserrat', sans-serif;
  background-color: #e7e8f0;
  color: #333;
}

body {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100vw;
}

canvas {
  display: block;
  position: relative;
  top: 0;
  left: 0;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 2px solid #000;
  border-radius: 10px; /* Rounded corners for the canvas */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Control panels styling */
.control-panel {
  position: relative;
  width: 220px;
  height: 100%; /* Match the canvas height */
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 8px; /* Rounded edges */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.control-panel > * {
  margin: 0;
  padding: 0;
}


.control-panel-left {
  order: 1;
  margin: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.canvas-container {
  order: 2;
}

.control-panel-right{
  order: 3;

  display: flex;
  flex-direction: column;
}

/* Place the randomize button at the very bottom of the right panel */
.control-panel-right > *:last-child {
  margin-top: auto;
}

/* Left Panel */
.core-controls {
  /* background-color: red; */
  padding: 0px;
  margin: 0px;

  margin: 5px 0;
  padding: 10px;
  /* margin: 5px 0 !important;
  padding: 5px !important; */
  background-color: #ffffff;
  /* border: 1px solid #000000; */
  border-radius: 8px; /* Rounded edges */
}

.core-controls h3 {
  display: none;
}

.size-controls {
  /* background-color: red; */
  padding: 0px;
  margin: 0px;

  margin: 5px 0;
  padding: 10px;
  /* margin: 5px 0 !important;
  padding: 5px !important; */
  background-color: #ffffff;
  /* border: 1px solid #000000; */
  border-radius: 8px; /* Rounded edges */
}

.size-controls h3 {
  display: none;
}

/* Right Panel */
.enhancements-controls {
  /* background-color: red; */
  padding: 0px;
  margin: 0px;

  margin: 5px 0;
  padding: 10px;
  /* margin: 5px 0 !important;
  padding: 5px !important; */
  background-color: #ffffff;
  /* border: 1px solid #000000; */
  border-radius: 8px; /* Rounded edges */
}

.enhancements-controls h3 {
  display: none;
}

.enhancements-section {
  margin-bottom: 15px;
  padding: 10px;
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  /* background-color: #f9f9f9; */
  /* border: 1px solid #000000; */
  border-radius: 8px;
}

.enhancements-section h3 {
  display: none; /* Hide headings in the new sections */
}

/* Controls container */
.controls-container {
  position: absolute;
  left: 520px; /* 10px + canvas width (500px) + 10px */
  top: 0;
}

/* Headings */
h3 {
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 10px;
}

/* Form elements */
label {
  display: inline-block;
  width: auto;
  min-width: 120px;
  margin-bottom: 20px;
  white-space: nowrap;
}

input[type="range"] {
  width: 150px;
}

/* Control groups */
.control-group {
  margin-bottom: 10px;
  position: relative;
}

/* Checkbox containers */
.checkbox-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  /* width: 150px; */
  /* background-color: red; */
}

.checkbox-container label {
  width: auto;
  /* padding-left: 10px; */
}

.checkbox-container input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 10px; /* Add spacing between the checkbox and its label */
  margin-bottom: 5px;
}

.checkbox-container.active {
  border-radius: 3px;
}

/* Color variation controls */
.color-variation-controls {
  display: none;
}

/* Solid color controls */
.solid-color-controls {
  display: block;
}

/* When colorVariation is active */
#right-panel.color-variation-active .color-variation-controls {
  display: block;
}

#right-panel.color-variation-active .solid-color-controls {
  display: none;
}

/* Buttons */
button {
  padding: 8px 12px;
  margin-top: 20px;
}

button.active {
  background-color: #ddd;
  border-color: #999;
}

/* Main buttons container styling */
.main-buttons-container {
  margin-top: 10px;
  padding-top: 15px;
  /* border-top: 1px solid #eee; */
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.main-buttons-container button {
  padding: 8px 15px;
  /* font-weight: bold; */
  min-width: 80px;
}

.main-buttons-container button {
  background-color: #222224;
  color: #fff;
  border: 1px solid #2d2d2d;
  border-radius: 8px; /* Rounded edges */
  padding: 8px 16px;
  margin: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  font-family: 'Major Mono Display', monospace;
  font-weight: bold;
  font-size: 0.6rem;

  width: calc(95%);
}

.main-buttons-container button:hover {
  background-color: #222224;
  transform: scale(1.02);
}

/* Sliders */
input[type="range"] {
  width: calc(95%);
}

.checkbox-branch-gradient {
  margin-top: 10px;
  /* margin-bottom: 5px; */
}
