Design a Feature Selection Page - Design a Feature Selection Page

Points 13 - 14 do not allow me to complete the task. I have changed the colors so many times and edited the code, but I do not know where the error is. Please help.

/********************/ this is my code

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.feature-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    width: 100%;
    margin-top: 20px;

}

.feature-card {
    border: 2px solid rgb(129, 118, 118);
    border-radius: 15px;
    padding: 25px;
    min-height: 120px;
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;



}

h1 {
    text-align: center;
    font-size: 30px;
}

p {
    text-align: center;

}

.feature-card:hover {
    border-color: orange;
    box-shadow: 0 4px 15px orange;
    transform: translateY(-2px);
}

.feature-card h4 {
    margin: 0 0 10px 0;
    padding-right: 40px;
    flex-grow: 1;
}

.feature-card p {
    margin: 0;
    padding-right: 40px;
    color: #666;
    flex-grow: 1;
    text-align: left;
}

input[type='checkbox'] {
    width: 22px;
    height: 22px;
    appearance: none;
    cursor: pointer;
    border: 2px solid black;
    border-radius: 4px;
    background-color: gold;
    transition: all 0.3s;
    position: absolute;
    top: 20px;
    right: 20px;
}

input[type='checkbox']:checked {
    background-color: rgb(0, 255, 13);
    /* zelená */
    border-color: rgb(218, 146, 13);
    /* tmavě černá */
    transition: all 0.3s;

}

input[type="checkbox"]:checked::after {
    content: "âś“";
    display: block;
    text-align: center;
    font-weight: bold;
    color: white;
    line-height: 18px;
    font-size: 15px;
    border: 1px solid red;
    transition: all 0.3s;

}

Try commenting out the transition property.

1 Like

Thank you very much. It was a transition function. I commented them all and completed the task.