body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #333;
  color: #fff;
  padding: 0;
  overflow-y: hidden;
}

.main-content {
  display: flex;
  height: 100vh;
}

aside {
  background: #333;
  color: #fff;
  padding: 15px;
  width: 40%;
  height: 100vh;
  border-right: 1px solid #000;
  overflow-y: auto;
}

.spacer {
  height: 1px;
  width: 100%;
  background-color: #555;
  margin: 14px 0;
}

.preview h1 {
  padding-bottom: 14px;
}

.editor-panel {
  padding-top: 14px;
  text-align: center;
}
.animation-builder {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #222;
  color: #fff;
}

/* TOP BOX: preview area */
.preview {
  flex: 0 0 65%;       /* ~65% of height */
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal center */
  justify-content: space-evenly;
}

/* BOTTOM BOX: code panel */
.code-export {
  background: #222;
  border-top: 1px solid #000;
  color: #fff;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  overflow-y: auto;
}

/* code panel content */
.code-export h2 {
  padding-left: 14px;
}

.code-export pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100% - 40px);
  width: 100%;
  padding-block: 14px;
  margin: 0;
}

code {
  display: block;
  background-color: #111;
  border: 1px solid #333;
  box-shadow: 0 0 5px #222;
  color: #0f0;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  margin-inline: 14px;
  border-radius: 10px;
}

code:hover {
  border: 1px solid #555;
  transition: 0.15s ease;
}

span {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  width: 100%;
}

.animate-me {
  width: 80px;
  height: 80px;
  background-color: #333;
  border: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  border: none;
  padding: 8px;
  background-color: #333;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 14px;
}

button:hover {
  background-color: #555;
  transition: 0.15s ease;
}

input {
  padding: 8px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background-color: #444;
  color: white;
  margin: 14px;
}

input[type="color"] {
  padding: 2px;
}

.property-control {
  margin-bottom: 8px;
  background-color: #222;
  padding-inline: 14px;
  border: none;
  border-radius: 10px;
}

.property-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
}

.step-controls {
  display: flex;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #555;
  margin-bottom: 14px;
  gap: 10px;
}

#steps-container {
  display: flex;
  flex-direction: column;  
}

#steps-container button {
    margin: 0;
    padding: 4px;
    width: 100%;
    text-align: left;
}

.timeline-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 14px 0;
}

.timeline-actions button, .add-global-property-row button {
  font-size: 14px;
  font-weight: 700;
  margin-block: 14px;
  padding: 14px;
  text-align: left;
  border-radius: 10px;
  background: #222
}

.add-global-property-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

select {
  display: block;
  padding: 8px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background-color: #222;
  color: white;
  padding-right: 14px;

}

.desc-toggle {
  width: 100%;
  background: #222;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  margin-bottom: 8px;
}

#desc-toggle button {
  padding: 0;
  margin: 0;
  border: none;
}

.desc-toggle:hover {
  background: #555;
}

.description-content {
  margin-bottom: 20px;
}

.description-content.hidden {
  display: none;
}

.active {
  background-color: #222;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 5px #000;

}

.animation-settings {
  display: flex;
  gap: 10px;
  align-items: center;
}
