html {
	background: url(img/bg.jpg) no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	margin: 0;
	padding: 0;
	overflow: hidden;
}

body {
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#upperpad {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

#wordlistwrap {
	list-style: none;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -moz-flex;
	display: -webkit-flex;
	display: flex;
	flex-flow: column wrap;
	height: 100%;
	-webkit-padding-start: 0;
}

#wordsleft {
	position: absolute;
	font-size: 3vw;
}

#wordsleftnumber {
	padding-left: 2vw;
	color: #ffde11;
}

.worditem {
	padding: 5px;
	margin-right: 0.5em;

	color: white;
	font-weight: bold;
	text-align: left;
}


.wletter {
	display: inline-block;
	height: 3.1vw;
	width: 3.1vw;
	font-size: 2.2vw;
	line-height: 3vw;
	background: url(img/largeCoin.png) no-repeat;
	background-size: contain;
	color: black;
/*	text-shadow: 1.5px 1.5px 1px #fff;*/
    font-family: sans-serif;
	text-align: center;
	margin-right: 0.1em;
    font-weight: 600;
}

#rubyanim {
	height: 5vw;
	width: 5vw;
	display: block;
	position: absolute;
	color: white;
	font-size: 3vw;
	line-height: 5vw;
}

.wletter.hidden {
	background: #444;
	border-radius: 50%;
	color: #444;
	text-shadow: 1px 1px 1px #444;
}

.piggy {
	position: relative;
	display: inline-block;

	width: 10vw;
	height: 13.23vw;
	font-size: 4vw;
	text-align: center;
	line-height: 4em;
	margin: 0;

	position: relative;
	cursor: pointer;
	user-select: none;
	overflow: visible;
	overflow: hidden;
	margin-bottom: -3vw;
}

#pig0 {
	background: url(img/pig0.png) no-repeat;
	background-size: contain;
}

#pig1 {
	background: url(img/pig1.png) no-repeat;
	background-size: contain;
}

#pig2 {
	background: url(img/pig2.png) no-repeat;
	background-size: contain;
}

#pig3 {
	background: url(img/pig3.png) no-repeat;
	background-size: contain;
}

#pig4 {
	background: url(img/pig4.png) no-repeat;
	background-size: contain;
}

#pig5 {
	background: url(img/pig5.png) no-repeat;
	background-size: contain;
}

#pig6 {
	background: url(img/pig6.png) no-repeat;
	background-size: contain;
}


.piggy div {
	width: 50vw;
	height: 53vw;

	position: absolute;
	top: -200%;
	left: 0;
}



#lockwrap {
	width: 100%;
	text-align: center;
}

#lockbox {
	display: inline-block;
	background: url(img/lockbox.png) no-repeat center center;
	-webkit-background-size: 100% 100%;
	-moz-background-size: 100% 100%;
	-o-background-size: 100% 100%;
	background-size: 100% 100%;

	width: 70vw;
	height: 14.667vw;
	text-align: left;
	margin-top: 2vw;
	z-index: 10;
	white-space: nowrap;
}

#piggies {
	display: inline-block;
	width: 75vw;
	margin-bottom: -5.5vw;
	margin-top: -4vw;
	z-index: 20;
}

.coins {
	display: inline-block;
	margin-top: 2.2vw;
	user-select: none;
	margin-bottom: -1.5vw;
}

#pigcoins {
	margin: 0;
	margin-bottom: -2vw;
}

#boxcoins {
	position: relative;
	text-align: left;
}

.coin {
	display: inline-block;
	background: url("img/largeCoin.png") no-repeat center center;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	-o-background-size: contain;
	background-size: contain;

	width: 8vw;
	height: 8vw;
	font-size: 5vw;
	line-height: 7.5vw;
	margin-left: 1vw;
	margin-right: 1vw;
	color: #000;
	text-align: center;
	cursor: pointer;
	user-select: none;
	-moz-user-select: none;
    font-family: sans-serif;
    font-weight: 600;
/*	text-shadow: 2px 2px 1px #fff;*/
	user-select: none;
	-moz-user-select: none;
}

.ruby {
	background: url("img/rubyCoin.png") no-repeat center center;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	-o-background-size: contain;
	background-size: contain;
}

.btn {
	margin-top: 0.2em;
	background: #037cb3;
	color: #fff;
	border-radius: 0.3em;
	font-size: 2.1vw;
	line-height: 2em;
	height: 2em;
	text-align: center;
	cursor: pointer;
	user-select: none;
	width: 11vw;
	border: 0.15em solid #005473;
	display: inline-block;
	user-select: none;
	-moz-user-select: none;
	text-shadow: 1px 1px 1px #000;
	white-space: nowrap;
}

.backspacebtn {
	border: 0.15em solid #5e0000;
	min-width: 3vw;
	background: #aa0000;
	position: relative;
	border-radius: 0.3em;
}
.backspacebtn:before {
	content:"";
	position: absolute;
	right: 100%;
	top: 0;
	width: 0;
	height: 0;
/*
	border-top: 1em solid transparent;
	border-right: 0.5em solid red;
	border-bottom: 1em solid transparent;
*/
}

#easybtn, #mediumbtn, #hardbtn, #cancelsp{
    width: 300px;
}

#cancelsp{
    background-color: darkred;
    border-color: red;
}

#mus_btn{
    position: absolute;
    left: 10px;
    top: 10px;
    width: 120px;
}

#snd_btn{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
}

.mutebtn {
	min-width: 4vw;
	width: 4vw;
}

.mutebtn.off {
	text-decoration: line-through;
}

/*
#topright {
	position: absolute;
	right: 0;
	top: 0;
}
*/

.lbox {
	width: 96.2%;
	text-align: center;
	margin-top: -1vw;
}

#clearbtn {
	background-color: #aa0000;
	border-color: #5e0000;
	color: #fff;
	margin-right: 90px;
}

#wordbtn {
	margin-left: 0px;
	display: inline-block;
	background-color: #003c4c;
	color: #999;
}

#timerbtn {
	display: inline-block;
}

#timerbtn.fixed {
	background: #444;
}

#timerbtn.alarm {
	color: #ff0;
	background: #f22;
}

#wordbtn.active {
/*	color: #afa;*/
	background-color: #167f00;
	border-color: #0c3d00;
	color: #fff;
}

#wordbtn.duplicate {
	animation: dupblink 1s infinite;
}

@keyframes dupblink {
	0% { color: red; }
	49% { color: red; }
	50% { color: black; }
	100% { color: black; }
}

#nextbtn {
    background-color: #003c4c;
    color: #999;
}

#nextbtn.active {
/*	color: orange;*/
    background-color: #167f00;
    border-color: #0c3d00;
    color: #fff;
}

#mixbtn {
	color: white;
}

#mixbtn {
	color: white;
    width: 8vw;
}

#hintbtn {
    background-color: #003c4c;
    color: #999;
    width: 8vw !important;
}

#hintbtn.active {
    background: #037cb3;
	color: #fff;
}

#hogbtn {
    background-color: #003c4c;
    color: #999;
    width: 12vw !important;
}

#hogbtn.active {
    background: #037cb3;
	color: #fff;
}

#freebtn{
    background-color: #003c4c;
    color: #999;
    width: 13vw;
}

#freebtn.active {
    background: #037cb3;
	color: #fff;
    width: 13vw;
}

#finishbtn {
	color: #fff;
    width: 11.8vw;
}

#skipbtn {
    width: 9vw;
/*	color: #999;*/
}

#banker0, #banker1 {
	margin-top: 9vw;
	width: 10vw;
	height: 26vw;
	z-index: 0;
}

#banker0 {
	float: left;
	text-align: left;
}

#banker1 {
	float: right;
	text-align: right;
}

#score1{
    background: #490000;
	color: lightgray;
    text-shadow: none;
    font-weight: 900;
    border-color: #aa0000;
	height: 1.5em;
	line-height: 1.5em;
	width: 12vw;
	margin-left: 1vw;
	margin-right: 1vw;
}

#score0 {
	background: #003c4c;
	color: lightgray;
    text-shadow: none;
    font-weight: 900;
    border-color: #037cb3;
	height: 1.5em;
	line-height: 1.5em;
	width: 12vw;
	margin-left: 1vw;
	margin-right: 1vw;
}

#score0.blink, #score1.blink {
	border-color: lightgreen;
    background-color: darkgreen;
    color: #fff;
}

#score1 {
	float: right;
}

#ibanker0, #ibanker1 {
	width: 18vw;
	height: 18.36vw;
	margin-top: 3vw;
}

#ibanker0 {
	background: url(img/bluePigRotating.png) no-repeat;
	background-size: 1500% 100%;
	background-position: 6.667% 0;
}

#ibanker1 {
	float: right;
	background: url(img/redPigRotating.png) no-repeat;
	background-size: 1500% 100%;
	background-position: 6.667% 0;
}

.dlg {
	background: #fff;
    color: #003644;
	position: absolute;
	width: 50vw;
	top: 12vw;
	margin: 0 auto;
	left: 0;
	right: 0;
	text-align: center;
	padding-bottom: 5vw;
    border-radius: 10px;
}

.dlg .btn {
	color: white;
    width: 200px;
    height: 60px;
    font-size: 24pt;
    line-height: 1.9;
    margin-right: 10px;
}

#blinds {
	background: rgba(0, 0, 0, 0.8);
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
}

#popup{
    margin-bottom: -20px;
    margin-top: 15px;
    width: 300px;
    background-color: darkgreen;
    border-color: forestgreen;
}

/* --- Pop-Up Box --- */

.popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 15px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black w/ opacity */
}

/* PopUp Content */

.popup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 93%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Add Animation */

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */

.close {
    color: #fff !important;
    float: right;
    font-size: 58px;
    font-weight: bold;
    width: 40px;
    margin-right: 10px;
}
.close:hover,
.close:focus {
    color: #fff;
}
.popup-header {
    background-color: #037cb3;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 70px;
    margin-top: -39px;
}

.popup-header h2{
    text-align: center;
    padding-top: 8px;
    font-size: 35pt;
    text-shadow: 1px 2px 2px #000;
}

.popup-body {
    padding: 0px 10px;
    min-height: 520px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.popup-body p{
    font-size: 12pt;
}

.popUpInfo{
    text-align: left;
}

.popUpInfo h2{
    font-size: 18pt;
    margin-bottom: -13px;
}

.pictureSlot{
    margin-top: 40%;
}

.oldwordwinanim {
	color: #ff0;
	position: absolute;
	left: 30px;
	top: 300px;
	font-size: 5vw;
	text-shadow: 3px 3px 4px #f00, -3px -3px 4px #f00,
		-3px 3px 4px #f00, 3px -3px 4px #f00;
}

.wordwinanim {
	color: #ffde11;
	position: absolute;
	left: 30px;
	top: 300px;
	font-size: 5vw;
	padding: 1vw;

	text-shadow: 1px 1px 2px #494949, -1px -1px 2px #494949,
		-1px 1px 2px #494949, 1px -1px 2px #494949;
}

.twinkle {
	display: inline-block;
	background: url("img/star.png") no-repeat center center;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	-o-background-size: contain;
	background-size: contain;

	width: 4vw;
	height: 4vw;

	animation-name: twinklespin;
	animation-duration: 5000ms;
	animation-iteration-count: 1;
	animation-timing-function: linear;
}

@keyframes twinklespin {
	from {
		transform: rotate(720deg) scale(0.1);
	}
	to {
		transform: rotate(0deg) scale(1.0);
	}
}

.endround {
	position: absolute;
	display: block;

	font-size: 8vw;
	font-weight: bold;
	white-space: nowrap;
    line-height: 0.8;

	left: 50%;
	top: 37%;
	transform: translate(-50%,-50%);
	text-align: center;

	color: #ffde11;
	text-shadow: 2px 2px 2px #282828, -2px -2px 2px #282828,
		-2px 2px 2px #282828, 2px -2px 2px #282828;

	background: rgba(0, 0, 0, 0.75);
	border: solid 2px #111;
	padding: 7rem;
	border-radius: 1rem;
	/* animation-name: spin;
	animation-duration: 1000ms;
	animation-iteration-count: 1;
	animation-timing-function: linear; */
}


.points {
	position: absolute;
	display: block;

	font-size: 12vw;
	font-weight: bold;
	white-space: nowrap;

	left: 50%;
	top: 30%;
	transform: translate(-50%,-50%);

	color: #ffde11;
	text-shadow: 2px 2px 2px #282828, -2px -2px 2px #282828,
		-2px 2px 2px #282828, 2px -2px 2px #282828;

	animation-name: spin;
	animation-duration: 1000ms;
	animation-iteration-count: 1;
	animation-timing-function: linear;
}

@keyframes spin {
	from {
		transform: translate(-50%,-50%) rotate(-90deg) scale(0.1);
	}
	to {
		transform: translate(-50%,-50%) rotate(0deg) scale(1.0);
	}
}
