/************************* Templates ************************/

#templates {
    padding: 60px 20px;

}

#templatesTitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 40px;
    font-weight: 500;
}

#templateTags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 auto 30px;
    max-width: 875px;
    justify-content: center;
}

.templateTagItem {
    width: auto;
    padding: 5px 10px;
    border: 2px solid var(--brown);
    font-size: 16px;
    cursor: pointer;
}

.templateTagItem.active {
    background-color: var(--brown);
    color: white;
}

#templateList {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 10px;
    column-gap: 10px;
}

.templateItem {
    position: relative;
}

.templateItem.hide {
    display: none;
}

.templateItemHandle,
.templateItemTags {
    position: absolute;
    top: 5px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 100%;
    height: 32px;
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    --offset: 5px;
}

.templateItemHandle svg,
.templateItemTags svg {
    width: 20px;
    height: auto;
}

.templateItemHandle {
    left: var(--offset);
}

.templateItemHandle.hide {
    display: none;
}

.templateItemTags {
    right: var(--offset);
}

.templateItemImage {
    border-radius: 8px;
    aspect-ratio: 1;
}

@media (max-width: 800px) {
    #templates {
        padding: 40px 20px;
    }

    #templatesTitle {
        margin-bottom: 40px;
        font-size: 30px;
    }

    .templateTagItem {
        font-size: 14px
    }

    #templateList {
        grid-template-columns: repeat(4, 1fr)
    }

    .templateItemHandle,
    .templateItemTags {
        width: 22px;
        height: 22px;
        font-size: 14px;
        top: 3px;
        --offset: 3px;
    }
}

/*********************** Categories *****************/

#tags {

}

#tagsContent {
    max-width: 400px;
    padding: 20px;
    width: 100%;
    background-color: white;
}

#tagsImage {
    margin-bottom: 16px;
    border-radius: 8px;
}

#tagsLabel {
    margin-bottom: 8px;
}

#tagsSelect {
    margin-bottom: 16px;
}

@media (max-width: 800px) {
    #tagsImage {
        max-width: 200px;
        margin: 0 auto 16px;
    }
}