@media print
{
    * {-webkit-print-color-adjust:exact;}
}

:root {
    --zoom: 1.0;
    --keyboardZoom: 1.0;
    --titleZoom: 1.0;
    --pageZoom: 1.0;
    --printSettingZoom: 1.0;
}

.stable-scrollbar {
    scrollbar-gutter: stable;
}

canvas {
    touch-action: none;
}

body.intro, body.play, body.edit, body.capture, body.server-capture, body.admin, body.help{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    margin: 20px 0;
    background-image: url(images/Crossbackground_angle_t_b.png);
    background-attachment: fixed;
    justify-content: center;
}

body.admin{
    background-color: rgba(255, 0, 242, 0.32);
}

body.capture {
    background-color: rgba(211, 251, 102, 0.78);
}

body.server-capture {
    background-color: rgba(83, 97, 26, 0.78);
}

body.help{
    background-color: rgb(200, 255, 255);
}

.d_help{
    background-color: rgba(255, 255, 255, 0.9);
    padding:20px;
}

body.play {
    font-family: Arial, Helvetica, sans-serif;
    background-image: url(images/Crossbackground_angle_t_b.png);
    background-attachment: fixed;
    background-color: #ffaaaa;
    margin: 15px;
    //background-blend-mode: multiply;
}

body.edit {
    font-family: Arial, Helvetica, sans-serif;
    // background-blend-mode: multiply;
    background-image: url(images/Crossbackground_angle_t_b.png);
    background-attachment: fixed;
    background-color: #aaaaff;
    margin: 15px;
    //background-repeat: repeat;
}

body.print {
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
}

.header{
    width: 100%;
    font-size: 16pt;
    font-weight: bold;
    color: white;

    background: rgba(0, 0, 0, 0.50);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    vertical-align: top;
}


image {
    border-style: none;
}

.code_block {
    background-color: #eee;
    border: 1px solid #999;
    display: block;
    padding: 20px;
    font-family: Courier, monospace;
    font-size: 10pt;
    margin-top: 10px;
    margin-bottom: 10px;
}

.code_line {
    padding-left:50px;
    text-indent:-50px;
    width:90%;
}

pre {
    font-family: Courier, monospace;
    font-size: 10pt;
}

button {
    -webkit-user-select: none;      /* Safari / iOS */
    user-select: none;              /* Standard */
    -webkit-touch-callout: none;    /* prevents spyglass / context menu */
    //-touch-action: none;
    touch-action: manipulation;     /* no tap-in zoom */
}

/******************************************************************************
**  Popup menus                                                             **
******************************************************************************/


div.popup-background {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    //width: 100%;
    visibility:hidden;
    z-index: 1000;
}

div.popup-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1px;
    padding: 2px;

//background-color: white;
//box-shadow: 0 0 10px 5px #666;

    background: rgba(200, 200, 200, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    transition-duration: 0.5s;
    overflow-y: auto;
    scrollbar-width: thin;
}

div.popup-menu-close, div.popup-menu-open{
    width: 1em;
    padding: 5px;
    font-size: calc(18pt * var(--pageZoom, 1.0));
    text-align: center;

    background: rgba(200, 200, 200, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
}
div.popup-menu-close {
    position: relative;
    //margin-left: calc(100% - 1em - 10px);
    margin-bottom: 50px;
}

div.popup-menu-open{
    position: absolute;
    top: 0;
    right: 0;
}

div.popup-item {
    position: relative;
    font-size: calc(18pt * var(--pageZoom, 1.0));
    padding: 5px;
    margin: 2px;
    text-align: left;

    background: rgba(200, 200, 200, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);

}

div.popup-item-selected {
    background: rgba(255, 255, 255, 0.35); !important;
    box-shadow: 0 4px 30px rgba(0, 0, 255, 0.4);
}

div.popup-spacer {
    height: calc(15px * var(--pageZoom, 1.0));
}

div.glass, button.glass {
    width: 100%;
    font-size: 16pt;
    color: black;
    cursor: pointer;

    background: rgba(200, 200, 200, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.image-canvas{
    position: absolute;
    left:0px;
    top:0px;
    text-align: center;
    border-radius: 20px;
    zoom: 0.2;
    background: rgba(200, 200, 200, 0.25);
}

.tab-body{
    visibility: hidden;
    position: absolute;
    top:10px;
    left:10px;
    /*right:0;
    bottom:0;*/
    width: calc(100% - 20px);
    height: calc(100% - 20px);

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(200, 200, 200, 0.25);
}

.prev-img{
    position: relative;
    height: 100%;
    //width: 100%;
}

.prev-tabs-bar, .prev-toolbar-top, .prev-toolbar-middle, .prev-toolbar-bottom {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 1;
    display: flex;
    gap: 1px;
    padding: 10px;
    background: rgba(200, 200, 200, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.prev-tabs-bar {
    left: 0;
    right: 0;
    padding-bottom: 0;
}

.prev-toolbar-top {
    top: 20px !important;
}

.prev-toolbar-middle {
    top: 80px !important;
}

.prev-spacer {
    overflow: hidden;
}

.prev-toolbar-bottom{
    bottom: 20px;
    left:10%;
    right: 10%;
    align-items: center;
    justify-content: center;
}

.prev-rotate-slider {
    width: 80%;
}

.prev-tab-button, .prev-action-button, .prev-tool-button, .prev-tool-input-color, .prev-tool-input-size {
    height:30px;
    color: black;
    font-size: 14pt;
    background: rgba(200, 200, 200, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.prev-tab-button, .prev-action-button {
    white-space: nowrap;
    border: 2px solid rgba(0, 0, 80, 0.30);
}

.prev-action-button {
    overflow: unset;
}

@media (max-width: 750px) {
    .prev-tab-button span{
        font-size: 10pt;
    }
}

@media (max-width: 600px) {
    .prev-tab-button {
        width: 2em;
        justify-content: center;
    }

    .prev-tab-button span {
        display: none;
    }
}

.prev-tool-button {
    padding: 5px;
    width: 30px;
    overflow: unset
}

.prev-tool-input-color{
    padding: 2px;
    width: 30px;
}

.prev-tool-input-size{
    padding: 2px;
    width: 55px;
}

.prev-tool-active {
    background: rgba(0, 0, 200, 0.25);
}

.prev-rotate-button{
    height:30px;
    width:30px;
    padding-left: 4px;
    color: black;
    font-size: 14pt;
    background: rgba(200, 200, 200, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.prev-rotate-active {
    background: rgba(0, 0, 200, 0.25);
}

.prev-painting {
    cursor: crosshair !important;
}

textarea {
    touch-action: manipulation;      /* no tap-in zoom */
}

.play-title-container {
    background-color: white;
    font-size: 0;
    box-shadow: 0 0 calc(10px * var(--pageZoom, 1.0)) calc(5px * var(--pageZoom, 1.0)) #666;
    margin-bottom: calc(15px * var(--pageZoom, 1.0));
}

.play-menu-button-container {
    width: 80px;
    height: 100vh;
    background-color: white;
    box-shadow: 0 0 calc(10px * var(--pageZoom, 1.0)) calc(5px * var(--pageZoom, 1.0)) #666;
    margin-bottom: calc(10px * var(--pageZoom, 1.0));
}

.play-menu-button {
    /* position: absolute;
    //right: calc(5px * var(--zoom, 1.0));
    top: calc(5px * var(--zoom, 1.0)); */
    color: black;
    text-shadow:  2px 2px 8px red;

    font-size: calc(32pt * var(--zoom, 1.0)) ;
    padding: calc(10px * var(--zoom, 1.0));
    //background-color: rgba(200, 200, 200, 0.6);

}

.edit-title-name{
    text-align: center;
    vertical-align: middle;
    font-size: calc(12pt * var(--zoom, 1.0)) ;
    width:100%;
    min-height: calc(18px * var(--titleZoom, 1.0));
}

.edit-title-more {
    calc(25px * var(--zoom, 1.0));
    font-size: calc(12pt * var(--zoom, 1.0)) ;
}

.edit-title-title{
    width:100%;
    min-height: calc(18px * var(--titleZoom, 1.0));
}

.title-text{
    font-size:calc(18pt * var(--titleZoom, 1.0));
    white-space: nowrap;
}

.title-position{
    padding:calc(1px * var(--titleZoom, 1.0));
}

.title-answer{
     width: calc(16px * var(--titleZoom, 1.0));
     height: calc(25px * var(--titleZoom, 1.0));
     font-size: calc(12pt * var(--titleZoom, 1.0));
     text-align:center;"
     padding: 0;
}

.title-question, .title-question-bar{
    height: calc(15px *  var(--titleZoom, 1.0));
    font-size: calc( 5pt *  var(--titleZoom, 1.0));
    border-style:solid;
    border-width:0;
    text-align:center;
    padding: 0;
}

.title-question-bar{
    border-top-width: calc(3px *  var(--titleZoom, 1.0));
}

.t-question-line, .t-question-column{
    color:#aaa;
    background-color:#fff;
    font-size: calc(12pt * var(--zoom, 1.0));
}

.t-question-line{
    text-align:center;
}

.t-question-column{
    text-align:right;
}

.input-play-container{
    background-image: url(images/Crossbackground_angle_t_b.png);
    //background-attachment: fixed;
    background-color: #fcc;
}

.input-edit-container{
    background-image: url(images/Crossbackground_angle_t_b.png);
    //background-attachment: fixed;
    background-color: #ccf;
}

.key-row, .key-row-left, .key-row-right{
    padding: 0;
    display: flex;
}

.key-row-left{
    padding-right: 4%;
}

.key-row-right{
    padding-left: 4%;
}

.b-plain, .b-middle, .b-small, .b-search{
    -webkit-appearance:none;
    padding:0;
    text-align:center;
    color:black;
    border-radius:calc(15px * var(--keyboardZoom, 1.0));
    height:calc(35px * var(--keyboardZoom, 1.0));
    margin-bottom:calc(5px * var(--keyboardZoom, 1.0));
    overflow: hidden;

    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;

    /* From https://css.glass */
    background: rgba(0, 0, 0, 0.18);
    box-shadow: 0 4px 30px rgba(1, 1, 1, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: calc(1px * var(--keyboardZoom, 1.0)) solid rgba(0, 0, 0, 0.15);}

.b-plain{
    width: 12.5%;
    padding:0;
    white-space:nowrap;
    font-size:calc(7pt * var(--keyboardZoom, 1.0));
}

.b-middle{
    width: 13.5%;
    white-space: nowrap;
    font-size: calc(12pt * var(--keyboardZoom, 1.0));
}

.b-small{
    width: 8.0%;
    margin-left: 0.2%;
    margin-right: 0.2%;
    padding: 0;
    font-size: calc(16pt * var(--keyboardZoom, 1.0));
}

.b-search{
    width: calc(60px * var(--keyboardZoom, 1.0));
    height: calc(16px * var(--keyboardZoom, 1.0));
    font-size: calc(7pt * var(--keyboardZoom, 1.0));
    margin-top:calc(2px * var(--keyboardZoom, 1.0));
    margin-bottom:calc(2px * var(--keyboardZoom, 1.0));
}

.b-shiftPressed span span:first-child{
    display:none;
}
.b-shiftPressed span span:last-child{
    display: block;
}
.b-shiftReleased{
    display:none;
}

.play-question, .edit-question {
    position:relative;
    width:92%;
    margin-top: calc(5px * var(--keyboardZoom, 1.0));
    margin-bottom: calc(5px * var(--keyboardZoom, 1.0));
    margin-left: 2%;
    border: 0;
    font-size: calc(13pt * var(--keyboardZoom, 1.0));
    height: calc(65px * var(--keyboardZoom, 1.0));
}

.question-container {
    width:100%;
}

.question-textarea-td{
    width:80%;
}

.question-button-td{
    text-align: right;
    width: calc(80px * var(--keyboardZoom, 1.0));
}

a.anagram{
    white-space: nowrap;
    background-color: lightgrey;
    margin:5px;
    line-height: 1.5;
}

.message-div {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,40,0.4);
  z-index: 9999;
}

.dialog{
    max-height: 90%;
    height:90%;
    background: none;
    //table-layout: fixed;
}

.dialog-frame-cell{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16pt;
    padding: 10px;
    margin: 10px;
    border: dotted 1px silver;
    //overflow: hidden;
}

.dialog-frame-div{
    height:100%;
    overflow-y: auto;
 }

.dialog-label{
    padding-bottom : 15px;
}

.dialog-button-cell{
    padding-top: 10px;
    text-align: right;
    height: 50px;
}

.dialog-button {
    width: 150px;
    margin: 5px;
    font-size: 16pt;
    height: 40px;
    border-radius: 20px;
    color: black;
}

.dialog-input{
    width: calc(100% - 8px);
    font-size: 16pt;
    color: black;
}

.visible {
  display: grid !important;
}

.wrapper, .wrapper-wide{
  width: min(80vw, 800px);
  height: 80vh;
  background: rgba(200,200,200,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wrapper-wide {
    width: 100%;
    height: 100%;
}

.content, .content-wide {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16pt;
    background: #fff;
    padding: 10px;
    position: relative;
    overflow-y: auto;
    display: flex;
}

.content {
    width: 80%;
    height: 80%;
    justify-content: center;
    align-items: center;
}
.content-wide {
    width: 90%;
    height: 80%;
    justify-content: flex-start;
    align-items: flex-start;
}

.preview {
    position:absolute;
    bottom:20px;
    right:20px;
    height:60%;
    display:none;
    z-index:10000;
    opacity: 0.6;
    box-shadow: 0 0 calc(20px * var(--pageZoom, 1.0)) calc(5px * var(--pageZoom, 1.0)) #5404aa;
}

/******************************************************************************
**  Page layout                                                              **
******************************************************************************/
.cell-board-flow, .cell-board-column, .question-board {
    background-color: white;
    box-shadow: 0 0 calc(10px * var(--pageZoom, 1.0)) calc(5px * var(--pageZoom, 1.0)) #666;
    margin-bottom: calc(40px * var(--pageZoom, 1.0));
}

.cell-board-flow{
    float:left;
    margin-top: calc(20px * var(--pageZoom, 1.0));
    margin-right: calc(30px * var(--pageZoom, 1.0));
    margin-bottom: calc(20px * var(--pageZoom, 1.0));
}

.cell-board-column {
    margin-bottom: calc(0 * var(--pageZoom, 1.0));
    margin-right: auto;
    margin-left: auto;
}

.cell-board-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: calc(10px * var(--pageZoom, 1.0));
}

.fields-container{
    display: flex;
    justify-content: center;
    }

.fields-wrapper{
    display: inline-block;
}

.question-board{
    text-align: justify;
    hyphens: auto;
    margin-bottom: calc(10px* var(--pageZoom, 1.0));
    padding: calc(10px * var(--pageZoom, 1.0));
    font-size: calc(12pt * var(--zoom, 1.0));
}

.print-title-container{
    margin-bottom:20px;
}

.print-fields-container{
    float:left;
    position: relative;
    margin-left:20px;
    margin-right:50px;
    margin-bottom:20px;
}


.print-qr-code{
    vertical-align: bottom;
    float:right;
    margin-left:10px;
    margin-bottom:3px;
}

.print-question-board{
    text-align: justify;
    hyphens: auto;
    margin-bottom:20px;
}

.print-question-board-2column-right{
    display: inline-block;
    vertical-align: top;
    padding-left: 2%;
}

.print-question-board-2column-left{
    position: relative;
    display: inline-block;
    vertical-align: top;
    padding-right: 2%;
}

.print-question-board-2column-left-placeholder{
    float: right;
    clear: right;
    // background-color: rgba(255, 0, 0, 0.3);
    width: 0;
    height: 100px;
}

.print-question-board-2column-right-placeholder{
    float: left;
    clear: left;
    // background-color: rgba(0, 0, 255, 0.3);
    width: 0;
    height: 100px;
}

.print-border-draft{
     position: absolute;
    border-style: dotted;
    border-width: 1px;
    border-color: rgba(0, 0, 255, 0.5);
    background-color: rgba(200, 200, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: end;
    //text-align: center;
}

/******************************************************************************
**  Cell layout                                                              **
******************************************************************************/

.cell-input{
    cursor: pointer;
    position:absolute;
    opacity:0.01;
    font-size: 0;
    left:0;
    right:0;
    top:0;
    bottom:0;"
    padding: 0;
}

.left-barrier{
    border-left-width:   calc(2px + 3px * var(--zoom, 1.0)) !important;
    border-left-color:   black !important;
}

.right-barrier{
    border-right-width:  calc(2px + 3px * var(--zoom, 1.0)) !important;
    border-right-color:   black !important;
}

.up-barrier{
    border-top-width:    calc(2px + 3px * var(--zoom, 1.0)) !important;
    border-top-color:   black !important;
}

.down-barrier{
    border-bottom-width: calc(2px + 3px * var(--zoom, 1.0)) !important;
    border-bottom-color:   black !important;
}

.cell-defaults{
    border-width: 1px;
    border-style:solid;
    cursor: pointer;
    padding: 0;
}

/******************************************************************************
**  Background image                                                          **
******************************************************************************/


.sc-background{
    width:60%;
}

.s-background{
    width:calc(100% / var(--keyboardZoom, 1.0));
    transform: scale(var(--keyboardZoom, 1.0));
    transform-origin: left center;
    height: calc(12px * var(--keyboardZoom, 1.0));
    margin-top: calc(4px * var(--keyboardZoom, 1.0));
    margin-bottom: calc(4px * var(--keyboardZoom, 1.0));
}

.t-background{
    width: 15%;
    font-size: calc(12pt * var(--keyboardZoom, 1.0));
}

.sc-background, .t-background{
    padding: calc(3px * var(--keyboardZoom, 1.0));
}

.b-background{
    font-size:calc(12pt * var(--keyboardZoom, 1.0));
    width: 100%;
}

.bc-background{
    font-size:calc(12pt * var(--keyboardZoom, 1.0));
    width: 90%;
    padding:calc(5px * var(--keyboardZoom, 1.0));
    vertical-align: bottom;
    text-align: center;
}

.fc-background{
    width:95%;
}

.f-background{
    width:100%;
    font-size: calc(12pt * var(--keyboardZoom, 1.0));
}

.t-background{
    width: 30%;
    font-size: calc(12pt * var(--keyboardZoom, 1.0));
}

.i-background{
    max-height:calc(100px * var(--keyboardZoom, 1.0));
    max-width:calc(200px * var(--keyboardZoom, 1.0));
}

.v-background{
    width:calc(18px * var(--keyboardZoom, 1.0));
    height:calc(130px * var(--keyboardZoom, 1.0));
    padding-top:calc(10px * var(--keyboardZoom, 1.0));
    padding-bottom:calc(10px * var(--keyboardZoom, 1.0));
    padding-right:calc(3px * var(--keyboardZoom, 1.0));
    margin-left: calc(10px * var(--keyboardZoom, 1.0));
    color: white;
    background-color: blue;
    font-size: calc(10pt * var(--keyboardZoom, 1.0));
    font-weight: bold;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.background-settings{
    display:none;
    position:absolute;
    top:2px;
    bottom:calc(80px * var(--keyboardZoom, 1.0));
    width:100%;
    z-index:2;
    //background-color:lightgrey;
    background: rgba(222, 222, 252, 0.80);
}

/******************************************************************************
**  Print settings                                                            **
******************************************************************************/

.print-settings{
    display: none;
    position: fixed;
    right: calc(10px * var(--printSettingZoom, 1.0));
    bottom: calc(10px * var(--printSettingZoom, 1.0));
    width: calc(400px * var(--printSettingZoom, 1.0));
    height:calc(320px * var(--printSettingZoom, 1.0));
    padding: calc(10px * var(--printSettingZoom, 1.0)) calc(10px * var(--printSettingZoom, 1.0)) calc(10px * var(--printSettingZoom, 1.0)) 0;

    background: rgba(200, 200, 240, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: calc(1px * var(--printSettingZoom, 1.0)) solid rgba(0, 0, 0, 0.18);
}

.d-print-setting{
    width: 100%;
}

.sc-print-setting{
    width:50%;
}

.s-print-setting{
    width:calc(100% / var(--printSettingZoom, 1.0));
    transform: scale(var(--printSettingZoom, 1.0));
    transform-origin: left center;
    height: calc(12px * var(--printSettingZoom, 1.0));
    margin-top: calc(4px * var(--printSettingZoom, 1.0));
    margin-bottom: calc(4px * var(--printSettingZoom, 1.0));
}

.tc-print-setting{
    width: 40%;
    font-size: calc(12pt * var(--printSettingZoom, 1.0));
}

.sc-print-setting, .t-print-setting{
    padding: calc(3px * var(--printSettingZoom, 1.0));
}

.b-print-setting{
    font-size:calc(12pt * var(--printSettingZoom, 1.0));
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}

.bc-print-setting{
    font-size:calc(12pt * var(--printSettingZoom, 1.0));
    width: 100%;
    vertical-align: bottom;
}



.v-print-setting{
    width:calc(20px * var(--printSettingZoom, 1.0));
    height:calc(150px * var(--printSettingZoom, 1.0));
    color: white;
    background-color: blue;
    padding-top: calc(10px * var(--printSettingZoom, 1.0));
    font-size: calc(12pt * var(--printSettingZoom, 1.0));
    font-weight: bold;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/*********************************************************************************
** console
*********************************************************************************/

.console-frame {
     position: fixed;
     width: 100%;
     height: 100%;
     inset: 0;
     display: none;
     place-items: center;
     background: rgba(0,0,40,0.4);
     z-index: 19999;
     transition-duration: 0.5s;
}

.console-wrapper {
    width: 90%;
    height: 90%;
    background: rgba(200,200,200,0.9);;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.console-buttons{
    position:absolute;
    top:0;
    height: 35px;
    width: 100%;
    background-color: #a6a6a6;
}

.console-buttons button{
    background-color: #9da6c1;
    width: 30px;
    height: 30px;
    margin: 2px;
    font-size: 12pt;
}

.console-button-close{
    position: absolute;
    right: 2px;
    background-color: rgba(255, 0, 0, 0.81) !important;
}

.console-button-restore{
    position: absolute;
    right: 2px;
    top: 50%;
    height: 50px;
    width: 10px;
    background-color: rgba(255, 136, 0, 0.85) !important;
    display: none;
    z-index: 19999;
    padding: 15px 10px 0 0;
}

.console-output, .console-source{
    overflow-y: scroll;
    position: absolute;
    //width:100%;
    border: 1px solid black;
    //position:absolute;
    top:40px;
    bottom:0;
    left:0;
    right:0;
}

.console-link{
    color:turquoise;
    word-wrap: anywhere;
}
.console-source{

}

.console-line, .console-source-line{
    font-family: Consolas, "Courier New", monospace;
    background-color: black;
    color: white;
    white-space: pre-wrap;
    display: grid;
    column-gap: 10px;
    align-items: start;
}

.console-line{
    padding: 8px;
    border: 1px solid #555;
    grid-template-columns: 120px 1fr;
}

.console-source-error-line {
    background-color: gold;
    color: black;
}

.console-source-error-word {
    background-color: rgba(255, 94, 0, 1);
    color: black;
}

.console-source-line{
    grid-template-columns: 40px 1fr;
}

.console-time{
    color: #808080 !important;
}

.console-text{

}

.console-number{
    color: green;
    text-align: right;
}

.console-warning{
    background-color: rgba(97, 85, 26, 0.47);
}

.console-error{
    background-color: rgba(62, 10, 10, 0.75);
}

/*********************************************************************************
** time glass
*********************************************************************************/
.time-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.sand-timer {
    width: 80px;
    height: 400px;
    position: relative;
}
.time-glass {
    width: 80px;
    height: 200px;
    position: absolute;
    overflow: hidden;
    border: 4px solid #dfe6e9;
}
.time-glass.top {
    top: 0;
    transform: rotate(180deg);
    border-radius: 80px;
}
.time-glass.bottom {
    top: 200px;
    transform: rotate(180deg);
    border-radius:  80px;
}
.sand {
    width: 100%;
    height: 100%;
    background-color: rgba(211, 251, 102, 0.78);
    animation: sand-drop 4s linear infinite;
}
.sand-fill {
    width: 100%;
    height: 0;
    background-color: rgba(211, 251, 102, 0.78);
    animation: sand-fill 4s linear infinite;
}
.sand-flow {
    width: 60px;
    height: 200px;
    background-color: rgba(211, 251, 102, 0.78);
    position: absolute;
    top: 200px;
    left: 30px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: sand-flow 4s linear infinite;
}
@keyframes sand-drop {
    0% { height: 100%; }
    100% { height: 0%; }
}
@keyframes sand-fill {
    0% { height: 0%; }
    100% { height: 100%; }
}
@keyframes sand-flow {
    0%, 100% { height: 0; width: 60px; left: 10px;}
    5% { height: 200px; width: 8px; left: 36px;}
}

.fixed_header{
    position: sticky;
    top: 0;
    z-index: 1;
}


/******************************************************************************
**  Admin settings                                                           **
******************************************************************************/

.b-admin-update {
    width: 100%;
    height: 100%;
    font-size: 10pt;
    color: white;
    background-color: #5404aa;
    hyphens: auto;
}

.p-admin-content {
    padding: 10px;
    overflow: auto;
    scrollbar-width: thin;
    text-align: left;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10pt;
    background-color: black;
    color: white;
    white-space: nowrap;
}

.g_admin{
    display: grid;
    grid-template-columns: 50px auto;
    grid-template-rows: 70px auto;
    grid-gap: 10px;
}

.stripe-table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
    z-index: 1;
    overflow-wrap: anywhere;
}

.stripe-table thead{
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.stripe-table td, .stripe-table th {
    border: 1px solid #ddd;
    padding: 8px;
}

.stripe-table tr:nth-child(even){background-color: rgba(200, 200, 200, 0.6);}
.stripe-table tr:nth-child(odd){background-color: rgba(255, 255, 255, 0.6);}

.stripe-table tr:hover {background-color: #daa; color: red}

.stripe-table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #5404aa;
    color: white;
    text-wrap: nowrap;
    overflow: hidden;
}

