/* list.css: Styles for the CSS lists demo page */

body {
  background: linear-gradient(120deg, #f0f4f8 0%, #e0e7ef 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
}

.container {
  max-width: 950px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(52, 152, 219, 0.10);
  padding: 32px 24px 24px 24px;
}

h1 {
  text-align: center;
  color: #3498db;
  margin-bottom: 16px;
}

.theory-section, .code-section, .demo-section {
  margin-bottom: 32px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 2px 8px 0 rgba(52, 152, 219, 0.04);
}

.code-section {
  background: #23272e;
  color: #f8f8f2;
}

.code-block {
  background: #181a20;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin-top: 10px;
}

.code-block code {
  color: #ffd200;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1rem;
}

.demo-section {
  background: #f7f9fb;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(52, 152, 219, 0.08);
  padding: 12px 10px 10px 10px;
  min-width: 120px;
  min-height: 120px;
  transition: box-shadow 0.3s, transform 0.2s;
  margin-bottom: 8px;
}
.demo-card:hover, .demo-card:focus-within {
  box-shadow: 0 8px 32px 0 #3498db44;
  transform: translateY(-4px) scale(1.04);
}
.demo-list {
  margin: 10px 0 0 0;
  padding-left: 28px;
  font-size: 1.08rem;
  background: #f3f7fa;
  border-radius: 7px;
  box-shadow: 0 1px 4px 0 #3498db22;
  min-width: 120px;
  max-width: 260px;
  transition: box-shadow 0.2s;
}
.demo-list li {
  margin-bottom: 4px;
  padding: 3px 0 3px 2px;
  line-height: 1.6;
}
.demo-list.image-list li, .demo-list.shorthand-list li {
  min-height: 32px;
  background: #fffbe6;
  border-radius: 4px;
  padding-left: 2px;
}
.demo-list.image-list {
  background: #fffbe6;
  border: 1px solid #ffd200;
}
.demo-list.shorthand-list {
  background: #eaf7ff;
  border: 1px solid #3498db;
}
.back-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 22px;
  background: linear-gradient(90deg, #3498db 60%, #8e44ad 100%);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(52, 152, 219, 0.12);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
ul.disc-list {
  list-style-type: disc;
}
ul.square-list {
  list-style-type: square;
}
ul.circle-list {
  list-style-type: circle;
}
ol.lower-alpha-list {
  list-style-type: lower-alpha;
}
ul.inside-list {
  list-style-position: inside;
}
ul.outside-list {
  list-style-position: outside;
}
ul.image-list {
  list-style-image: url('https://img.icons8.com/color/32/super-mario.png');
}
ul.shorthand-list {
  list-style: square inside url('https://img.icons8.com/color/32/super-mario.png');
}
.back-btn:hover, .back-btn:focus {
  background: linear-gradient(90deg, #8e44ad 0%, #3498db 100%);
  box-shadow: 0 4px 16px 0 #8e44ad44;
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 700px) {
  .container {
    padding: 10px 2vw;
  }
  .demo-row {
    flex-direction: column;
    gap: 16px;
  }
  .demo-card {
    min-width: 0;
    width: 100%;
  }
}
