.marketTable {
    border: 1px solid #ddd;
    font-size: 18px;
    z-index: 2;
}


.marketTable-head {
    position: relative;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    text-align: left;
    vertical-align: middle;




}

/*ability*/
.marketTable-head>div:nth-child(1),
.marketTable-row>div:nth-child(1) {
    order: 1;
    text-align: left;
    /*margin-left: 1em;
    padding-left: 2em;*/
    transition: 0.1s;

}

.marketTable-row>div:nth-child(1) {
    position: relative;
    /*color: var(--blue);
    text-shadow: 1px 1px 1px black;*/
    letter-spacing: 2px;
    /*color: var(--green);*/
    /*color: var(--violet);*/
    color: var(--violet2);
    font-weight: 500;
    /*font-weight: 900;*/
    /*-webkit-text-stroke: 1px var(--violet2);*/
}

/*price*/
.marketTable-head>div:nth-child(2),
.marketTable-row>div:nth-child(2) {
    order: 4;
    justify-content: center;

}

.marketTable-row>div:nth-child(2) {
    color: var(--green);
    text-shadow: 1px 1px 1px black;
}

/*date*/
.marketTable-head>div:nth-child(3),
.marketTable-row>div:nth-child(3) {
    order: 3;
    justify-content: center;

}


/*note*/
.marketTable-head>div:nth-child(4),
.marketTable-row>div:nth-child(4) {
    order: 2;
    text-align: left;


}

/*.marketTable-row>div:nth-child(1)::before {
    content: '+';
    font-size: 38px;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--green);
}*/

.marketTable-colName {
    display: none;
}

.marketTable-row>div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

div.marketTable-row.open {
    flex-direction: column;
    background: #7dc2ff3b;
    border-top: 3px double var(--blue);
    border-bottom: 3px double var(--blue);
    padding-left: 0px;
}

div.marketTable-row.open>div {
    padding: 12px 36px;
    width: calc(100% - 72px);
    white-space: inherit;
    border-bottom: 1px dashed var(--blue);
    display: flex;
    justify-content: space-between;
}

div.marketTable-row.open>div:nth-child(1) {
    border-bottom: none;
}

#buyAbilityButton {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    margin: 0.5em;
    padding: 0.5em;
    box-shadow: inset 0 0px 6px 2px var(--start_color);
    letter-spacing: 1px;
    text-align: center;
    font-size: 0.8em;
    border-radius: 10px;
    display: block;
}


.marketTable-row.open::before {
    content: '';
    width: 12px;
    height: 12px;
    position: absolute;
    left: 10px;
    top: 16px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.5;
    border: 3px solid #008000;
}

.marketTable-row.open>div .marketTable-colName {
    display: block;
}


.marketTable-row:hover {
    background: #7dc2ff3b;
}



.marketTable-head,
.marketTable-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.marketTable-head>div,
.marketTable-row>div {
    padding: 12px;
    min-width: 120px;
    width: 25%;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}



.marketTable-row {
    border-top: 1px solid #eee;
    z-index: 1;
}

/* navigation */
.marketNav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0.5rem 0;
    position: relative;

}


.marketNav input,
.marketNav select,
.marketNav textarea {
    background: none;
    border: 2px solid #ddd;
    border-radius: 5px;
    color: #666;
    display: block;
    font-size: 18px;
    line-height: 1.25;
    max-width: 100%;
    width: fit-content;
    min-width: 30%;
    padding: 6px 12px;
    position: relative;
    transition: width 0.4s ease-in-out 0s;

}

.marketNav input:focus,
.marketNav textarea:focus {
    border: 2px solid var(--green);
    outline: medium none;
    background: #fff none repeat scroll 0 0;
}


.marketTableFooter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 2;
    position: relative;
    margin-top: 0.5em;
    font-size: 18px;
}

.marketTableFooter-resizer {
    border-radius: 5px;
    width: 45px;
    height: 35px;
    font-size: 18px;
    /*background: var(--violet2);
    color: var(--white);*/
    opacity: 0.7;
    cursor: pointer;

}

.marketTableFooter-listNum {
    display: flex;
    flex-direction: row;
    justify-content: end;
    flex-wrap: wrap;
}

.marketTableFooter-listNum li {
    color: var(--blue);
    color: #737575;
    border: 1px solid #737575;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    margin-left: 5px;
    text-align: center;
    line-height: 35px;
    opacity: 0.7;
    z-index: 2;
    font-weight: 700;
    background: #fbfcfd;
    cursor: pointer;
}

.marketTableFooter-listNum li.active {
    background: var(--violet2);
    color: var(--white);

}



/*For PC*/
@media (min-aspect-ratio: 1/1) {
    .marketTableFooter-listNum li:hover {
        /*box-shadow: inset 0 0 10px var(--violet2);*/
    }

    .marketNav input:focus {
        width: 60%;
    }

    .marketTable-row:hover>div:nth-child(1) {
        -webkit-text-stroke: 1px var(--violet2);
    }

    .marketTable-row:hover {
        padding-left: 36px;
        /*-webkit-text-stroke: 1px var(--violet2);*/
    }

    .marketTable-row:hover::before {
        content: '';
        width: 12px;
        height: 12px;
        position: absolute;
        left: 10px;
        top: 16px;
        background: var(--white);
        border-radius: 50%;
        opacity: 0.5;
        border: 3px solid #008000;
    }
}


/*For MOBILE*/

@media (max-aspect-ratio: 1/1) {

    .marketNav {
        display: block;
    }

    .marketNav select {

        margin-bottom: 1em;
    }

    .marketNav input,
    .marketNav select {
        width: 100%;
    }


    .marketTable-head>div:nth-child(3),
    .marketTable-row>div:nth-child(3),
    .marketTable-head>div:nth-child(4),
    .marketTable-row>div:nth-child(4) {
        display: none;
    }
}