.header {
    background-image: url(../img/header-bingo.jpg);
}

button {
    border: 1px solid #110125;
    background: #93939F;
    padding: 10px 20px;
}

.main {
    text-align: center;
}

.controls {
    margin: 10px;
}

.wordlist {
    height: 400px;
    margin: 20px;
}

.wordlist textarea {
    width: 80%;
    height: 100%;
}

.board {
    max-width: 680px;
    margin: 10px auto;
    border: 2px solid #000;
}

.board label {
    float: left;
    display: block;
    width: 20%;
    padding-bottom: 20%;
    background: #000;
    flex-grow: 1;
    cursor: url(../img/cursor.png), pointer;
    position: relative;
    color: #fff;
    font-weight: bold;
    font-size: 0.8em;
}

.board label div {
    position: absolute;
    top: 0;
    left: 0;
    margin: 1%;
    padding: 9%;
    width: 80%;
    height: 80%;
    background: #2a2a37;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.board label div span {
    display: inline;
}

.board input[type=checkbox] {
    display: none;
}

.board input[type=checkbox]:checked + label div,
.board label.freespace div {
    background: #2f8914;
}

.board input[type=checkbox]:checked + label.freespace div span img {
    transform: scaleX(-1);
}

.bingo-video video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.bingo + label div {
    animation: 1s winner;
}

@keyframes winner {
    0% { background-color: yellowgreen; }
    100% { background-color: #2f8914; }
}

.words {
	margin: 0 auto;
	width: 80%;
    text-align: left;
}

.words td {
	background: #ccd;
	padding: 2px 4px;
}

.words td:first-of-type {
	border-right: 2px solid #77a;
}

.words tr {
	border-bottom: 2px solid #558;
}

@media only screen and (min-width: 680px) {

    button {
        padding: 5px 10px;
    }

    .wordlist textarea {
        width: 50%;
    }

    .board label {
        font-size: 1em;
    }

}
