
html {
    background: url('drew-beamer-qzWwb2UdGhE-unsplash.jpg') no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    font-family: 'Roboto Slab', serif;
    font-size: 1px;
}

#bingoBoard {
    height: 700px;
    width: 550px;
    max-height: 90vh;
    max-width: 90vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-spacing: 5px;
    background: rgb(251, 255, 253);
    border-radius: 10px;
    box-shadow: 11px 6px 15px 2px rgba(50, 50, 50, 0.5);
    border: 2px solid #356757;
}

.bingo-row {
    display: flex;
    flex-direction: row;
}

.bingo-row > div{
    flex-basis: 20%;
}

.cell-row {
    height: 15%;
}

.header-row > div{
    color: #356757;
    text-align: center;
    text-shadow: #214136 2px 1px;
    font-size: 70rem;
    font-weight: bold;
}

.cell-row > div {
    position: relative;
    margin: 2px;
    padding: 10px;
    color: white;
    text-shadow: #214136 2px 1px;
    font-weight: bold;
    background-color: #356757;
    border-radius: 5px;
    box-shadow: inset 3px 2px 2px 0px rgba(10, 10, 10, 0.5);
}

.control-row {
    text-align: center;
    margin-top: 30px;
}

.bingo-cell {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 70rem;
    width: 70rem;
    max-height: 90%;
    max-width: 90%;
    border-radius: 100%;
    line-height: 70rem;
    border: 4px solid transparent;
    text-align: center;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; 
}

.bingo-cell:not(.has-value)
{
    font-size: 0rem;
}

.bingo-cell.has-value {
    font-size: 35rem;
}

.bingo-cell.has-value:hover
{
    border-color: #fd999977;
    cursor: pointer;
}

.bingo-cell.binged {
    background-color:#be2c2c;
}

button {
    background: transparent;
    color: #356757;
    font-family: 'Roboto Slab', serif;
    border: 2px solid #356757;
    border-radius: 5px;
    outline: none;
    padding: 5rem 10rem;
    font-size: 25rem;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

button:hover {
    color: white;
    background: #356757;
}

@keyframes winnerBoard {
    50% {
        color: yellow;
    }

    100% {
        color: #356757
    }
}

@keyframes winnerwinner {
    0% {
        transform: translate(-50%, -50%) scale(1.0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.0);
    }
  }
  
  .winner-board .header-row div {
      animation: winnerBoard;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      animation-duration: 1.5s;
  }

  .winner-board .header-row div:nth-child(2) {
    animation-delay: 0.3s;
  }

  .winner-board .header-row div:nth-child(3) {
    animation-delay: 0.6s;
  }

  .winner-board .header-row div:nth-child(4) {
    animation-delay: 0.9s;
  }

  .winner-board .header-row div:nth-child(5) {
    animation-delay: 1.2s;
  }

  .winner-board .winner-cell {
    animation-name: winnerwinner;
    animation-iteration-count: 5;
    animation-direction: alternate;
    animation-duration: 1.25s;
}

@keyframes nice {
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        color: #f0aeae;
    }
}

.nice:before {
    opacity: 0;
    content: 'nice';
    font-size: 20rem;
    color: white;
    position: fixed;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom center;
    animation-name: nice;
    animation-iteration-count: 3;
    animation-direction: alternate-reverse;
    animation-duration: 5s;
    animation-delay: 1s;
    
}


@media (orientation:portrait)
{
    #bingoBoard {
        width: 85%;
        height: 90%;
    }

    html {
        font-size: 2px;
    }
}