.search-bar {
    height: 40px;
    width: 500px;
    background-color: transparent;
    border-color: red;
    box-shadow: none;
    box-decoration-break: none;
    border-radius: 5px;
    font-size: 20px;
    color: white;
    font-family: 'Roboto', sans-serif;
    padding-left: 10px;
    margin-top: 0px;
    outline: none;
}

.filter {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 60px 20px 60px 20px; 
    background-color: #313a48;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-right: 50px;
    border-radius: 10px; 
    max-width: 1000px;
    position: relative;
}

.filter-title {
    position: absolute;
    top: 20px; 
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title-image {
    height: 20px;
    filter: invert(16%) sepia(99%) saturate(7404%) hue-rotate(4deg) brightness(105%) contrast(115%);
}

.filter-title-text {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.filter-year {
    height: 40px;
    width: 400px;
    background-color: #212a37;
    color: white;
    border-radius: 5px;
    border: solid 1px red;
    padding-left: 3px;
    padding-right: 3px;
    outline: none;
}

.filter-label {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgb(255, 255, 255);
}

.year-section {
    margin-left: 50px;
}
.genre-butons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    max-width: 600px;
}
.genre {
    padding: 8px 20px;
    background-color: #212a37;
    color: #ffffff;
    border: solid 1px red;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 2px;
    margin-right: 2px;
}

.genre:hover {
    background-color: darkred;
}

.clear-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 25px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.clear-button:hover {
    background-color: darkred;
}

.genre-section, .year-section {
    display: flex;
    flex-direction: column;
}

.genre-active {
    background-color: red;
}
.genre-active:hover {
    background-color: rosybrown;
}

@media (max-width: 920px) {
    .filter-year {
        width: 200px;
    }
}

@media (max-width: 730px) {
    .filter {
        display: block;
        width: 90%;
        justify-content: center;
    }

    .search-bar {
        width: 90%;
    }

    .filter-year {
        width: 100%;
    }

    .filter-label {
        margin-top: 10px;
    }
}