body {
    font-size: 13pt;
    margin: 0;
}

button,
select,
input[type='text'],
input[type='number'] {
    font-size: 13pt;
}

select {
    /*height: 1.75em;*/
}

input[type='range'] {
    /*width: 16ch;*/
}

#container {
    margin: auto;
    width: 99vw;
    /*border: black 1px solid;*/
}

header {
    /* border: 1px black solid; */
    display: flex;
    padding: 0.5vmin;
    justify-content: space-between;
}

/*
#return-top-page {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
*/
.button-chain {
    /*  border: 1px black solid;  */
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 0.33ch;
    row-gap: 0.33em;
    padding-bottom: 1.0vmin;
}

.button-chain button {
    margin-top: 0.5em;
}

#button-chain-review {
    display: none;
}

#current-version {
    /*flex: 1;
    display: flex;
    justify-content: flex-end;*/
    font-weight: bold;
    color: red;
}

#game-container {
    /*     border: black 1px solid; */
}

.player-symbol {
    font-size: larger;
    vertical-align: center;
}

.player-symbol.green {
    color: darkgreen;
}

#resign-button,
#kif-copy-button,
#help-on-review-button {
    margin-right: 1ch;
}

#current-num-of-moves-item-group {
    margin-left: 1ch;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    line-height: 1em;
}

#help-on-review-button {
    display: none;
}

#options-button {
    margin-left: 1ch;
}

#resign-button {
    width: 7ch;
}

#position {
    /* border: black 1px solid; */
    border-collapse: collapse;
    line-height: 1em;
    margin: auto;
}

#position td.board-cell,
#position td.back-stand,
#position td.front-stand {
    border: black 1px solid;
    text-align: center;
    vertical-align: center;
    padding: 0.5vmin;
    width: 8.2vmin;
    height: 8.2vmin;
    line-height: 1.0em;
}

#position td.between-stand-and-board {
    width: 2vmin;
}

/*
#position td.board-cell {
    background-color: aquamarine;
}

#position td.back-stand,
#position td.front-stand {
    background-color: palegreen;
}
*/

#position td.file,
#position td.rank {
    border: 0;
    text-align: center;
    vertical-align: middle;
}

#position td.file {
    /*     border: 1px black solid; */
    line-height: 1.0em;
}

#position td.file.front-green {
    padding-bottom: 0.3em;
}

#position td.file.back-green {
    padding-top: 0.3em;
}

#position td.rank.front-green {
    padding-left: 0.3em;
}

#position tr.file.back-green {
    visibility: hidden;
}

#position td.rank.back-green {
    padding-right: 0.3em;
    visibility: hidden;
}

#position img {
    width: 95%;
    height: 95%;
}

#wholeCanvas {
    position: absolute;
    visibility: hidden;
    z-index: 998;
}

.player-info {
    padding: 0.75em;
}

.player-info.back {
    text-align: left;
}

.player-info.front {
    text-align: right;
}

.player-name {
    margin-right: 1ch;
}

dialog {
    max-width: 90vw;
    border-color: gray;
    padding: 0 2ch 1em;
    background-color: rgba(255, 255, 255, 0.95);
}

dialog fieldset {
    line-height: 1.5em;
    margin-top: 0.75em;
    margin-bottom: 0.5em;
    padding: 0 1.5ch 0.5em;
}

dialog fieldset div {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

div.buttons {
    width: 100%;
    text-align: right;
}

div.buttons>button {
    margin-right: 0.75ch;
}

/*div.buttons > button:last-of-type {
    margin-right: 0;
}*/

#okDialog button.ok {
    width: 10ch;
}

#optionsDialog {
    /*background-color: rgba(255, 255, 255, 1.0);*/
}

#gameSettingDialog .manName input[type='text'] {
    width: 15ch;
}

input[type='checkbox'] {
    margin-right: 1ch;
}

#gameSettingDialog label {
    display: inline-block;
    white-space: nowrap;
}

/*
#gameSettingDialog .manTurn .item-name {

}

#gameSettingDialog .manTurn .item-values {
    
}
*/

#gameSettingDialog .manTurn label {
    margin-right: 0.5ch;
}

#gameSettingDialog .manTurn input[type='radio'] {
    margin-right: 0;
}

#gameSettingDialog input[type='number'] {
    width: 6ch;
}

/* fieldset select {
    line-height: 1em;
} */
/*
#gameSettingDialog label:first-child {
    margin-left: 2ch;
}
*/

select {
    padding: 0.2em;
}

.item-name {
    margin-right: 1ch;
}

label {
    margin-right: 0;
}

#manyKindsOfInfo {
    /*  border: black 1px solid; */
    /* margin-top: 2vh; */
    line-height: 2.0em;
    text-align: center;
    padding: 1.5vmin;
}

#offensiveTurnInfo {
    display: none;
}

#toast {
    visibility: hidden;
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    width: 34ch;
    border-radius: 2vw;
    background-color: rgba(211, 211, 211, 0.9);
    padding: 2vh;
    text-align: center;
    z-index: 999;
}

#dummy {
    display: none;
}

#hidden-text-area-for-clipboard {
    display: none;
}