/*:root {*/
/*    --mainbg: transparent;*/
/*    --box1: 195, 7, 30;*/
/*    --box2: 13, 49, 160;*/
/*    --box1dim: 25, 0, 0;*/
/*    --box2dim: 0, 0, 36;*/
/*    --box1light: 240, 180, 180;*/
/*    --box2light: 160, 180, 255;*/
/*    --ffa: 91, 34, 148; */
/*    --ffadim: 26, 0, 25;*/
/*    --ffalight: 129, 64, 152;*/
/*    --screenfont: 21.2;*/
/*}*/

/* global standards */
body, html {
	width:100%;
	height:100%;
	background-color:#161616;
	font-family:Arial, Helvetica, sans-serif;
	padding:0;
	margin:0;
	border:none;
	overflow:hidden;
}

div {
	box-sizing:border-box;
}

.linebeam {
    font-family:linebeam;
}

@font-face {
  font-family: linebeam;
  src: url(fonts/Linebeam.ttf);
}

.oldnewspaper {
	font-family:oldnewspaper;
}

@font-face {
	font-family: oldnewspaper;
	src: url(fonts/Oldnewspapertypes-449D.ttf);
}

.hide {
	display:none !important;
}

.hand:hover {
	cursor:pointer;
}


.app_store {
	background-image:url('../images/available_on_the_app_store.png');
}

.google_play {
	background-image:url('../images/get_it_on_google_play.png'); /* change when android app is live */
	/*opacity:0.4;*/
}

.app_store,
.google_play {
	background-size:contain;
	background-repeat:no-repeat;
	background-position:center;
}

.puzzle_list .app_store,
.puzzle_list .google_play {
	margin-top:10px;
	height:60px;
}

.rules div.app_store,
.rules div.google_play {
	height:auto;
	min-height:50px;
	width:45%;
	display:inline-block;
	margin:5px;
}

/* uncomment line below when android app is live */
.google_play:hover,
.app_store:hover {
	cursor:pointer;
}

.app_store img,
.google_play img {
	margin-top:4%;
	height:80%;
}

/* aside globals */

aside > header {
	color: #a2a2a2;
	background-color: #222;
	height: 60px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-flow: row nowrap;
	flex-flow: row nowrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 0 1.5em;
	font-size: 27px;
	text-shadow:2px 4px 4px rgba(0,0,0,0.4);
}





/* main page */

.main {
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: center;
	justify-content: flex-start;
	overflow-y: scroll;
	overflow-x:hidden;
	position:relative;
}

.main .containa {
	min-height: 0px;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    position: absolute;
    bottom: 280px;
    top: 0px;
    overflow-y: auto;
    width: 100%;
	max-width:640px;
}

.main.tutorial_mode {
	background-color:#342c2c;
}

.play_area {
	display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo {
	height: 140px;
	background-image: url("../images/wfw4.3.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	margin-bottom:20px;
	opacity:0.5;
}

.logo.easy {
    filter: hue-rotate(120deg) saturate(9);
}
.logo.medium {
    filter: hue-rotate(210deg) saturate(12);
}
.logo.hard {
	filter:none;
}
.logo.infuriating {
    filter: hue-rotate(-45deg) saturate(2);
}

.side_stripes {
	width: 95%;
    height: 100%;
	background-image: url(../images/side_stripes_blue.png);
    z-index: 0;
    position: absolute;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    /*filter: brightness(10%) sepia(100) saturate(54) hue-rotate(-168deg);*/
    max-width:600px;
}

.side_stripes.out {
	opacity:0;
}

.side_stripes.in {
	opacity:1;
	transition:opacity 0.4s ease-in;
}

.side_stripes.white {
    background-image: url(../images/side_stripes.png);
}

.side_stripes.easy {
	filter:hue-rotate(280deg);
}

.side_stripes.medium {
	filter:hue-rotate(0deg);
}

.side_stripes.hard {
	filter:hue-rotate(160deg) saturate(8);
}

.side_stripes.infuriating {
	filter:hue-rotate(90deg) saturate(6);
}



/* nav buttons on main */

.toggle_leaderboard,
.toggle_puzzles,
.toggle_rules {
	height: 64px;
	padding: 10px 16px;
	font-size: 35px;
	display: inline-block;
	position: absolute;
	color: #a0a0a0;
	z-index: 102;
	width:64px;
	top: 8px;
	background-color:transparent;
	background-position:center;
	background-repeat:no-repeat;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	cursor:pointer;
}

.toggle_leaderboard {
	opacity: 0.4;
	right:16px;
	background-image:url("../images/trophy_star.png");
	background-size:100% auto;
}

.toggle_puzzles {
	opacity: 0.9;
	left:6px;
	background-image:url("../images/puzzle_piece.png");
	background-size:80% auto;
}

.toggle_rules {
	opacity: 0.9;
	right:16px;
	background-image:url("../images/rulebook.png");
	background-size:100% auto;
}

.button.toggle_leaderboard:hover {
	opacity:0.55;
}

.button.toggle_rules:hover {
	filter:brightness(1.2);
}

.button.toggle_puzzles:hover {
	filter:brightness(1.2);
}

.containa .toggle_rules.button,
.containa .toggle_puzzles.button {
	display:none;
}



.source, .typebox, .target, .create_mode {
	position: relative;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 8px;
	font-size: 26px;
	color: white;
	margin: 4px 0;
/* 	transform: rotateY(0deg); */
}

.source {
	-webkit-transition: transform 1s 0s;
	transition: transform 1s 0s;
}

.source.ballerina, .target.ballerina {
	-webkit-transition: transform 1s 0s;
	transition: transform 1s 0s;
	transform: rotateY(360deg); /* X is a somersault, Y is a ballerina, Z is a screw */
}

.target_height_keeper {
	position: relative;
}

.words {
	width: auto;
	height: auto;
	display: flex;
	flex-direction: column;
	padding-left: 64px;
	padding-right: 64px;
	max-width: 100%;
	position:relative;
}

.accepted_word {
	position: relative;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	/*padding: 5px 0px 0px 0px;*/
	line-height:44px;
	/*margin:0;*/
	/*border:4px solid rgb(12 12 12);*/
	border-left:none;
	border-right:none;
	font-size: 26px;
	color: white;
	/*background-color: rgb(50 50 50 / 25%);*/
	border-radius: 6px;
	height:0px;
	opacity:0;
	
    z-index: 2000;
	transition:height 0.3s, opacity 0s 0.3s;
}

.accepted_word.grow {
	height: 44px;
	opacity:1;
	transition:height 0.3s, opacity 0s 0s;
	/*, margin 5.3s;*/
}

.accepted_word.grow.instant {
	height: 44px;
	transition:height 0s;
	/*, margin 5.3s;*/
}




.fake.typebox {
    position: relative;
    text-align: center;
    width: 100%;
    min-width: 260px;
    box-sizing: border-box;
    height: 44px;
    /*padding: 7px 0px 0px 0px;*/
    font-size: 26px;
    color: white;
    margin: 4px 0;
    /*background-color: #383838;*/
    display: flex;
    justify-content: center;
    /*border: 1px solid white;*/
    border-radius: 6px;
    line-height:36px;
    padding: 0;
}


.typebox.solved .boxer {
	background-color:rgb(0,128,0);
	box-shadow:0 0 3px white;
	-webkit-transition: background-color 0.5s 0s;
	transition: background-color 0.5s 0s;
}

.progress {
	/*font-size:36px;*/
	transform: scale(1);
	opacity:0.5;
	margin-top:0px;
	/*-webkit-transition: font-size 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;*/
	/*transition: font-size 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;*/
	
	transition: scale 0.1s 0s, opacity 0.1s 0s, margin-top 0.1s 0s;
	
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress.done {
	transform:scale(2);
	opacity:0.9;
	margin-top:-12px;
	-webkit-transition: font-size 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;
	transition: font-size 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;
	transition: transform 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;
}

.progress.undone {
	transform:scale(1);
	opacity:0.5;
	margin-top:0px;
	-webkit-transition: font-size 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;
	transition: font-size 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;
	transition: transform 0.3s 0s, opacity 0.3s 0s, margin-top 0.3s 0s;
}

.progress .container {
	width: auto;
	position: relative;
}

.progress .step.count {
	font-size:46px;
}

.progress .letter.count {
    position: absolute;
    left: 100%;
    top: -4px;
    font-size: 24px;
}

.goals.green .step.count,
.goals.green .letter.count {
	color:lime;
}

.goals.yellow .step.count,
.goals.yellow .letter.count {
	color:yellow;
}

.goals.red .step.count,
.goals.red .letter.count {
	color:rgb(255 100 100);
}

.target {
	top:0px;
	opacity:1;
	-webkit-transition: opacity 0.3s 0s, top 0.3s 0s, transform 1s 0s;
	transition: opacity 0.3s 0s, top 0.3s 0s, transform 1s 0s;
}

.target.acquired {
	top:-52px;
	opacity:0;
	-webkit-transition: opacity 0.3s 0s, top 0.3s 0s, transform 1s 0s;
	transition: opacity 0.3s 0s, top 0.3s 0s, transform 1s 0s;
}

.target.unacquired {
	top:0px;
	opacity:1;
	-webkit-transition: opacity 0.3s 0s, top 0.3s 0s, transform 1s 0s;
	transition: opacity 0.3s 0s, top 0.3s 0s, transform 1s 0s;
}

.error_type {
	position: absolute;
    /* top: -57px; */
    /* margin-bottom: -57px; */
    bottom: 10px;
    left: 86%;
    height: 40px;
    width: 40px;
}

.error_type .error_image {
	width:100%;
	height:100%;
}

.boxer {
    border: 1px solid white;
    border-radius: 6px;
    width: 100%;
    position: absolute;
    height: 100%;
    top: -5px;
    background-color: #ffffff33;
    background-color:#383838;
}

.boxer.green {
	border:1px solid lime;
	background-color:rgba(0 255 0 / 10%);
}

.boxer.yellow {
	border:1px solid yellow;
	background-color:rgb(255 255 0 / 10%);
}

.boxer.red {
	border:1px solid rgb(255 100 100);
	background-color:rgba(255 100 100 / 10%);
}

.expander {
    width: fit-content;
    position: relative;
}

.worder {
	width:auto;
	white-space:no-wrap;
}

.worder.hilite {
	background-color:rgb(15 100 220);
}

.worder.delayin {
	animation: delayin 0.3s linear;
}

@keyframes delayin {
	0% {
		opacity:0;
	}
	99% {
		opacity:0;
	}
	100% {
		opacity:1;
	}
}


.caret {
	position: absolute;
    right: 0px;
    width: 1px;
    height: 30px;
    background-color: white;
    top: 2px;
}

.caret.blink {
    animation: blink 1.2s infinite linear;
}

@keyframes blink {
	0% {
		background-color:white;
	}
	49% {
		background-color:white;
	}
	50% {
		background-color:transparent;
	}
	100% {
		background-color:transparent;
	}
}

.expander.temp_hide {
	animation: temp_hide 0.2s linear;
}

@keyframes temp_hide {
	0% {
		opacity:0;
	}
	90% {
		opacity:0;
	}
	100% {
		opacity:1;
	}
}



/* keyboard */

section.keyboard {
	position: absolute;
	bottom: 0px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width:640px;
	color:white;
	background-color:rgb(22 22 22);
}

.keyboard_module {
	width:100%;
	height:280px;
}

.keyboard_row {
	display: flex;
    justify-content: center;
    /*margin-bottom:8px;*/
    height:24%;
    perspective:500px;
}

.keyboard_row:last-child {
	margin-bottom:4px;
}

.keyboard_row .space {
	width:40px;
}

.keyboard .key {
	width: 9.9%;
    margin: 0 0%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: rgb(0 190 255 / 20%);
    border-radius: 6px;
    border: 4px solid rgb(22 22 22);
    /*border: 4px solid red;*/
  	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
	transition:background-color 0.1s;
}

.keyboard.flippedup .key {
	transform: rotateX(90deg);
}

.keyboard.flipdown .key {
	animation:keys_flip_down 0.8s ease-in;
}

@keyframes keys_flip_down {
	0% {
		transform: rotateX(90deg);
	}
	50% {
		transform: rotateX(-10deg);
	}
	100% {
		transform: rotateX(0deg);
	}
}

.keyboard.white .key {
    box-shadow: inset 1px 1px 0px rgb(255 255 255), inset -1px -1px 1px rgb(255 255 255);
    background-color: rgb(255 255 255 / 20%);
}

.keyboard.easy .key {
	background-color: rgb(9 255 0 / 7%);
    box-shadow: inset 1px 1px 0px rgb(118 255 122), inset -1px -1px 1px rgb(114 255 118);
}

.keyboard.medium .key {
    background-color: rgb(0 190 255 / 10%);
    box-shadow: inset 1px 1px 0px rgb(0 190 255), inset -1px -1px 1px rgb(0 190 255);
}

.keyboard.hard .key {
	background-color: rgb(255 0 0 / 11%);
    box-shadow: inset 1px 1px 0px rgb(255 44 44 / 90%), inset -1px -1px 1px rgb(255 44 44 / 90%);
}

.keyboard.infuriating .key {
	background-color: rgb(255 46 214 / 15%);
    box-shadow: inset 1px 1px 0px rgb(255 4 248 / 73%), inset -1px -1px 1px rgb(255 4 248 / 73%);
}

.keyboard.easy .key:hover {
	background-color: rgb(9 255 0 / 17%);
}

.keyboard.medium .key:hover {
	background-color: rgb(0 190 255 / 20%);
}

.keyboard.hard .key:hover {
	background-color: rgb(255 0 0 / 21%);
}

.keyboard.infuriating .key:hover {
	background-color: rgb(255 46 214 / 25%);
}

.keyboard .key.enter {
	width:280px;
}

.keyboard.easy .key.flash {
	animation:ef1 0.2s;
}

.keyboard.medium .key.flash {
	animation:mf1 0.2s;
}

.keyboard.hard .key.flash {
	animation:hf1 0.2s;
}

.keyboard.infuriating .key.flash {
	animation:if1 0.2s;
}

.keyboard.easy .key.lume {
	background-color: rgb(9 255 0 / 27%);
}
.keyboard.medium .key.lume {
	background-color: rgb(0 190 255 / 30%);
}

.keyboard.hard .key.lume {
	background-color: rgb(255 0 0 / 31%);
}

.keyboard.infuriating .key.lume {
	background-color: rgb(255 46 214 / 35%);
}

/* .keyboard .key.lume {
	background-color: rgb(255 46 214 / 35%);
} */

@keyframes ef1 {
	0% {
		background-color: rgb(9 255 0 / 7%);
	}
	50% {
		background-color: rgb(9 255 0 / 27%);
	}
	100% {
		background-color: rgb(9 255 0 / 7%);
	}
}

@keyframes mf1 {
	0% {
    	background-color: rgb(0 190 255 / 10%);
	}
	50% {
    	background-color: rgb(0 190 255 / 30%);
	}
	100% {
    	background-color: rgb(0 190 255 / 10%);
	}
}

@keyframes hf1 {
	0% {
		background-color: rgb(255 0 0 / 11%);
	}
	50% {
		background-color: rgb(255 0 0 / 31%);
	}
	100% {
		background-color: rgb(255 0 0 / 11%);
	}
}

@keyframes if1 {
	0% {
		background-color: rgb(255 46 214 / 15%);
	}
	50% {
		background-color: rgb(255 46 214 / 35%);
	}
	100% {
		background-color: rgb(255 46 214 / 15%);
	}
}

.keyboard .key.undo {
    width: 12%;
    margin-right: 12px;
    background-image: url(../images/up_arrow.png);
    background-size: auto 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.keyboard .key.backspace {
	width: 12%;
    margin-left: 12px;
    background-image: url(../images/backspace.png);
    background-size: auto 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.keyboard .key:hover {
	cursor:pointer;
	/*background-color:rgb(0 190 255 / 30%);*/
}


/* nav buttons on keyboard */

.button.pu,
.button.ru {
	height:100%;
	width:auto;
	opacity:0.7;
	width:70px;
	position: relative;
}

.ru.icon,
.pu.icon,
.play.icon {
	position: absolute;
	width:100%;
	height:100%;
	background-size:contain;
	background-size:84%;
	background-repeat:no-repeat;
	background-position:center;
	transition: opacity 0.3s;
}

.play_icon {
	opacity:0;
}

.toggle_ru .play.icon {
	transform:rotate(180deg);
}

.play.icon {
	background-image:url('../images/play_icon_triangle.png');
	opacity:0;
}
.ru.icon {
	background-image:url('../images/rulebook2.png');
	opacity:1;
}

.pu.icon {
	background-image:url('../images/puzzle_icon_horizontal.png');
	opacity:1;
}

.ru.icon,
.pu.icon, 
.play.icon {
	transition: opacity 0.3s;
}

.show_rules .button.ru .ru.icon {
	opacity:0;
}

.show_rules .button.ru .play.icon {
	opacity:1;
}

.show_puzzles .button.pu .pu.icon {
	opacity:0;
}

.show_puzzles .button.pu .play.icon {
	opacity:1;
}

.button.ru {
	opacity:0.55;
}

.button.pu img,
.button.ru img {
	margin-top:10%;
	height:80%;
}



/* aside left */ 

aside.left {
	z-index: 125;
	height: 100%;
	/*width: 80%;*/
	/*min-width: 80%;*/
	/*left: -80%;*/
	width:400px;
	max-width:80%;
	left:-400px;
	position: absolute;
	top: 0;
	background-color: #222;
	color: #FFFFFF;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	overflow-y:auto;
	overflow-y:visible;
}

aside.left > header {
	border-right: 2px solid #323232;
	margin-left:102px;
}

aside.left > header .pack_name {
	font-family: oldnewspaper;
}

aside.left > section {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	height: calc(100% - 60px);
	overflow-y: hidden;
	overflow-x: hidden;
	/*padding: 1em;*/
	display:flex;
	flex-direction:row;
}

/* pack icons */

.picon {
	position:relative;
	overflow:hidden;
	height:100px;
	margin-bottom:30px;
	transform: scale(0.9);
	transform-origin: -25%;
	transition: transform 0.6s;
}

.picon.on {
	transform: scale(1);
}

.picon img {
	width: 200%;
	margin-left: -100%;
}

.pack_icon {
	position:absolute;
	transition: opacity 0.3s;
}

.picon .pack_icon.on {
	width: 200%;
	margin-left: -100%;
}

.picon .pack_icon.off {
	width: 200%;
	margin-left: 0%;
}

.picon .pack_icon.on {
	opacity:0;
}

.picon .pack_icon.off {
	opacity:0.5;
}

.picon.on .pack_icon.on {
	opacity:1;
}

.picon.on .pack_icon.off {
	opacity:0;
}


section.difficulty,
section.no_access {
	/*width: 100%;*/
	text-align: center;
	color: #969696;
	font-size: 22px;
	padding: 10px 3%;
/*     border-bottom: 1px solid #404040; */
	position: relative;
	display: flex;
	align-items: center;
	box-sizing:border-box;
	flex-direction:column;
	
	border-radius: 10px;
    
    /*width: 95%;*/
    margin-left: 2.5%;
    margin-top:12px;
    margin-bottom: 16px;
}

section.no_access {
	font-size:18px;
	padding:30px;
}

section.difficulty.easy,
section.no_access.cay_star {
    border: 1px solid #dfffdf;
    box-shadow: 2px 2px 5px lime, -2px -2px 5px lime, inset 2px 2px 5px lime, inset -2px -2px 5px lime;
    background-color: rgb(0 255 0 / 2%);
}

section.no_access.cay_star {
	color:rgb(160 177 160);
}

section.difficulty.medium,
section.no_access.think_twice {
    border: 1px solid #c3f1ff;
    box-shadow: 2px 2px 5px #00c2ff, -2px -2px 5px #00c2ff, inset 2px 2px 5px #00c2ff, inset -2px -2px 5px #00c2ff;
    background-color: rgb(0 194 255 / 6%);
}

section.no_access.think_twice {
	color:rgb(165 188 199);
}

section.difficulty.hard {
    border: 1px solid #ffd0d0;
    box-shadow: 2px 2px 5px #ff0000, -2px -2px 5px #ff0000, inset 2px 2px 5px #ff0000, inset -2px -2px 5px #ff0000;
    background-color:rgb(255 0 0 / 5%);
}

section.no_access.tetra_minnow {
    border: 1px solid #ffd0d0;
    box-shadow: 2px 2px 5px #00ff33, -2px -2px 5px #ff0000, inset 2px 2px 5px #00b5ff, inset -2px -2px 5px #ff0000;
    background-color: rgb(255 255 255 / 5%);
}

section.no_access.tetra_minnow {
	/*color:rgb(199 174 174);*/
    color: rgb(193 193 193);
}

section.difficulty.infuriating,
section.no_access.hat_trick {
    border: 1px solid #f4d3ff;
    box-shadow: 2px 2px 5px #c200ff, -2px -2px 5px #c200ff, inset 2px 2px 5px #c200ff, inset -2px -2px 5px #c200ff;
    background-color:rgb(194 0 255 / 6%);
}

section.no_access.hat_trick {
	color:rgb(179 163 179);
}

.pack_list {
	/*position: absolute;*/
	top: 0px;
	bottom: 0px;
	width: 20%;
	background-color: transparent;
	overflow-x:hidden;
	overflow-y:scroll;
	background-color:#222;
	padding:6px 10px;
}

.puzzle_list {
	width:80%;
	/*margin-left:124px;*/
	overflow-y:scroll;
	padding:8px 16px;
	background-color:#2f2f2f;
	border-top-left-radius:16px;
	box-shadow:inset 6px 6px 6px rgb(0 0 0 / 60%);
	border-left:1px solid #323232;
	border-top:1px solid #323232;
}

.puzzle_list .positioner {
	position:relative;
}

.difficulty.title {
	position:relative;
	width: 100%;
	border-bottom: 1px solid #5a5a5a;
	/*background-color: #484848;*/
	padding: 10px 4px;
	color:white;
}

.difficulty.contents {
	width:100%;
}
.diff_progress {
	display: inline-block;
	right: 10px;
	position: absolute;
	font-size: 17px;
	color: rgba(245, 239, 0, 0.45);
	text-align: right;
	padding-left: 25px;
	top: 0px;
	height: 100%;
	display: flex;
	align-items: center;
	color:gray;
}

.tutorial .difficulty.title {
	background-color:#634e4e;
}

.polyad {
	display:inline-block;
	width:100%;
}

.puzzle {
	width: 100%;
	text-align: center;
	color: #969696;
	font-size: 22px;
	padding: 6px 2px;
	border-bottom: 1px solid #404040;
	position:relative;
	display:flex;
	align-items:center;
}

.puzzle:last-of-type {
	border-bottom:none;
}

.puzzle:hover {
	background-color:rgba(220,220,220,0.05);
	cursor:pointer;
}

.puzzle.selected .polyad {
	text-shadow: 4px 3px 3px rgba(0,0,0,0.8);
	color:#bbefff;
}

.puzzle_num {
	display: inline-block;
/* 	display:none; */
	left: 0%;
	position: absolute;
	font-size: 18px;
	color: rgba(128,128,128,0.4);
	text-align:right;
	width:10%;
}

.steps {
	right: 6px;
	position:absolute;
}

.steps sup {
	font-size:0.6em;
}

.steps.eagle, .steps.birdie, .steps.par, .steps.green {
	color: #03961d;
	position: absolute;
}

.steps.yellow {
	color:rgb(230 230 120 / 100%);
}

.steps.bogey, .steps.red {
	color:#ca4c4c;
}

.typebox.solved.bogey {
	background-color:#ca4c4c;
}






/* aside right */

aside.right {
	z-index: 125;
	height: 100%;
	/*width: 80%;*/
	/*min-width: 80%;*/
	/*right: -80%;*/
	width:400px;
	max-width:80%;
	right:-400px;
	position: absolute;
	top: 0;
	background-color: rgb(32 32 32);
	color: #FFFFFF;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	overflow-y: auto; /* header and section being removed by javascript for now, for privacy purposes */
	overflow-x: hidden;
}

aside.right > header {
/* 	border-left:8px #484848 solid; */
	background-color:#3a3a3a;
}

aside.right > header > div {
	font-size:36px;
	width:100%;
	text-align:center;
}

aside.right > section {
	-webkit-box-flex:1;
	-ms-flex:1;
	flex:1;
	height:calc(100%-60px);
	overflow:auto;
	font-size:15px;
}


.rules {
	position: relative;
	text-align: center;
	width: 100%;
	padding:3%;
	box-sizing: border-box;
	font-size: 12px;
	color: rgb(118 146 154);
}

.rules .example {
    position: absolute;
    z-index:10;
	text-align:center;
	color:rgb(220 220 220);
	display:flex;
	flex-direction:column;
	padding:10px 0;
	/*flex-grow:;*/
}

.rules .example div {
	flex:1;
	display:flex;
	justify-content:center;
	align-items:center;
}

.rules .example .exsource,
.rules .example .extarget {
	font-size:24px;
	flex:1.2;
}

.rules .example .exsteplet {
	margin-top:10px;
	font-size:28px;
}

.rules .example .exsteplet sup {
	font-size:0.6em;
    margin-top: -16px;
    margin-right: -10px;
}

.rules .bad.example {
    width: 100px;
    height: 250px;
    background-color: rgb(255 0 0 / 6%);
    right: 0px;
    top: calc(100% + 26px);
    border-radius: 8px;
    border: 2px solid rgb(255 60 60);
}

.rules .decent.example {
    width: 100px;
    height: 240px;
    background-color: rgb(255 254 0 / 5%);
    left: 0px;
    top: calc(100% + 36px);
    border-radius: 8px;
    border: 2px solid rgb(247 255 91);
}

.rules .great.example {
    width: 100px;
    height: 250px;
    background-color: rgb(9 255 0 / 7%);
    right: 0px;
    top: calc(100% + 30px);
    border-radius: 8px;
    border: 2px solid rgb(90 255 94);
}

.rules .bad.example .exsteplet,
.rules .bad.example .head {
	color:rgb(255 60 60);
}

.rules .decent.example .exsteplet,
.rules .decent.example .head{
	color:rgb(247 255 91);
}

.rules .great.example .exsteplet,
.rules .great.example .head {
	color:rgb(90 255 94);
}

.rules .example .head {
	position:absolute;
	top:-14px;
	font-size:9px;
	width:100%;
	/*text-align:left;*/
	justify-content: flex-start;
}

.rules h2 {
/* 	margin-top:4px; */
	color:#A1C8D4;
	margin-bottom:4px;
}

.rules impact {
	color:rgb(206 245 255);
}

.rules ol {
	margin-top:0px;
}

.rules ol li {
	margin-left:-20px;
	padding:6px 0px;
	text-align:left;
}

.rules div {
	width:100%;
	position: relative;
}

.rules .dodge.left {
	padding-left:120px;
	text-align:right;
}

.rules .dodge.right {
	padding-right:120px;
	text-align:left;
}

.rules .dodge.left.right {
	text-align:center;
}

.rule_detail {
	padding-bottom:15px;
	display:flex;
	flex-direction:row;
}

.rule_detail div.r {
	padding-right:5px;
}

.rule_detail div.d {
	padding-left:5px;
}

.rule_detail .rule_icon {
	flex:1;
	margin-top:2px;
	/*text-align:right;*/
}

.rule_detail .rule_explain {
	flex:7;
	text-align:left;
}

.rule_icon img {
	margin-top: 2px;
    /* height: 32px; */
    width: 42px;
}





/* tokens */

.tokens {
	position: relative;
	margin-top:12px;
	text-align:center;
	color:gray;
	line-height:22px;
	display: flex;
	align-items: center;
	flex-direction: column;
	display:none;
}

.tokens .label {
/* 	text-decoration:underline; */
	font-size:16px;
}

.tokens .tokencount {
	color: #ceaa20;
	border-top: 1px solid gray;
	line-height: 30px;
	width: auto;
	padding: 0 5px;
}

.tokens .tokencount.no_overline {
	border-top:none;
}

.tokens_add {
	position: absolute;
	top: 10px;
	left: 50%;
	width: 50px;
	height: 20px;
/* 	background-color: rgba(0,0,0,0.2); */
	color: gold;
	visibility:hidden;
	opacity: 1;
	transition:opacity 0s, top 0s, left 0s, font-size 0s;
}

.tokens_add.sliding {
	visibility:visible;
	top:-16px;
	left:51%;
	opacity:0;
	font-size:42px;
	transition:opacity 0.5s 1s, top 1s, left 1s, font-size 0.8s;
}






/* misc */

.tutorials_blurb {
	font-size:12px;
	padding: 10px 0px 20px 0px;
	border-bottom: 1px solid #424242;
	background-color:#332c2c;
}

.leven {
	position: absolute;
	right: 70px;
	top: -104px;
	color: rgb(255 255 255 / 60%);
	font-size: 38px;
	height: 44px;
	line-height: 44px;
	display:none;
}





/* responsive sizing */
@media only screen and (min-width: 768px) {
	aside.right {
		width: 400px;
		min-width: 400px;
		right: -400px;
	}
	
	aside.left {
		width: 400px;
		min-width: 400px;
		left: -400px;
	}
}

@media only screen and (min-width: 1260px) {
	aside.right {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		position: inherit;
		float: right;
		right: 0;
	}
	
	aside.left {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		position: inherit;
		float: left;
		left: 0;
	}
	
	.button.pu,
	.button.ru {
		display:none;
	}
}

@media only screen and (min-width: 0px) {
	.logo {
		max-width:80%;
		/*margin-left:10%;*/
		width:50%;
	}
}

@media only screen and (min-width: 1260px) {
	.logo {
		max-width:50%;
		/*margin-left:25%;*/
		width:50%;
	}
}







/*.error_type:hover {*/
/*	cursor:pointer;*/
/*}*/



.error_speech_bubble {
	transform:scale(0);
	-webkit-transition:transform 0.5s 0s;
	transition:transform 0.5s 0s;
}

.error_speech_bubble.blow_up {
	transform:scale(1);
	-webkit-transition:transform 0.5s 0s;
	transition:transform 0.5s 0s;
}

/* redesign and use this for dictionary if you don't want it to look like a speech bubble */
.error_speech_bubble.v1 {
	position: absolute;
	bottom: 80px;
	right: -19px;
	width: 215px;
	height: auto;
	padding: 20px 20px;
	background-color: #bf5757;
	border: 1px solid #542121;
	opacity: 0.9;
	border-radius: 26px;
	color: white;
}

.error_speech_bubble.v1:after {
	content: "";
	position: absolute;
	bottom: -15px;
	right: 40px;
	border-width: 15px 15px 0;
	border-style: solid;
	border-color: #bf5757 transparent;
	border-top-color: rgb(191, 87, 87);
	border-right-color: transparent;
	border-bottom-color: rgb(191, 87, 87);
	border-left-color: transparent;
	display: block;
	width: 0;
}

.error_speech_bubble.v2 {
	position: absolute;
	bottom: 82px;
	right: 10px;
	min-width: 250px;
	max-width: 300px;
	height: auto;
	padding: 20px 20px;
	background-color: #bf5757;
	border: 1px solid #000000;
	opacity: 0.97;
	border-radius: 26px;
	font-size: 15px;
	color: #ffdada;
/*     font-weight: bold; */
	box-shadow: 20px 20px 12px rgba(0,0,0,0.8);
	transform-origin: 87% 130%;
}

.error_speech_bubble:hover {
	cursor:x-large;
}

.error_speech_bubble.v2:before {
	content: "";
	position: absolute;
	bottom: -20px;
	right: 32px;
	border: 0;
	border-right-width: 40px;
	border-bottom-width: 20px;
	border-style: solid;
	border-color: transparent #bf5757;
	display: block;
	width: 0;
}

.error_speech_bubble.v2:after {
	content: "";
	position: absolute;
	bottom: -20px;
	right: 32px;
	border: 0;
	border-right-width: 13px;
	border-bottom-width: 20px;
	border-style: solid;
	border-color: transparent #0e0e0e;
	display: block;
	width: 0;
}

.error_speech_bubble.oval {
	position: absolute;
	bottom: 22px;
	right: 12px;
	opacity: 0.95;
	width: 270px;
	padding: 50px 40px;
	margin: 1em auto 80px;
	text-align: center;
	color: #fff;
	background: #bf5757;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#ea7d7d), to(#823636));
	background: -moz-linear-gradient(#ea7d7d, #823636);
	background: -o-linear-gradient(#ea7d7d, #823636);
	background: linear-gradient(#ea7d7d, #823636);
	-webkit-border-top-left-radius: 220px 120px;
	-webkit-border-top-right-radius: 220px 120px;
	-webkit-border-bottom-right-radius: 220px 120px;
	-webkit-border-bottom-left-radius: 220px 120px;
	border-top-left-radius: 220px 120px;
	border-top-right-radius: 220px 120px;
	border-bottom-right-radius: 220px 120px;
	border-bottom-left-radius: 220px 120px;
	-moz-border-radius: 220px / 120px;
	border-radius: 220px / 120px;
	box-shadow: 20px 20px 20px rgba(0,0,0,0.8);
	transform-origin: 89% 126%;
}

.error_speech_bubble.oval:before {
	content: "";
	position: absolute;
	bottom: -25px;
	right: 50px;
	width: 30px;
	height: 30px;
	background: #bf5757;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#ea7d7d), to(#823636));
	background: -moz-linear-gradient(#ea7d7d, #823636);
	background: -o-linear-gradient(#ea7d7d, #823636);
	background: linear-gradient(#ea7d7d, #823636);
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	box-shadow: 12px 12px 16px rgba(0,0,0,0.9);
}

.error_speech_bubble.oval:after {
	content: "";
	position: absolute;
	bottom: -36px;
	right: 30px;
	width: 15px;
	height: 15px;
	background: #bf5757;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#ea7d7d), to(#823636));
	background: -moz-linear-gradient(#ea7d7d, #823636);
	background: -o-linear-gradient(#ea7d7d, #823636);
	background: linear-gradient(#ea7d7d, #823636);
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;
	box-shadow: 6px 6px 8px rgba(0,0,0,0.8);
}

.button:hover {
	/*background-color:#484848;*/
	cursor:pointer;
}

.portal {
	position: relative;
	overflow: hidden;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;
	height: 100%;
	width: 100%;
}

.portal_canvas {
	width: 100%;
	height: 100%;
	position: relative;
	-webkit-transition: .3s ease all;
	transition: .3s ease all;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: transform 0.3s 0s cubic-bezier(0.45, 0, 0.55, 1);
	transition: transform 0.3s 0s cubic-bezier(0.45, 0, 0.55, 1);
}

.portal_canvas.show_puzzles {
	-webkit-transform: translateX(400px);
	-ms-transform: translateX(400px);
	transform: translateX(400px);
	-webkit-transform: translateZ(0) translateX(400px);
	transform: translateZ(0) translateX(400px);
	-webkit-transform: translate3d(400px,0,0);
	transform: translate3d(400px,0,0);
	
	-webkit-transition: transform 0.3s 0s cubic-bezier(0.45, 0, 0.55, 1);
	transition: transform 0.3s 0s cubic-bezier(0.45, 0, 0.55, 1);
}

@media only screen and (min-width: 768px) {
	.portal_canvas.show_puzzles {
		-webkit-transform: translateX(400px);
		-ms-transform: translateX(400px);
		transform: translateX(400px);
		-webkit-transform: translateZ(0) translateX(400px);
		transform: translateZ(0) translateX(400px);
		-webkit-transform: translate3d(400px,0,0);
		transform: translate3d(400px,0,0);
	}
}

@media only screen and (min-width: 1260px) {
	.portal_canvas.show_puzzles {
		-webkit-transform: translateX(0px);
		-ms-transform: translateX(0px);
		transform: translateX(0px);
		-webkit-transform: translateZ(0) translateX(0px);
		transform: translateZ(0) translateX(0px);
		-webkit-transform: translate3d(0px,0,0);
		transform: translate3d(0px,0,0);
	}
}

.portal_canvas.show_rules {
	-webkit-transform: translateX(-400px);
	-ms-transform: translateX(-400px);
	transform: translateX(-400px);
	-webkit-transform: translateZ(0) translateX(-400px);
	transform: translateZ(0) translateX(-400px);
	-webkit-transform: translate3d(-400px,0,0);
	transform: translate3d(-400px,0,0);
	
	-webkit-transition: transform 0.3s 0s cubic-bezier(0.45, 0, 0.55, 1);
	transition: transform 0.3s 0s cubic-bezier(0.45, 0, 0.55, 1);
}

@media only screen and (min-width: 768px) {
	.portal_canvas.show_rules {
		-webkit-transform: translateX(-400px);
		-ms-transform: translateX(-400px);
		transform: translateX(-400px);
		-webkit-transform: translateZ(0) translateX(-400px);
		transform: translateZ(0) translateX(-400px);
		-webkit-transform: translate3d(-400px,0,0);
		transform: translate3d(-400px,0,0);
	}
}

@media only screen and (min-width: 1260px) {
	.portal_canvas.show_rules {
		-webkit-transform: translateX(0px);
		-ms-transform: translateX(0px);
		transform: translateX(0px);
		-webkit-transform: translateZ(0) translateX(0px);
		transform: translateZ(0) translateX(0px);
		-webkit-transform: translate3d(0px,0,0);
		transform: translate3d(0px,0,0);
	}
}





.logo.outer {
	width:100%;
}

.mask {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	overflow: hidden;
	width: 0;
	height: 0;
	background-color: #000;
	opacity: 0;
	-webkit-transition: opacity .3s,width 0s .3s,height 0s .3s;
	transition: opacity .3s,width 0s .3s,height 0s .3s;
}

.mask.active {
	width: 100%;
	height: 100%;
	opacity: 0.3;
	-webkit-transition: opacity .3s;
	transition: opacity .3s;
	cursor:pointer;
}

@media only screen and (min-width: 1260) {
	.mask.active {
		width:0;
		height:0;
	}
}

.containa.blur .logo,
.containa.blur .controls,
.containa.blur .typebox,
.containa.blur .accepted_word,
.containa.blur .source,
.containa.blur .target,
.containa.blur .goals {
	filter:blur(2px);
}

.undo.tut_flash {
	background-color: #CCCCCC;
	box-shadow: 0px 0px 22px rgba(255,255,255,1);
	filter: blur(0.75px);
}

/* .goals, .results { */
	/*padding:2px 40px;*/
/* 	display:inline-block; */
/* } */

.goals {
	color:gray;
	text-align: center;
	display:flex;
	justify-content:center;
    padding-bottom: 80px;
}

.results {
/* 	margin-bottom:30px; */
	color:#CCC;
	position: relative;
	width: 60%;
	text-align: center;
	bottom: 0px;
/*     max-width: 459px; */
	height: 20px;
/*     margin-top: -200px;
	top: 200px; */
	margin-left:20%;
	padding-bottom:60px;
}



/* scroll-bars */

.main::-webkit-scrollbar,
.containa::-webkit-scrollbar,
.puzzle_list::-webkit-scrollbar {
	width: 2px;
	background-color:#4a4a4a;
}

.pack_list::-webkit-scrollbar {
	width:0px;
}

.main::-webkit-scrollbar-track,
.pack_list::-webkit-scrollbar-track,
.containa::-webkit-scrollbar-track,
.puzzle_list::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
.main::-webkit-scrollbar-thumb,
.pack_list::-webkit-scrollbar-thumb,
.containa::-webkit-scrollbar-thumb,
.puzzles_list::-webkit-scrollbar-thumb {
  background-color: #656565;
  outline: 0px solid slategrey;
}

aside > section::-webkit-scrollbar {
	width: 2px;
	background-color:#4a4a4a;
}

aside > section::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
aside > section::-webkit-scrollbar-thumb {
  background-color: #656565;
  outline: 0px solid slategrey;
}