* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "TASA Explorer", sans-serif;
}

body {
    background-color: var(--main-background);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/*first section*/
.first {
    margin: 10rem 15%;
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.first_scroll {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.first span {
    display: flex;
    flex-direction: column;
    flex: 0 0 20%;
    width: 20%;
    background-color: transparent;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.first span:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.first img {
    width: 100%;
    border-radius: 1rem;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: var(--col-2);
}

.first span h3 {
    font-size: 1rem;
    color: var(--main-text);
}

.first span p {
    font-size: 1rem;
    color: var(--main-text);
}

/*filter section*/
.filter {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 10rem;
    left: 1%;
    font-size: 1rem;
    color: var(--main-text);
    width: 13%;
}

#filter_tags, #filter_groups {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#filter_tags p, #filter_groups p {
    font-size: 0.75rem;
    color: var(--main-text);
    background-color: var(--col-2);
    padding: 0.5rem 0.7rem;
    border-radius: 1rem;
    width: fit-content;
    transition: all 0.3s ease;
}

#filter_tags p:hover, #filter_groups p:hover {
    background-color: var(--col-3);
    cursor: pointer;
    transition: all 0.3s ease;
}

#filter_tags, #filter_groups {
    margin-top: -0.5rem;
}

#filter_tags p[data-active="true"], #filter_groups p[data-active="true"] {
    background-color: var(--col-3);
    font-weight: bold;
    transform: translateX(1rem);
}

#filter_tags p[data-active="true"]:hover, #filter_groups p[data-active="true"]:hover {
    background-color: var(--col-2);
}

#auction_finished {
    color: #ff4d4d;
}

#auction_ending {
    color: #ffa500;
}

#auction_started {
    color: #4CAF50;
}

@media (max-width: 768px) {
    .first {
        margin: 11rem 2%;
        width: 96%;
    }

    .filter {
        top: 5.5rem;
        left: 2%;
        gap: 0.5rem;
        width: 96%;
    }

    #filter_tags, #filter_groups {
        flex-direction: row;
        margin-top: 0;
        width: 102%;
    }

    #filter_tags p[data-active="true"], #filter_groups p[data-active="true"] {
        background-color: var(--col-3);
        font-weight: bold;
        transform: none;
    }

    #filter_tags p:hover, #filter_groups p:hover {
        background-color: var(--col-2);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #filter_tags p[data-active="true"]:hover, #filter_groups p[data-active="true"]:hover {
        background-color: var(--col-3);
    }

    .first_scroll {
        gap: 2%;
        align-items: flex-start;
    }

    .first span {
        width: 49%;
        min-width: 49%;
    }

    .first span p {
        font-size: 0.8rem;
    }
}