.main-item-frame {
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #c8c8c8;
    padding: 40px 40px 40px 40px;
    width: 100%;
    height: 100%;
    position: relative;
    margin-bottom: 20px;
}

.sub-item-frame {
    display: none;
}

.search-visible-frame {
    margin-left: auto;
    margin-right: auto;
    width: 8em
}

.search-button-frame {
    margin-left: auto;
    margin-right: auto;
    width: 8em
}

.close-button-frame {
    margin-left: auto;
    width: 8em
}

.search-item-table {
    display: table;
    width: 100%;
}

.search-item {
    border-top: 1px solid #c8c8c8;
}

.search-item-column {
    font-weight: normal;
    height: 65px;
    width: 20%;
}

.search-item-row {
    font-weight: normal;
}

.search-sort-frame {
    display: flex;
    flex-wrap: wrap;
}

.search-sort-order {
    width: 40%;
    margin: 5px;
}

.search-sort-order-by {
    width: 20%;
    margin: 5px;
}

.search-box {
    width: 95%;
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    margin: 5px;
    padding-left: 8px;
}

.search-button-base {
    display: block;
    margin: 5px;
    text-align: center;
    line-height: 32px;
    padding-left: 7px 0px 5px;
    cursor: pointer;
    border-radius: 3px;
}

.search-button-base:hover {
    opacity: 0.5;
}

.search-button {
    color: #5d8ac1;
    border: 1px solid #5d8ac1;
    width: 150px;
    height: 32px;
}

.visible-button {
    color: #5d8ac1;
    border: 1px solid #5d8ac1;
    width: max;
    height: 32px;
}

.close-button {
    color: #5d8ac1;
    border: 1px solid #5d8ac1;
    width: 50px;
    height: 32px;
    background-color: #ffffff;
}

input[type=checkbox] {
    display: none;
}

input[type="checkbox"]:checked + label {
    background: #cfcfcf;
    color: #646464;
}

.label:hover {
    opacity: 0.5;
}

.label {
    display: block;
    float: left;
    margin: 5px;
    text-align: center;
    line-height: 30px;
    padding-left: 7px 0px 5px;
    cursor: pointer;
    color: #646464;
    border: 1px solid #c8c8c8;
    user-select: none;
}

.color-label {
    width: 80px;
    height: 32px;
    border-radius: 3px;
}

.cost-label {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.type-label {
    width: 160px;
    height: 32px;
    border-radius: 3px;
}

.rarity-label {
    width: 135px;
    height: 32px;
    border-radius: 3px;
    vertical-align: middle;
}

.keyword-label {
    width: max;
    height: 32px;
    border-radius: 3px;
    padding-left: 10px;
    padding-right: 10px;
}

.hide-button {
    display: none;
}

th {
    font-weight: normal;
}
