:root {
  --primary-color: #0000;
  --secondary-color: #32314b;
  --accent-color: #fbff00;
  --bg-color: #feab83;
  --cell-bg: #fff;
  --active-border: 3px solid var(--accent-color);
  --cell-shadow: 0 12px 41px rgba(0, 0, 0, 0.1);
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}
html,body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: linear-gradient(to bottom, #141027, #2c0740);
  color: #f4eaea;
}

canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

header {
  background: var(--secondary-color);
  color: #eaeaea;
  padding: 1rem;
  text-align: center;
  padding: 12px;
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px; 
}
.slider-row label {
  width: 120px;
  margin-right: 5px;
  text-align: right;
  white-space: nowrap;
}
.slider-row input[type="range"] {
  flex: 1;
}

.cell:nth-child(-n+3) {
  background-color: #554f7f;
}
.cell:nth-child(n+4):nth-child(-n+6) {
  background-color: #484079;
}
.cell:nth-child(n+7):nth-child(-n+9) {
  background-color: #503767;
}
.cell:nth-child(n+10):nth-child(-n+12) {
  background-color: #312a57;
}

.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Minimum width 250px */
  gap: 1.5rem;
  margin: 2rem;
}

.cell {
  background-color: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: 0.3s ease;
  min-width: 250;
  max-height: 800px;
}

.cell.active {
  grid-column: 1 / -2;
  grid-row: 2 / -2;
  padding: 1rem;
  font-size: 1.1rem;
  min-width: 150px;
  max-height: 860px;
}

.thumbnail img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 28px;
  padding: 1rem;
}

.about-cell {
  grid-column: 1 / -1;
  order: -1;
  background-color: #312a57;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: 0.3s ease;
  min-width: 250;
  max-height: 800px;
}


.cell.active .thumbnail {
  display: none;
}

.cell canvas {
  display: none;
}

.cell .description{
  display: none;
}

.cell .scrollable-container{
  display: none;
}

.cell.active .scrollable-container{
  display: block;
}

.cell.active .description{
  display: block;
}

.cell.active canvas {
  display: block;
}

.widget-container {
  position: relative;
  width: 100%;
  height: 100%;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.scrollable-container {
  max-height: 700px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.description {
  padding: 5px;
  font-size: 14px;
  color: #ddd;
  border-top: 1px solid #666;
}

footer {
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}


