/* MOBILE ORIENTATION */
@media screen and (orientation:portrait) {
    #gameplayHeaderText{
        margin-top:10vh;
    }
    .keyboard-row{
        display:flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-top:2px;
        margin-bottom:2.5px;
    }

    .keyboard-letter{
        background:#0c0c0c;
        text-align:center;
        text-transform: uppercase;
        border:1px #ffffff solid;
        color:white;
        font-size:1.05em;
        height:calc(11px + 1.05em);
        width:calc(13px + 0.95em);
        max-width:calc(4px + 5.5vw);
        padding:1px;
        border-radius:6px;
        margin:4px;
        font-weight: 900;
        line-height:1.6;
    }

    .gameplay-character{
        border:1px rgb(36, 36, 56) solid;
        width:calc(0.65vh + 0.45em);
        height:calc(0.65vh + 0.45em);
        font-size:1.125em;
        font-weight: bolder;
        padding:calc(0.225vw + 0.5em);
        margin:calc(0.1vw + 4px);
        border-radius: 6px;
    }
    .gameplay-character-prefill{
        border:1px rgb(116, 116, 146) solid!important;
        box-shadow: 0 0 6px #fff4;
    }
}


/* DESKTOP ORIENTATION */
@media screen and (orientation:landscape) {
    #gameplayHeaderText{
        margin-top:4vh;
    }
    .keyboard-row{
        display:flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-top:2px;
        margin-bottom:2.5px;
    }

    .keyboard-letter{
        background:#0c0c0c;
        text-align:center;
        text-transform: uppercase;
        border:1px #ffffff solid;
        color:white;
        font-size:1.05em;
        height:calc(12px + 1.05em);
        width:calc(12px + 1em);
        max-width:calc(4px + 5.5vw);
        padding:1px;
        border-radius:8px;
        margin:2px;
        font-weight: 900;
        line-height:1.8;
    }
    .gameplay-character{
        border:2px rgb(36, 36, 56) solid;
        width:calc(0.85vh + 0.435em);
        height:calc(0.85vh + 0.435em);
        font-size:1.3em;
        font-weight: bolder;
        padding:calc(0.425vw + 0.275em);
        margin:calc(0.225vw + 2px);
        border-radius: 10px;
    }
    .gameplay-character-prefill{
        border:2px rgb(116, 116, 146) solid!important;
        box-shadow: 0 0 12px #fff8;
    }
}

#gameplayTitle{
    font-size:1.2em;
}

#gameplayTitleBlock{
    position: absolute;
    top:1.35vh;
    right:1.35vw;
    z-index: 11;
    max-width:10em;
    text-align: right;
    line-height:0.95;
}
#gameplayTitleDesc{ font-weight:bold; }

#gameplayHints{
    position: absolute;
    left:1.5vw;
    top:1.5vh;
    z-index: 11;
    max-width:calc(100% - 16.5em);
    line-height:1.65;
}

#gameplayTileBoard{
    width:clamp(16em, 84.5vw, 960px);
    margin:auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
#gameplayTileBoardContent{
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: row;
    justify-content: center;
}

#gameplayContent{
    background: radial-gradient(#1d091f 15%, #030512 55%);
    height:calc(100vh - 7.75em);
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top:2em;
}

#gameplayHeaderText{
    padding-top:calc(1vh + 16px);
    font-size:1.65em;
    transition: 450ms linear;
    color:white;
    font-weight: bold;
    text-align: center;
}
#gameplayHeaderSubtext{
    font-size:1em;
    transition: 450ms linear;
    color:white;
    margin-bottom:6px;
    text-align: center;
}

.hint-numberical{
    background:#ccc;
    color:black;
    padding:4px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: -1px;
    border-radius:4px;
    border:1px #777 solid;
    min-width:2.25em;
}

.hint-text{
    font-size:0.95em;
    padding-left:8px;
    text-wrap: pretty;
}

.hint-attrib{
    font-size:0.7em;
    padding-left:8px;
    text-wrap: pretty;
    color:#99a;
    user-select: text;
}

.hint-image{
    user-select: none;
    border-radius:6px;
    border:1px #fff6 solid;
    max-height:calc(60px + 5vh);
    margin-top:4px;
}

.gameplay-character{
    display:flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    background-color: rgb(50,50,50);
    background: linear-gradient(rgb(50,50,50) 0%, rgb(20,20,20) 100%);
    text-transform: uppercase;
    user-select: none;
    box-shadow:0 0 10px #0000;
    transition:650ms;
}

.gameplay-character-prefill{
    background-color: rgb(245, 245, 245)!important;
    background: linear-gradient(rgb(240, 240, 240) 0%, rgb(170, 170, 170) 100%)!important;
    color:black!important;
    font-style: italic;
}

.gameplay-hint{
    padding:2px;
    margin-bottom:calc(2px + 0.15vh);
    margin-top:calc(2px + 0.15vh);
}

.gameplay-word{
    display:flex;
    flex-direction: row;
}

.gameplay-character-filled{ box-shadow:0 0 12px #fff8!important; border:2px rgb(106 106 126) solid; }
.gameplay-character-space{ opacity:0; }

/* Keyboard */
#gamemodeContainerKeyboardShell{
    max-height:40%;
    width:100%;
    display:flex;
    transition: 1.2s;
    position:absolute;
    bottom:-45vh;
    z-index:50;
}
#gamemodeContainerKeyboard{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    margin: auto;
    user-select: none;
    width:clamp(400px,100%,980px);
    padding:0px;
}

.keyboard-letter:hover{ background:#dadada;color:black; }
.keyboard-row-4 { width:100%; display:flex; justify-content:center!important; }
#keyboardKey_E { width:calc(204px + 10em);max-width:calc(200px + 10.1em)!important}
#keyboardKey_B { width:calc(34px + 2em);max-width:calc(34px + 2em);  }