

#content > div{
    margin-top:1vh;
}

#connectwallet, #accountbutton{
    height:26px;
}
#walletbalance {
    white-space: nowrap;
}


#chainbutton {
    column-gap: 7px;
    display: flex;
    align-items: center;
}

.chainicon {
    height: 20px;
}
.chainpopbutton {
    display: flex;
    column-gap: 10px;
    justify-content: left;
    align-items: center;
    border: 0px;
    border-radius: 6px;
    padding: 5px;
    background: none;
    width: 100%;
    font-size:1rem;
}

#chainbutton:hover, .chainpopbutton:hover {
    background-color: rgb(206, 206, 206);
}

#networkerror{
    display:none;
}
#networkpop{
    background-color: #df3131;
    color: rgb(225, 213, 213);
    opacity:0.8;
}
#accountshort{
    display:none;
}
@media (max-width:600px){
    #accountshort{
        display:flex;
    }
    #accountbutton{
        display:none;
    }
}
button > * {
    pointer-events: none;
}

#content {
    text-align: center;
}

#countdown {
    text-align: center;
    margin-bottom: 0;
}

#time {
    font-size: 3em;
    font-weight: bold;
}

#bidtotal {
    display: flex;
    column-gap: 10%;
    justify-content: space-between;
}

.bidtotalitem {
    font-size: 3em;
    font-weight: bold;
}

#bidtotalleft {
    text-align: right;
    width:45%
}

#bidtotalcenter {
    text-align: center;
    width:15%;
}

#bidtotalright {
    text-align: left;
    width:45%;
}

#balanceform {
    display: flex;
    justify-content: center;
    column-gap: 1%;
}



#bidform {
    display: flex;
    margin-top: 0.3%;
    justify-content: center;
    column-gap: 1%;
    width:100%;
}

#feenotice, #txnotice {
    display: flex;
    justify-content: center;
    column-gap: 1%;
    font-size: 0.8em;
    align-items: center;
}
.txnotice{
    margin-top: 0.3vh;

}
#tx_hash{
    display:flex;
    column-gap:0.2rem;
}
.validation {
    font-weight: bold;
    text-decoration: underline;
    color: rgb(237, 105, 105);
}
#txform {
    display: flex;
    justify-content: space-between;
    column-gap: 2%;
}

#depositform, #withdrawform {
    display: flex;
    column-gap: 2%;
}
#deposit_value, #withdraw_value{
    width:60%;
}
#deposit_submit, #withdraw_submit{
    width:50%;
}

#bid_value {
    width: 20%;
}

@media (max-width:600px) {
    #bid_value {
        width: 35%;
    }
}
.statusbar {
    display: flex;
    justify-content: space-between;
    margin-top: 2%;
}

.leftstatus {
    display: flex;
    justify-content: flex-start;
    column-gap: 2%;
    width: 30%;
    align-items: center;
}

.centerstatus {
    display: flex;
    justify-content: center;
    column-gap: 2%;
    width: 20%;
    margin-left:auto;
    margin-right:auto;
}

.rightstatus {
    display: flex;
    justify-content: flex-end;
    column-gap: 2%;
    width: 30%;
    align-items: center;
}

.status {
    border-radius: 6px;
    padding: 3px;
    background-color: rgb(230, 226, 226);
    font-size: 1rem;
    flex: 0 0 auto;
}

@media (max-width:500px){
    .status{
    font-size:0.8rem;
    }
}

.status > * {
    pointer-events: none;
}

.event {
    display: none;
}

.redbg {
    background-color: rgb(235, 88, 88);
    color: aliceblue;
}

.bluebg{
    background-color: rgb(60, 128, 217);
    color:white;
}

.orangebg{
    background-color: rgb(233, 159, 75);
}

.greenbg{
    background-color: rgb(124, 238, 170);
}
.redborder{
    border: 2px solid #f04545;
}

.red{
    color:#f04545;
}

.blue{
    color:#123ce4;
}

.gray{
    color:#6d6b6b;
}

.bold{
    font-weight:bold;
}

@keyframes flashframe{
    0%{background-color: rgb(246, 99, 69);}
    100%{background-color: rgb(242, 246, 126);}
}

.flashbg{
    animation-name:flashframe;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

input {
    border-radius: 6px;
    border: 1px solid rgb(159, 159, 159);
}
.tablehtml{
    padding-top:0.5rem;
}
.tablehtml > div{
    margin-top:1vh;
}
.tableheader {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1%;
}
.tableheaderright{
    display: flex;
    flex-grow: 1;
    column-gap: 1%;
    justify-content: end;
}
.tabletitle {
    flex-grow: 10;
    font-weight: bold;
    text-align: left;
}
.tablesearch:not(#resultsearch){
    width:100%;
}

#resultsearch{
    width:60%;
}

.intro {
    border-collapse: collapse;
    display: grid;
    border: 1px solid gray;
    border-radius: 10px;
    padding:1rem;
    background-color: rgb(242, 245, 225);
}

.table {
    border-collapse: collapse;
    display: grid;
    border: 1px solid gray;
    border-radius: 10px;
}
#bidtable, #resultbidtable{
    grid-template-columns: 1fr 1.6fr 1.4fr 1.2fr 1.4fr;
}
#transactiontable{
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr 1fr;
}
#deposittable, #withdrawtable{
    grid-template-columns: 2fr 1.4fr 1fr;
}
thead,
tbody,
tr {
    display: contents;
}

@media (max-width:100px) {

    th:nth-child(2),
    td:nth-child(2) {
        display: none;
    }

    #bidtable,#resultbidtable {
        grid-template-columns: repeat(4, 1fr);
    }
}

tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}




th {
    text-align: left;
    font-weight: bold;
    background-color: rgb(158, 178, 236);
    cursor: pointer;
}

th,
td {
    padding: 3% 5% 3% 5%;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space: wrap;
}

td {
    text-align: left;
    color: #808080;
}

tr:nth-child(even) td {
    background: #eaf3ff;
}

.pagination {
    display: flex;
    justify-content: center;
    column-gap: 1%;
}

#result{
    display:flex;
    column-gap: 1%;
}
@media (max-width:700px){
    #result{
        flex-direction: column;
        row-gap: 1vh;
    }
    #result > div{
        width:100%;
    }
}
.gridtable{
    display: grid;
    grid-template-columns: 2fr 2fr;
width:50%;
border:1px solid gray;
border-radius:10px;
align-self: start;
}

.gridtable > div{
    padding: 3% 5% 3% 5%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    text-align: left;
}
.gridtable > div:nth-child(2n+1){
    font-weight: bold;
    background-color: rgb(158, 178, 236);}
.gridtable > div:nth-child(2n){
    color: #808080;
}

.gridtable > div:first-child {
    border-top-left-radius: 10px;
}

.gridtable > div:nth-child(2){
    border-top-right-radius: 10px;
}

.gridtable > div:nth-last-child(2) {
    border-bottom-left-radius: 10px;
}

.gridtable > div:nth-last-child(1) {
    border-bottom-right-radius: 10px;
}
.gridtable > div:nth-child(4n){
    background: #eaf3ff;
}
.pointer {
    cursor: pointer;
}
.modalcontainer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.75);
    display: none;
}
.modal {
    margin: auto;
    width: 70%;
    background-color: white;
    border-radius: 1rem;
    border:2px solid rgb(154, 196, 244);
  }
.modalheader,
.modalcontent {
  padding: 1.5rem;
}
.modalheader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: aliceblue;
    border-radius: 1rem;
    font-weight:bold;
}
.modalcontent{
    display: flex;
    flex-direction:column;
    row-gap: 1rem;
}

#buy_token{
    cursor: pointer;
}