{
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: "Lucida Grande";
}

#container {
    display:flex;
    background-color: black;
    height: 100%;
    align-items: center;
    flex-direction: column;
}

header {
    border-bottom: 1px solid rgb(58,58,60);
}

.title {
    color: gainsboro;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.4rem 0 0.4rem 0;
    text-align: center;
    font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", "Geneva", "Verdana", sans-serif;
}

#game {
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


#board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.rimboeboard3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 2px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 2px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 1px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard8 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 1px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard9 {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-gap: 1px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard10 {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-gap: 1px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard11 {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-gap: 1px;
    padding: 10px;
    box-sizing: border-box;
}

.rimboeboard12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 1px;
    padding: 10px;
    box-sizing: border-box;
}

#board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
    padding: 10px;
    box-sizing: border-box;
}

#board2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
    padding: 10px;
    box-sizing: border-box;
}

.square {
    border: 1px solid rgb(58,58,60);
    min-width: 40px;
    min-height: 40px;
    font-size: 50px;
    font-weight: bold;
    color: gainsboro;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square4 {
    border: 2px solid rgb(58,58,60);
    min-width: 60px;
    min-height: 60px;
    font-size: 50px;
    font-weight: bold;
    color: gainsboro;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square9 {
    border: 1px solid rgb(58,58,60);
    min-width: 40px;
    min-height: 40px;
    font-size: 30px;
    font-weight: bold;
    color: gainsboro;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square12 {
    border: 1px solid rgb(58,58,60);
    min-width: 30px;
    min-height: 30px;
    font-size: 30px;
    font-weight: bold;
    color: gainsboro;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
}

#keyboard-container {
    height: 200px;

}

.keyboard-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 8px;
    touch-action: manipulation;
}

.keyboard-row button {
    font-family: inherit;
    font-weight: bold;
    border: 0;
    padding: 0;
    height: 58px;
    min-width: 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 button.wide-button {
   flex-grow: 1.5;
}

.spacer-half {
    flex-grow: 0.5;
    min-width: 30px;
}

.gameexpired {
    display: grid;
    grid-gap: 2px;
    padding: 10px;
    box-sizing: border-box;
}

.blink-class {
    animation: blinker 1s linear 10;
}

@keyframes blinker {
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    75% {
        opacity: 0.5;
    }

}

.blink-bg{
    color: #fff;
    padding: 10px;
    display: inline-block;
    border-radius: 5px;
    animation: blinkingBackground 2s infinite;
}
@keyframes blinkingBackground{
    0%		{ background-color: #10c018;}
    25%		{ background-color: rgb(13, 94, 5);}
    50%		{ background-color: #040777;}
    75%		{ background-color: rgba(229, 236, 35, 0.8);}
    100%	        { background-color: rgba(25, 211, 28, 0.8);}
}

#countdown {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    font-family: monospace;
    text-align: center;
}
