.flash{
    z-index: -10;
    transition: opacity .5s;
    opacity: 0;
    position:fixed; 
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color: #fff;
}

#game-container {
    display: flex;
    height: 100%;
    align-items: center;
    flex-direction: column;
}

#game {
    width: 95%;
    max-width: 700px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* #header-spacer{
    height: 10%;
} */

#tiles-container{
    overflow-y: scroll hidden;
    overflow-x: hidden;
    height: 90%;
}

#solution-container,
#board-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow-x: hidden;
    padding-left: 6px;
}

#board-container{
    height: 70%;
    max-height: 500px;
}

#solution-container{
    height: 30%;
    max-height: 100px;
}

#board,
#solution-board{
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 90%;
    height: 100%;
    padding: 10px;
}

#board{
    max-height: 500px;
    box-sizing: border-box;
    overflow-y: scroll hidden;
}

#solution-board{
    max-height: 75px;
    box-sizing: border-box;
    overflow-y: visible;
}

#guessing-color-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    padding: 100px;
    /*margin-bottom: 20px;*/
}

#guessing-color{
    border: 2px solid rgb(58, 58, 60);
    background-color: rgb(129, 131, 132);
    min-height: 60px;
    margin: 10px;
}

.solution,
.square{
    padding-inline: 0px;
    box-sizing: border-box;
    border: 2px solid rgb(58, 58, 60);
    min-width: 90px;
    max-width: 200px;
    min-height: 44px;
    max-height: 70px;
    font-size: 50px;
    font-weight: bold;
    color: gainsboro;
    text-shadow: 1px 1px 2px rgb(58, 58, 60);
    /* text-transform: uppercase; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.solution{
    border: 0px solid rgb(3, 3, 3);
    transition: opacity 10s;
    opacity: 1;
}

.spacer-solution{
    min-height: 10px;
}

.precision{
    color: gainsboro;
    /*border: 2px solid rgb(58, 58, 60);*/
    /*min-width: 80px;*/
    /* margin-left: 2px; */
    min-height: 50px;
    font-size: 30px;
    font-weight: bold;
    color: gainsboro;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* KEYBOARD */

#keyboard-container {
    max-height: 200px;
    padding-bottom: 10px;
    /*padding-right: 100px;*/
    position: relative;
    transform: translateX(-11%);
}

.keyboard-row button {
    height : 100%;
    font-family: inherit;
    font-weight: bold;
    border: 0;
    padding: 0;
    height: 50px;
    cursor: pointer;
    background-color: rgb(129, 131, 132);
    color: rgb(215, 218, 220);
    flex-grow: 1;
    text-transform: uppercase;
    margin-right: 6px;
    border-radius: 4px;
    user-select: none;
}
  
.keyboard-row {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 0 auto 8px;
    touch-action: manipulation;
}

.keyboard-row button.wide-button {
    flex-grow: 1.5;
    background-color: rgb(129, 131, 132);
}
  
.spacer-half {
    flex-grow: 0.5;
}

/* END */

#end-container{
    position: relative;
    display : none;
    text-align: center;
    /* padding: 5px; */
    
    justify-content: center;
    align-items: center;

    margin-left: auto;
    margin-right: auto;

    border: 3px solid #F46883;

    font-size: 20px;

    color : gainsboro;
    width: 80%;
    height: 30%;
    background-color: rgb(0, 0, 0);
    margin-bottom: 20px;

    overflow-y: scroll hidden;
    overflow-x: scroll hidden;
}

@media only screen and (max-device-width: 480px){
    #keyboard-container{
        transform: translateX(0%);
    }
    .keyboard-row button {
        height: 40px;
    }

    .solution,
    .square{
        font-size: 35px;
    }

    .precision{
        font-size: 20px;
    }

    #end-container{
        width: 75%;
    }
}

#end-content{
    padding: 5px;
    padding-inline: 30px;
    height: auto;
    height: 30%;
    width: auto;
    margin: 0 auto;
}

#end-icons{
    position: relative;
}

#stats-end{
    position: absolute;
    top: 0px;
    right: 4px;

    font-size: 1.5rem;
    cursor: pointer;
}


/* SHARE */

#share-container{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#support-content,
#share-content{
    width: 30%;
    line-height: 1px;
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    padding: 6px;
    cursor: pointer;
    /* height: 70%; */
    /* border: 2px solid rgb(18, 18, 19); */
}

#share-disabled{
    display: none;
    align-self: center;
    font-size: 0.65rem;
    color :#F46883;
}

/* CHART */

.chart-container{
    /* display: grid; */
    column-count: 2;
    /* width: 100%; */
}

.chart > li {
    grid-column-end: 0;
    display: flex;
    justify-content: space-between;
    padding: 0.10rem 0rem;
    background: #F46883;
    grid-column-start: 1;
}

/* .chart {
    display: flex;
    display: grid;
    grid-template-columns: auto;
    grid-auto-columns: 1fr;
    width: 100%;
} */

.column {
    float: left;
    padding: 10px;
    /* width: 100%; */
}
  
.column.left {
    width: 3%;

    font-size: small;
    max-width: 40px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 63px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
  
.column.right {
    width: 100%;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.label{
    display: flex;
    justify-content: right;
}

#best-precision{
    color: #F46883;
}

/* TIMER */

.timer-container{
    margin-top: 5px;
    padding-top: 3px;
    /* border-top: 1px solid rgb(58, 58, 60); */
    text-align: center;
}

.timer{
    color : #F46883;
    font-size: 25px;
}

/* HARD MODE */

#hard-mode-state{
    color: #F46883;
    font-size: small;
    margin-left: 10px;
}