* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    background-color: #30363F;
    color: #FFFFFF;
    font-family: "Segoe UI", "Helvetica", "sans";
    font-size: 16px;
}

#container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: #20262F;
    box-shadow: 0px 0px 16px #0000007f;
    transition-duration: 0.3s;
    max-width: 100vw;
    padding: 36px 32px 48px 32px;
}

#gamearea {
    width: 100%;
    max-width: 100vw;
    white-space: nowrap;
    overflow: auto;
}

#message {
    margin: 0;
    padding: 0;
    font-size: 20px;
}

.row {
    height: 24px;
    display: block;
    margin: 0;
}

.tile {
    width: 24px;
    height: 24px;
    margin: 0;
    background-color: #000000;
    display: inline-block;
    transition-duration: 0.3s;
    color: #333333;
    text-align: center;
    user-select: none;
    -moz-user-select: none;
}

.tile:hover {
    background-color: #33363c;
}

.tile:active {
    background-color: #111316;
}

#gamemenu {
    display: none;
    width: 50vw;
    position: absolute;
    text-align: center;
    padding: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #20262f;
    box-shadow: 0px 0px 16px #0000007f;
}

#gamemenu > p {
    font-size: 24px;
    margin: 16px;
}

#gamemenu > h1 {
    margin: 0;
}

hr {
    background-color: #10161f;
    border: none;
    height: 1px;
}

.menu_custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.menu_standard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

#topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
}

.button {
    background-color: #000000;
    height: 24px;
    color: #FFFFFF;
    user-select: none;
    -moz-user-select: none;
    transition-duration: 0.3s;
}

input[type=number] {
    background-color: #000000;
    height: 24px;
    color: #FFFFFF;
    user-select: none;
    transition-duration: 0.3s;
    border: none;
    text-align: center;
    font-family: "Segoe UI", "Helvetica", "sans";
    font-size: 16px;
    width: 100%;
}

.button:hover, input[type=number]:hover {
    background-color: #33363c;
}

.button:active, input[type=number]:focus {
    background-color: #111316;
}

.startbutton {
    color: #00fc1c;
}

@media only screen and (max-width: 768px) {
    #container, #gamemenu {
        width: 100%;
    }
}

@media only screen and (max-height: 600px) {
    #container {
        position: static;
        min-height: 100vh;
        transform: none;
    }
}
