@import url("toggle.css");
@import url("range.css");

:root {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #fafafa;
  --secondary: #262626;
  --border: #262626;
  --border-radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  height: 100vh;
  display: grid;
  grid-template-areas:
    "sidebar container rightbar"
    "sidebar code rightbar";
  grid-template-columns: 250px 4fr 230px;
  grid-template-rows: 3fr 2.5fr;
  padding: 1rem;
  gap: 1rem;
}

.sidebar,
.rightbar,
.container,
.code {
  grid-area: sidebar;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.rightbar {
  grid-area: rightbar;
}

.container {
  grid-area: container;
  display: flex;
  flex-direction: column;
}

.code {
  grid-area: code;
}

.hidden {
  display: none;
}

.title {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.dropdown {
  margin-bottom: 1.5rem;
}

.dropdown-title {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

select {
  width: 100%;
  background-color: var(--secondary);
  color: var(--foreground);
  padding: 0.5rem;
  border: none;
  border-radius: var(--border-radius);
}

.buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.buttons button {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition-duration: 0.3s;
}

.buttons button:hover {
  opacity: 0.5;
}

.flex-container {
  display: flex;
  height: 100%;
  background-color: var(--border);
  border-radius: var(--border-radius);
  padding: 0.5em;
}

.code-container {
  height: 80%;
  background-color: var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.flex-item {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  min-height: 50px;
  min-width: 50px;
  color: var(--background);
  background-color: var(--foreground);
  border: 1px solid var(--background);
  border-radius: var(--border-radius);
}

.selected-item {
  opacity: 0.5;
}
