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

.wheel-ring {
	width: 75%;
	height: 445px;
	background-image: url(../images/wheel-ring.png);
	position: absolute;
	top: 0;
	left: 50%;
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center center;
	margin: auto;
	transform: translateX(-50%);
}

.wheel-pin {
	position: absolute;
	top: 210px;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 60px;
	height: 120px;
	cursor: pointer;
}

/* Circle head of the pin */
.wheel-pin::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 60px;
	background: var(--pin-color, #fff);
	border-radius: 50%;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Pointed tip of the pin */
.wheel-pin::after {
	content: '';
	position: absolute;
	bottom: 0;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 18px solid transparent;
	border-right: 18px solid transparent;
	border-bottom: 30px solid var(--pin-color, #fff);
}

.wheel-logo {
	max-width: 50px;
	position: absolute;
	top: 222px;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.spin-wheel-btn {
	font-size: 1.8rem;
	background: #ed1b24;
	background: var(--plan-black);
	padding: 7px;
	border: none;
	color: white;
	text-align: center;
	border-radius: 20px;
	min-width: 140px;
	text-decoration: none;
	font-weight: 600;
	display: block;
	margin: 0 auto;
}

.ribbon-wrapper {
	position: relative;
	z-index: 998;
	margin-top: 8%;
}

.glow {
	background: rgb(255, 255, 255);
	width: 40px;
	height: 100%;
	z-index: 999;
	position: absolute;
	-webkit-animation: flow 1.5s linear infinite;
	-moz-animation: flow 1.5s linear infinite;
	-webkit-transform: skew(20deg);
	-moz-transform: skew(20deg);
	-o-transform: skew(20deg);
	background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 1) 100%);
	background: -webkit-gradient(
		linear,
		left top,
		right top,
		color-stop(0%, rgba(255, 255, 255, 0)),
		color-stop(1%, rgba(255, 255, 255, 0)),
		color-stop(100%, rgba(255, 255, 255, 1))
	);
	background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 1) 100%);
	background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 1) 100%);
	background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 1) 100%);
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 1%, rgba(255, 255, 255, 1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 );
	border-left: 1px solid #fff;
}

@-webkit-keyframes flow {
	0% {
		left: -20px;
		opacity: 0;
	}
	50% {
		left: 170px;
		opacity: 0.3;
	}
	100% {
		left: 250px;
		opacity: 0;
	}
}
@keyframes flow {
	0% {
		left: -20px;
		opacity: 0;
	}
	50% {
		left: 170px;
		opacity: 0.3;
	}
	100% {
		left: 250px;
		opacity: 0;
	}
}

.ribbon-front {
	background-color: var(--plan-black);
	/* background-color: #ed1b24; */
	height: 50px;
	width: 107%;
	position: relative;
	left: -10px;
	z-index: 2;
	font:
		20px/50px bold inter,
		Geneva,
		sans-serif;
	color: #f8f8f8;
	text-align: center;
	text-shadow: 0px 1px 2px #cc6666;
	font-weight: bold;
}

.ribbon-edge-topleft,
.ribbon-edge-topright,
.ribbon-edge-bottomleft,
.ribbon-edge-bottomright {
	position: absolute;
	z-index: 1;
	border-style: solid;
	height: 0px;
	width: 0px;
}

.ribbon-edge-topleft {
	top: -5px;
	border-width: 5px 10px 0 0;
}

.ribbon-edge-topright {
	top: 0px;
	border-width: 0px 0 0 10px;
}

.ribbon-edge-bottomleft {
	border-width: 0 10px 0px 0;
}

.ribbon-edge-bottomright {
	border-width: 0px 0 34px 60px;
}

.ribbon-edge-topleft,
.ribbon-edge-bottomleft {
	left: -10px;
	border-color: transparent #4d4646 transparent transparent;
}

.ribbon-edge-topright,
.ribbon-edge-bottomright {
	left: 90%;
	border-color: transparent transparent transparent #4d4646;
}

.ribbon-edge-topleft,
.ribbon-edge-bottomleft {
	left: -10px;
	border-color: transparent #4d4646 transparent transparent;
}

.ribbon-edge-bottomleft,
.ribbon-edge-bottomright {
	top: 50px;
}

.ribbon-front,
.ribbon-back-left,
.ribbon-back-right {
	-moz-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.55);
	-khtml-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.55);
	-webkit-box-shadow: 0px 0px 4px rgb(0 0 0 / 55%);
	-o-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.55);
}

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