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 {
}

/*=============================================*/
#root-container {
}

#top-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#top-ad-container-app {
    background-color: #C8E6C9;
    color: #1B5E20;
    border: 2px solid;
    border-radius: 20px;
    box-sizing: border-box;
    padding-left: 1em;
    padding-right: 1em;
    align-items: center;
    text-align: center;
    height: min(48px, 2rem);
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#game-container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

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

.spacer {
    height: 1px;
    width: 100%;
    background: #bbb;
    margin: 0.5em 0.5em;
}

#topheader {
    -webkit-user-select: none;
       -moz-user-select: none;
            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;
}

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

#upperheader {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    position: absolute;
    text-align: center;
    font-weight: 800;
    /*color: #888;*/
    display: grid;
    /*height: 100%;*/
    grid-template-rows: 1fr 1fr;
    /*padding-top: 0.1em;*/
    grid-template-columns: auto 1fr auto;
    /*row-gap: 0.25em;*/
    color: #333;
}

#upperheader.hidden {
    display: none;
}

#upperheader .label1 {
    text-align: center;
    font-size: 0.5em;
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    text-transform: uppercase;
    padding: 0 0.25em;
    /*width: 3em;*/
}

#upperheader .label2 {
    text-align: center;
    font-size: 0.8em;
    grid-row: 2;
    grid-column: 1;
    align-self: start;
}

#upperheader .label3 {
    text-align: center;
    font-size: 0.5em;
    grid-row: 1;
    grid-column: 3;
    align-self: end;
    text-transform: uppercase;
    padding: 0 0.25em;
}

#upperheader .label4 {
    text-align: center;
    font-size: 0.8em;
    grid-row: 2;
    grid-column: 3;
    align-self: start;
}

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

#tipspanel {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    position: absolute;
    font-weight: 500;
    /*display: flex;*/
    /*flex-direction: row;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    color: #222;
    box-sizing: border-box;
    display: flex;
    /* align-items: center; */
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

#tipspanel.hidden {
    display: none;
}

#tipspanel-content {
    position: relative;
    pointer-events: all;

    /*background-color: #FFE0B2;*/
    background-color: #FFF9C4;
    border: 0.05em solid #222;
    border-radius: 0.5em;
    box-shadow: 0.1em 0.1em 0.4em 0.2em rgba(0, 0, 0, 0.6), 0.0em 0.0em 1em 1em rgba(255, 255, 255, 0.5);
    text-align: center;
    /*width: 100%;*/
    /*height: 100%;*/

    padding: 0.7em 0.4em;
    font-size: 0.8em;
}

#tipspanel-close {
    position: absolute;
    right: -0.5em;
    top: -0.5em;
    font-size: 1em;
    padding: 0.5em;
    /*color: #F4511E;*/
    /*background-color: ;*/
    /*border-radius: 1em;*/
}

#tipspanel-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#tipspanel-text .emptyline {
    display: block;
    height: 0.9em;
}

#tipspanel-text .word {
    background-color: #888888;
    color: #fff;
    border-radius: 0.4em;
    padding: 0 0.3em;
    white-space: pre;
}

#tipspanel-text .distance {
    background-color: #0277BD;
    color: #fff;
    border-radius: 0.4em;
    padding: 0 0.3em;
    line-height: 1.2em;
    margin: 0.1em 0;
    white-space: pre;
    display: inline-block;
}

#tipspanel-text .alpha {
    background-color: #F4511E;
    color: #fff;
    border-radius: 0.4em;
    padding: 0 0.3em;
}

/*#tipspanel-content .word .letter {*/
/*    background-color: #888888;*/
/*    color: #fff;*/
/*    padding: 0.1em;*/
/*}*/

/*=============================================*/
#errormessage {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    position: absolute;
    /*font-weight: 500;*/
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#errormessage.hidden {
    display: none;
}

#errormessage-content {
    /*background-color: #FFE0B2;*/
    background-color: #4d0b0b;
    border-radius: 0.5em;
    box-shadow: 0.1em 0.1em 0.4em 0.2em rgba(255, 255, 255, 0.6), 0.0em 0.0em 2em 2em rgba(255, 255, 255, 0.5);
    text-align: center;
    /*width: 100%;*/
    /*height: 100%;*/

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 0.5em 2em;
    /*font-size: 1.25em;*/
    /*font-size: 0.8em;*/
}

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


#statisticspanel {
    -webkit-user-select: none;
       -moz-user-select: none;
            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-scorecount {
    text-align: center;
    font-weight: bold;
    color: #FFA000;
}

#statisticspanel-scorecount > i {
    padding: 0.25em 0.1em;
    font-size: 2em;
}

#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-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;
}


/*=============================================*/
#bottombuttonpanel {
    -webkit-user-select: none;
       -moz-user-select: none;
            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 {
    -webkit-user-select: none;
       -moz-user-select: none;
            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;
    -webkit-user-select: none;
       -moz-user-select: none;
            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;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    flex-direction: row;
}

#apppanel.hidden {
    display: none;
}

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

#menupanel {
    background-color: #eee;
    -webkit-user-select: none;
       -moz-user-select: none;
            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-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: 2em;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

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

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

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

.menupanel-mode-button.hidden {
    display: none;
}

.menupanel-mode-button-store {
    background-color: #ec407a;
}

.menupanel-mode-button-othergame {
    background-color: #000300;
}

.menupanel-mode-button-back {
    background-color: #78909c;
}

#menupanel-mode-help {
    /*background-color: #ec407a;*/
    background-color: #43a047;
}

#menupanel-mode-levelpacks {
    /*background-color: #ec407a;*/
    background-color: #43a047;
}

.menupanel-section {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menupanel-section-label1 {
    text-align: center;
    padding-left: 0.5em;
    padding-right: 0.5em;
    color: #555;
    font-weight: bold;
    font-size: 0.8em;
    padding-bottom: 0.125rem;
}

.menupanel-section-label2 {
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 0.75em;
    padding: 0.25rem 0;
}

.menupanel-row-two-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    width: 100%;
    box-sizing: border-box;
}

#menupanel-levels-help-row {
    width: 95%;
}

.menupanel-mode-button-half {
    flex: 1;
    width: auto;
}


#menupanel-mode-unlimited {
    /*margin-bottom: 2em;*/
    background-color: #039be5;
}

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

#menupanel-mode-daily.finished {
    background-color: #388E3C;
}

#menupanel-mode-daily.lost {
    background-color: #ec407a;
}

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

#menupanel-next-word-time, #menupanel-daily-next-word-time {
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 0.75em;
    padding: 0.25rem 0;
}

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

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


#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;
}

/*=============================================*/
/* Custom Word Panel */

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

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

.menupanel-custom-label {
    text-align: center;
    color: #888;
    font-weight: bold;
    font-size: 0.75em;
    padding: 0.25rem 0;
}

.menupanel-custom-input-container {
    width: 95%;
    margin-bottom: 0.5em;
}

#menupanel-custom-input, #menupanel-custom-link {
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    padding: 0.5em;
    border: 2px solid #888;
    border-radius: 5px;
    box-sizing: border-box;
    text-transform: uppercase;
    font-family: inherit;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menupanel-custom-input:focus {
    border-color: #039be5;
    outline: none;
}

#menupanel-custom-link {
    font-size: 0.7em;
    word-break: break-all;
    text-transform: none;
    background-color: #f5f5f5;
    -moz-user-select: all;
         user-select: all;
    -webkit-user-select: all;
    cursor: text;
}

#menupanel-custom-error {
    color: #c62828;
    font-weight: bold;
    text-align: center;
    font-size: 0.75em;
    padding: 0.25em 0;
    min-height: 1.2em;
}

#menupanel-custom-create-wrapper, #menupanel-custom-link-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menupanel-custom-create-wrapper.hidden, #menupanel-custom-link-wrapper.hidden {
    display: none;
}

#menupanel-custom-create {
    background-color: #039be5;
}

.menupanel-custom-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    width: 95%;
    justify-content: center;
}

.menupanel-custom-buttons .menupanel-mode-button {
    flex: 1;
    min-width: 0;
}

.menupanel-custom-buttons .menupanel-mode-button.hidden {
    display: none;
}

#menupanel-custom-copy {
    background-color: #4caf50;
}

#menupanel-custom-share {
    background-color: #1976d2;
}

#menupanel-custom-copied {
    color: #4caf50;
    font-weight: bold;
    font-size: 0.75em;
    padding: 0.25em 0;
    min-height: 1.2em;
}

/*=============================================*/
/* Custom Word Info Panel */

#menupanel-custominfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1em 0;
}

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

#menupanel-custominfo-continue-section.hidden,
#menupanel-custominfo-play-section.hidden {
    display: none;
}

.menupanel-custominfo-icon {
    font-size: 2em;
    color: #666;
}

.menupanel-custominfo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

.menupanel-custominfo-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #222;
    text-align: center;
}

.menupanel-custominfo-code {
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.menupanel-custominfo-subtitle {
    margin-bottom: 1em;
    max-width: 90%;
}

#menupanel-custominfo-play {
    background-color: #039be5;
}

#menupanel-mode-custom {
    background-color: #ff6f00;
}

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

#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-tutorial-button:hover {
    cursor: pointer;
}

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

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

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

#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 {
    -webkit-user-select: none;
       -moz-user-select: none;
            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);
    -webkit-user-select: none;
       -moz-user-select: none;
            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 {
    -moz-user-select: none;
         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;
    -webkit-user-select: none;
       -moz-user-select: none;
            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-separator {
    height: 0.1em;
    /*width: 90%;*/
    background-color: #888;
    margin: 0.5em auto;
}

.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;
}
