:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --accent: #f7b538;
  --text: #e1e1e1;
  --muted: #a0a0a0;
}

ul li:has(input[type=checkbox]:checked) {
  text-decoration: line-through;
  color: var(--muted);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}


body {
  background-color: var(--bg-color);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 650px;
  margin: 2rem auto;
  padding: 2.5rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h1 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 700;
}

h2 {
  color: var(--accent);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  width: 100%;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

li {
  width: 100%;
  margin-bottom: 0.85rem;
  position: relative;
  display: flex;
  align-items: flex-start;
}

/* Checkbox styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  position: relative;
  margin-right: 0.8rem;
  cursor: pointer;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: var(--accent);
}

input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  color: var(--card-bg);
  font-size: 0.9rem;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Improved checkbox and label alignment */
li label {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

li input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 0.25rem; /* Align with first line of text */
  flex: 0 0 auto; /* Prevent checkbox from shrinking */
}

/* This creates the text block that will wrap properly */
li label::after {
  content: "";
  display: block;
  flex: 1;
}

/* Instructions section */
ol {
  counter-reset: item;
  list-style-type: none;
}

ol li {
  counter-increment: item;
  display: flex;
  align-items: flex-start;
}

ol li::before {
  content: counter(item) ".";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
  min-width: 1.5rem;
  text-align: right;
}

/* Media queries for responsiveness */
@media (max-width: 700px) {
  .container {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
}

/* Make the whole page wrap content nicely */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}