.tab_content {
    max-width: 1024px;
}

#redirect_link {
    border-radius: 1.5rem 0 0 1.5rem;
    position: fixed;
    right: 0;
    top: 35%;
    box-shadow: -4px 0px 4px 0px #00000040;
    overflow: hidden;
    width: 9.375rem;
    height: 9.375rem;
    z-index: 1000;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#redirect_link ul {
    margin: 0;
    padding: 0.625rem 0 0.625rem 1.5rem;
    overflow-y: scroll;
}

#redirect_link ul::-webkit-scrollbar {
    display: block;
    width: 5px;
    height: 5px;
}

#redirect_link ul::-webkit-scrollbar-track {
    background: #eeeeee99;
}

#redirect_link ul::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

#redirect_link a {
    border-radius: unset;
    padding: 1rem 0;
}

.wood_filter {
    border-radius: var(--btn-border-radius);
    padding: 6px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
    margin: 1rem auto;
    flex-wrap: nowrap;
}

.wood_filter .filter_title,
.wood_filter .filter_item {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.625rem;
}

.wood_filter .filter_item:last-child input {
    padding: 0.625rem 1rem;
}

.wood_block {
    margin-bottom: 2.75rem;
}

.wood_list {
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
    display: grid;
    --grid-width: 10rem;
    grid-template-columns: repeat(auto-fill, var(--grid-width));
    grid-auto-rows: var(--grid-width);
    gap: 1rem;
    justify-content: space-evenly;
}

.wood_item {
    background: var(--light-gray);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.wood_item:hover,
.wood_item:focus {
    transform: translateY(-5px);
}

.wood_item>img {
    height: 90%;
}

.wood_item>div {
    position: absolute;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    bottom: -1px;
    left: 0;
    right: 0;
    background: var(--light-gray);
}

.wood_item img[alt="taiwan"] {
    margin-left: 5px;
}

.wood_item>img[src$="Wood/default.png"]+div::before {
    content: 'DEFAULT\AIMAGE';
    white-space: pre;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: -8px;
    height: 200%;
    text-align: center;
    font-weight: 700;
    line-height: 150%;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    color: white;
}

.wood_item.added>div {
    background: #ffeecc;
}

.wood_item>div span.visible_wood_name {
    flex: 1;
    text-align: center;
    font-weight: 700;
    line-height: 1.3em;
}

[lang="en"] .wood_item img[alt="taiwan"] {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 5px;
}

@media (max-width: 972px) {
    #redirect_link {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(1rem * 2 + 2px * 2 + 0.5rem * 2 + 21px);
        background: var(--primary-color);
    }

    .wood_filter {
        border-radius: unset;
        margin: 0 -1rem 1rem;
        padding: 1.75rem;
        justify-content: space-between;
        column-gap: 1rem;
        row-gap: 0.5rem;
        flex-wrap: wrap;
    }

    .wood_filter .filter_item:last-child,
    .wood_filter .filter_item:last-child input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .wood_filter {
        padding: 1rem;
        justify-content: flex-start;
    }
}