@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&display=swap');

*[lang=zh]{
	display:none;
}

/*Flex*/

.d-flex{
	display:flex;
}

.flex-column{
	display:flex;
	flex-direction:column;
}

.d-flex-center{
	display:flex;
	justify-content:center;
	align-items:center;
}

.d-flex-between{
	display:flex;
	justify-content:space-between;
	align-items:center;
}

.d-flex-around{
	display:flex;
	justify-content:space-around;
	align-items:center;
}


/*Typography*/
.fonts-style{
	font-family: 'Berkshire Swash', cursive;
}


.lang{
	display:inline-block;
	width:55px;
	text-align:center;
	background:#e9e9e9;
	line-height: 200%;
}
.lang.selected{
	background:#3f4a94 !important;
	color:#fff !important;
}

.hover{
	transition: 0.2s;
	cursor:pointer;
}
.hover:hover{opacity: 0.75}

.disabled{
	background:#999 !important;
	border:0 !important;
	cursor: not-allowed !important;
}

.each_card  .front{
	background: rgb(255, 255, 255);
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: 1;
    transition: all 0.5s ease-out 0s;
    transform: rotateY(0deg);
}

.each_card .back{
	background: rgb(255, 255, 255);
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 50px;
    border-radius: 20px;
    /* border: 10px solid rgb(246, 121, 10);
    box-shadow: rgb(255, 170, 54) 0px 0px 0px 10px; */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: 0;
    transform: rotateY(-180deg);
    position: absolute;
    top: 0px;
    transition: all 0.5s ease-out 0s;
}


.each_card_in_set.selected{
	background:#82d30f61;
}

.select_color_container{
	width:25px; text-align:center; display:inline-block;
	vertical-align:middle;
}
.select_color.selected{
	width:20px !important;
	height:20px !important;
	border:2px solid #666 !important;
}

.removed_background{
	background:none !important;
}


.bookmark{
	cursor:pointer;
}

.bookmarked{
	color:#ffdd63 !important;
}

.vocab_selected_row{
	background:rgba(130,211,15,0.3) !important;
}

.filter_by_status{
	cursor:pointer;
}

.my_card_sets_div, .tomorrow_task_div{
	/*padding:20px;*/
	display: flex;
	flex-wrap: wrap;
}
.tomorrow_task_div_container{
	background:#fff;
	margin: 10px;
	padding:20px;
	border-radius:5px;
}
.cardset_status_div{
	box-shadow: 0px 3px 6px #00000029;
}
.each_card_set{
	flex: 0 0 calc(33.33% - 20px);
	margin:10px;
	border-radius:5px;
	overflow:hidden;
	box-shadow: 0px 3px 6px #00000029;
}
.each_card_set_sm{
	width:400px;
	height:92%;
	min-height:220px;
	margin:10px;
	border-radius:5px;
	overflow:hidden;
	box-shadow: 0px 3px 6px #00000029;
}

.current_card_exercise{
	-webkit-text-stroke: 0.5px #ffeb3b;
    -webkit-text-fill-color: #ffeb3b;
    font-size: 1.7vw !important;
    font-weight: bold;
}

.play_exercise_sound{
	animation: pulse 1s infinite ease-in-out alternate;
}

.play_exercise_sound:hover{
	background:#3F4A94D6 !important;
}

.answer_blank{
	display:inline-block; width:5vh; height:6vh; border:1px solid #aaa; border-radius:3px; margin-left:2px; margin-right:2px;
	vertical-align: top;
	padding-top: 0.1vh;
    text-align: center;
}

.character_box{
	display:inline-block; width:4vh; height:5.5vh; border:1px solid #FDE9AA; border-radius:3px; margin-left:2px; margin-right:2px; background:#FFF9B5;
	font-size: 3vh;
    line-height: 5vh;
	cursor:pointer;
	vertical-align: top;
}
.character_box:hover{
	background:#FFF9B566 !important;
}

.challenge_detail table tr:nth-child(odd) td{
	padding:10px 0px 0px 0px;
}

.current_card_exercise {
  animation: pulse 1s infinite ease-in-out alternate;
}
@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.bugbug_star{
    width: 100%;
    height: 100%;
    background-image: url("/images/bugbug get the star-sprite sheet.png");
	background-size: 500% 300%;
    background-position: 0 0;
	animation: run-x 0.4s infinite steps(5),
    run-y 1.2s infinite steps(3);
}
@keyframes run-x {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: -500%;
    }
}
@keyframes run-y {
    from {
        background-position-y: 0;
    }
    to {
        background-position-y: -300%;
    }
}

.add_material_btn {
	cursor:pointer;
}

/* file uploader */
.upload-area{
    width: 100%;
    height: 255px;
    text-align: center;
    overflow: auto;
	font-size:14pt;
}

.upload-area:hover{
    cursor: pointer;
}

.upload-area h1{
    text-align: center;
    font-weight: normal;
    font-family: sans-serif;
    line-height: 50px;
    color: darkslategray;
}

#file{
    display: none;
}

/* Thumbnail */
.thumbnail{
    width: 100%;
    height: auto;
}

.size{
    font-size:12px;
}
/* file uploader */


.flip {
/*height: 199px;*/
/*width: 300px;*/
margin: 0 auto;
} 


.custom_scrollbar::-webkit-scrollbar-track
{
	/*-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);*/
	border-radius: 10px;
	background-color: #BABABA;
}

.custom_scrollbar::-webkit-scrollbar
{
	width: 8px;
	background-color: #BABABA;
	border-radius: 12px;
	height: 10px;
}

.custom_scrollbar::-webkit-scrollbar-thumb
{
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #828282;
}


:root{
	--color_status_new: #ED312B;
	--color_status_learning: #FFAA00;
	--color_status_upgrade: #2B8CED;
	--color_status_learnt: #74CC00;
	--color_status_mastered: #74CC00;
}

html,body{
	font-size: 16px !important;
}

body{
	margin:0px;
	padding:0px;
	font-family: 'Noto Sans TC', sans-serif;
	position:relative;
}

/*
body::after {
	content: "";
	background-image:url('/images/background/pexels-simon-berger-1323550.jpg');
	background-size:100% 100%;
	background-position:center center;
	opacity: 0.4;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: -1;   
}
*/



.left_menu{
	width:15%;
	height:100%;
	background:#FFFDE2;
	padding:20px 10px;
	color:#464646;
	display: inline-block;
}
.user_stat{
	background:#fff;
	box-shadow: 0px 3px 6px #00000029;
	border-radius: 15px;
	padding:20px;
}
.user_stat .user_photo_container, .small_photo_container{
	border-radius:200px;
	border:2px solid #464646;
	width:80%;
	display: inline-block;
	position: relative;
	overflow:hidden;
}
.user_photo{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: silver/* show me! */
}
.user_progress{
	width:100%;
}
.user_progress table td{
	line-height:200%;
}
.menu_btn{
	width:100%;
	font-size:2vh;
	border-radius:25px;
	box-shadow: 0px 3px 6px #00000029;
	color:#3F4A94;
	text-align:center;
	background:#fff;
	line-height:240%;
	margin:20px 0px 20px 0px;
}
.menu_btn img{
	height:3vh;
}
.menu_btn:hover{
	background:#3F4A94;
	color:#fff;
	cursor:pointer;
}
.hub_btn{
	width: 273px;
	height: 100%;
	background: var(--unnamed-color-3f4a94) 0% 0% no-repeat padding-box;
	background: #3F4A94 0% 0% no-repeat padding-box;
	border-radius: 24px 0px 0px 24px;
	opacity: 1;
	float:right;
	color:#fff;
	font-size:20px;
	line-height:50px;
	text-align:center;
	margin-left:20px;
}


.top_menu{
	height:50px;
	background:#fff; 
	box-shadow: 0px 3px 6px #00000029;
	overflow: hidden;
	display: none;
	align-items: center;
	justify-content: space-between;
}

@media (min-width: 575.98px) { 
	.top_menu{
		display: flex;
	}
}

.top_menu .logo{
	width: 150px;
}

.top_menu .top_menu_link{
	display:inline-block;
	padding:10px 20px;
	color:#464646;
	text-decoration:none;
	font-size: 1rem;
}

.top_menu_link:hover{
	color:#5CE0B9 !important;
	border-bottom:6px solid #5CE0B9;
}

.top_menu_link.active{
	color:#000 !important;
	border-bottom:6px solid #5CE0B9;
}

.top_menu img{
	cursor:pointer;
}

.mobile-menu-btn{
	position: absolute;
    background: white;
    padding: 15px;
    border-radius: 50px;
	z-index: 1;
	cursor: pointer;
} 

@media (min-width: 575.98px) { 
	.mobile-menu, .mobile-menu-btn{
		display: none;
	}
	
}

.mobile-menu{
	display: none;
	position: fixed;
    width: 100%;
    height: 100%;
    background: #000000a1;
    z-index: 3;
    top: 0;
	padding: 3.5rem 45px;
}

	.mobile-menu a.top_menu_link{
		background: #fff;
		padding: 10px;
		width: 100%;
		text-align: center;
		margin: 6px;
	}

	.mobile-menu .close_menu{
		position: absolute;
		top: 10px;
		right: 10px;
		color: #fff;
	}


.recommend_bar{
	width:100%;
	height:48px;
	background:#F05C5C;
	color:#fff;
	padding:5px 10px;
}
.content_body{
	display: inline-block;
    width: 100%;
    vertical-align: top;
}
.recommended_item{
	border: 1px solid #FF8F8F;
    background: #FFD4D4;
    display: inline-block;
    border-radius: 25px;
    margin: 2px;
    font-size: 18px;
    height: calc(100% - 4px);
    line-height: 160%;
    padding: 0px 12px;
    color: #464646;
    vertical-align: bottom;
}
.learning_exp:before{
	content:"";
	display: inline-block;
	background: url(images/icons/Mission.svg) no-repeat;
	background-size: contain;
	height: 4.8vh;
	width: 4.8vh;
	vertical-align:top;
	margin:4px 10px;
}
.required:after{
	content:"*";
	color:red;
}
.daily_mission table td{
	padding:8px;
}
.today_rank table td{
	padding:2px 1px;
}

.add_material_popup_div{
	border-radius:15px;
	overflow:auto;
	background:#fff;
	width:60vw;
	height:75vh;
	position:fixed;
	top:0px;
	bottom:0px;
	left:0px;
	right:0px;
	margin:auto;
	z-index:20;
}
.add_material_popup_div table td{
	padding:4px 6px;
	font-size:2vh;
	vertical-align:top;
}

.tag_in_card, .set_in_card, .selected_set{
	display:inline-block; padding:2px 10px; border-radius:15px; color:#fff; background:#F58514; margin-left:4px; margin-bottom:4px;
	/*cursor:pointer;*/
}

.card_new{
	background:#ED312B;
	color:#fff;
}
.card_learning{
	background:#FFAA00;
	color:#fff;
}
.card_upgrade{
	background:#2B8CED;
	color:#fff;
}
.card_learnt{
	background:#74CC00;
	color:#fff;
}
.card_mastered{
	background:#74CC00;
	color:#fff;
}
.card_filter_unselected{
	background:#fff;
	color:#000;
}

.status_new{
	border-top: 8px solid #ED312B;
}
.status_learning{
	border-top: 8px solid #FFAA00;
}
.status_upgrade{
	border-top: 8px solid #2B8CED;
}
.status_learnt{
	border-top: 8px solid #74CC00;
}
.status_mastered{
	border-top: 8px solid #74CC00;
}
.recommended{
	border-top: 8px solid #5CE0B9;
}

.grid-item { 
	/*
	display: block;
	float: left;
	width: 30%;
	
	margin-bottom: 20px;
	padding:10px;
	*/
	
	width:400px;
	margin-bottom:20px;
	border-radius: 5px;
	background:#fff;
	padding:10px;
}

@media ( max-width: 1024px ) {
	.grid-item { 
		display: block;
		float: left;
		width: 40%;
		
		margin-bottom: 20px;
		padding:10px;
		border-radius: 5px;
		background:#fff;
	}
}
@media ( max-width: 500px ) {
	.each_card_set{
		flex: 0 0 calc(100% - 20px);
	}
}

.grid {
    width: 100%;
    /*padding: 20px 40px;*/
	padding-left:20px;
	padding-right:20px;
}
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/*
.grid:after {
  display: block;
  content: '';
  clear: both;
}

.grid-col {
  float: left;
  width: 49%;
  margin: 10px;
}

.grid-col--4 { margin-right: 0; }


@media ( min-width: 768px ) {
  .grid-col { width: 47%; }
  .grid-col--2 { display: block; }
}

@media ( min-width: 1200px ) {
  .grid-col { width: calc(33% - 20px); }
  .grid-col--2, .grid-col--3 { display: block; }
}

.grid-item {
  margin-bottom: 20px;
  padding:10px;
  border-radius: 5px;
  background:#fff;
}

*/


.row_in_cardset{
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
	justify-content: space-evenly;
}

.flashcard_setting_tb{
	width:calc(100% - 100px);
	margin:10px 50px;
}
.flashcard_setting_tb td{
	padding:10px 20px;
}
.flashcard_setting_tb th{
	border-bottom:1px solid #444;
}
.flashcard_setting_tb tr:nth-child(even) td{
	background:#f1fbe7;
}
.flashcard_setting_tb tr td:first-child {
	text-align:right;
}
.flashcard_setting_tb tr td:nth-child(1) {
	width:50%;
}
.flashcard_setting_tb tr td:nth-child(2) {
	width:25%;
	text-align:center;
}
.flashcard_setting_tb tr td:nth-child(3) {
	width:25%;
	text-align:center;
}
.flashcard_setting_tb th:nth-child(2) {
	width:25%;
	text-align:center;
}
.flashcard_setting_tb th:nth-child(3) {
	width:25%;
	text-align:center;
}


/* new flashcard */
.progress_div{
	position: absolute;
}

.diamond-container{
    display: flex;
    align-items: center;
    position: relative;
    width: 280px;
    height: 50px;
    margin-left: 20px;
}


.diamond-container .diamond{
	position: absolute;
	left: 0;
	width: 60px;
}

.diamond-container .bar{
	position: absolute;
	height: 100%;
}

.diamond-container .hp-bar{
	width: 0px;
	height: 34px;
	background: #76e3e8;
	position: absolute;
	z-index: 0;
	left: 25px;
	border-radius:20px;
	animation: hp-bar-flash 1s infinite;
}

@keyframes hp-bar-flash {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		opacity: 1; 
	}
}

/**********************/
.flashcard_summary_bg{
	display: flex;
    position: relative;
    height: 100%;
}

.flashcard_summary{
	display: none;
	position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(50, 50, 50, 0.6);
    z-index: 5000;
}

	.flashcard_summary .flashcard_summary_content{
		display: flex;
		flex-direction: column;
		margin: auto; 
		box-shadow: 1px 1px 0px 15px orange;
		max-width: 1000px;
    	width: 80vw;
		border-radius: 15px; 
		font-size: 1.6rem; 
		background: #fff; 
		z-index: 11; 
		padding: 15px;
	}

/**********************/
.monster-hp-container{
    display: flex;
    align-items: center;
	margin: 10px 0px;
	padding: 10px 0px;
    position: relative;
    width: 100%;
    height: 40px;
}

	.monster-hp-container .bar{
		background: brown;
		border-radius: 30px;
		width: 100%;
		height: 40px;
		position: relative;
		border: 8px solid #FF9800;
	}

.monster-hp-container .heart{
	position: absolute;
	left: -20px;
	width: 50px;
	animation: jumping 0.5s infinite;
}

@keyframes jumping {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

.monster-hp-container .bar{
	position: absolute;
	width: 100%;

}

.monster-hp-container .hp-bar{
	width: 100%;
	height: 100%;
	background: #f74345;
	position: absolute;
	z-index: 0;
	left: 5px;
	border-radius:20px;
} 

.monster-hp-container .hp-bar .hp-text{
	position: absolute;
	right: 0;
    font-size: 3.5rem;
    color: #fff;
    z-index: 2;
    font-family: 'Berkshire Swash', cursive;
	opacity: 0;
}

.flashcard_result_font{
	font-family: "Berkshire Swash", serif;
}

.greenlight{
    position: absolute;
	width: 300px;
    z-index: 10;
    left: 0;
    top: 0;
	opacity:1;
}
.smoke{
    position: absolute;
    z-index: 10;
	left: 0;
    top: -0;
}

.weapons{
	position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
	pointer-events: none;
}

.axe{
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
	left: 0;
	bottom: 0;
	margin: auto;
    height: 250px;
	transform: translateY(0px) rotate(0deg);
}

@keyframes spin { 
	50% {
		transform:rotate(-90deg); 
	}
    100% {
        transform:rotate(65deg); 
    } 
}


.blue-mask{
	background: linear-gradient(0deg, #00a9ffa1, #000000); 
}
.red-mask{
	background: linear-gradient(0deg, #ff0000a1, #000000);
}

.monster_layer{
	width:100%;
	height:100%;
	position:absolute;
	opacity: 0;
	top:0px;
	left:0px;
	z-index:200;
	background: radial-gradient(#00000069, #636363);
}

.grid .each_card{
	transform: scale(1);
}

/*.each_card:not(.each_card2){*/
.each_card{
  transform: scale(0);
}

.zoomToOrigin{
	transition: transform 0.6s;
	transform: scale(1);
}



.monster_container{
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

img.monster{
	height: 30vh;
	padding: 10px;
	cursor: pointer;
}


@keyframes zoom {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.5);
	}
}

.question-number-label{
	background: url('../gary/flash-card/img/ribbon.png') no-repeat;
    background-size: 100%;
    z-index: 2;
    top: -30px;
    position: absolute;
    color: #fff;
    padding: 12px 12px;
    font-size: 1.6rem;
    width: 200px;
}


.scratch-effect{
	position: fixed;
    width: 100%;
    z-index: 1;
	mix-blend-mode: darken;
}


.card-btn-style{
	position: relative;
    padding: 6px 70px;
    background: #f6790a;
    border: 5px solid #ffaa36;
	font-family: "Berkshire Swash", serif;
    font-size: 1.5rem;
    color: #fff;
    border-radius: 15px;
	cursor: pointer;
}

.card-btn-icon-medic{
	animation: bounce 1s linear infinite;
	height: 50px;
	position: absolute;
	left: -25px;
	z-index: 1;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-30px);
	}
	60% {
		transform: translateY(-15px);
	}
}

.card-btn-icon-diamond{
    height: 60px;
    right: -20px;
    z-index: 1;
	top: 0;
    position: absolute;
    box-shadow: 0 0 12px 4px #ffffff;
    border-radius: 100%;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.each_choice.flashcard_btn:hover .card-btn-icon-diamond {
    transform: scale(1.5) rotate(1turn);
    transition: .8s;
}

.flip-btn{
	z-index: 2;
    position: absolute;
    right: 0;
    transform-origin: center;
    transform: translateX(40px);
    top: 36%;
    cursor: pointer;
}

	.flip-btn img{
		width: 80px;
	}

/*Choices Display*/
.choices{
	display: flex;
    flex-direction: column;
    width: 80vw;
	justify-content: center;
	margin: 10px 20px;
}

	.choices .flashcard_btn{
		position: relative;
		padding: 6px 0px;
	}

/*Main Display*/
.display-content{
	display: flex;
	align-items: start;
	width: 100%;
	height: 100%;
	padding: 20px 10px;
}

	.display-content .monster_div{
		width: 100%;
		display: none;
		flex-direction: column;
		padding: 0px 25px;
		position: relative;
	}


.monster_div .monster{
	height: 300px;
	margin: 50px 0px;
}

@media (min-width: 575.98px) { 

	.monster_div .monster{
		height: 300px;
		margin: 0px 0px;
	}

}


/*Mobile*/
	.monster-div-mobile{
		display: block !important;
		position: fixed !important;
		padding: 0px !important;
		z-index: 3;
		height: 100%;
		top: 0;
		left: 0;
		width: 100%;
		flex-direction: column;
		background: #3f51b5e3;
	}

	.monster-div-mobile .monster .lottie-player{
		height: 100%;
	}

	.monster-div-mobile .monster-hp-container{
		position: absolute;
		bottom: 3%; 
		width: 80%;
		left: 0;
		right: 0;
		margin: auto;
	}

	.monster-div-mobile .weapons .axe{
		left: 0;
		right: 0;
		margin: auto;
	}

	.display-content .card-display{
		width: 100%;
		margin-top: 30px;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

.monster_div .monster lottie-player{
	width: 100%;
}


.card_msg{
	position:absolute; 
	bottom: 0px;
	width:100%; 
	font-family:"Berkshire Swash", serif;
	font-size: 4rem;
	z-index:1000;
	text-align:center;
	color:#fff;
	line-height: 1.1;
	text-shadow: 1px 1px 20px #000000;
}


@media (min-width: 575.98px) { 
	.display-content{
		display: flex;
		align-items: center;
		width: 100%;
		padding: 25px;
		margin: auto;
	}

	.display-content .card-display{
		width: 75%;
		margin-top: 30px;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.display-content .monster_div{
		width: 25%;
		display: flex;
		flex-direction: column;
		padding: 0px 25px;
		position: relative;
		z-index: 2;
	}

	
 }


@media (min-width: 767.98px) { 

	.choices{
		display: flex;
		flex-direction: row;
		width: 100%;
		justify-content: space-evenly;
	}
	
	.monster-div-mobile{
		width: 25%;
        display: flex;
        flex-direction: column;
        padding: 0px 25px;
        position: relative;
	}


	.monster-div-mobile .monster-hp-container{
		display: flex;
		align-items: center;
		margin: 10px 0px  !important;
		padding: 10px 0px;
		position: relative !important;
		width: 100% !important;
		height: 40px;
	}

	.monster-div-mobile .weapons .axe{
		left: 0;
		right: 0;
		margin: auto;
	}
}

@media (min-width: 991.98px) { 

 }


@media (min-width: 1199.98px) { 
	
	.display-content{
		display: flex;
		align-items: center;
		width: 1200px;
		padding: 25px;
		margin: auto;
	} 
}


@media (min-width: 1399.98px) { }