/*
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
{
    aspect-ratio: 16 / 9;
    max-width: 100vw; /* Limit to the viewport width */
    max-height: 100vh; /* Limit to the viewport height */
    margin: auto; /* Center the body */
    overflow: hidden; /* Hide overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Optional: background color outside the body */
    background-repeat: no-repeat !important
}

/* Sets the background image for the wheel */
td.the_wheel
{
    /*background-image: url(/media/images/wheel_back_new.png);*/
    background-image: url(/media/images/wheel_back.png);
    background-position: center;
    background-repeat: none;
}

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

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

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


#settings.active {
    transform: translate(0, 0);
}

#settings-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 8px;
}

.nav-line {
    border-top: 1px solid rgba(0, 0, 0, 0.5);
}

.sidenav {
    width: 35vw !important;
}

.add-segment-control,
.remove-segment-control {
    display: none;
}

.add-segment-control.active,
.remove-segment-control.active {
    display: initial;
}

li.shell-red a {
    background-color: #fc0014 !important;
    color: white !important;
}
li.shell-gray a {
    background-color: #787878;
    color: white !important;
}
li.shell-yellow a {
    background-color: #fae800;
    color: black !important;
}
li.white a {
    background-color: white;
    color: black !important;
}

#spin-boundry {
    width: 100vw;
    height: 100vh;
}

canvas {
    position:absolute;
    top:0;
    right:0;
}

#wheel-wrapper {
    width: 1080px;
    height: 1080px;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 1;
    transition: all 1s cubic-bezier( 0.68, -0.55, 0.265, 1.55 );
}

#wheel-wrapper.fade-out {
    opacity: 0;
}

#wheel-ticker {
    width: 0;
    height: 0;
    border-left: 32px solid transparent;
    border-right: 32px solid transparent;
    border-top: 32px solid black;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0px auto;
    z-index: 10;
}

#wheel-center {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 50%;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0px auto;
    top: 50%;
    transform: translate(0, -50%);
    transition: all 1s ease;
}
#wheel-center.winner {
    background-color: rgb(0, 162, 24, 1);
}
#wheel-center.loser {
    background-color: red;
}

#prize-text {
    transform: translate(-50%, -50%) scale(1.0);
    position: absolute;
    left: 50%;
    margin: 0px auto;
    top: 50%;
    color: white;
    font-size: 30px;
    font-weight: 700;
    font-family: 'Arial';
    font-size: 30px;
    opacity: 0;
    transition: all 1s ease;
    text-align: center;
}

#wheel-center.winner #prize-text,
#wheel-center.loser #prize-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

.bottom-left-logo {
    position: absolute;
    bottom: 113px;
    right: 50%;
}

.bottom-right-logo {
    position: absolute;
    bottom: 113px;
    right: 2%;
}

.bottom-left-logo img,
.bottom-right-logo img {
    width: 85px;
    height: auto;
}

.percent-label {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: 20px;
}

#spinStats {
    font-family: monospace;
    font-size: 12px;
}
#admin a.btn {
    margin: 10px 0;
    width: 170px;
}