Design a Feature Selection Page - Design a Feature Selection Page

Tell us what’s happening:

I’m stuck on the last two steps requiring that if checked the background and border color change. What am I missing?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Selection Feature Page</title>
    <link rel="stylesheet" href="styles.css">
</head>

<body>
<h1>Feature Selection</h1>

    <div class="feature-card-container">
        <label for="one" class="feature-card">
            <input id="one" type="checkbox">
            <h2>Cloud Storage</h2>
            <p>1 TB secure storage</p>
        </label>
        <label for="two" class="feature-card">
            <input id="two" type="checkbox">
            <h2>Game server</h2>
            <p>20 player dedicated server</p>
        </label>
        <label for="three" class="feature-card">
            <input id="three" type="checkbox">
            <h2>Website domain</h2>
            <p>Customisable domain name</p>
        </label>
        <label for="four" class="feature-card">
            <input id="four" type="checkbox">
            <h2>API access</h2>
            <p>Integrate with your custom tools</p>
        </label>
    </div>
</body>
</html>
/* file: styles.css */
body {
  background-color: #f4f4f4;
  height: 100vh;
  width: 100vw;
  margin: 100px auto;
}

h1 {
  text-align: center;
  font-size: 3rem;
}

h2 {
  font-size: 1.7rem;
}

p {
  font-size: 1.2rem;
}

.feature-card-container {
  min-width: 700px;
  max-width: 700px;
  width: 80%;
  margin: auto;
  
}

.feature-card {
  display: inline-block;
  border: 2px solid lightgray;
  border-radius: 10px;
  margin: 15px;
  height: 150px;
  width: 300px;
  text-align: center;
  cursor: pointer;
}

.feature-card:hover {
  border-color: rgb(156, 156, 103);
  transition: all 0.3s;
}

.feature-card input[type="checkbox"] {
  appearance: none;
  border: 2px solid lightgray;
  border-radius: 5px;
  width: 25px;
  height: 25px;
  vertical-align: middle;
  transition: all 0.3s;
}

.feature-card input[type="checkbox"]:checked {
  background-color: khaki;
  border-color: rgb(146, 138, 73);
}

.feature-card input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  font-size: 1.2rem;
  background-color: khaki;
  border-color: khaki;
  font-weight: bold;
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Design a Feature Selection Page - Design a Feature Selection Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-feature-selection/design-a-feature-selection-page

if you use transition the tests will check the color before it actually changes, and will find the wrong color

Thanks for the tip. Solved now for me to, with removing transition.