/*reset*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*end of reset*/

.darkMode{
	display: none;
}

.lightMode{
	display: inherit;
}
/* override a few introjs things */
.introjs-helperNumberLayer{
	display: none;
}

/* start of mandawin specific css */
h1{
	font-size: 40px;
}

h2{
	font-size: 25px;
}

a:not([href]):not([tabindex]){
	color: #FF5858;
	text-decoration: underline;
}

a:not([href]):not([tabindex]):hover, a:hover{
	color: rgb(255, 106, 106);
	text-decoration: underline;
}

pre{
	font-size: 12px;
	margin-bottom: 15px;
	overflow-wrap: break-word;
}

.smallNote{
	font-size: 12px;
	color: grey;
	margin: 5px 0;
}

#instantclick-bar {
  background: #FF5858;
}

.clr{
	clear: both;
}

html{
	height: 100%;
}

body{
	font-family: 'Open Sans', sans-serif;
	/* font-weight: 300; */
	font-size: 16px;
	height: 100%;
}

a, .fakeLink{
	color: #FF5858;
	cursor: pointer;
	text-decoration: underline;
}

input[type=email], input[type=password], input[type=text]{
	border-radius: 100px;
	max-width: 350px;
	margin: 5px 0 10px;
	box-shadow: inset 0 3px 6px -4px rgba(0,0,0,0.15);
	font-size: 18px;
}

.optionRow a, .optionRow button{
	display: inline-block;
}

p + p{
	margin-top: 7px;
}

ul.bullets{
	list-style: disc;
	list-style-position: inside;
	margin: 10px 0;
}

ul.bullets li{
	
}

.mnemonic strong{
	font-weight: bold;
}

.meaningTitle, .readingTitle{
	font-size: 24px;
	font-weight: bold;
	margin-top: 30px;
	margin-bottom: 5px;
}

h3{
	font-size: 24px;
	font-weight: bold;
	margin-top: 3px;
	margin-bottom: 5px;
}

h4{
	font-weight: 400;
	font-size: 21px;
}

.meaningTitle span + span, .readingTitle span + span{
	font-size: 14px;
	color: grey;
}

.meaningTitle span:first-child, .readingTitle span:first-child{
	padding-right: 8px;
}

.meaningTitle span + span:after, .readingTitle span + span:after{
	content: ', ';
}

.meaningTitle span:last-child:after, .readingTitle span:last-child:after{
	content: '';
}

.col h3{
	margin: 0;
}

.meaningTitle{
	font-weight: bold;
}

.readingTitle{
	font-style: italic;
	font-weight: normal;
}

img.customCharacter{
	height: 1em;
}

section.login{
	text-align: center;
}

.fbLoginButton{
	background-color: #3c5a99;
}

.appleLoginButton{
	background-color: black;
}

.fbLoginButton, .appleLoginButton{
	font-size: 18px;
	padding: 12px 12px 15px 12px;
	border-radius: 5px;
	display: inline-block;
	margin: 10px 2px;
	box-shadow: 0 3px 6px -4px rgba(0,0,0,0.35);
	transition: all 0.2s;
}


.fbLoginButton:hover, .appleLoginButton:hover{
	transform: translateY(-2px);
	box-shadow: 0 5px 6px -4px rgba(0,0,0,0.35);
}

a.fbLoginButton, a.appleLoginButton{
	color: white;
	text-decoration: none;
}

.fbLoginButton img, .appleLoginButton img{
	height: 1.5em;
	vertical-align: middle;
	padding-right: 8px;
}

.fbLoginButton span, .appleLoginButton span{
	vertical-align: middle;
}

.vocabBackButton{
	position: absolute;
	left: 10px;
	background-color: rgba(255, 255, 255, 0.6);
	width: 45px;
	height: 45px;
	font-size: 35px;
	line-height: 45px;
	text-align: center;
	top: 130px;
}
.vocabBackButton i, .leftProtrudingBackButton i{
	transition: 0.2s all;
}

.vocabBackButton:hover i, .leftProtrudingBackButton:hover i{
	transform: translateX(-2px);
}

.leftProtrudingBackButton{
	position: absolute;
	left: -50px;
	background-color: rgba(255, 255, 255, 0.6);
	width: 45px;
	height: 45px;
	font-size: 35px;
	line-height: 45px;
	text-align: center;
	top: 15px;
}

@media (max-width: 1050px){
	.leftProtrudingBackButton{
		display: none;
	}
}

body.public nav{
	display: none;
}

.viewMoreLink{
	display: inline-block;
}

.viewMoreLink i{
	transition: all 0.3s;
	transform: translateX(-1px);
}

.viewMoreLink:hover i{
	transform: translateX(2px);
}

.noUnderline{
	text-decoration: none;
}

.noUnderline:hover{
	text-decoration: none;
}

header{
	margin: 0 auto;
	position: relative;
	min-height: 119px;
	background: rgb(255,239,156);
	background: -moz-linear-gradient(45deg, rgba(254,197,146,1) 0%, rgba(255,110,110,1) 100%);
	background: -webkit-linear-gradient(45deg, rgba(254,197,146,1) 0%,rgba(255,110,110,1) 100%);
	background: linear-gradient(45deg, rgba(254,197,146,1) 0%,rgba(255,110,110,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fec592', endColorstr='#ff6e6e',GradientType=1 );

}

header *{
	text-decoration: none !important;
}

#headerInner{
	max-width: 1000px;
	margin: 0 auto;
	padding: 25px 0px 20px;
	position: relative;
}

footer{
	/* margin-top: 40px; */
	height: 50px;
	background-color: #eee;
	color: #333;
	position: relative;
}

footer p{
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
	font-size: 10px;
	padding-top: 20px;
}

footer a{
	color: #333;
}

section{
	margin: 15px 0;
}

nav{
	/* padding-left: 10px; */
	display: inline-block;
}

nav li{
	vertical-align: middle;
	display: inline-block;
}

nav li.porthole{
	height: 68px;
	width: 88px;
	background-size: cover;
	background-position: center center;
	background-color: rgba(255, 255, 255, 0.1);
	text-align: left;
	margin-left: 10px;
	transition: background 0.2s;
	color: #BE0000;
}

nav li.porthole.highlighted{
	background-color: rgba(255, 255, 255, 0.3);
}

header nav a{
	text-decoration: none;
	color: inherit;
}

nav .avatar.porthole{
	border: none;
	padding: 4px;
	position: absolute;
	right: 20px;
	top: 12px;
	margin-top: 5px;
	border-radius: 100px;
	width: 78px;
	height: 78px;
}

nav li.porthole:hover{
	background-color: rgba(255, 255, 255, 0.6);
}

.itemCount{
	padding-top: 16px;
	padding-left: 10px;
	font-weight: 100;
	font-size: 14px;
}

.itemCount strong{
	font-size: 22px;
	font-weight: 700;
}

header img{
	width: 70px;
	position: absolute;
	left: 50%;
	top: 24px;
	margin-left: -35px;
}

header input{
	position: absolute;
	right: 115px;
	top: 40px;
	border: 2px #282F53 solid;
	height: 27px;
	padding: 0 10px;
	border-radius: 8px;
	width: 50px;
	transition: 0.2s;
}

header input:focus{
	width: 150px;
}

.systemMessage{
	background-color: rgb(255, 230, 0);
	text-align: center;
	padding: 10px;
	box-shadow: 5px 10px #888888;
}

.systemMessage
{
    position:relative;
    -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1);
       -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1);
            box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1);
}

.systemMessage:empty{
	display: none;
}

.mwContainer{
	min-height: 100%;
	height: auto !important;
	height: 100%;
	/* margin-bottom: -50px; */
}

main{
	width: 90%;
	max-width: 950px;
	/* margin: 0px auto 0px; */
	margin: 0 auto -50px;
	line-height: 1.4;
	padding-top: 20px;
	padding-bottom: 70px;
	position: relative;
}

main p{
	line-height: 1.4;
}

main ol li{
	list-style: decimal;
	line-height: 1.4;
	margin-left: 20px;
}

.progressBarOuter{
	width: 100%;
	border: 2px #F9D82C solid;
	border-radius: 100px;
	height: 24px;
	position: relative;
	overflow: hidden;
}

.progressBarInner{
	position: absolute;
	top: 0px;
	left: 0px;
	height: 24px;
	width: 89%;
	background-color: #F9D82C;
}

.nextReviewLabel, .progressIndicator{
	font-size: 110%;
}

.nextReviewTime{
	font-size: 150%;
	font-weight: bold;
}

.progressPercentageLabels{
	font-size: 70%;
	color: grey;
}

.tutorial{
	background-color: #FFF0E5;
	margin: 10px 0;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 3px 6px -4px rgba(0,0,0,0.35);
}

.tutorial li{
	margin-top: 4px;
}

.srsLevelIcon{
	font-size: 38px;
}

.srsLevelCount{
	font-size: 18px;
}

.srsLevels li{
	display: inline-block;
	text-align: center;
}

.srsLevels div{
	line-height: 1;
}

.srsLevelThreshold{
	border-right: 2px pink solid;
	padding-right: 4px;
}

.onboarding_item_complete{
	text-decoration: line-through;
	color: grey;
}

.levelList a{
	text-decoration: none;
	color: black;
}

.levelList li{
	display: inline-block;
	padding: 5px;
	width: 30px;
	height: 30px;
	line-height: 20px;
	text-align: center;
}

.levelList li.currentLevel{
	border: 1px #FF5858 solid;
	border-radius: 100px;
	padding: 4px;
}

.wordTypeLegend{
	text-align: center;
}

.wordGrid{
	margin: 0 auto;
	display: block;
	text-align: center;
	color: #ccc;
}

.wordGrid.singleRow{
	text-align: left;
	height: 193px;
	overflow: hidden;
}

.wordGrid.wordPage{
	text-align: left;
}

.wordCardPlus{
	display: inline-block;
	line-height: 180px;
	color: black;
	font-size: 20px;
}

.wordGrid li{
	vertical-align: top;
	display: inline-block;
	width: 166px;
	height: 166px;
	text-align: center;
	/* background-color: #f8f8f8; */
	margin: 10px 10px;
	line-height: 1.2;
	border: 4px rgba(255, 88, 88, 0) solid;
	border-radius: 4px;
	transition: border 0.2s;
	position: relative;
	-webkit-box-shadow: 0px 2px 11px -2px rgba(0,0,0,0.26), 1px 0px 1px 0px rgba(0,0,0,0.07), -1px 0px 1px 0px rgba(0,0,0,0.07);
	-moz-box-shadow: 0px 2px 11px -2px rgba(0,0,0,0.26), 1px 0px 1px 0px rgba(0,0,0,0.07), -1px 0px 1px 0px rgba(0,0,0,0.07);
	box-shadow: 0px 2px 5px -2px rgba(0,0,0,0.26), 1px 0px 1px 0px rgba(0,0,0,0.07), -1px 0px 1px 0px rgba(0,0,0,0.07);
	transition: all 0.2s ease-out;
}

.wordGrid li:hover{
	transform: translateY(-2px);
	-webkit-box-shadow: 0px 4px 11px -2px rgba(0,0,0,0.26), 2px 0px 2px 0px rgba(0,0,0,0.07), -2px 0px 2px 0px rgba(0,0,0,0.07);
	-moz-box-shadow: 0px 4px 11px -2px rgba(0,0,0,0.26), 2px 0px 2px 0px rgba(0,0,0,0.07), -2px 0px 2px 0px rgba(0,0,0,0.07);
	box-shadow: 0px 4px 5px -2px rgba(0,0,0,0.26), 2px 0px 2px 0px rgba(0,0,0,0.07), -2px 0px 2px 0px rgba(0,0,0,0.07);
}

.wordGrid li i{
	position: absolute;
	left: 10px;
	top: 10px;
	font-size: 24px;
}

.radical{
	background-color: #fee3e4;
}

.vocab{
	background-color: #f8f8f8;
}

.wordGrid a{
	text-decoration: none;
	color: inherit;
}



.wordGrid .unlocked{
	color: black;
}

.listHanzi{
	font-size: 45px;
	padding-top: 30px;
}

.listHanziLong{
	font-size: 25px;
	padding-top: 53px;
}

.listDefinition{
	font-weight: 600;
	margin: 5px 0;
}

.listPinyin{
	font-weight: 400;
	font-style: italic;
}

.wordHead{
	text-align: center;
}

.wordDefinition{
	
}

.wordPinyin{
	
}

.profileHeader{
	background: #FFF0E5;
	box-shadow: 0 3px 6px -4px rgba(0,0,0,0.35);
	border-radius: 9px;
}

.userAvatar{
	display: inline-block;
	width: 114px;
	height: 114px;
	border-radius: 250px;
	background-size: cover;
	position: absolute;
	top: 0px;
	left: 15px;
}

.avatarBadge{
	border-radius: 100px;
	background-color: #FF5858;
	position: absolute;
	width: 30px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	right: 3px;
	top: 3px;
	color: white;
}

.userAvatarCol{
	flex: 0 0 135px;
	position: relative;
}

.userProfileInfo{
	color: #BE0000;
}

.profileUsername{
	font-weight: bold;
	font-size: 28px;
}

.profileLevel{
	font-size: 19px;
	font-weight: normal;
}

.profileJoined{
	font-size: 19px;
	font-weight: lighter;
}

.miniStat{
	text-align: center;
	color: #BE0000;
}

.miniStatTop{
/* stat name: */
	font-size: 19px;
}

.miniStatMid{
	font-size: 32px;
	font-weight: bold;
}

,miniStatBottom{

}

a.mwButtonNew, .mwButtonNew{
	background: #FF5858;
	box-shadow: 0 3px 6px -4px rgba(0,0,0,0.35);
	border-radius: 28px;
	text-decoration: none;
	font-size: 21px;
	color: white;
	padding: 13px 20px;
	transition: all 0.2s ease-out;
	display: inline-block;
	font-weight: normal;
	border: none;
	cursor: pointer;
	text-align: inherit;
}

.mwButtonNew i, .logoutButton i{
	padding: 0px 5px 0 2px;
	font-size: 28px;
	vertical-align: middle;
}

a.mwButtonNew:hover, mwButtonNew:hover, button.mwButtonNew:hover{
	transform: translateY(-2px);
	box-shadow: 0 5px 6px -4px rgba(0,0,0,0.35);
}

.profileButton.mwButtonNew{
	width: 100%;
}

.logoutButton{
	font-size: 21px;
	text-decoration: none;
	text-align: right;
	cursor: pointer;
}

a.logoutButton, button.logoutButton{
	text-decoration: none;
	text-align: right;
	display: inline-block;
	line-height: 26px;
	text-shadow: 0px 2px 3px rgba(0,0,0,0.10);
	transition: all 0.2s ease-out;
	display: inline-block;
	border: none;
	background: none;
	color: grey;
}

a.logoutButton:hover, button.logoutButton:hover{
	transform: translateY(-2px);
	text-shadow: 0px 4px 4px rgba(0,0,0,0.10);
	color: red;
}

.wordStats{

}

.exampleSentences strong{
	color: #FF5858;
}

.exampleSentences li{
	padding: 10px 0;
	border-top: #ccc 1px solid;
}

main p.exampleSentenceChinese{
	cursor: default;
	font-size: 24px;
}

main p.exampleSentenceChinese span:hover{
	background-color: #ff5858;
	color: white;
	border-radius: 4px;
}

main p.exampleSentenceChinese{
	margin-bottom: 0px;
}

main p.exampleSentenceEnglish{
	margin-top: 0px;
}

.showMoreButton{
	text-decoration: none;
}

.showMoreButton i{
	transition: all 0.2s;
	transform: translateY(-1px);
}

.showMoreButton:hover i{
	transform: translateY(2px);
}

.discount_banner{
	max-width: 480px;
	width: 100%;
	margin: 10px auto;
	padding: 20px;
	border: 5px #ccc dashed;
	border-radius: 10px;
	position: relative;
}

.discount_banner::before{
	position: absolute;
	top: -23px;
	left: 20px;
	color: #aaa;
	content: '\f0c4';
	font-family: 'Font Awesome 5 Pro';
	font-size: 30px;
}

.strikethrough {
	position: relative;
	font-size: 17px;
}

.strikethrough:before {
	position: absolute;
	content: "";
	left: 0;
	top: 50%;
	right: 0;
	border-top: 3px solid;
	border-color: inherit;

	-webkit-transform:rotate(-5deg);
	-moz-transform:rotate(-5deg);
	-ms-transform:rotate(-5deg);
	-o-transform:rotate(-5deg);
	transform:rotate(-5deg);
}


/* audio.js */
.audiojs{
	background: transparent;
	box-shadow: none;
	/* background-color: #ccc; */
	width: 30px;
	height: 30px;
	cursor: pointer;
	display: inline-block;
	margin-left: 10px;
}

.audiojs .error-message{
	display: none;
}

.audiojs .play-pause:before{
	content: '\f027';
	font-weight: bold;
	font-style: normal;
	font-family: 'Font Awesome 5 Pro';
	height: 30px;
	width: 30px;
	display: block;
	text-align: center;
	line-height: 30px;
}

.playing.audiojs .play-pause:before{
	content: '\f04c';
}

.audiojs .scrubber, .audiojs .time{
	display: none;
}

.pie-1{
	color: #ffbd91;
}

.pie-2{
	color: #fcb38f;
}

.pie-3{
	color: #fcab8c;
}

.pie-4{
	color: #fca288;
}

.pie-5{
	color: #fcab8c;
}

.pie-6{
	color: #fd887a;
}

.pie-7{
	color: #fc7975;
}

.pie-8{
	color: #fc7070;
}

/* pie */

.pieContainer{
	position: relative;
	height: 70px;
	width: 70px;
	display: inline-block;
	vertical-align: middle;
}

.pie {
	width: 70px;
	height: 70px;
	border-radius: 70px;
	background: #fffffb;
	background-image: -webkit-linear-gradient(to right, transparent 50%, #655 0);
	background-image: linear-gradient(to right, transparent 50%, #655 0);
	position: absolute;
	left: 0px;
	border-style: solid;
}

.prepie {
	display: block;
	margin-left: 50%;
	height: 100%;
	border-radius: 0 100% 100% 0 / 50%;
	background-color: inherit;
	-webkit-transform-origin: left;
	-webkit-transform: rotate(90deg);
	transform-origin: left;
	transform: rotate(90deg)
}

.prepie.gt50 {
	display: block;
	margin-left: 50%;
	height: 100%;
	border-radius: 0 100% 100% 0 / 50%;
	background: #655;
	-webkit-transform-origin: left;
	-webkit-transform: rotate(110deg);
	transform-origin: left;
	transform: rotate(110deg)
}

.pieInner{
	position: absolute;
	top: 5px;
	left: 5px;
	width: 60px;
	height: 50px;
	background-color: white;
	border-radius: 100px;
	padding-top: 10px;
	text-align: center;
}

.pieInner strong{
	font-size: 22px;
	font-weight: 700;
}


/* test ui */

.tick{
	stroke-dasharray: 130px 130px;
	stroke-dashoffset: 130px;
	-webkit-transition: all 4.1s linear 0s;
	transition: all 500ms ease-in-out;
}

.tick_container{
	position: absolute;
	top: 30%;
	left: 70%;
}

#testContainer{
	text-align: center;
	position: relative;
	background-color: white !important;
}

#character{
	/* transition: opacity 1s; */
	/* width: 250px; */
	color: #D0021B;
	display: inline-block;
	height: 200px;
	min-width: 200px;
	font-size: 150px;
	/* background-color: #eee; */
	line-height: 200px;
	text-align: center;
	margin: 20px 0 20px;
	padding: 0 20px;
	/* font-family: "source-han-sans-traditional"; */
}

.radical #character{
	background-color: #fee3e4;
}

.vocab #character{
	background-color: #f8f8f8;
}

.component{
	display: inline-block;
	width: 80px;
	height: 80px;
	vertical-align: middle;
	/* line-height: 40px; */
	/* background-color: grey; */
	margin: 10px;
	position: relative;
	text-align: center;
}

a .component{
	color: black;
}

a .component:after{
	content: '+';
	position: absolute;
	top: 30px;
	right: -14px;
	color: black;
}

a:last-child .component:after{
	content: none;
}

.component_hanzi, .component_definition{
	padding: 0px 0px;
}


.component_hanzi{
	font-size: 35px;
	height: 40px;
	padding-top: 10px;
}

.component_definition{
	font-size: 13px;
	height: 40px;
	vertical-align: middle;
}

.component.radical{
	
}

.component.word{
	
}

#meaning{
	text-align: center;
	font-size: 20px;
}

#meaning span + span, .wordDefinition span + span{
	color: #999;
}

#meaning span + span::before, .wordDefinition span + span::before{
	content: ', ';
}

#answer_field{
	font-size: 25px;
	width: 298px;
	margin: 10px auto;
	display: block;
	text-align: center;
}

.reading #answer_field{
	background-color: #292828;
	color: white;
}

.meaning #answer_field{
	background: white;
	color: black;
}

#review{
	background: #fafafa;
	margin: 0 auto;
	text-align: left;
	display: none;
	width: 60%;
}

#reading_tab h2{
	text-align: center;
	font-weight: normal;
}

#reading{
	font-style: italic;
	font-size: 20px;
}

#review p+p{
	margin-top: 10px;
}

#instructions{
	text-align: center;
}

#answer{
	font-weight: bold;
}

.font_preload{
	display: none;
	/* font-family: "source-han-sans-traditional"; */
}

/* @keyframes fadeIn{
	from {opacity: 0;}
	to {opacity: 1;}
}
*/

.ch{
	font-family: 'Noto Sans SC Sliced', sans-serif;
}




.loader,
.loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}
.loader {
  margin: 60px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(0, 0, 0, 0.2);
  border-right: 1.1em solid rgba(0, 0, 0, 0.2);
  border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
  border-left: 1.1em solid #000;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
  }
  100% {
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
  }
  100% {
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
  }
}

.arrow_box {
	position: relative;
	background: #ffffff;
	border: 2px solid #d62b6f;
	border-radius: 10px;
	padding: 10px;
	line-height: 1.2;
}
.arrow_box:after, .arrow_box:before {
	bottom: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow_box:after {
	border-color: rgba(255, 255, 255, 0);
	border-bottom-color: #fafafa;
	border-width: 15px;
	margin-left: -15px;
}
.arrow_box:before {
	border-color: rgba(214, 43, 111, 0);
	border-bottom-color: #d62b6f;
	border-width: 18px;
	margin-left: -18px;
}



.article{
	line-height: 1.4;
}

.article h3{
	font-size: 19px;
}

.article p + p{
	margin-top: 10px;
}

.article p + h3{
	margin-top: 15px;
}

.article strong{
	font-weight: normal;
	font-style: italic;
}

.hr-text {
	line-height: 1em;
	position: relative;
	outline: 0;
	border: 0;
	color: black;
	text-align: center;
	height: 1.5em;
	opacity: .5;
}
.hr-text::before {
	content: '';
	background: linear-gradient(to right, transparent, #818078, transparent);
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
}
.hr-text::after {
	content: attr(data-content);
	position: relative;
	display: inline-block;
	color: black;

	padding: 0 .5em;
	line-height: 1.5em;
	color: #818078;
	background-color: #fcfcfa;
}

#loginRegisterForm{
	display: none;
	position: relative;
}

#loginRegisterForm input, #loginRegisterForm button, #passwordResetForm input, #passwordResetForm button{
	display: block;
	margin: 10px auto;
}



#loginRegisterForm button, #passwordResetForm button{
	/* width: 220px;
	padding: 10px;
	background-color: #FF5858;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 18px;
	cursor: pointer; */
}

.mwButton{
	width: 220px;
	padding: 10px;
	background-color: #FF5858;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 18px;
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
}

.subscriptionChooser{
	max-width: 500px;
	width: 100%;
	margin: 20px auto;
	text-align: center;
}

.monthly, .yearly{
	position: relative;
	text-align: center;
	width: 47%;
	height: 120px;
	display: inline-block;
	vertical-align: middle;
	background-color: #eee;
	color: #555;
	padding: 10px;
	cursor: pointer;
	transition-property: transform;
	transition-duration: 0.3s;
	z-index: 100;
}

.monthly.selected, .yearly.selected{
	color: white;
	background: rgb(255,239,156);
	background: -moz-linear-gradient(45deg, rgba(254,197,146,1) 0%, rgba(255,110,110,1) 100%);
	background: -webkit-linear-gradient(45deg, rgba(254,197,146,1) 0%,rgba(255,110,110,1) 100%);
	background: linear-gradient(45deg, rgba(254,197,146,1) 0%,rgba(255,110,110,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fec592', endColorstr='#ff6e6e',GradientType=1 );
	transform: scale(1.1);
	z-index: 200;
}

.monthly{
	border-radius: 8px 0 0 8px;
}

.yearly{
	border-radius: 0 8px 8px 0;
}

.subscriptionPrice{
	font-size: 24px;
	font-weight: bold;
}

.perMonth{
	margin-top: 0px;
	font-size: 14px;
}

.payment-form{
	max-width: 480px;
	width: 100%;
	margin: 10px auto;
	/* padding: 10px; */
}

.paymentLogos{
	text-align: center;
}

.paymentNote{
	font-size: 13px;
	max-width: 480px;
	margin: 10px auto;
	text-align: center;
}

.paymentLogos img{
	height: 35px;
}

.paymentLogos img + img{
	padding-left: 5px;
}

.feature-list{
	display: inline-block;
	width: 43%;
	vertical-align: top;
}

#payment-form{
	background-color: #eee;
	padding: 20px;
	border-radius: 5px;
}

#payment-form button{
	width: 100%;
}

#card-element{
	margin-bottom: 10px;
	background-color: white;
	padding: 5px;
	border-radius: 4px;
	width: 100%;
}

.subscriptionTerms{
	font-size: 11px;
	color: grey;
}

.negativeButton{
	background-color: #bbb;
}

.loginLoading{
	position: absolute;
	background-color: rgba(255, 255, 255, 0.7);
	width: 100%;
	height: 280px;
	display: none;
	z-index: 1000;
}

.loginLoading .loader{
	font-size: 4px;
	
}

#character, .listHanzi{
	/* font-family: 'Source Han Serif Simplified Chinese', sans-serif; */
}

/* stripe payment form styling */


/* end of stripe payment form styling */


@media screen 
and (min-device-width : 200px) 
and (max-device-width : 667px),
screen and (max-width: 700px){

	header{
		position: fixed;
		width: 100%;
		background-color: white;
		z-index: 999;
		margin-top: 0px;
		top: 0px;
		left: 0px;
	}

	.systemMessage{
		top: 82px;
	}

	main{
		padding-top: 100px;
	}
	
	.srsLevelIcon{
		font-size: 32px;
	}
	
	.srsLevelCount{
		font-size: 12px;
	}
	
	#review{
		width: 80%;
	}
	
	footer{
		display: none;
	}

	pre{
		font-size: 7px;
	}
	
	.pieContainer{
		height: 50px;
		width: 50px;
	}
	
	.wordGrid li{
		width: 130px;
		height: 130px;
		margin: 5px 3px;
		line-height: 1.2;
	}

	.wordGrid.singleRow{
		height: 140px;
	}
	
	.listHanzi{
		font-size: 30px;
		padding-top: 25px;
	}
	
	.listHanziLong{
		font-size: 28px;
	}

	.vocabBackButton{
		top: 150px;
	}
	
	header{
		min-height: 84px;
	}
	
	#headerInner{
		padding: 17px 0px 15px;
	}
	
	nav li{
		vertical-align: middle;
		display: inline-block;
	}
	
	nav li.porthole, nav li.porthole.avatar{
		height: 50px;
		width: 50px;
	}
	
	
	
	nav .avatar.porthole{
		padding: 2px;
		left: 194px;
		right: auto;
		top: 9px;
	}
	
	.itemCount, #levelCount{
		padding-top: 12px;
		padding-left: 5px;
		font-size: 10px;
	}
	
	.itemCount strong, .pieInner strong{
		font-size: 16px;
	}
	
	.pie {
		width: 50px;
		height: 50px;
	}
	
	.pieInner{
	    font-size: 12px;
		position: absolute;
		top: 2px;
		left: 2px;
		width: 46px;
		height: 36px;
		background-color: white;
		border-radius: 100px;
		padding-top: 10px;
	}
	
	header img{
		width: 56px;
		position: absolute;
		right: 20px;
		left: auto;
		top: 13px;
	}
	
	header input{
		display: none !important;
	}

	#character{
 		height: 120px;
		font-size: 100px;
		line-height: 120px;
		margin: 0px auto 10px;
	}
	
	#answer_field{
		font-size: 18px;
		width: 228px;
	}

	.wordCardPlus{
		line-height: 140px;
	}
	
}

@media screen and (max-width: 350px){

	.srsLevelIcon{
		font-size: 28px;
	}
	
	.srsLevelCount{
		font-size: 10px;
	}
	
	#review{
		width: 90%;
	}
	
	pre{
		font-size: 6px;
	}

	nav li.porthole{
		margin-left: 0px;
	}
	
	nav .avatar.porthole{
		left: 175px;
	}
	
	nav{
		padding-left: 5px;
	}
}

@media (prefers-color-scheme: dark) {

	.systemMessage{
		background-color: rgb(96, 0, 0);
	}

	hr.hr-text::after{
		background-color: black;
		color: white;
	}

	.darkMode{
		display: inherit;
	}

	.lightMode{
		display: none;
	}

	.monthly, .yearly{
		background-color: #222;
		color: #ccc;
	}

	.monthly.selected, .yearly.selected{
		background-image: linear-gradient(225deg, #23132F 0%, #1A1D39 49%, #1D2834 100%);
		color: white;
	}

	#payment-form{
		background-color: #333;
	}

	header{
		background-image: linear-gradient(225deg, #23132F 0%, #1A1D39 49%, #1D2834 100%);
	}

	body{
		background-color: black;
		color: white;
	}

	footer{
		background-color: #333;
		color: #ccc;
	}

	footer a{
		color: #fff;
	}

	.wordGrid{
		color: #999;
	}

	.wordGrid .unlocked{
		color: #eee;
	}

	.radical{
		background-color: #26182d;
	}

	.vocab{
		background-color: #333;
	}

	.levelList a{
		color: white;
	}

	.tutorial{
		background-color: #333;
	}

	nav li.porthole{
		color: white;
	}

	.vocabBackButton{
		background-color: rgba(0, 0, 0, 0.6);
	}

	pre{
		color: white;
	}

	.profileHeader{
		background-color: #333;
	}

	.profileHeader div{
		color: white;
	}

	a.mwButtonNew, .mwButtonNew{
		background-color: rgb(96, 0, 0);
	}

	#payment-request-button{
		border: white 1px solid !important;
		border-radius: 6px;
	}
} 