﻿/*body {
    width: 100%;
    height: 100%;
}*/

.l {
    box-shadow: inset 0px 0px 2px red;
}

.ptb10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.ptb20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.ptb30 {
    padding-top: 30px;
    padding-bottom: 30px;
}

.container {
    width: 100%;
    max-width: 1170px;
}

.active-clue {
    background-color: #ffb049 !important;
}

.yellowbg {
    /*//  background-color: yellow!important;*/
    background-color: #FFFF88 !important;
}

.whitebg {
    background-color: #fff !important;
}

.orangebg {
    background-color: orange !important;
}

.cell.black-box, .black-box {
    background-color: #273622 !important;
}

.bg-primary {
    margin-bottom: 15px;
    padding: .1rem 1rem;
}

.game-box {
    /*background: #f8f8f8;*/
    /*background: #87aEfa;*/
    background: transparent;
    padding: 15px;
    box-sizing: border-box;
}

#clues {
    width: 100%;
    margin-top: 0px;
}

    #clues h4 {
        font-size: 18px;
        padding: 4px;
        background: #ccddcc;
        border-radius: 4px;
    }

.listing {
    width: 100%;
    max-height: 250px;
    /*overflow: auto;*/
    overflow-y: scroll; /* Makes scrollbar always visible */
    overflow-x: hidden;
    position: relative;
    font-family: "Segoe UI", Arial, Verdana, Helvetica, sans-serif;
    font-size: 90%;
    margin-top: 0px;
    background: #fff;
    text-decoration-color: #beb8b8;
    /*border: 1px solid #d7d7d7;*/
    list-style-type: none;
    padding: 10px;
    margin-bottom: 30px;
}

    .listing li {
        width: 100%;
        display: block;
        position: relative;
        padding-left: 40px;
        padding-top: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #eee;
        cursor: default;
        font-size: 13px;
    }

        .listing li:last-child {
            border-bottom: none;
        }

        .listing li strong {
            width: 40px;
            display: block;
            text-align: center;
            position: absolute;
            left: 0px;
        }

.OneDigit {
    padding-left: 4%;
    float: left;
    position: relative;
    width: 95%;
}

.TwoDigit {
    padding-left: 2%;
    float: left;
    position: relative;
    width: 95%;
}

.ScrollText {
    margin-left: 5%;
    font-size: 100%;
    text-align: start;
}

#GeneralKeyboard {
/*    height: 25%;
    width: 100%;
    position: relative;
    bottom: 0;*/
    z-index: 10000;
    border-radius: 5px;
    background-color: #ffffff;
    font-family: "Segoe UI", Arial, Verdana, Helvetica, sans-serif;
    display: none;
    text-align: center;
    box-sizing: border-box;
    margin-left: 0;
    margin-top: 0; /*20px;*/
    padding: 10px;
}

.notMobile {
    display: none;
}

#GeneralKeyboard.isMobile {
    display: block !important;
}

.Characters {
    margin: 0px;
    width: 7%;
    height: 100%;
    color: #555555;
    background-color: #d1e6f5;
    border-radius: 5px;
    vertical-align: middle;
    text-align: center;
    font-family: "Segoe UI", Arial, Verdana, Helvetica, sans-serif;
    font-size: 1.2vw;
    font-weight: bold;
    display: inline-block;
    border: none;
    box-shadow: inset 0px 0px 6px #555;
}

.deleteButton {
    text-align: center;
    vertical-align: middle;
    margin: 1px;
    width: 9%;
    height: 100%;
    display: inline-block;
    color: #555555;
    background-color: #d1e6f5;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 1.2vw;
    font-weight: bold;
    border: none;
    box-shadow: inset 0px 0px 6px #555;
}

#Row0 {
    width: 100%;
    height: 17%;
    margin-top: 5px;
    left: 0;
    position: relative;
}

#Row1 {
    width: 100%;
    height: 22%;
    margin-top: 10px;
    left: 0;
    position: relative;
}

#Row2 {
    width: 100%;
    height: 22%;
    margin-top: 5px;
    left: 0%;
    position: relative;
}

#Row3 {
    width: 100%;
    height: 22%;
    margin-top: 5px;
    left: 0%;
    position: relative;
}

#board {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px !important;
    right: 0px !important;
    margin: 0px auto;
}

#board_window {
    height: 90%;
    width: 85%;
    min-height: 31em;
}

@media(max-width: 767px) {
    #board {
        position: absolute;
        /*width: auto!important;*/
        /*height: auto!important;*/
        right: 0px !important;
    }

    #board_window {
        width: 100%;
        height: 78%;
        min-height: 27em;
    }

    .col-md-7, .col-md-5 {
        height: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    #board_window {
        width: 100%;
        height: 90%;
    }
}

/*@media (max-width: 990px) and (min-width: 780px) {
    #GeneralKeyboard {
        position: relative;
        top: 60%;
    }
}*/
@media (max-width: 767px) {
    #GeneralKeyboard {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 170px;
        z-index: 10000;
        background-color: #fff; /* Optional: Add background for visibility */
        border-top: 1px solid #ccc; /* Optional: A border for separation */
    }
    .cellLetter {
        top: 0%;
        font-size: 60%;
        z-index: 2;
    }
}

    .cellNumber {
        position: absolute;
        vertical-align: text-top;
        text-align: left;
        font-size: 56%;
        top: 5%;
        left: 5%;
        user-select: none; /* Prevent text selection */
    }

    .cellLetter {
        top: 0;
        width: 95%;
        height: 95%;
        position: absolute;
        text-align: center;
        font-size: 90%;
        font-weight: 500;
        pointer-events: none; /* disables all mouse events, including clicks. */
    }

    .cell {
        position: absolute;
        background-color: white;
        box-shadow: inset 0px 0px 2px #000;
        z-index: 1;
    }

    a.greentext {
        color: blue !important;
    }

    a.redtext {
        color: red !important;
    }

    .blockquote-common {
        color: #464a4e;
        background-color: #e7e8ea;
        border-color: #dddfe2;
        position: relative;
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
        border: 1px solid transparent;
        border-radius: 0rem;
    }

    @media (max-width: 540px) {
        .Characters, .deleteButton {
            font-size: 3vw;
        }
        .cellLetter {
            top: 0%;
            font-size: 70%;
            z-index: 2;
        }
    }

    @media (max-width: 480px) {
        .Characters, .deleteButton {
            width: 7%;
        }

        .cellNumber {
            font-size: 50%;
        }

        .cellLetter {
            top: 0%;
            font-size: 70%;
            z-index: 2;
        }
    }

    #DownScroll li, #AcrossScroll li {
        cursor: pointer;
    }