/*
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.
*/

@font-face {
    font-family: poppins;
    src: url(poppins.ttf);
}

body
{
    font-family: poppins;
    margin: 0px;
    width: 100vw;
    height: 100vh;
    aspect-ratio: 16/9;
}


#congratulations.show{
    display: block;
    opacity: 1;
}

#congratulations{
    width: 80%;
    height: auto;
    padding: 130px 0px;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #aaa;
    border-radius: 50px;
    display: none;
    opacity: 0;
    transition: 1s all;
}

#tri{
    position: absolute;
    top: 2vh;
    left: 50.3%;
    transform: translate(-50%, -100%);
}

#container{
    height: 100vh;
    width: 54vh;
    margin:0px auto;
    background: url(bg.png);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#logo{
    padding: 3%;
}

#wheel{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Sets the background image for the wheel */
td.the_wheel
{
    
    position: relative;
}

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

div.power_controls
{
    text-align: center;
}

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

#spin_button{
    width: 250px;
    height: auto;
}

#back_button{
    width: 250px;
    height: auto;
}

#win_text{
    font-size: 40px;
    margin: 20px;
}

@media (orientation: portrait) {
    #spin_button{
        width: 350px;
        height: auto;
    }
    
    #back_button{
        width: 350px;
        height: auto;
    }
}