body {
    padding: 0;
    margin: 0;
    font-family: Roboto, sans-serif;
    font-size: 20px;
    background-color: #eee;
    color: #000;
    touch-action:none;
    overflow: hidden;
}

a {
    text-decoration: none;
}

#canvas-container {
}

/*=============================================*/

#topheader {
    user-select: none;
    position: absolute;
    text-align: center;
    border-bottom: 0.05em solid #000;
    color: #000;
    font-weight: 800;
    display: grid;
    height: 100%;
    grid-template-rows: 1fr 1fr;
}

#topheader.hidden {
    display: none;
}

#topheader-home {
    text-align: left;
    font-size: 1.25em;
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: center;
}

#topheader .label1 {
    text-align: left;
    font-size: 1.5em;
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
}

#topheader .label2 {
    text-align: right;
    font-size: 0.6em;
    grid-row: 1;
    grid-column: 3;
    align-self: center;
    padding-top: 0.3em;
}

#topheader .label2.tworows {
    grid-row: 1 / span 2;
}

#topheader .label3 {
    text-align: right;
    font-size: 0.6em;
    grid-row: 2;
    grid-column: 3;
    align-self: center;
    padding-bottom: 0.3em;
}

#topheader .label3.hidden {
    display: none;
}

#topheader-stats {
    text-align: right;
    font-size: 1.25em;
    grid-row: 1 / span 2;
    grid-column: 4;
    align-self: center;
}

.topheader-button:hover {
    cursor: pointer;
}

.topheader-button.hidden {
    display: none;
}

/*=============================================*/

#statisticspanel {
    user-select: none;
    position: absolute;
    /*top: 0;*/
    /*left: 0;*/
    /*bottom: 0;*/
    /*right: 0;*/
    /*background-color: rgba(255, 255, 255, 0.5);*/
    overflow: hidden;
    font-size: 0.75em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#statisticspanel.hidden {
    display: none;
}

#statisticspanel-content {
    background-color: #fff;
    box-shadow: 0 0 1em 0.2em #555;
    display: flex;
    flex-direction: column;
    padding: 1em 0.5em;
    box-sizing: border-box;
    position: relative;
}

#statisticspanel-word {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

#statisticspanel-word.hidden {
    display: none;
}

#statisticspanel-label {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
}

#statisticspanel-close {
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    font-size: 1.5em;
}

#statisticspanel-statistics {
    margin-top: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    /*grid-gap: 0.2em;*/
}

.statisticspanel-statistics-label {
    text-align: center;
    font-size: 0.75em;
    align-self: end;
    /*background-color: #eee;*/
}

.statisticspanel-statistics-value {
    text-align: center;
    font-size: 2em;
    font-weight: normal;
    /*background-color: #eee;*/
}

.statisticspanel-statistics-label.perfect {
    /*background-color: #fffde7;*/
}

.statisticspanel-statistics-value.perfect {
    /*background-color: #fffde7;*/
}

#statisticspanel-distribution {
    margin-top: 1em;
}

#statisticspanel-distribution-label {
    text-align: center;
}

#statisticspanel-distribution-chart {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    row-gap: 0.5em;
    margin-top: 1em;
}

.distribution-chart-label {
    margin: 0 0.5em;
    text-align: right;
    line-height: 1.5em;
}

.distribution-chart-bar {
    background-color: #eee;
    position: relative;
    line-height: 1.5em;
    height: 1.5em;
}

.distribution-chart-bar-fill {
    background-color: #00bcd4;
    height: 100%;
}

.distribution-chart-bar-fill.last {
    background-color: #8bc34a;
}

.distribution-chart-percent {
    margin: 0 0.5em;
    text-align: right;
    line-height: 1.5em;
}

.distribution-chart-bar-games {
    position: absolute;
    top: 0;
    margin: 0 0.2em;
}

#statisticspanel-buttons {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    gap: 0.1em;
}

.statisticspanel-button {
    border-radius: 5px;
    box-sizing: border-box;
    margin: 0 0.2em;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 3em;
    display: inline-flex;
    font-size: 1.2em;
    flex-direction: row;
    background-color: #ff6f00;
    color: #fff;
    padding: 0.2em 0.5em;
    flex: 1 1 0px;
}

.statisticspanel-button.hidden {
    display: none;
}

.statisticspanel-button:hover {
    cursor: pointer;
}

#statisticspanel-button-back {
    background-color: #737680;
}

#statisticspanel-button-play6-container {
    margin-top: 1em;
    display: flex;
}

#statisticspanel-button-play6-container.hidden {
    display: none;
}

#statisticspanel-button-play6 {
    background-color: #ec407a;
}

/*=============================================*/
#bottombuttonpanel {
    user-select: none;
    position: absolute;
    overflow: hidden;
    font-size: 0.75em;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    gap: 0.1em;
}

#bottombuttonpanel.hidden {
    display: none;
}

.bottombuttonpanel-button {
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 0 0.2em;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 3em;
    display: inline-flex;
    font-size: 1.2em;
    flex-direction: row;
    background-color: #ff6f00;
    color: #fff;
    padding: 0.2em 0.5em;
    flex: 1 1 0px;
    max-width: 40%;
}

.bottombuttonpanel-button.hidden {
    display: none;
}

.bottombuttonpanel-button:hover {
    cursor: pointer;
}

#bottombuttonpanel-button-back {
    background-color: #737680;
}

/*=============================================*/

#gameoverbar {
    user-select: none;
    position: absolute;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
}

#gameoverbar.hidden {
    display: none;
}

#gameoverbar-content {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0.5em;
    /*box-shadow: 0 0 1em 0.2em #555;*/
    padding: 0.5em 1.5em;
    box-sizing: border-box;
    position: relative;
}

.gameoverbar-button > .fas {
    font-size: 1.5em;
}

.gameoverbar-button {
    padding-top: 0.5em;
    color: #fff;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1em;
}

.gameoverbar-button:hover {
    cursor: pointer;
}

.gameoverbar-button.hidden {
    display: none;
}

/*=============================================*/

#tutorialpanel {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-direction: column;
    padding: 0.5em;
}

#tutorialpanel.hidden {
    display: none;
}

#tutorialpanel-text {
    font-size: 1em;
    font-weight: 500;
    color: #555;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

#tutorialpanel-button {
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 2em;
    display: flex;
    flex-direction: row;
    background-color: #ff6f00;
    color: #fff;
}

#tutorialpanel-button.hidden {
    display: none;
}

#tutorialpanel-button:hover {
    cursor: pointer;
}

/*=============================================*/

#apppanel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 19, 22, 1);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-direction: row;
}

#apppanel.hidden {
    display: none;
}

/*=============================================*/

#menupanel {
    background-color: #eee;
    user-select: none;
    position: absolute;
    overflow: hidden;
    color: #000;
    font-weight: normal;
    display: flex;
    flex-direction: column;
}

#menupanel.hidden {
    display: none;
}

#menupanel-header {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
}

#menupanel-gamename {
    font-size: 2.5em;
    font-weight: 800;
    color: #222;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 0.1em;
}

#menupanel-gamename span {
    flex-grow: 1;
    flex-shrink: 1;
}

#menupanel-content {
    /*flex-grow: 1;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#menupanel-playinapp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menupanel-playinapp.hidden {
    display: none;
}

#menupanel-playinapp > img {
    width: 80%;
}

#menupanel-playinapp-applabel {
    margin-top: 1em;
    margin-bottom: 0.5em;
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 1.25em;
}

#menupanel-playinapp-playbrowser {
    margin-top: 1em;
    margin-bottom: 0.5em;
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 1em;
    text-decoration: underline;
}

#menupanel-modes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menupanel-back-button {
    background-color: #737680;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 2.5em;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
}

.menupanel-back-button:hover {
    cursor: pointer;
}

#menupanel-modes.hidden {
    display: none;
}

.menupanel-mode-button {
    background-color: #ff6f00;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 2.5em;
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.menupanel-mode-button > .label {
    font-size: 1.25em;
    font-weight: bold;
}

.menupanel-mode-button > .icon {
    width: 1.5em;
    font-size: 1.25em;
    text-align: start;
}

.menupanel-mode-button:hover {
    cursor: pointer;
}

#menupanel-mode-help {
    margin-bottom: 0.75em;
    /*background-color: #ec407a;*/
}

#menupanel-mode-levelpacks {
    margin-bottom: 0.75em;
    background-color: #ec407a;
}

#menupanel-mode-daily {
    background-color: #039be5;
}

#menupanel-mode-application {
    margin-bottom: 0.75em;
    background-color: #616161;
}

#menupanel-next-word-time, #menupanel-daily-next-word-time {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 0.9em;
}

#menupanel-daily-next-word-time {
    margin-bottom: 0;
}

#menupanel-levelpacks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

#menupanel-levelpacks.hidden {
    display: none;
}

#menupanel-levelpacks-back {
    width: 94%;
}

#menupanel-levelpacks-back > .icon {
    width: 1.5em;
    font-size: 1.25em;
    text-align: start;
}

#menupanel-levelpacks-back > .label {
    flex-grow: 1;
    font-size: 1.25em;
    margin-right: 1.5em;
}

#menupanel-levelpacks-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.menupanel-levelpacks-button {
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 3em;
    width: 94%;
    display: inline-flex;
    flex-direction: row;
    color: #fff;
}

.menupanel-levelpacks-button:hover {
    cursor: pointer;
}

.menupanel-levelpacks-button > .icon {
    font-size: 1.25em;
    width: 1.5em;
    text-align: start;
}

.menupanel-levelpacks-button > .icon > .fas {
    width: 1.5em;
    text-align: start;
}

.menupanel-levelpacks-button > .result {
    /*width: 1.2em;*/
    text-align: end;
}

.menupanel-levelpacks-button > .label {
    flex-grow: 1;
    display: grid;
    /*grid-template-rows: 1fr 1fr;*/
    text-transform: uppercase;
    row-gap: 0.4em;
    justify-items: start;
    /*align-items: center;*/
}

.menupanel-levelpacks-button > .label > .label2 {
    font-size: 0.7em;
}

.menupanel-levelpacks-button > .counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-transform: uppercase;
    align-items: center;
    row-gap: 0.2em;
    /*min-width: 45%;*/
}

.menupanel-levelpacks-button > .counts > .label {
    font-size: 0.7em;
    text-align: right;
    margin-right: 1em;
}

.menupanel-levelpacks-button > .counts > .counts {
    text-align: right;
}

.menupanel-levelpacks-app-button {
    background-color: #616161;
    /*border: 0.1em solid #994200;*/
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 3em;
    width: 94%;
    display: inline-flex;
    flex-direction: row;
}

.menupanel-levelpacks-app-button:hover {
    cursor: pointer;
}

.menupanel-levelpacks-app-button > .icon {
    font-size: 1.25em;
    width: 1.5em;
    text-align: start;
}

.menupanel-levelpacks-app-button > .icon > .fas {
    width: 1.5em;
    text-align: start;
}

.menupanel-levelpacks-app-button > .label1 {
    font-size: 1.25em;
    text-align: center;
    flex-grow: 1;
}

.menupanel-levelpacks-app-button > .label2 {
    flex-grow: 1;
    text-align: start;
}

#menupanel-daily {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

#menupanel-daily.hidden {
    display: none;
}

#menupanel-daily-back {
    width: 94%;
}

#menupanel-daily-back > .icon {
    width: 1.5em;
    font-size: 1.25em;
    text-align: start;
}

#menupanel-daily-back > .label {
    flex-grow: 1;
    font-size: 1.25em;
    margin-right: 1.5em;
}

#menupanel-daily-buttons {
    text-align: center;
    width: 100%;
    margin-top: 0.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.menupanel-daily-button {
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 2.5em;
    width: 94%;
    display: inline-flex;
    flex-direction: row;
    color: #fff;
}

.menupanel-daily-button:hover {
    cursor: pointer;
}

.menupanel-daily-button > .icon {
    width: 1.5em;
    text-align: start;
    font-size: 1.25em;
}

.menupanel-daily-button > .icon > .fas {
    width: 1.5em;
    text-align: start;
}

.menupanel-daily-button > .result {
    /*width: 1.2em;*/
    text-align: end;
    font-size: 1.25em;
}

.menupanel-daily-button > .label {
    flex-grow: 1;
    text-align: start;
    font-size: 1.25em;
}

#menupanel-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*gap: 0.5em;*/
}

#menupanel-tutorial-button {
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 2em;
    display: flex;
    flex-direction: row;
    border: 0.15em solid #888;
    color: #888;
}

.menupanel-othergames-label {
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

.menupanel-othergames {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.menupanel-othergame-button {
    /*font-size: 0.8em;*/
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    /*padding-left: 0.5em;*/
    /*padding-right: 0.5em;*/
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    align-items: center;
    text-align: center;
    height: 5em;
    width: 80%;
    display: inline-flex;
    flex-direction: row;
    /*color: #fff;*/
    /*border: 0.1em solid #888;*/
    /*color: #888;*/
    /*background-color: #43a047;*/
    justify-content: center;
    /*font-size: 1.25em;*/
    border: 0.1em solid #888;
    flex: 0px 1 1;
}

.menupanel-othergame-button > img {
    max-width: 100%;
    max-height: 100%;
    animation: scaleanimation 2s;
    animation-iteration-count: infinite;
}

@keyframes scaleanimation {
    0% { scale: 0.9; }
    50% { scale: 1; }
    100% { scale: 0.9; }
}

.menupanel-othergame-button:hover {
    cursor: pointer;
}

.menupanel-othergame-button > .icon {
    width: 1.5em;
    /*font-size: 1.25em;*/
    text-align: start;
}

/*.menupanel-othergame-button > .icon > .fas {*/
/*    width: 1.5em;*/
/*    text-align: start;*/
/*}*/

.menupanel-othergame-button > .label {
    /*font-size: 1.25em;*/
}

#menupanel-tutorial-button:hover {
    cursor: pointer;
}

#menupanel-tutorial-button.hidden {
    display: none;
}

#menupanel-store {
    display: grid;
    grid-gap: 0.5em;
}

#menupanel-goal {
    text-align: center;
}

#menupanel-label {
    color: #888;
    font-weight: bold;
    font-size: 0.7em;
    position: absolute;
    right: 0.25em;
    top: 0.25em;
}



#bottomheader {
    position: absolute;
    bottom: 0;
}

#bottomheader.hidden {
    display: none;
}

#nextlevelbottom {
    width: 100%;
    text-align: center;
    text-decoration: none;
    line-height: 10vh;
    font-size: 9vh;
    /*color: #555555;*/
}

#nextlevelbottombutton {
    margin: 0 4vh;
}

#nextlevelbottom.hidden {
    display: none;
}

#end-screen {
    text-align: center;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}

#end-screen-text {
    padding: 2vh 2vw 0;
    text-align: center;
    font-size: 7vmin;
    font-family: Roboto, serif;
    font-weight: 500;
}

#end-screen-text2 {
    padding: 2vh 2vw 4vh;
    text-align: center;
    font-size: 5vmin;
    font-family: Roboto, serif;
    font-weight: 500;
}

#end-screen-image {
    height: 50%;
    width: 100%;
    text-align: center;
    padding: 2vh 0;
}

.description {
    font-weight: bold;
    font-size: 0.7em;
    color: white;
    display: inline-block;
    padding: .25em .4em;
    line-height: 1;
    vertical-align: baseline;
    border-radius: .25rem;
    /*background-color: #7E7872;*/
    background-color: #FF6600;
    margin: .1em;
}

/*.storelinkcontainer {*/
/*    height: 6vh;*/
/*    line-height: 5vh;*/
/*    border-radius: 1vh;*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    padding: 1vh;*/

/*    color: #ffffff;*/
/*    background-color: #FF6D00;*/
/*    border-color: #FF6D00;*/
/*}*/

#storebadgesgame {
    text-align: center;
}

#storebadgesgame.hidden {
    display: none;
}

#storelinkgame {
    width: 100%;
    text-align: center;
}

#storelinkgame.hidden {
    display: none;
}

.storelinkicon {
    height: 6vh;
}

.storelinktext {
    margin-left: 1vh;
    margin-right: 1vh;
    font-size: 6vmin;
    white-space: nowrap;
}

.storelink {
    text-decoration: none;

    height: 6vh;
    line-height: 5vh;
    border-radius: 1vh;
    display: inline-flex;
    align-items: center;
    padding: 1vh;

    color: #ffffff;
    background-color: #319c5b;
}

span.storelink:hover {
    cursor: pointer;
}

.badgeappstore {
    margin-right: 10px;
}

/*#next-level-container {*/
/*    height: 10vh;*/
/*    text-align: center;*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    width: 100%;*/
/*}*/

.score-sending-animation {
    display: inline-block;
    font-size: 2em;
}
.score-sending-animation:after {
    content: " ";
    display: block;
    width: 0.8em;
    height: 0.8em;
    margin: 0.1em;
    border-radius: 50%;
    border: 0.1em solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: score-sending-animation 2.0s linear infinite;
}
@keyframes score-sending-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading.hidden {
    display: none;
}

/*==================*/

#debugbar {
    user-select: none;
    position: absolute;
    bottom: 10px;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#debugbar-prev, #debugbar-next, #debugbar-clear {
    border-radius: 5px;
    border: 2px solid #888;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 1em;
    display: inline-flex;
    color: #000;
    padding: 0.1em 0.5em;
    margin: 0 0.5em;
}

#debugbar-clear {
    margin-left: 10em;
}

/*=======================*/

#appbar {
    background-color: rgba(238, 238, 238, 0.8);
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#appbar.hidden {
    display: none;
}

#appbar-content {
    background-color: #fff;
    box-shadow: 0 0 1em 0.2em #555;
    padding: 0.5em 0 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    box-sizing: border-box;
    position: relative;
    align-items: center;
}

.appbar-label {
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 1.25em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

.appbar-button {
    font-size: 1.25em;
    font-weight: bold;

    background-color: #616161;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 2em;
    min-height: 2em;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    width: 80%;
}

.appbar-button:hover {
    cursor: pointer;
}

/*=======================*/

#appbanner {
    user-select: none;
    -webkit-user-select: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #333;
}

#appbanner.hidden {
    display: none;
}

#appbanner-content {
    background-color: #eee;
    box-shadow: 0 0 1em 0.2em #555;
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    box-sizing: border-box;
    position: relative;
    align-items: center;
}

#appbanner-screenshot {
    overflow: hidden;
    position: relative;
}

.appbanner-screenshot-image {
    position: absolute;
}

.appbanner-screenshot-image.hidden {
    display: none;
}

#appbanner-features {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#appbanner-features div {
    text-align: center;
    /*background-color: #cbb3b3;*/
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    flex: 1 1 0px;
}

#appbanner-content .text {
    text-align: center;
    font-weight: 800;
}

#appbanner-desktop, #appbanner-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#appbanner-desktop.hidden, #appbanner-mobile.hidden {
    display: none;
}

#appbanner-desktop-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1em;
}

#appbanner-desktop-buttons .appbanner-button {
    flex: 1 1 0px;
}

.appbanner-button {
    background-color: #ff6f00;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-items: center;
    text-align: center;
    height: 2em;
    min-height: 2em;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;

    flex: 1 1 0px;
}

.appbanner-button:hover {
    cursor: pointer;
}

#appbanner-close {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0 0.5em;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #cccccc;
    border: 1px solid;
    color: #555;
    cursor: pointer;
}

#appbanner-close.disabled {
    color: #aaa;
    cursor: wait;
}

/*=============================================*/

#helppanel {
    background-color: #eee;
    position: absolute;
    user-select: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#helppanel-top {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0.2em 1em 0 1em;
}

#helppanel-label {
    margin-left: 2em;
    flex-grow: 1;
    text-align: center;
    font-weight: 800;
}

#helppanel-close {
    width: 2em;
    text-align: right;
}

#helppanel-close.hidden > i{
    display: none;
}

#helppanel-close:hover {
    cursor: pointer;
}

#helppanel-pages {
    flex-grow: 1;
}

#helppanel-pages > div {
    margin: 0 0.3em;
    padding: 0.4em;
}

#helppanel-pages > div.hidden {
    display: none;
}

#helppanel.hidden {
    display: none;
}

.helppanel-row {
    margin: 0.3em 0;
    font-size: 0.8em;
}

.helppanel-row-image {
    padding: 0 1em;
}

.helppanel-row-image > img {
    width: 100%;
}

.helppanel-buttons {
    margin: 0.4em 0;
}

.helppanel-button {
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    /*padding-left: 2em;*/
    /*padding-right: 2em;*/
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 2em;
    display: inline-flex;
    flex-direction: row;
    background-color: #ff6f00;
    color: #fff;
    width: 40%;
}

.helppanel-button:hover {
    cursor: pointer;
}

.helppanel-pagination {
    margin-top: 0.5em;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#helppanel-pagination-prev {
    grid-column: 1;
}

#helppanel-pagination-page {
    grid-column: 2;
    font-size: 1.2em;
    text-align: center;
}

#helppanel-pagination-next {
    grid-column: 3;
}
