Build an Availability Table - Build an Availability Table

Tell us what’s happening:

I dont know whats wrong. I tried everything.
35. You should use two color-stops (expressed in percentage) to make the transition from one color to the following color a hard line for your #legend-gradient. Remember to use your --color# variables.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Team Availability Grid</title>
  <link rel="stylesheet" href="styles.css"/>
</head>
<body>
  <h1>Team Availability Grid</h1>

  <table>
    <thead>
      <tr>
        <th></th>
        <th>Monday</th>
        <th>Tuesday</th>
        <th>Wednesday</th>
      </tr>
    </thead>
    <tbody>
      <tr class="sharp">
        <th class="time">9:00 AM</th>
        <td class="available-2"></td>
        <td class="available-3"></td>
        <td class="available-1"></td>
      </tr>
      <tr class="half">
        <th class="time">10:00 AM</th>
        <td class="available-4"></td>
        <td class="available-2"></td>
        <td class="available-0"></td>
      </tr>
      <tr class="sharp">
        <th class="time">11:00 AM</th>
        <td class="available-5"></td>
        <td class="available-3"></td>
        <td class="available-2"></td>
      </tr>
      <tr class="half">
        <th class="time">12:00 PM</th>
        <td class="available-1"></td>
        <td class="available-0"></td>
        <td class="available-4"></td>
      </tr>
    </tbody>
  </table>

  <div id="legend">
    <span>Availability</span>
    <div id="legend-gradient"></div>
  </div>
</body>
</html>

/* file: styles.css */
:root {
  --color0: #f8d7da;
  --color1: #f5c6cb;
  --color2: #f1b0b7;
  --color3: #ec9fa3;
  --color4: #e68e90;
  --color5: #e07c7d;

  --solid-border: 2px solid #333;
  --dashed-border: 2px dashed #999;
}

body {
  font-family: 'Segoe UI', sans-serif;
  padding: 2rem;
  background: #fdfdfd;
  color: #333;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 1rem;
  text-align: center;
}

thead th {
  background-color: #444;
  color: #fff;
}

.time {
  background-color: #eee;
  font-weight: bold;
}

.sharp td {
  border-bottom: var(--solid-border);
}

.half td {
  border-bottom: var(--dashed-border);
}

.available-0 { background-color: var(--color0); }
.available-1 { background-color: var(--color1); }
.available-2 { background-color: var(--color2); }
.available-3 { background-color: var(--color3); }
.available-4 { background-color: var(--color4); }
.available-5 { background-color: var(--color5); }

#legend {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#legend span {
  font-weight: bold;
}

#legend-gradient {
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-image: linear-gradient(
    to right,
    var(--color0) 0%, var(--color0) 16.66%,
    var(--color1) 16.66%, var(--color1) 33.33%,
    var(--color2) 33.33%, var(--color2) 50%,
    var(--color3) 50%, var(--color3) 66.66%,
    var(--color4) 66.66%, var(--color4) 83.33%,
    var(--color5) 83.33%, var(--color5) 100%
  );
}


Your browser information:

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

Challenge Information:

Build an Availability Table - Build an Availability Table

here an example of the syntax: linear-gradient() - CSS | MDN

also please use whole numbers

Thank you very much!!!