html, body, .layout {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto',arial,sans-serif;
}

div.content {
    margin-top: 1.5em;
    margin-bottom: 0.1em;
}

div.game-page-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.user-page-layout, div.update-profile-page-layout, div.home-page-layout {
    display: flex;
    flex-direction: column;
}

div.user-profile-layout, div.update-profile-layout, div.home-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div.update-profile-layout {
    align-items: center;
}

div.nav {
    line-height: 1.5em;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

div.nav-bar-left {
    position: fixed;
    left: 0;
}

div.nav-bar-right {
    position: fixed;
    right: 0;
    display: flex;
}

div.nav, .menu, .menu-content div:nth-child(even) {
    background-color: gainsboro;
}

.menu {
    user-select: none;
}

.menu-content div:nth-child(odd) {
    background-color: #e9e9e9e9;
}

div.menu-content {
    display: none;
    grid-template-columns: max-content;
    align-items: stretch;
    right: 0;
    position: absolute;
    z-index: 1;
    line-height: 2em;
}

div.menu-content div {
    padding: 1em;
}

span.menu-toggle {
    font-family: monospace;
    vertical-align: top;
}

.game-id {
    font-family: monospace;
}

table.user-profile, table.update-profile, table.games-table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}

table.user-profile tbody tr td, table.user-profile tbody tr th, table.games-table tbody tr td, table.games-table tbody tr th {
    padding: 4px;
    text-align: center;
    border: solid;
    border-width: 1px;
}

div.input-validation-box {
    display: flex;
    flex-direction: column;
}

span.validation-error {
    color: red;
}
