body {
    font-family: 'Roboto', Arial, sans-serif; /* Updated the font-family */
    background-color: #F4F4F4;
    margin: 0;
    padding: 0;
}

header {
    background-color: #222222;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

#header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

#logo-container {
    margin-left: 20px; /* Add some space to the left of the logo */
}

#logo {
    max-width: 266px; /* 1/3 of the original width */
    height: auto;
}

#comparison {
    flex-grow: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

#first-color, #second-color {
    width: 100%;
    height: 100px;
    border: 1px solid #000;
    background-color: #FFFFFF;
    position: relative;
}

.comparison-item {
    flex-grow: 1;
    /*max-width: 500px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Style the color name paragraphs */
#first-color-name,
#second-color-name {
    position: absolute;
    left: 20px;
    font-size: 14px;
    font-weight: 400;
    color: #222222;
}

#filter-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
}

#filter {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    font-size: 16px;
}

main {
    margin-top: 200px;
    padding: 0 20px;
    padding-top: 20px;
}

table {
    border-collapse: collapse;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 300; /* Updated font-weight */
}

th {
    background-color: #222222;
    color: #FFFFFF;
    font-weight: normal;
}

tr:nth-child(even) {
    background-color: #FFFFFF;
}

tr:nth-child(odd) {
    background-color: #F4F4F4;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer; /* Change cursor to pointer on hover */
    position: relative; /* Add this to support the CTA text */
}

.color-preview:hover::after {
    content: "Click to compare";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    margin-left: 10px;
    padding: 5px;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 4px;
}


/* Add responsive styles */
@media (max-width: 767px) {

    .german {
        display: none;
    }

    main {
        margin-top: 410px;
    }

    #header-content {
        flex-direction: column;
        padding-bottom: 10px;
    }

    #logo-container {
        margin-left: 10px; /* Reduce the space to the left of the logo on mobile */
    }

    #comparison {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
    }

    .comparison-item {
        width: 100%; /* Add this line */
    }

    #filter-container {
        padding-top: 10px;
    }

}