body {
  margin: 0;
  padding: 0;
  font-family: "Cormorant", serif;
  color: #000;
  line-height: 1.5;
  box-sizing: border-box;
  font-size: 1.125rem;
}

.resizable-wrapper {
  resize: horizontal; /* Nice */
  overflow: hidden;
  max-width: 90%;
  min-width: 300px;
  border: 2px dashed #ccc;
  padding: 2px;
}

.theme-container {
  container-type: inline-size;
  padding: 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;

  --bg-color: light-dark(#fff, #222);
  --text-color: light-dark(#333, white);
  --primary-color: light-dark(#4527a0, #bb86fc);
  --shadow: light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
  --info-bg: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));

  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: 0 4px 10px var(--shadow);
}

/*
@container (width < 600px) {
  .theme-container {
    color-scheme: dark;
  }
}

@container (width >= 600px) {
  .theme-container {
    color-scheme: light;
  }
}
  */

.theme-container:not(.dark) {
  color-scheme: light;
}

.theme-container.dark {
  color-scheme: dark;
}

.color-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background-color: var(--primary-color);
}

.theme-display {
  color: var(--primary-color);
}
