/*Mobile View*/
@media only screen and  (max-width: 760px) {
    img {
        width: auto ;
        max-width: 200% ;
        height: auto ;
      }
    td, tr, a { display: block; }
    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    table tr {
        display: block;
      }
    /*tr { border: 1px solid #E74C3C; }*/
    tr + tr { margin-top: 3em; }
    td {
      /* make like a "row" */
      text-align: center;
      border: none;
      table-layout: fixed;
      border-bottom: none;
      display: -ms-inline-flexbox;
      position: relative;
      
      /*padding-left: 50%;*/
    }

      
      table td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
      }
      
      table td:last-child {
        border-bottom: 0;
      }
    .score{
        height: 100px;
    }
    .row{
        display: inline;
            height: 200px;
            grid-template-columns: 200px;
            grid-template-rows: repeat(6, 1fr);
    }
    .column_judge{
        display: grid;
        float:inline-start;
        width: 17%;
        padding: 1px;
        justify-content: center;
        align-self: center;
    
    }
    }
/* scorecards stuff (background) */
#image-viewer {
 
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
.modal-content { 
    animation-name: zoom;
    animation-duration: 0.9s;
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}
#image-viewer .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
#image-viewer .download {
    position: absolute;
    top: 15px;
    right: 100px;
    color: #f1f1f1;
    font-size: 25px;
    font-weight: bold;
    transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
img {
    cursor: pointer;
}
/* scorecards stuff (background) */
table.list, table.add {
    border-collapse: collapse;
}

thead tr th {
    cursor: default;
}

table.add th {
    text-align: left;
    padding: 5px;
}

table.list th {
    background-color: #192021;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    border: 1px solid #535353;
}

table.list th.action {
    background-color: #121212;
    border: none;
}

table.list tbody td, table.add tbody td {
    padding: 5px;
    vertical-align: top;
}

table.list tr.header td {
    vertical-align: middle ! important;
}

table.list tbody td.popn-chara-icon-cell {
    text-align: center;
    vertical-align: middle;
}

table.list tbody td {
    border: 1px solid #535353;
    padding: 10px;
}

table td.center {
    word-break: break-word;
    text-align: center;
}

table.list input[type="text"], table.add input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
}

table.list select, table.add select {
    width: 100%;
}

table.list tbody tr:nth-child(odd) td {
    background-color: #242526;
}

table.list tbody tr:nth-child(even) td {
    background-color: #3a3b3c;
}

table td.subheader {
    background-color: #1f1f1f ! important;
    font-weight: bold;
}

table tfoot td {
    padding-top: 5px;
}

table.records, table.attempts, table.topscores, table.players, table.events {
    width: 100%;
}

table.jubility {
    width: 100%;
    width: calc(100% - 15px);
    float: left;
    margin: 5px;
}

.row {
    display: flex;
}

.column {
    flex: 50%;
    padding: 5px;
}

@media screen and (max-width: 600px) {
    .row {
        display: inline;
    }
}

table.records a, table.attempts a, table.topscores a, table.players a, table.jubility a {
    text-decoration: none;
}

td.edit {
    background-color: #121212 ! important;
    border: none ! important;
}

td.nochart {
    background-color: #181818 ! important;
}

table.list input[type="checkbox"], table.add input[type="checkbox"] {
    width: 26px;
    height: 26px;
    margin: 0px;
}

td.subheader {
    color: 121212;
}

table.events div.circle {
    width: 16px;
    height: 16px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 0px;
    margin-right: 5px;
    margin-top: 2px;
    margin-bottom: -2px;
}

table.events td.details div.inline {
    display: inline-block;
    margin-right: 5px;
}

table.events td.details pre.inline {
    display: inline-block;
    margin: 0px;
}

table.events td.exception div.circle {
    background-color: rgb(214, 72, 72);
}

table.events td.unhandled div.circle {
    background-color: rgb(255, 165, 0);
}

table.events td.unauthorized div.circle {
    background-color: rgb(119, 0, 119);
}

table.events td.scheduled div.circle {
    background-color: #2d6ccc;
}

table.events td.pcbevent div.circle {
    background-color: #26a226;
}

table.events td.transaction div.circle {
    background-color: #f9ed00;
}

table.events td.profilepurge div.circle {
    background-color: rgb(214, 72, 72);
}
