.test_unselected
{
    width:98%;
    margin: 2px;
    padding: 2px;
}

.commandbar
{
    vertical-align:bottom;
}

.social
{
    position: absolute;
    top: 830px;
    left: 1000px;
    width: 300px;
}

.footer
{
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.test_selected
{
    width:98%;
    margin: 2px;
    padding: 2px;
    background-color: highlight;
}

table.lamp
{
    width:100%;
    padding:0px;
    border:1px solid #d4d4d4;
}

table.lamp th
{
    color:#000000;
    background-color:white;
    padding:10px;
    padding-right:5px;
}

table.lamp td
{
    padding:4px;
    padding-left:0px;
    padding-right:10px;
    background-color:#ffffff;
}

table.tecspec th,table.tecspec td{
    border:1px solid #d4d4d4;padding:5px;padding-top:7px;padding-bottom:7px;vertical-align:top;text-align:left;
}

table.reference,table.tecspec{
    border-collapse:collapse;width:100%;
}

table.reference tr:nth-child(odd):not(.test_unselected_blunder):not(.test_unselected_error):not(.plaintr)	{background-color:#f1f1f1;}
table.reference tr:nth-child(even):not(.test_unselected_blunder):not(.test_unselected_error):not(.plaintr)	{background-color:#ffffff;}

table.reference tr.fixzebra                    {background-color:#f1f1f1;}

table.reference th{
    color:#ffffff;background-color:#555555;border:1px solid #555555;padding:3px;
}

table.movetable th{
    color:#ffffff;background-color:#555555;border:1px solid #555555;padding:3px;vertical-align:top;text-align:left;
}

table.reference th a:link,table.reference th a:visited{
	                      color:#ffffff;
                          }

table.reference th a:hover,table.reference th a:active{
	                       color:#EE872A;
                           }

table.reference td{
    border:1px solid #d4d4d4;padding:4px;padding-top:5px;padding-bottom:5px;vertical-align:top;
}

table.reference td.example_code
{
    vertical-align:bottom;
}

table.summary
{
    border:1px solid #d4d4d4;
    padding:5px;
    font-size:100%;
    color:#555555;
    background-color:#fafad2;
}

.test_unselected
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: buttonface;
}

.test_selected
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: highlight;
}

.match_unselected
{
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: buttonface;
}

.match_selected
{
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: highlight;
    overflow: hidden;
}

.imghelp
{
    position: relative;
    top: 5px;
    left: 2px;
}

a {
    color: #069;
    text-decoration: none;
}

.test_unselected_error
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
}

.test_selected_error
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: highlight;
}

.test_unselected_blunder
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
}

.test_selected_blunder
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: highlight;
}

.movetable
{
    width: 100%;
}

.movetable td
{
    border: 1px solid black;
}

.smallpiece
{
    position: relative;
}

.smallpieceint
{
}

.twitter-share-button
{
    position:relative;
    top:5px;
}

.test_missed_cube_unselected
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: yellow;
}

.test_missed_cube_selected
{
    width:98%;
    border: 1px solid black;
    margin: 2px;
    padding: 2px;
    background-color: highlight;
}

.topreference {
    border-spacing:0px;
}

table.topreference,table.tecspec{
    border-collapse:collapse;width:100%;
    border-spacing:0px;
}

table.topreference th{
    color:#ffffff;background-color:#555555;border:1px solid #555555;padding:3px;vertical-align:top;text-align:left;
}

table.topreference th a:link,table.reference th a:visited{
	                         color:#ffffff;
                             }

table.topreference th a:hover,table.reference th a:active{
	                          color:#EE872A;
                              }

table.topreference td{
    border:1px solid #d4d4d4;padding:5px;padding-top:3px;padding-bottom:0px;vertical-align:top;background-color:#f5f5f5;
}

.introimg {
    height: 90%;
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: 0 auto;
}

.introtextdiv {
    align:top;
    width:100%;
    margin: 5px;
}
.introtexttd {
    width:50%;
    vertical-align:top;
}
.introimgtd {
    float:right;
    position: relative;
    right: 10px;
    margin: 5px;
}

.mainwithimg {
    margin: 5px;
    width: 90%;
}

.tabmenutitle {
    text-decoration:none;
}

.tabmenuactive {
    background-color: highlight;
}

.tabmenuinactive {
    background-color: buttonface;
}

.twitter-share-button {
    position:relative;
    top:2px;
}

.uploadedfiles
{
    width : 95%;
    height: 185px;
    border: 1px solid black;
    font-family: monospace;
    overflow-y: scroll;
}

.hidetext
{
    overflow:hidden;
}

.maininfocontent
{
    margin: 5px;
}

#sidebarhidden {
    display:none;
    width:2.5%;
    height:800px;
    float:left;
    border: 1px solid black;
    margin:2px;
}

@media (max-width: 768px) {
    #listmatchesbottom {
        padding-bottom: 15px;
    }
    #checkmark {
        position:relative;
    }
    .latestcomments {
        background-color: lightgray;
        height:600px;
        border: 1px solid black;
        overflow-y:scroll;
    }
    .formbutton {
        margin: 2px;
        font-size:100%;
    }
    .listmatchbutton {
        margin: 2px;
        padding: 4px 10px 4px;
        font-size:100%;
    }
}

@media (min-width: 1200px) {
    #headerposition, #positionfooter {
        -webkit-flex: none;
        -ms-flex: none;
        flex: none;
        max-height: 2em; /* work around for preso bug */
        -webkit-flex-basis: 450px;
        -ms-flex-basis: 450px;
        flex-basis: 450px;
    }
    #usersinfodialog {
        max-width: 60vw;
    }
    .latestcomments {
        background-color: lightgray;
        height: 800px;
        border: 1px solid black;
        overflow-y:scroll;
    }
    .formbutton {
        margin: 2px;
        font-size:100%;
    }
    .listmatchbutton {
        margin: 2px;
        padding: 4px 10px 4px;
        font-size:100%;
    }
}

.menu_hidden {
    display: none;
    width: 96%;
    float: right;
}
.menu_show {
    display: block;
    width: 96%;
    float: right;
}

.content_hidden {
    display: none;
}
.content_show {
    width: 100%;
}

.fullbackground
{
    position: relative;
    border: 1px solid black;
    margin: 5px;
    padding-left: 10px;
}

.helpimg
{
    text-align: center;
}

.filterinput {
    width: 90%;
}

#listmatchesheader {
    overflow-x: hidden;
    border: 1px solid black;
    display: table-cell;
}

#listmatches {
    overflow: hidden;
    border: 1px solid black;
    display:table-cell;
}

.listmatcheswrapper {
    display: table-row;
}

#listmatchesbottom {
    display: table-cell;
    overflow: hidden;
    position: absolute;
    bottom: 0px;
    border: 1px solid black;
    width: 99%;
    padding-bottom: 5px;
}

#matchescount {
    position:absolute;
    left: 5px;
}

/* Verical sizing */
#showtime {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
}

#headerbar, #bottombar, #menubar {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#headerbar, #bottombar {
    border: 1px solid black;
}

#bottombar {
    background: #e7e7e7;
}

#headerbar {
    background-color: #555555;
    color: #ffffff;
}

#sidebar {
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    max-height: 2em; /* work around for preso bug */
    -webkit-flex-basis: 200px;
    -ms-flex-basis: 200px;
    flex-basis: 200px;
}

#rankbar {
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    max-height: 2em; /* work around for preso bug */
    -webkit-flex-basis: 100px;
    -ms-flex-basis: 100px;
    flex-basis: 100px;
}

#mainarea, #maininput {
    -webkit-flex: auto;
    -ms-flex: auto;
    flex: auto;
    max-height: 2em; /* work around for preso bug */
}

#maininput {
}

#rankusers, #rankusers2 {
    -ms-flex-grow: 0;
    -webkit-flex-grow: 0;
    flex-grow: 0;
    -webkit-flex-basis: 100px;
    -ms-flex-basis: 100px;
    flex-basis: 100px;
    border: 1px solid black;
}

#chat, #topshowtime {
    flex-basis: 30vh;
    margin: 0;
    color: black;
    border: 1px solid black;
    overflow-y: scroll;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
}

#mainblock {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    flex-basis: 50vh;
    overflow: auto;
}

#usermessage {
    width: 80%;
    border: 1px solid black;
    margin: 3px;
}

#friendmessage {
    width: 90%;
    border: 1px solid black;
    margin: 3px;
}

.dialog, .centerdialog, .boardmiddledialog, .middledialog {
    display: none;
    position: absolute;
    padding: 4px;
    margin: 4px;
    border: 3px solid black;
    overflow: auto;
}

.fulldialog {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
}

.gnudialog {
    display: none;
    position: absolute;
    left: 200px;
    top: 200px;
    overflow: auto;
    padding: 4px;
    margin: 4px;
    border: 3px solid black;
}

.dialogbutton {
    margin: 2px;
    font-size: 100%;
    width: 98%;
    white-space: nowrap;
}

#headerbar, #bottombar {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border: 1px solid black;
}

#headerbar {
    background-color: #555555;
    color: #ffffff;
}

#mainarea {
    -webkit-flex: auto;
    -ms-flex: auto;
    flex: auto;
    max-height: 2em; /* work around for preso bug */
}

.imagebutton {
    background-color: #ededed;
    border:1px solid black;
    width:60px;
    height:60px;
    padding: 4px;
}

.mainbackground {
}

#lobbyselect {
    display: none;
}
/* Landscape */
@media only screen 
and (max-device-width: 568px)
and (orientation: landscape) {
    html, body {
        margin: 0px;
    }
    #activeusers {
        min-width: 150px;
    }
    #lobbyselect {
        display: block;
    }
}

@media only screen 
and (orientation: portrait) {
    #lobbyselect {
        display: block;
        float: right;
    }
    #sidebar {
        -webkit-flex-basis: 100px;
        -ms-flex-basis: 100px;
        flex-basis: 100px;
    }
}

#tabtable, #comments {
    width: 100%;
}

#helpcontent {
    background: white;
    width: 80%;
    float: left;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 800px) {
select:focus, textarea:focus, input:focus {
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    #helpcontent {
        width: 70%;
        float: left;
    }
    .bookmarkbutton {
        float: left;
        margin: 0px;
    }
}

@media (max-width: 1280px) {
    table.reference button {
        margin-left: 2px;
    }
    .tournamentcol
    {
      width: 13%;
    }
}
@media (max-width: 600px) {
    .playercol {
        width: 12%;
    }
}
@media (min-width: 1280px) {
    #listmatchesbottom {
        padding-bottom: 10px;
    }
    .playercol {
        width: 15%;
    }

    table.reference button {
        margin: 2px;
    }
}

.bookmarktitle {
    color: #ffffff;
    background-color: #555555;
    white-space: nowrap;
    overflow: hidden;
}

.halfbutton {
    float: left;
    width: 50%;
}

.checkerdiv {
    float: left;
}

#vdate,#vbutton {
  float: left;
  width: 40%;
}

.boardholder {
    width: 100%;
    height: 100%;
}

.settingsbutton {
    width: 100%;
}

@media (max-width: 800px) {
    #trainingdialog > table
    {
        width: 48vw;
    }
}

@media (min-width: 800px) {
    #trainingdialog > table
    {
        width: 200px;
    }
}

.bookmarkdiv
{
    overflow: hidden;
}

.bookmarkcheckbox {
    width: 26px;
    height: 21px;
}

.classbutton {
}

*[draggable=true] {
  -moz-user-select: none;
  -khtml-user-drag: element;
  cursor: move;
}

table.plaintable td {
    padding: 0px;
    border: 0px solid;
}

.infopanelbutton {
    margin-right: 2px;
}

.tablecheck {
    width: 20px;
    height: 16px;
}

#matchlength,#blackscore,#whitescore {
    text-align: center;
}

.videobutton {
    font-size: 100%;
    margin: 2px;
}

.fullscreendialog {
  position: absolute;
  width: 95%;
  height: 80vh;
  margin: 0 10px auto;
  top: 100px;
  box-shadow: 20px 20px 40px 1px #656565;
  z-index: 999;
  display: none;
  overflow: auto;
}

.fullscreenoverlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.3);
  display: none;
}

#bottombuttons {
    position: absolute;
}

.bottombutton {
    float: left;
}

.bottombutton, .rbottombutton {
    margin-right: 4px;
    font-size: 1.0em;
}

.rbottombutton {
    float: right;
}

#bottommatch {
    margin-right: 4px;
    width: 99%;
    padding-top: 4px;
}

.qdialog {
    z-index: 2;
    overflow: auto;
    margin: 2px;
}

.quickmenu, .quickmenusimple {
    margin: 2px;
    border: 1px solid black;
}

@media (max-height: 1000px) {
    .bottombutton, .rbottombutton {
        font-size: 0.95em;
    }
    #bottommatch {
    }
}

#bottombuttons {
    right: 140px;
}
#bottommatch {
    left: 10px;
}

@media (max-height: 950px) {
    .bottombutton, .rbottombutton {
        font-size: 0.90em;
    }
}

@media (max-height: 925px) {
    .bottombutton, .rbottombutton {
        font-size: 0.88em;
    }
    #bottommatch {
        top: 2px;
    }
    .fullscreendialog {
        top: 50px;
        width: 75%;
        left: 12.5%;
    }
}
@media (max-height: 900px) {
    .bottombutton, .rbottombutton {
        font-size: 0.85em;
    }
}

@media (max-height: 850px) {
    .bottombutton, .rbottombutton {
        font-size: 0.65em;
    }
}

@media (max-height: 800px) {
    .bottombutton, .rbottombutton {
        font-size: 0.62em;
    }
}

@media (max-height: 750px) {
    .bottombutton, .rbottombutton {
        font-size: 0.60em;
    }
    #bottombuttons {
        top: 0px;
    }
    .quickmenu {
        height: 4%;
    }
    .fullscreendialog {
        top: 25px;
        width: 75%;
        left: 12.5%;
    }
    table.reference td{
        border:1px solid #d4d4d4;padding:3px;padding-top:4px;padding-bottom:4px;vertical-align:top;
    }
}

@media (max-height: 625px) {
    .bottombutton, .rbottombutton {
        font-size: 0.58em;
    }
    bottommatch {
    }
    .fullscreendialog {
        top: 10px;
        width: 95%;
        height: 95%;
        left: 0.5%;
    }
}

@media (max-height: 600px) {
    .bottombutton, .rbottombutton {
        font-size: 0.55em;
    }
}

@media (max-height: 550px) {
}

@media (max-height: 500px) {
    .bottombutton, .rbottombutton {
        font-size: 0.45em;
    }
}

@media (max-height: 475px) {
    .bottombutton, .rbottombutton {
        font-size: 0.35em;
    }
}

@media (max-height: 425px) {
    .bottombutton, .rbottombutton {
        font-size: 0.35em;
    }
}


.toprightbutton {
    float: right;
    margin: 2px;
}

#videoframe {
    width: 100%;
    height: 100%;
}

.transparentbg {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("Landscape.png");
    height: 100%;
}

.transparent {
    background: rgba(0, 0, 0, 0.3);
    display: table;
    width: 100%;
    height: 100%;
}

.section {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-grow: 1;
    flex-grow: 1;
    flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
}
.textontransparent {
    color: white;
    text-align: center;
}

#homearrow,#homearrowright {
    font-size: 60px;
    color: white;
}

.bottomarrows {
    display: inline-block;
    align-self: flex-end;
    width: 100vw;
}

#homearrow :active, #homearrowright :active {
    color: black;
}

#homearrow {
    float: left;
}

#homearrowright {
    float: right;
}

.bodyflex {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.bodyheader, .bodyfooter, #mymatchestop, #mymatchesbottom {
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
}

#flexchat {
    flex-basis: 30vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.bodymain, #flexchat {
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    position: relative;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.bodymain {
    overflow: auto;
}

html, body {
    margin: 0px;
}

.sectioninner {
    -moz-transition: all 1000ms;
    -webkit-transition: all 1000ms;
    transition: all 1000ms;
}

.slidecontainer
{
    overflow-x: hidden;
    margin-left: 5vw;
    width: 10000px;
    -moz-transition: all 1000ms;
    -webkit-transition: all 1000ms;
    transition: all 1000ms;
}

.slideentry
{
    width: 90vw;
    height: 100%;
    float: left;
}

.sectionmiddle {
    -ms-flex-grow: 2;
    -webkit-flex-grow: 2;
    flex-grow: 2;
    width: 100vw;
}

.sectiontop {
    -ms-flex-grow: 1;
    -webkit-flex-grow: 1;
    flex-grow: 1;
}

.positiontypecount
{
    width: 90%;
    margin: 2px;
    padding: 2px;
    margin: 0 auto;
}

#homecontent
{
    border: 1px solid black;
    overflow: auto;
}

#quickinfodiv {
    overflow: auto;
}

#mainad {
    width: 50%;
    position: absolute;
    bottom: 20px;
    right: 25px;
    height: 120px;
}

#middletraining
{
    width: 100%;
    height: 100%;
    overflow: auto;
    -ms-flex-grow: 1;
    -webkit-flex-grow: 1;
    flex-grow: 1;
    flex-basis: 300px;
}

#yougammon, #yougammon2, #yougammon3
{
    transform: rotate(-90.0deg);
    -ms-transform:rotate(-90deg); /* IE 9 */
    -moz-transform:rotate(-90deg); /* Firefox */
    -webkit-transform:rotate(-90deg); /* Safari and Chrome */
    -o-transform:rotate(-90deg); /* Opera */
    position: absolute;
    left: 0%;
    top: 50%;
}

.centertext
{
    text-align: center;
}

#centermiddle, #centermiddle2, #centermiddle3
{
    text-align: center;
    vertical-align: middle;
}

#daily, #mymatchescontainer {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#mymatches, #mainshowtime, #daily, .imgwithheader, #chat, #mymatchescontainer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
}

.imgwithheader {
    max-width: 99vw;
}

#hometop {
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    border-spacing: 0px;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    flex-basis: 300px;
    overflow: auto;
}

#homebottom {
    flex-grow: 6;
    -webkit-flex-grow: 6;
    -ms-flex-grow: 6;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    flex-basis: 20vh;
}

#homeactiveusers {
    border: 2px solid black;
    overflow: auto;
    flex-grow: 0;
    -webkit-flex-grow: 0;
    -ms-flex-grow: 0;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 20%;
}

#mainblock2, #mymatchesmiddle {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    overflow: auto;
}

#content, #homechatcontent, #challengeinfomiddle {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

#dchat, #hchat, #dchat2 {
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
}

#activeusers {
    flex-basis: 200px;
    overflow: auto;
}

#usercontainerid {
}

#notationtop, #notationbottom {
    flex-basis: 40vh;
    width: 100%;
    -ms-flex-grow: 0;
    flex-grow: 0;
    -webkit-flex-grow: 0;
}

#notationbottom, #challengeinfoadarea {
    flex-basis: 40vh;
    overflow: auto;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
}

#challengeinfoadarea {
    width: 100%;
    height: auto;
    min-height: 200px;
}

/* Landscape */
@media only screen 
and (max-device-width: 568px)
and (orientation: landscape) {
    #notationtop {
      flex-basis: 50vh;
    }
    #activeusers {
      min-width: 150px;
    }
    #usermessage {
        width: 70%;
    }
}

#newchallengemain {
    width: 98%;
    height: 90%;
    position: absolute;
}

#segmentselect {
    margin: 4px;
}

.boardstacknum {
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("numbg.png");
    text-align: center;
    width: 80%;
    height: 100%;
    line-height: 200%;
    pointer-events: none;
}

.videoothercol {
}

.titlevideocol {
    width: 40%;
}
.languagevideocol {
}

#profilecountries {
    max-width: 400px;
}

.mymatchtd
{
    white-space: nowrap;
}

.barnames
{
    white-space: nowrap;
    font-size: 2vw;
    font-weight: bold;
    position: absolute;
    margin: 0px;
    padding: 0px;
    width: 6.25%;
}

.barnamecontent {
    transform: rotate(-90deg);
}

#mymatchesmiddle {
    max-height: 70vh;
}

.fbutton {
    width: 98%;
    padding: 0px 6px;
}

.centerdialog {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#helpdialog {
    width: calc(100% - 6px);
    background: white;
}

#introdialog {
    max-width: 90vw;
}

#myChart {
    max-height: 80vh;
}

#aboutbg {
    -moz-transition: all 1000ms;
    -webkit-transition: all 1000ms;
    transition: all 1000ms;
    width: 99%;
    background-color: blue;
    opacity: 0.3;
    z-index: 2;
    height: 60px;
    position: absolute;
    top: 40%;
}

#aboutclick {
    -moz-transition: all 2000ms;
    -webkit-transition: all 2000ms;
    transition: all 2000ms;
    text-align: center;
    font-size: 3em;
    font-weight: bolder;
    z-index: 3;
    user-select: none;
    pointer-events: none;
    width: 99%;
    position: absolute;
    top: 40%;
}

#aboutbg:hover {
    opacity: 1;
    top: 30%;
    height: 40%;
    background-color: black;
}

#aboutbg:hover + div {
    color: white;
}

#passwordtr, #registertr, #resendtr {
    display: none;
}

.hmtd { width: 80%; }
.hstd { width: 10%; }

@media screen and (orientation: portrait) and (max-width: 425px) {
    .buttonimage {
        width: 30vw;
        height: auto;
    }
    .hmtd { width: 98%; }
    .hstd { width: 1%; }
    .title, .titleatend { font-size: 2em; }
    .title2 {
        font-size: 1.7em;
    }
}

.fadelist {
    position: relative;
    text-align: center;
}

.fadelist > div:hover, .fadelist > button:hover {
    background-color: highlight;
}

#header2,#header3,#header4,#header7,#header8,#aheader2,#aheader3,#aheader4,#aheader7,#aheader8 {
    font-size: 2.5vw;
    opacity: 1;
}

#fadebutton5,#fadebutton6, #afadebutton5,#afadebutton6 {
    font-size: 2.5vw;
    opacity: 1;
}

.pacman { margin: 40px 10px; position:relative; }

.pacman-top {
    background-color:yellow;
    height:100px;
    width:200px;
    border-radius:100px 100px 0 0;
    animation: spin1 0.5s infinite linear;
    text-align: center;
    line-height: 60px;
    font-size: 1.2em;
    font-weight: bold;
}

.pacman-bottom {
    background-color:yellow;
    height:100px;
    width:200px;
    border-radius:0 0 100px 100px;
    animation: spin2 0.5s infinite linear;
}

.eatmage {
    background-image: url("./pacmanbg.jpg");
    width: 1225px;
    height: 80px;
    left: 100px;
    top: 60px;
    position: absolute;
    z-index: -1;
    -moz-animation: eat1 10s linear 0s infinite;
    -webkit-animation: eat1 10s linear 0s infinite;
    animation: eat1 10s linear 0s infinite;
}

/* Animation*/

@keyframes spin1 {
    0%  {transform: rotate(0deg);}
    50%{transform: rotate(-35deg);}
    
}
@keyframes spin2 {
    0%  {transform: rotate(0deg);}
    50%{transform: rotate(35deg);}	
}

@-moz-keyframes spin1 {
    0%  {transform: rotate(0deg);}
    50%{transform: rotate(-35deg);}
    
}
@-moz-keyframes spin2 {
    0%  {transform: rotate(0deg);}
    50%{transform: rotate(35deg);}	
}

@-webkit-keyframes spin1 {
    0%  {transform: rotate(0deg);}
    50%{transform: rotate(-35deg);}
    
}
@-webkit-keyframes spin2 {
    0%  {transform: rotate(0deg);}
    50%{transform: rotate(35deg);}	
}

@keyframes eat1 {
    0% { background-position: 1225px 100px; }
    100% { background-position: 0px 100px; }
}

.widebutton {
    width: 100%;
}
    
.closebutton {
    float: left;
}

#loginpanel,#logindialog {
    font-size: large;
    min-width: 260px;
}

@media screen and (orientation: portrait) and (max-width: 600px) {
    #header2,#header3,#header4,#header7,#header8,#aheader2,#aheader3,#aheader4,#aheader7,#aheader8 {
        font-size: x-large;
    }

    #fadebutton5,#fadebutton6, #afadebutton5,#afadebutton6 {
        font-size: x-large;
    }
}

@media screen and (orientation: portrait) and (max-width: 400px) {
    #header2,#header3,#header4,#header7,#header8,#aheader2,#aheader3,#aheader4,#aheader7,#aheader8 {
        font-size: large;
    }

    #fadebutton5,#fadebutton6, #afadebutton5,#afadebutton6 {
        font-size: large;
    }
}

.loginsmalldiv, .logindiv {
    position: relative;
    text-align: center;
    width: 99%;
    border: 2px solid black;
}

.loginsmalldiv  {
    height: 33vh;
    overflow-y: auto;
}

.logindiv {
    height: 100%;
}

.logintable {
    font-size: 1.5vw;
    text-align: center;
    width: 100%;
}

.w200p { width: 200px !important; }
.w100 { width: 100%; }
.w80 { width: 80%; }
.w90 { width: 90%; }
.w85 { width: 85%; }
.w5 { width: 5%; }
.w45 { width: 45%; }
.h100 { height: 100%; }
.w50 { width: 50%; }
.tac { text-align: center; }
.pb4 { padding-bottom: 4px; }
.hb { display: none; }
.bb { background-color: black; }
.p4 { padding: 4px; }
.hh:hover { background-color: wheat; }
.mu { margin: unset; }
.ma { margin: auto; }
.m0a { margin: 0 auto; }
.m8a { margin: 8px auto; }
.m8 { margin: 8px; }
.m2 { margin: 2px; }
.wf { width: fit-content; }
.hf { height: fit-content; }
.wh100 { width: 100%; height: 100%; }
.oa { overflow:auto; }
.ov { overflow:visible; }
.oh { overflow:hidden; }
.mh90 { max-height: 90vh }
.pu { padding: unset; }
.bu { border: unset; }
.fl { float: left; }
.fr { float: right; }
.wsn { white-space: nowrap; }
.rm2 { margin-right: 2px; }
.rm4 { margin-right: 4px; }
.lm4 { margin-left: 4px; }
.bx4 { box-shadow: 3px 3px 8px rgba(0,0,0,0.8); }
.tmb4 { width:400px; height:250px; }
.m20 { margin: 20px; }
.m10 { margin: 10px; }
.bsbb { box-sizing: border-box; }
.fg1 {
    -ms-flex-grow: 1;
    flex-grow: 1;
    -webkit-flex-grow: 1;
}
.fg0 {
    -ms-flex-grow: 0;
    flex-grow: 0;
    -webkit-flex-grow: 0;
}
.flex {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
}
.fdc {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.mwh90 {
    max-width: 90%;
    max-height: 90%;
}

.mwh95 {
    max-width: 95%;
    max-height: 95%;
}

button:hover {
    background-color: highlight;
}

.yhb { display:none; }
.showTD { display: table-cell; }

.thcol {
    color:#ffffff;background-color:#555555;border:1px solid #555555
}

.bb1 { border: 1px solid black; }
.pt2 { padding-top: 2px; }
.pb2 { padding-bottom: 2px; }
  
.share {
    display: inline-block;
    color: #ffffff;
    border: none;
    padding: 0.1em 0.6em;
    outline: none;
    text-align: center;
    font-size: 0.9em;
    margin: 0 0.2em;
}

.share:focus,
.share:hover {
    text-decoration: none;
    opacity: 0.8;
}

.share:active {
    color: #e2e2e2;
}

.share.twcol { background: #55acee; }
.share.fbcol { background: #3B5998; }
.share.gmcol { background: #444444; }

.mb2 { margin-bottom: 2px; }
.mt2 { margin-top: 2px; }

.dialogclose {
    float:left;
    font-size:0.65em;
}

.matchcol
{
    width:9%;
}
.checkcol
{
    width:2%;
}
.wincol
{
    width:3%;
    text-align: center;
    vertical-align: middle;
}
.playercol
{
    white-space: nowrap;
    width:17%;
    overflow: hidden;
}
.ercol
{
    white-space: nowrap;
    width:5%;
}
.matchlcol
{
    white-space: nowrap;
    overflow: hidden;
    width:3%;
}
.tournamentcol
{
    white-space: nowrap;
    width:16%;
    overflow: hidden;
}
.datecol
{
    white-space: nowrap;
    width:7%;
    overflow: hidden;
}
.filecol
{
    width: 2%;
}

