body {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: -webkit-fill-available;
    max-width: 600px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    padding: 10px;
    border-bottom: 1px solid rgb(224, 224, 224);
}

.header>div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .title {
    flex: 1;
    cursor: pointer;
}

#info {
    color: black;
    cursor: pointer;
}

#settings {
    color: black;
    cursor: pointer;
}

.board_container {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 5px;
    padding: 10px;
    box-sizing: border-box;
    max-width: 400px;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
}

.board .row>div {
    width: 60px;
    height: 60px;
    border: 2px solid rgb(224, 224, 224);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
}

@media only screen and (max-height: 700px) {
    .board .row>div {
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-height: 600px) {
    .board .row>div {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-height: 550px) {
    .board .row>div {
        width: 20px;
        height: 20px;
    }
}

.board .row .filled {
    border: 2px solid #747474;
}

.board .row .placed {
    background-color: #006a44;
    border-color: #006a44;
    color: white;
}

.board .row .contains {
    background-color: #fdb913;
    border-color: #fdb913;
    color: white;
}

.board .row .missing {
    background-color: #c1272d;
    border-color: #c1272d;
    color: white;
}

div.hg-button.placed {
    background-color: #006a44;
    color: white;
}

div.hg-button.contains {
    background-color: #fdb913;
    color: white;
}

div.hg-button.missing {
    background-color: #c1272d;
    color: white;
}

.hg-theme-default {
    background-color: white;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    padding: 5px;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%
}

.hg-theme-default .hg-button span {
    pointer-events: none
}

.hg-theme-default button.hg-button {
    border-width: 0;
    font-size: inherit;
    outline: 0
}

.hg-theme-default .hg-button {
    display: inline-block;
    flex-grow: 1
}

.hg-theme-default .hg-row {
    display: flex
}

.hg-theme-default .hg-row:not(:last-child) {
    margin-bottom: 10px
}

.hg-theme-default .hg-row .hg-button:not(:last-child) {
    margin-right: 10px;
}

.hg-theme-default .hg-row .hg-button-container {
    margin-right: 5px
}

.hg-theme-default .hg-row>div:last-child {
    margin-right: 0
}

.hg-theme-default .hg-row .hg-button-container {
    display: flex
}

.hg-theme-default .hg-button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    align-items: center;
    background: rgb(230 230 230);
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    height: 50px;
    justify-content: center;
    padding: 5px;
    font-size: 12px;
}

.hg-theme-default .hg-button.hg-standardBtn {
    width: 20px
}

.hg-theme-default .hg-button.hg-activeButton {
    background: #efefef
}

.hg-theme-default.hg-layout-numeric .hg-button {
    align-items: center;
    display: flex;
    height: 60px;
    justify-content: center;
    width: 33.3%
}

.hg-theme-default .hg-button.hg-button-numpadadd,
.hg-theme-default .hg-button.hg-button-numpadenter {
    height: 85px
}

.hg-theme-default .hg-button.hg-button-numpad0 {
    width: 105px
}

.hg-theme-default .hg-button.hg-button-com {
    max-width: 85px
}

.hg-theme-default .hg-button.hg-standardBtn.hg-button-at {
    max-width: 45px
}

.hg-theme-default .hg-button.hg-selectedButton {
    background: rgba(5, 25, 70, .53);
    color: #fff
}

.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"] {
    max-width: 82px
}

.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"] {
    max-width: 60px
}

.hg-candidate-box {
    background: #ececec;
    border-bottom: 2px solid #b5b5b5;
    border-radius: 5px;
    display: inline-flex;
    margin-top: -10px;
    max-width: 272px;
    position: absolute;
    transform: translateY(-100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

ul.hg-candidate-box-list {
    display: flex;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0
}

li.hg-candidate-box-list-item {
    align-items: center;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px
}

li.hg-candidate-box-list-item:hover {
    background: rgba(0, 0, 0, .03);
    cursor: pointer
}

li.hg-candidate-box-list-item:active {
    background: rgba(0, 0, 0, .1)
}

.hg-candidate-box-prev:before {
    content: "◄"
}

.hg-candidate-box-next:before {
    content: "►"
}

.hg-candidate-box-next,
.hg-candidate-box-prev {
    align-items: center;
    background: #d0d0d0;
    color: #969696;
    cursor: pointer;
    display: flex;
    padding: 0 10px
}

.hg-candidate-box-next {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px
}

.hg-candidate-box-prev {
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px
}

.hg-candidate-box-btn-active {
    color: #444
}

.modal_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.toast {
    padding: 10px 20px;
    border-radius: 20px;
    background-color: grey;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.dialog {
    background-color: #808080bd;
}

.dialog .content {
    max-width: 400px;
    padding: 10px;
    border-radius: 20px;
    background-color: white;
    margin: 10px;
    max-height: 100vh;
    max-height: -webkit-fill-available;
    overflow-y: scroll;
}

.dialog h1 {
    font-size: 32px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.dialog button.closebtn {
    position: absolute;
    right: 5px;
    top: 5px;
    border: 1px solid #dbdbdb;
    background-color: #dbdbdb;
    padding: 5px;
    border-radius: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: black;
}

.dialog button.sharebtn {
    padding: 10px 40px;
    font-size: 24px;
    cursor: pointer;
    border: 0;
    color: white;
    font-weight: bold;
    background-color: #006a44;
}

.modal_container.hidden {
    display: none;
}

.rattle {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}