/*
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: url(/images/wheelback.png) center no-repeat;
    background-position: -3px 43px;
    background-size: 101%;
}

/* Do some css reset on selected elements */
h1, p
{
    margin: 0;
}

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;
}

/* Style applied to the spin button once a power has been selected */
.clickable
{
    cursor: pointer;
}

/* Other misc styles */
.margin_bottom
{
    margin-bottom: 5px;
}

#welcome-wrapper,
#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5)
}

#welcome-wrapper {
    z-index: 9
}

#welcome {
    width: 800px;
    max-width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 30px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1.75;
    letter-spacing: 1px;
    background: #555049;
    color: #f0f0f0
}

#agree {
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    background: #f39c40;
    color: #a00018;
    font-weight: bold;
    border: 1px solid transparent;
}

#agree:hover {
    color: #333;
    font-weight: bold;
}

#wrapper {
    font-family: Arial;
    position: relative;
    top: 52%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
}

#alert,
#congrats {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition-duration: .25s;
    z-index: 9
}

#alert-message,
#congrats-message {
    color: #000;
    background: #151515;
    padding: 20px;
    position: absolute;
    width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
}

#alert-message {
    padding: 40px;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.75;
    color: #f0f0f0;
}

#close-alert,
#close-congrats {
    font-size: 2em;
    position: absolute;
    right: -10px;
    top: -15px;
    background: #930000;
    cursor: pointer;
    border-radius: 100%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-weight: #333;
}

#close-alert {
    color: #333;
    line-height: 35px;
}

#alert.hidden,
#congrats.hidden,
.confetti.hidden {
    transition-duration: .25s;
    -webkit-transition-duration: .25s;
    -moz-transition-duration: .25s;
    opacity: 0;
    z-index: -1
}

h2 {
    text-shadow: 0 0 20px #000
}

#spin_button {
    width: 10em;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    background: #00371a;
    color: #fff;
    border: 1px solid transparent;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: arial;
    cursor: pointer;
}

#code-desk,
#code-mob {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    text-align: center;
}

.claim {
    display: inline-block;
    margin: 10px 5px;
    margin-bottom: 0;
    border: 1px solid #cc0003;
    padding: 5px;
    background: #930000;
}

* {
    box-sizing: border-box
}

.hide-on-desktop {
    display: table-cell
}

.hide-on-mobile {
    display: none
}

.confetti {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

#confetti2 {
    left: initial;
    right: 0
}

td.the_wheel {
    background-position: -2px 67px
}

@media only screen and (min-width: 1024px) {

    body,
    html {
        zoom: 1
    }

    .hide-on-desktop {
        display: none
    }

    .hide-on-mobile {
        display: table-cell
    }

    .confetti {
        width: 50%
    }

    #alert-message,
    #congrats-message {
        width: initial;
    }
}

.fa-whatsapp {
    content: "\f232";
}

::placeholder {
    text-align: center;
}

/* or, for legacy browsers */

::-webkit-input-placeholder {
    text-align: center;
}

:-moz-placeholder { /* Firefox 18- */
    text-align: center;
}

::-moz-placeholder {  /* Firefox 19+ */
    text-align: center;
}

:-ms-input-placeholder {
    text-align: center;
}
