Design a Feature Selection Page - Design a Feature Selection Page

Tell us what’s happening:

When the checkbox is checked, the background color of the checkbox should change to a color of your choosing. When the checkbox is checked, the border color of the checkbox should change to a color of your choosing

Your code so far

<!-- file: index.html -->
<!-- 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 */
/* ... keep your body and h1 styles above ... */

.feature-card input[type="checkbox"] {
  appearance: none;
  border: 2px solid lightgray; /* Requirement: Border width, color, style */
  border-radius: 5px;
  width: 25px;
  height: 25px;
  vertical-align: middle;
  transition: all 0.3s;
  cursor: pointer;
}

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

/* Requirement: Display checkmark ✓ in the center when checked */
.feature-card input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;     
  color: white;           
  line-height: 20px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Design a Feature Selection Page - Design a Feature Selection Page

this property is not compatible with the tests