html, body {
    height: 100%;
}

html {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

@media (prefers-color-scheme: dark) {
    /* from: https://dev.to/jamiepo/go-dark-mode-with-css-filter-2p6p */
    body {
        filter: invert(100%) hue-rotate(180deg);
        background: black;
    }
}

label {
    font-weight: bold;
}

textarea:focus, input:focus{
    border: 0;
    outline: 0;
    background: transparent;
    border-bottom: 1px solid grey;
    border-radius: 0;
}

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

.text-underline {
    text-decoration: underline;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.fw-bold {
    font-weight: bold;
}

h3.title {
    margin-bottom: .25em;
}

#userGuideLink {
    margin-top: .5em;
    margin-bottom: 0;
}

#userGuideLink:hover, #closeUserGuideLink:hover {
    cursor: pointer;
}

#userGuide {
    margin-right: 1em;
    margin-left: 1em;
}

.game, .message {
    border: 1px solid black;
    border-radius: 4px;
    padding: 1em;
    margin-bottom: .5em;
}

.game.selected {
    border: 2px solid green;
}

@media only screen and (max-width: 600px) {
    #mobileNewline {
        display: block;
        margin: .5em;
    }

    .game button {
        display: block;
        cursor: pointer;
    }
}

.game h3 {
    font-style: italic;
    
    margin-top: 0;
    margin-bottom: .5em;
}

.game input {
    width: 50%;

    font-size: inherit;

    border: none;
    border-bottom: 1px solid black;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.footer {
    margin-top: auto;
    color: black;
    text-align: center;
    padding-top: 1em;
    border-top: 1px solid #ccc;
}

.game button.player, #playerList > button {
    margin-right: 5px;
}

button.player.active {
    background: green;
    color: white;
}

#taskNameInput {
    width: 100%;

    border: none;
    border-bottom: 1px solid black;

    outline: 0;
    background: transparent;
    border-bottom: 1px solid grey;
    border-radius: 0;

    margin-bottom: 1em;

    font-size: inherit;
}

button {
    background: white;
    border: 1px solid black;
    border-radius: 4px;
    padding: .75em;
}

button:hover {
    cursor: pointer;

    /* https://stackoverflow.com/questions/5670879/css-html-create-a-glowing-border-around-an-input-field */
    outline: none;
    border-color: #9ecaed;
    box-shadow: 0 0 10px #9ecaed;
}