@font-face {
    font-family: "Nanum Gothic";
    src: url(/static/NanumGothic-Regular.ttf);
}

@font-face {
    font-family: "Nanum Gothic";
    src: url(/static/NanumGothic-ExtraBold.ttf);
    font-weight: bold;
}

html {
    font-family: "Nanum Gothic", sans;
}

html:Has(#choose-name),
#choose-name {
    height: 100%;
    width: 100%;
    background-color: black;
}

#choose-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#choose-name #title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#choose-name #title h1 {
    margin-bottom: 0em;
}

#choose-name #title #creators,
#choose-name #title #creators a {
    color: grey;
    margin-top: 0.25em;
}

#choose-name #explanation p,
#choose-name h1,
#choose-name h2 {
    color: white;
}

html:Has(#choose-name) h1 {
    font-size: 7em;
}

#choose-name form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: center;

    align-items: center;
    gap: 1.0em;
}

#choose-name input {
    font-size: 2em;
    border: 1px solid white;
    color: white;
    padding: 0.5em;
    background-color: #222;
    font-weight: bold;
    text-transform: uppercase;
}

#choose-name button {
    font-size: 2em;
    padding: 0.5em;

    border: 1px solid #222;
    color: #222;
    background-color: white;
    font-weight: bold;
    text-transform: uppercase;
}

#choose-name button:hover:enabled {
    font-size: 2em;
    padding: 0.5em;

    border: 1px solid white;
    color: white;
    background-color: #222;
    cursor:pointer;
}

#explanation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#explanation #changes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#explanation #changes .change {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #222;
    background-color: #111;;
    padding: 1em;
    margin: 1em;
}

#explanation #changes .change:hover {
    background-color: #444;
}

#hud {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: grid;
    grid-template-rows: min-content auto min-content auto min-content;
    padding: 0px;
    margin: 0px;
    justify-content: center;
}

#hud-scores {
    display: flex;
    align-items: center;
    justify-self: center;
    flex-wrap: wrap;
}

#hud-scores .player.guess-right {
    color: black;
    background-color:rgba(0, 120, 0, 0.9);
}

#hud-scores .player.guess-wrong {
    background-color:rgba(120, 0, 0, 0.9);
}

#hud-scores div.player {
    display: flex;
    align-items: center;
    gap: 0.3em;
    padding-left: 0.25em;
    padding-right: 0.25em;

    border-radius: 12px;
    margin: 10px;
    border: 3px solid #000;

    background-color:rgba(0, 0, 0, 0.75);
}

#hud-scores .player span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

#hud-scores .hud-score {
    border-left: 3px solid #000;
    padding: 5px;

    /* Compensate for the border left to keep number vertically center */
    height: 100%;
    display: flex;
    align-items: center;
}


#hud-announce {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hud-announce #announce-title {
    font-size: 8em;
    text-shadow: 0px 6px 0px white;
    padding-bottom: 0.5em;
    font-weight: bold;
    text-transform: uppercase;
}

#hud-announce #announce-numbers {
    display: table;
    margin: 0 auto;
}

#hud-announce span.countdown {
    color: black;
    font-size: 20em;
    text-shadow: 0px 8px 0px white;
}

#hud-announce div.guess {
    display: table-row;
    color: black;
    font-size: 5em;
    text-shadow: 0px 4px 0px white;
    font-weight: bold;
}

#hud-announce .guess-player-name {
    display: table-cell;
    padding: 0 0.5em;
    text-align: right;
    text-transform: uppercase;
}

#hud-announce .guess-delay-secs {
    display: table-cell;
    padding: 0 0.5em;
    text-align: left;
    vertical-align: middle;
}

#hud-category {
    font-size: 96px;
    color: white;
    text-shadow: 0px 4px 0px black;
    padding: 10px;
    margin: 0px;
    justify-self: center;
}
