@font-face {
    font-family: fontLCD;
    src: url(font-LCD-ATandT-phone.ttf);
}

body {
    /* previne zoom no double tab em modo mobile */
    /* em alguns navegadores não fez diferença, então também tive que tratar na meta tag <meta name="viewport" no html */
    touch-action: manipulation;
}

.btn-primary {
    background-color: rgb(13, 110, 253);
    color: white;
    cursor: pointer;
    border: 0px;
    border-radius: 6px;
}
.btn-primary:hover {
    background-color: rgb(2, 101, 249);
}
.btn-primary:active {
    background-color: rgb(2, 90, 223);
}
.btn-primary:focus {
    border: 0px;
    outline-style: none;        
}

#div-fundo-nuvens {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    background-image: url(img/nuvens.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}
#div-inicio {
    text-align: center; 
    background-color: rgba(255, 255, 255, .5); 
    position: fixed; 
    width: 95vw; 
    height: 95vh; 
    left: 2.5vw; 
    top: 2.5vh;
    border-radius: 7px;
    overflow-y: auto;
}

#div-configuracoes {
    display: none;
    background-color: rgba(255, 255, 255, .5); 
    position: fixed; 
    width: 95vw; 
    height: 95vh; 
    left: 2.5vw; 
    top: 2.5vh;
    border-radius: 7px;
    text-align: center;
    overflow-y: auto;
}
#div-configuracoes table {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#table-configuracoes tbody tr td {
    vertical-align: middle;
    padding: 20px;    
}
.table-config-checkbox tbody tr td {
    margin-left: 0px;
    padding: 0px !important;
}
#div-fase {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;            
    display: none;
}
.item-multiplicacao {
    position: fixed;
    background-color: rgba(255, 255, 255, .1);
}
#div-botoes {
    position: fixed; 
    bottom: 1vh;
    left: calc( 100vw / 2 - (Min(100vw, 100vh) / 2) );
    height: calc( Min(100vw, 100vh) / 11 );
    width: Min(100vw, 100vh);           
    display: none; 
}   
.btn-numerico {
    width: calc( Min(100vw, 100vh) / 11 );
    height: calc( Min(100vw, 100vh) / 11 );
    box-sizing: border-box;
    display: inline-block;  
    border: 2px solid gray;
    border-radius: 6px;
    background-color: #CCC;
    color: #333;
    text-align: center;
    vertical-align: middle;
    line-height: calc( Min(100vw, 100vh) / 11 );
    font-weight: bold;
    font-size: larger;
    cursor: pointer;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome, Edge, Opera and Firefox */
}
.btn-numerico:hover {
    background-color: #DDD;
}
.btn-numerico:active {
    background-color: #EEE;
}
.vidro-numero-digitado {
    position: fixed;
    width: calc( Min(100vw, 100vh) / 11 * 2.5);
    height: calc( Min(100vw, 100vh) / 11);    
    color: rgba(190, 224, 16);                        
    font-family: fontLCD;
    text-align: center;
    vertical-align: middle;
    line-height: calc( Min(100vw, 100vh) / 11 );
    font-size: calc( Min(100vw, 100vh) / 11);
    display: none;
    
    /* From https://css.glass */
    background: rgba(3, 3, 3, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
#vidro-numero-digitado {
    left: calc( 100vw / 2 - (Min(100vw, 100vh) / 11 * 2.5 / 2) );
    bottom: calc( Min(100vw, 100vh) / 11 + 2vh);  
}
.div-numero-digitado {
    position: fixed;
    width: calc( Min(100vw, 100vh) / 11 * 2.5);
    height: calc( Min(100vw, 100vh) / 11);
    
    color: greenyellow;            
    font-family: fontLCD;
    text-align: center;
    vertical-align: middle;
    line-height: calc( Min(100vw, 100vh) / 11 );
    font-size: calc( Min(100vw, 100vh) / 11);
    display: none;
}
#div-numero-digitado {
    left: calc( 100vw / 2 - (Min(100vw, 100vh) / 11 * 2.5 / 2) );
    bottom: calc( Min(100vw, 100vh) / 11 + 2vh);
}

.icone-borracha {
    position: fixed;
    width: calc( Min(100vw, 100vh) / 11 );
    height: calc( Min(100vw, 100vh) / 11 );
    bottom: calc( Min(100vw, 100vh) / 11 + 2vh);
    left: calc( 100vw / 2 + (Min(100vw, 100vh) / 11 * 2.5 / 2 + 2vh) );
    opacity: .8;
    cursor: pointer;
    display: none;
}
.icone-borracha:hover {
    opacity: .9;
}
.icone-borracha:active {
    opacity: 1;
}
.btn-ok {
    background-color: rgba(180, 214, 10);
}
.btn-ok:hover {
    background-color: rgba(190, 224, 16);
}
.btn-ok:active {            
    background-color: rgba(200, 223, 26);
}
#div-pontuacao {
    position: fixed;
    top: 10px;
    right: 10px;            
    display: none;
    font-size: 25px;
    color: #444;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 20px;
    padding-right: 20px;
    background: rgba(255, 255, 255, .5);
}

#div-botoes-modelo-2 {
    position: fixed;
    bottom: 0px;
    left: calc(50vw - calc(Min(100vw, 100vh) / 11) * 1.7);
    padding-bottom: 10px;
    opacity: .8;
    display: none;
}
.btn-numerico-modelo-2 {
    width: calc(Min(100vw, 100vh) / 11);
    height: calc(Min(100vw, 100vh) / 11);
    margin-left: 7px;
    margin-right: 7px;
    margin-top: 2px;
    margin-bottom: 2px;
    box-sizing: border-box;
    display: inline-block;  
    border: 2px solid gray;
    border-radius: 6px;
    background-color: #CCC;
    color: #333;
    text-align: center;
    vertical-align: middle;
    line-height: calc( Min(100vw, 100vh) / 11 );
    font-weight: bold;
    font-size: larger;
    cursor: pointer;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome, Edge, Opera and Firefox */
}
.btn-numerico-modelo-2:hover {
    background-color: #DDD;
}
.btn-numerico-modelo-2:active {
    background-color: #EEE;
}

.icone-borracha-botoes-modelo-2 {
    width: 70%;                
    margin-top: 15%;
    opacity: .8;
}
.btn-numerico:hover .icone-borracha-botoes-modelo-2 {
    opacity: .9;
}

.btn-config {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    cursor: pointer;
    opacity: .9;
}
.btn-config:hover {
    opacity: 1;

    -webkit-animation-name: spin;
    -webkit-animation-duration: 8000ms;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: 8000ms;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: 8000ms;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;    
    animation-name: spin;
    animation-duration: 8000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@media only screen and (max-width: 991px) {
    /* Estilos para telas médias e pequenas */

    #div-inicio {
        font-size: 27px;
    }
    #select-dificuldade {
        font-size: 27px;
    }
    #btn-iniciar {
        font-size: 27px;
    }

    #div-botoes-modelo-2 {        
        left: calc(50vw - calc(Min(100vw, 40vh) / 4) * 1.7);        
    }
    .btn-numerico-modelo-2 {
        width: calc(Min(100vw, 40vh) / 4);
        height: calc(Min(100vw, 40vh) / 4);        
        line-height: calc( Min(100vw, 40vh) / 4 );
        font-size: calc( Min(100vw, 40vh) / 8 );
    }

    .btn-ok {
        background-color: rgba(180, 214, 10);
    }
    .btn-ok:hover {
        background-color: rgba(190, 224, 16);
    }
    .btn-ok:active {            
        background-color: rgba(200, 223, 26);
    }
}


@-ms-keyframes spin {
    from { -ms-transform: rotate(0deg); }
    to { -ms-transform: rotate(360deg); }
}
@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}