/* Typography */
body { color: #444; background-image: url('../images/fondo.jpg'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;}
html, body, p, .btn { font-size: 1rem; }
h1 { font-size: 2.5rem; margin: 0; font-weight: bold; text-transform: uppercase; }
h2 { font-size: 2rem; }
h3 { font-size: 1rem; margin: 0; padding: 0.5em; text-align: center; background: #3d3d3d; color: #fff; }
h4 { font-size: 1rem; margin: 0; }
#callNumber span { font-weight: bold; }
header img {
    max-width: 27rem;
    height: auto;
}
#voices {
    text-align: right;
}
#voices .btn {
    font-size: 0.7rem;
    padding: 0.5em 1em;
    line-height: 1.5;
    height: auto;
    margin: 0 0.5rem 0 0;
}
#voices i {
    vertical-align: middle;
    margin-right: 1rem;
}
.error {
    color: red;
    font-size: 0.9rem;
}
.icon {
    margin: 1.25rem 1%;
}
.icon img {
    height: 4rem;
    max-width: 100%;
}
#delayrange form {
    width: 67%;
    margin-right: 2%;
    visibility: hidden;
}
#delayrange i, #delayrange form {
    display: inline-block;
    vertical-align: middle;
}
#delayrange i {
    margin: 0.5em 0.5em 0 0;
}
#range {
    direction: rtl;
}
input[type=range]+.thumb {
    background-color: #ff0000;
}
input[type=range]+.thumb.active .value {
    font-size: 14px;
}

/* Spacing */
body { padding: 0;}
.btn { margin: 0.25em; }
header { padding: 2rem 1.5rem 0; }
header .row:not(:last-of-type) {
    margin-bottom: 0;
}
section, .board { padding: 0 1.5rem; }
footer { padding: 1rem 1.5rem 0.5rem; }
.addthis_inline_share_toolbox {
    clear: none !important;
    display: inline-block;
    vertical-align: middle;
}
.letter-block:first-of-type > div {
    padding-top: 0.5rem;
}
.letter-block:last-of-type > div {
    padding-bottom: 0.5rem;
}

/* Buttons */
#buttons a {
    margin: 0 1% 2%;
    font-weight: bold;
}

/* Sizing */
#bingoboard { width: 100%; }
.letter, .ball { width: 6.25%; padding: 0.5rem; }

/* Bingo Board */
.ball {
    transition: all ease 1s;
    -webkit-transition: all ease 1s;
}
.called, .lastCall {
    font-weight: bold;
    color:#ff0000 ;
    border: 0.1px solid #ff0000;
    
}
.lastCall {
    animation: blink 2.5s infinite;
    -webkit-animation: blink 2.5s infinite;
}
@keyframes blink {
    0% { color: #ff0000;}
    50% { color: rgb(149, 146, 146); }
    100% { color:#ff0000; }
}

/* Balls */
#ballGraphic, #ballText {
    padding: 0.8em 1.3em;
    margin: 0.5em auto;
    border-radius: 100%;
}
#ballText {
    line-height: 1;
    padding: 0.5em 1em;
    font-weight: bold;
}
#currentBall {
    background: #ececec;
    min-height: 12rem;
    position: relative;
}
#ballText:not(:empty) {
    border: 1px solid red;
    box-shadow: inset -0.5rem -0.5rem 2rem 0 rgba(0, 0, 0, 0.16), 0 0 0 0.25rem white;
    background: radial-gradient(circle at 20% 20%, white, #efefef);
}
#ballText.single {
    padding: 0.5em 1.2em;
}
#callNumber:not(:empty) {
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
    background: white;
    color: #444;
    font-size: 1rem;
    font-weight: normal;
    padding: 0.5em;
}
#ballGraphic.blue, #ballGraphic.red, #ballGraphic.white, #ballGraphic.green, #ballGraphic.orange {
    margin-top: -0.5rem;
    position: relative;
    box-shadow: inset 0.5rem 0.5rem 1.5rem 0.25rem rgba(255,255,255,0.3), inset -0.25rem -0.25rem 1.5rem 0.5rem rgba(0,0,0,0.4);
}

#ballGraphic.blue:after, #ballGraphic.red:after,
#ballGraphic.white:after, #ballGraphic.green:after, #ballGraphic.orange:after {
    content: '';
    background: radial-gradient(circle at 50% -150%, rgba(0,0,0,0.4), transparent);
    height: 0.75rem;
    position: absolute;
    bottom: -1rem;
    width: 70%;
    left: 17%;
    border-radius: 100%;
    margin: 0 auto;
}
/* Ball Colors */
#ballGraphic.blue {
    background: radial-gradient(circle at 20% 20%, #0000FF, #0000ad);
}
#ballGraphic.blue #ballText {
    border: 0.15rem solid #0000FF;
}
#ballGraphic.red {
    background: radial-gradient(circle at 20% 20%, #FF0000, #910000);
}
#ballGraphic.red #ballText {
    border: 0.15rem solid #FF0000;
}
#ballGraphic.white {
    background: radial-gradient(circle at 20% 20%, #ffffff, #b6b6b6);
}
#ballGraphic.white #ballText {
    border: 0.15rem solid #FF0000;
}
#ballGraphic.green {
    background: radial-gradient(circle at 20% 20%, #008000, #004a00);
}
#ballGraphic.green #ballText {
    border: 0.15rem solid #008000;
}
#ballGraphic.orange {
    background: radial-gradient(circle at 20% 20%, #FFA500, #9c6400);
}
#ballGraphic.orange #ballText {
    border: 0.15rem solid #FFA500;
}

/* Footer */
footer {
    background: #f3f3f3;
}
footer p {
    font-size: 0.75rem;
}

/* Mobile Sizes */
@media screen and (max-width: 40em){
    h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    h3, h4 {
        margin-top: 1rem;
        display: block;
        width: 100%;
    }
    #buttons a {
        width: 48%;
    }
    .voice {
        width: 48%;
        margin: 1%;
    }
    .letter-block {
        display: inline-block;
        width: 20%;
    }
    .letter, .ball {
        width: 100%;
    }
    #bingoboard .ball, #bingoboard .letter {
        /*font-size: 0.7rem;*/
    }
}

.quiz-container {
    padding: 1em;
    max-width: 100%;
    margin: 1em auto;
}

.quiz-container a {
    text-decoration: none;
    color: #333;
}

#quiz-header,
#quiz-start-screen,
#quiz-results-screen,
#quiz-counter {
    text-align: center;
}

.question {
    font-size: 1.25em;
}

.answers {
    list-style: none;
    padding: 0;
}

.answers a {
    display: block;
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
    background: #fff;
    border-radius: 10px;
}

.answers a.correct {
    background: #090;
}
.answers a.incorrect {
    background: #c00;
}

.answers a.correct,
.answers a.incorrect {
    color: #fff;
}

#quiz-controls {
    background: #333;
    color: #fff;
    padding: 0.5em 1em;
    text-align: center;
    border-radius: 10px;
}

#quiz-response {}
#quiz-results {
    font-size: 1.25em;
}

#quiz-buttons a,
.quiz-container .quiz-button {
    display: inline-block;
    padding: 0.5em 1em;
    background: #333;
    color: #fff;
    border-radius: 10px;
}
#quiz-buttons a {
    background: #fff;
    color: #333;
}

/* Quiz State Overrides */

.quiz-results-state #quiz-controls {
    background: none;
    padding: 0;
}
.quiz-results-state #quiz-buttons a {
    background: #333;
    color: #fff;
}

/* Spinner*/

/* Estilos para el loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.loader-wrapper img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px
}

.loader {
    border: 12px solid #f3f3f3;
    border-top: 12px solid #db3434;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    animation: spin 1s linear infinite;
}

.messages {
    color: black;
    margin-top: 300px;
    text-align: center;
    position: fixed;
}

.fade-message {
    animation: fade 5s forwards;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}