.html {
    font-family: sans-serif;
}

body {
    font-family: sans-serif;
    margin: 0px;
}

#title {
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: min(35pt, 8vw);
    margin-bottom: 1em;
    margin-top: 1em;
}

#grid_wrapper {
    position: relative;
    font-size: min(30pt, 10vw);
    text-align: center;
    width: 8.5em;
    transform: translateX(-50%);
    left: 50%;
}

.grid_row {


}

.grid_cell {
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    display: inline-block;
    background: #fff;
    color: #000;;
    border: 0.05em;
    border-color: #bbb;
    border-style: solid;
    margin: 0.1em;
    font-size: min(30pt, 10vw);
    text-align: center;
    font-family: sans-serif;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.grid_cell_sol {
    background: #55a;
    color: #fff;
    border-radius: 0.7em;

}

.grid_cell_selected {
    border-color: #55d;
    animation: blinkingBorder 0.5s infinite;
}

@keyframes blinkingBorder {
    0%{border-color: #ddd; }
    59%{border-color: #ddd; }
    60%{border-color: #555; }
    99%{border-color: #555; }
}

.grid_cell_hint {
    color: #ddd;
    background: #fff;
}

.grid_cell_miss {
    color: #000;
    background: #ddd;
}

.grid_cell_yellow {
    color: #000;;
    background: #dddd55;
}

.grid_cell_green {
    color: #000;;
    background: #6aaa63;
}

#clear_button {
    display: inline-block;
    width: 20%;
    font-size: 5vw;
    text-align: center;
    font-family: sans-serif;
    background: #dbb;;
    margin-left: 5%;
    border-radius: 0.5em;
    cursor: pointer;
}
#clear_button:hover {
    background: #d99;
}

#analyze_button {
    display: inline-block;
    width: 2em;
    height: 6.8em;
    line-height: 6.8em;
    text-align: center;
    font-family: sans-serif;
    background: #bbd;
    border-radius: 0.5em;
    cursor: pointer;
    margin: 0.2em;
    vertical-align: top;
    user-select: none;
    -webkit-user-select: none;
}

#analyze_button:hover {
    background: #99d;
}

#progressbar {

    display: none;
    position: fixed;
    left: 5%;
    top: 45%;
    height: 0.75em;
    width: 90%;
    background: #eef;
    border: 1px;
    border-style: solid;
    border-color: #000;
}

#progressbar_inner {
    height: 100%;
    width: 50%;
    background: #55d;
}

.comments {
    margin-left: 0.4em;
    min-height: 1.2em;
    font-family: sans-serif;
    font-size: max(8pt, 0.2vw);
    text-align: left;
}

.comment_scores {
    display: inline-block;
    text-align: left;
}

.comment_possible {
    right: 0%;
    display: inline-block;
}

#summary {
    width: 100%;
    text-align: center;
    font-family: sans-serif;
    font-size: 3vw;

    min-height: 1.2em;
}

#luck {
    width: 100%;
    text-align: center;
    font-family: sans-serif;
    font-size: 2vw;
    min-height: 1.2em;
    margin-bottom: 1em;
}

#help
{
    display: none;
    position: absolute;
    left: 10%;
    width: 80%;
    top: 15%;
    background: #222e;
    color: #ddd;
    padding: 10px;
    text-align: center;
    z-index: 4;
}

#helpgotit_button
{
    font-size: 20px;
}

#copyright
{
    width: 100%;
    text-align: center;
    color: #999;
    position: absolute;
    font-size: 10px;
}

.icon
{
    cursor: hand;
    font-size: 20px;
    padding: 6px;
    transform: translateY(6px);
    width: 1em;
}

.icon:hover
{
    width: 1em;
    height: 1em;
    background-color: #fdf;
    border-radius: 20%;
}

#topright
{
    position: absolute;
    padding: 0px;
    right: 0px;
    top: 0px;
}

#keyboard_wrapper
{
    text-align: center;
    font-size: min(3.5vw, 16pt);
    vertical-align: top;
}

#keyboard
{
    display: inline-block;
/*
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
*/
}

.keyboard_row {

}

.keyboard_key {
    display: inline-block;
    width: 2em;
    height: 2em;
    line-height: 2em;
    background: #ccc;
    margin: 0.2em;
    text-align: center;
    border-radius: 20%;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.keyboard_key:hover {
    background: #ccf;
}

#possibles_window
{
    display: none;
    position: fixed;
    left: 10%;
    top: 10%;
    width: 80%;
    height:80%;
    background: #eef;
    padding: 1em;
    border: 1px;
    border-style: solid;
    border-color: #000;

}

#gamewon {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 10%;
    background: #eeeeff;
    padding: 0.7em;
    border: 1px;
    border-style: solid;
    border-color: #000;
    text-align: center;
    font-size: 5vw;
}

#gamewon_title {
    font-size: 4vw;
    margin-bottom: 0.5em;
}

#possibles {
    font-family: monospace;
    overflow-y: scroll;
    height: 90%;
}

.possible_link {
    float: right;
    cursor: pointer;
    color: #008;
    margin-left: 3em;
}

#possibles_close {
    margin-top: 1em;
    cursor: pointer;
    background: #aaf;
    border-radius: 1em;
    height: 2em;
    text-align: center;
    line-height: 2em;
}

#possibles_close:hover {
    background: #ccf;
}

#gamewon_close {
    font-size: 3vw;
    cursor: pointer;
    background: #aaf;
    border-radius: 1em;
    height: 2em;
    text-align: center;
    line-height: 2em;
}

#gamewon_close:hover {
    background: #ccf;
}

.guesses_link {
    cursor: pointer;
    color: #008;
}

.guess {
    display: inline-block;
    width: 20ch;
}

.guess_current {
    background: #dddd00;
    border-radius: 0.5ch;
}

.guess_idx {
    display: inline-block;
    width: 6ch;
    text-align: right;
    margin-right: 1ch;
}

.guess_word {
    display: inline-block;
    width: 5ch;
    text-align: right;
}

.guess_score {
    display: inline-block;
    width: 7ch;;
    text-align: left;
    margin-left: 1ch;
}
