/* General styles */
div.container-of-suggestion {
    margin-top: -7% !important;
}

div.user-suggestions {
    margin-top: 0% !important;
}

div.suggestion div.h3-top {
    margin-top: 10% !important;
}

span a {
    margin-right: 5%;
    text-decoration: none;
    color: red;
    top: 36.5%;
    position: absolute;
    transition: 0.3s;
}

span a:hover {
    color: orangered !important;
}

div.logo img {
    top: 15% !important;
}

.pagination {
    display: inline-block;
    margin-right: 40%;
    position: absolute;
    margin-top: 2%;
    padding-bottom: 2%;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: #2283ff;
    color: white;
    border-radius: 5px;
}

.pagination a:hover:not(.active) {
    background-color: #5e5e5ea6;
    border-radius: 5px;
    color: white;
}

#filter-form {
    max-width: 900px;
    margin-top: 23%;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-left: 20%;
}

/* Filter container styles */
.filter {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Style for select elements */
.filter select {
    width: 100%;
    max-width: 280px;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* Focus state for select elements */
.filter select:focus {
    border-color: #888;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Style for the submit button */
.filter button.filter-submit {
    background-color: #0058ff;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

/* Hover and active state for the submit button */
.filter button.filter-submit:hover {
    background-color: #007ea7;
    transform: translateY(-3px);
}

.filter button.filter-submit:active {
    background-color: #0058ff;
    transform: translateY(0);
}

/* Style for the filter icon inside the button */
.filter button.filter-submit img {
    height: 22px;
    margin-right: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    div.container-of-suggestion {
        margin-top: -5% !important; /* Adjust as needed */
    }

    div.user-suggestions {
        margin-top: 10px !important; /* Adjust as needed */
    }

    div.suggestion div.h3-top {
        margin-top: 5% !important; /* Adjust as needed */
    }

    span a {
        top: 40%;
        margin-right: 3%;
    }

    div.logo img {
        top: 10% !important; /* Adjust as needed */
    }

    .pagination {
        margin-right: 20%;
        position: relative;
        margin-top: 5%;
        padding-bottom: 5%;
    }

    #filter-form {
        max-width: 100%;
        margin-top: 15%;
        margin-left: 0;
        padding: 15px;
    }

    .filter {
        flex-direction: column;
    }

    .filter select {
        margin-bottom: 15px;
        max-width: 100%;
    }

    .filter button.filter-submit {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    div.container-of-suggestion {
        margin-top: -3% !important; /* Adjust as needed */
    }

    div.user-suggestions {
        margin-top: 5px !important; /* Adjust as needed */
    }

    div.suggestion div.h3-top {
        margin-top: 3% !important; /* Adjust as needed */
    }

    span a {
        top: 45%;
        margin-right: 2%;
    }

    div.logo img {
        top: 5% !important; /* Adjust as needed */
    }

    .pagination {
        margin-right: 50%;
        position: relative;
        margin-top: 8%;
    }

    #filter-form {
        margin-top: 0%;
    }

    .filter {
        gap: 10px;
    }

    .filter select {
        margin-bottom: 10px;
    }

    .filter button.filter-submit {
        width: 100%;
        margin-top: 5px;
        justify-content: center;
    }
}
