/*
Description:
    Contains all the styles for the winning wheel page.
    
Verison History:
    2012-01-28, Douglas McKechie
    - Created based off earlier version.
    
    2015-09-26, Douglas McKechie
    - Minor updates for the 2.0 winwheel example.
*/

body
{
    font-family: arial;
}

/* Sets the background image for the wheel */
td.the_wheel
{
    /*background-image: url(./wheel_back.png);*/
    background-position: center;
    background-repeat: none;
}

td.the_wheel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

img.kim, img.rotation, img.logo-img {
    position: absolute;
}

img.rotation {
    max-width: unset;
}

img.kim {
    z-index: 2;
    top: 0%;
}

img.logo-img {
    z-index: 2;
}

/* Do some css reset on selected elements */
h1, p
{
    margin: 0;
}

div.power_controls
{
    margin-right:70px;
}

div.html5_logo
{
    margin-left:70px;
}

/* Styles for the power selection controls */
table.power
{
    background-color: #cccccc;
    cursor: pointer;
    border:1px solid #333333;
}

table.power th
{
    background-color: white;
    cursor: default;
}

td.pw1
{
    background-color: #6fe8f0;
}

td.pw2
{
    background-color: #86ef6f;
}

td.pw3
{
    background-color: #ef6f6f;
}

.btn {
    padding: 10px 20px;
}

.hide {
    display: none;
}

/* Style applied to the spin button once a power has been selected */
.clickable
{
    cursor: pointer;
}

/* Other misc styles */
.margin_bottom
{
    margin-bottom: 5px;
}

canvas#canvas {
    /*background-image: url(https://blog-bbh.s3-ap-southeast-1.amazonaws.com/Vo%CC%80ng-Quay-Momcare-3-1613792406.png);*/
    background-size: contain;
    position: absolute;
    z-index: 1;
}

.box-results {
    background-color: #0000008f;
    padding: 10px;
}

/*Section Spin*/
.spin-section.zoomFull {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999999999 !important;
    padding: 20px !important;
    overflow-y: scroll;
}
.spin-top {
    display: flex;
    align-items: center;
    height: 55px;
    /*margin-bottom: 50px;*/
}

.spin-logo {
    /*float: left;*/
    margin-right: 10px;
}

.spin-name {
    margin: 20px 0;
    text-align: center;
    line-height: initial;
    font-weight: bold;
}

.box-btn_volume {
    position: relative;
    margin-right: 10px;
}

.volume, .volumeSpin{
    width:100%;
    background-color:grey;
    height: 8px;
    /*position: absolute;*/
    margin-top:10px;
    display: none;
}
.box-btn_volume:hover .volume, .box-btn_volume:hover .volumeSpin{
    display: block;
}
.volumeBar, .volumeSpinBar{
    position: relative;
    cursor: pointer;
    width: 50%;
    display: block;
    height: 8px;
    background-color:#fff;
    text-align:center;
    line-height:8px;
    color:white;
    font-size:10px;
    box-shadow: 0 0 3px #878787;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.volumeBar:before, .volumeSpinBar:before {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    z-index: 999;
    top: -4px;
    background-color: #01fff3;
    right: -7.5px;
}

.css-btn_circle{
    padding: 10px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 30px yellow;
    margin-right: 10px;
    cursor: pointer;
    transition: .3s;
}
.box-btn_volume .css-btn_circle {
    margin-right: 0;
}

.css-btn_circle svg{
    width: 20px !important;
    height: 20px !important;
}

.js-volumn, .js-mute{
    background-color: #cc1312;
}

.js-volumn:hover {
    background-color: #bd1010;
}

.js-fullscreen{
    background-color: #ebc163;
}

.js-miniscreen{
    background-color: #878787;
}

.is-login {
    background-color: #8d01f8;
}

.is-login:hover {
    background-color: #7403c9;
}

.is-login svg {
    color: #fff;
}

img.js-startSpin {
    box-shadow: 0 0 30px #ffffa0;
    border-radius: 30px;
    max-height: 40px !important;
}
img.js-startSpin:hover {
    filter: drop-shadow(2px 4px 6px #e3e3e3ab);
    cursor: pointer;
}

.btn-post_lands {
    float: left;
    margin-left: 5px;
    height: 30px;
    display: flex;
    align-items: center;
    border-radius: 3px;
    overflow: hidden;
}

.tab-showResult {
    overflow: hidden;
    float: left;
    background-color: #fff;
    border-radius: 3px;
    height: 30px;
    margin-right: 3px;
    padding: 0 0 0 5px;
    cursor:  pointer;
}

.box-inResults {
    display: flex;
    float: left;
    height: 30px;
    margin-left: 10px;
}

select.js-select {
    margin-left: 0px;
    border: none;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    width: 18px;
    outline: none;
}

.numberResult {
    width: 50px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.top-result {
    overflow: hidden;
    display: inline-block;
}

.box-results h3 {
    float: left;
    color: #000;
    padding-right: 5px;
}

.tab-inputResult {
    background-color: #fff;
    overflow: hidden;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    float: left;
}

.tab-inputResult.active, .tab-showResult.active, .tab-showResult.active h3 {
    background-color: #ca016f;
    color: #fff;
}

.js-inputResult {
    height: 100px;
}

.js-results {
    max-height: 300px;
    overflow-y: scroll;
    width: 100%;
}

.js-resetEmpty {
    background-color: #fb3501;
    padding: 5px 10px;
    float: left;
    border-radius: 3px;
    color: #fff;
    margin-left: 0;
}

.css-btn_circle.js-resetSpin {
    /* height: 30px; */
    /* width: auto; */
    /* box-shadow: unset; */
    /* padding: 0; */
    color: #62c52f;
    /* float: left; */
    /* margin-left: 5px; */
    /* display: flex; */
    /* align-items: center; */
    background-color: #676767;
}
.css-btn_circle.js-resetSpin:hover {
    background-color: #e1e1e1;
}

.css-btn_circle.js-regulation {
    background-color: #e9b859;
    color: #ffffff;
}

.css-btn_circle.js-regulation:hover {
    background-color: #d39f3a;
}

section.spin-section textarea {
    resize: vertical;
}

/*Popup ket qua*/
section.spin-section .modal {
    z-index: 9999999999;
    background-color: #0000005c;
}

.modal-spin .modal-header {
    background-color: #ef0000;
}

.modal-spin .modal-header .close {
    color: #fff;
    opacity: 1;
}

.modal-spin .modal-title {
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

.modal-spin .modal-body {
    text-align: center;
    padding: 30px;
}

.modal-spin h3 {
    font-weight: bold;
    font-size: 25px !important;
    color: #e300a8;
    margin-bottom: 0;
    text-align: center;
}

/*Kim quay*/

@keyframes needle {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    50% {
        visibility: hidden;
        -webkit-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }
    100% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}
.needle.rotate {
    /*animation: 2.4s ease-in-out 0s normal none infinite running needle;*/
    transition: all 0.5s ease 0s;
}

@media screen and (max-width: 1024px)
{
    .spin-section.zoomFull{
        overflow-y: scroll;
    }
    .spin-logo {
        margin: auto;
        margin-top: 20px;
        text-align: center;
    }
    .spin-logo img {
        margin: auto;
    }
    .spin-section .images img {
        width: 100%;
    }
    canvas#canvas {
        /*max-width: 100%;*/
    }
    .spin-top {
        margin-top: 30px;
        justify-content: center;
    }
    .spin-section table {
        max-width: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 500px)
{
    table {
        /* max-width: 100%; */
        width: 100%;
    }
    td.the_wheel {
        width: 100%;
        height: 294px;
    }
    img.kim.needle {
        width: 25px;
    }
    img.logo-img{
        display: none;
    }
}

.copyright-spin {
    background-color: #069fc7;
    color: #fff;
    position: fixed;
    right: 0;
    padding: 3px 10px;
    margin-top: 10px;
    bottom: 0;
}