﻿body {
    background: url(../assets/bingo.jpg) no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    width: 100vw;
    height: 100vh;
}

.codecontainer {
    position: absolute;
    bottom: 1em;
    left: calc(50% - 3em);
    width: 6em;
    border: 2px solid #fff;
    padding: 0.5em;
    text-align: center;
    font-size: 5em;
    color: #fff;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
}

.ballscontainer {
    position: absolute;
    bottom: 5em;
    left: calc(50% - 10em);
    width: 20em;
    border: 2px solid #fff;
    padding: 2.5em;
    text-align: center;
    color: #fff;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
}

.ballscontainer input {
    width: 5em;
}

.gameboardcontainer {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
}

.balls {
    padding: 0.5em;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.balls > div {
    display: inline-block;
    text-align: left;
}

.ball {
    padding: 0.5em;
    width: 2.5em;
    text-align: center;
    border: 1px solid #000;
    border-radius: 50%;
    display: inline-block;
    background-color: #fff;
    margin: 0 0.5em 0.5em 0;
    font-size: 2.6vw;
}

.ball.active {
    background-color: #ffff00;
}

.ball.active.last {
    -webkit-animation: 1.5s ease-in-out emph forwards;
    animation: 1.5s ease-in-out emph forwards;
}

@keyframes emph {
    0% {
        background-color: #ffff00;
    }

    25% {
        background-color: #ff0000;
    }

    50% {
        background-color: #ffff00;
    }

    75% {
        background-color: #ff0000;
    }

    100% {
        background-color: #ffff00;
    }
}

.ball:last-child {
    margin-right: 0;
}

.newballcontainer {
    margin-top: 1em;
    text-align: center;
}

.buttoncontainer {
    width: calc(100% - 2em);
    position: absolute;
    text-align: center;
    bottom: 2em;
}

.button.red {
    background-color: #ffaaaa;
}

.drawnball {
    width: 30vw;
    height: 30vw;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    font-size: 16vw;
    padding-top: 3.2vw;
    border: 1px solid #888;
    position: absolute;
    top: calc(50vh - 15vw);
    left: 102vw;
    -webkit-animation: 1.5s ease-in-out introBall forwards;
    animation: 1.5s ease-in-out introBall forwards;
    box-shadow: 1px 1px 2px #000;
    background: #1e5799;
    background: #ffffff;
    background: -moz-radial-gradient(center, ellipse cover, #ffffff 50%, #1e5799 54%, #2989d8 69%, #207cca 73%, #7db9e8 100%);
    background: -webkit-radial-gradient(center, ellipse cover, #ffffff 50%,#1e5799 54%,#2989d8 69%,#207cca 73%,#7db9e8 100%);
    background: radial-gradient(ellipse at center, #ffffff 50%,#1e5799 54%,#2989d8 69%,#207cca 73%,#7db9e8 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#7db9e8',GradientType=1 );
}

.drawnball.out {
    -webkit-animation: 1.5s ease-in-out outroBall forwards;
    animation: 1.5s ease-in-out outroBall forwards;
}

@keyframes introBall {
    0% {
        left: 102vw;
    }

    100% {
        left: 35vw;
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}

@keyframes outroBall {
    0% {
        left: 35vw;
    }

    100% {
        left: -32vw;
        -webkit-transform: rotate(-360deg);
        transform: rotate(-360deg);
    }
}