#gamemenu {
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.8em;
    text-align: center
}

#gamemenu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0.5px;
}

#gamemenu li {
    position: relative;
}

#gamemenu li>* {
    padding: 0px;
    margin: 0;
    display: block;
    color: #333;
    font-weight: normal;
    cursor: pointer;
}

#gamemenu .actions-group-btns {
    outline: none;
}

.drop-menu-btn {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: normal;
    font-size: 14px;
    line-height: 36px;
}

#gamemenu :disabled,
#gamemenu :disabled:focus,
#gamemenu :disabled:hover {
    color: rgb(192, 196, 204);
    cursor: not-allowed;
    background-image: none;
    background-color: rgb(255, 255, 255);
    border-color: rgb(235, 238, 245);
}

#gamemenu :disabled {
    color: rgba(0, 0, 0, 0.3);
    background-color: #d5d5d5;
    border-color: rgb(235, 238, 245);
}

#gamemenu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: white;
    z-index: 50;
}

#gamemenu .el-dropdown-menu {
    padding: 10px 0;
    margin: 5px 0;
    margin-top: 12px;
    transform-origin: center top;
    z-index: 2007;
}

#gamemenu ul ul.left {
    left: inherit;
    right: 0;
}

#gamemenu li li {
    white-space: nowrap;
    text-align: left;
    list-style: none;
    line-height: 36px;
    padding: 0 20px;
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: 0;
}

#gamemenu li li:hover {
    background-color: #EBEBEB;
    cursor: pointer;
}

#gamemenu ul ul ul {
    top: 0;
    left: 100%;
}

#gamemenu ul ul ul.left {
    left: inherit;
    right: 100%;
}

#gamemenu button {
    font-weight: normal;
    color: #333;
    background: #d5d5d5;
    margin-bottom: 10px;
}

#gamemenu button:hover {
    font-weight: normal;
    background: #ffffff;
}

#gamemenu button:not(.focus-within)>ul {
    display: none;
}

#gamemenu button.focus-within>ul {
    display: block;
}

#gamemenu .tick {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    margin: initial;
    font: inherit;
}

#gamemenu .tick::before {
    content: "\2713";
}

#gamemenu .tick:not(:checked) {
    color: transparent;
}

#statusbar {
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 40px;
    line-height: 2;
    margin: 10px;
}

#dlgdimmer {
    width: 100%;
    height: 100%;
    background: #000000;
    position: fixed;
    opacity: 0.5;
    left: 0;
    top: 0;
    z-index: 2019;
}

#dlgform {
    width: 50vw;
    opacity: 1;
    background: #ffffff;
    color: #000000;
    position: absolute;
    border: 2px solid black;
    border-radius: 10px;
    padding: 20px;
    top: 60px;
    left: 25vw;
    line-height: 2;
    z-index: 9999;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 12px 0px;
}

#dlgform h2 {
    margin-top: 0px;
    margin-bottom: 10px;
}

#dlgform input[type="button" i] {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #DCDFE6;
    font-weight: normal;
    color: #333;
    background: #d5d5d5;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    -webkit-transition: .1s;
    transition: .1s;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 4px;
    border-radius: 20px;
    padding: 12px 23px;
    margin-right: 10px;
}

#dlgform input[type="button" i]:hover {
    font-weight: normal;
    background: #ffffff;
}

#dlgform input[type="button" i] {
    font-weight: normal;
    color: #333;
    background: #d5d5d5;
}

#dlgform a {
    margin-bottom: 20px;
    display: inline-block;
    color: #333;
}

#dlgform label:last-of-type a {
    margin-bottom: 20px;
}

#dlgform label input[type="text" i] {
    appearance: none;
    background-color: rgb(255, 255, 255);
    background-image: none;
    box-sizing: border-box;
    color: #333;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    width: 100%;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(220, 223, 230);
    border-image: initial;
    outline: none;
    padding: 0px 15px;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    margin-bottom: 10px;
}

#dlgform label:last-of-type input[type="text" i] {
    margin-bottom: 20px;
}

#dlgform label input[type="checkbox" i] {
    margin: 5px 10px 5px 5px;
}

#dlgform label:last-of-type input[type="checkbox" i] {
    margin-bottom: 20px;
}

#dlgform label select {
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    color: rgb(96, 98, 102);
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    width: 100%;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(220, 223, 230);
    outline: none;
    padding: 0px 15px;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    margin-bottom: 10px;
}

#dlgform label:last-of-type select {
    margin-bottom: 20px;
}

#resizehandle {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    cursor: se-resize;
}

#resizable {
    position: relative;
    margin: 0 auto;
    outline: -webkit-focus-ring-color auto 1px;
}

#puzzlecanvas {
    display: block;
    width: 100%;
    font-family: sans-serif;
}

#apology {
    padding: 0 1em 0 1em;
    margin: 1em;
    border: 2px solid red;
}

.number-key-btns {
    display: flex;
    justify-content: center;
    margin: 10px auto;
}

.number-key-btns button {
    font-weight: bold;
    color: #333;
    background: #d5d5d5;
}

.touch-tip {
    margin-top: 40px;
    margin-bottom: -20px;
}

@media screen and (min-width: 768px) {
    .number-key-btns {
        display: none;
    }
    .touch-tip {
        display: none;
    }
}

.apology-title {
    text-align: center;
}

.link-group-btns {
    margin-top: 50px;
    text-align: center;
}

.a-link {
    text-decoration: none;
    font-weight: normal;
}

@media print {

    #gamemenu,
    #resizehandle {
        display: none;
    }
}