/* Main Styling */

html {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #363c5f;
}

body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

.alert{
	display: none;
}

/* Opening Page */

#credit1, #credit2{
	margin-bottom: 15px;
}

.opening-wrapper {
	z-index: 9999;
	position: absolute;
	display: flex; /* change this to none for testing later sections */
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: url('../images/bg_opening.jpg') no-repeat center center;
	background-size: cover;
	opacity: 1;
	background: url('../images/bg_opening.jpg') no-repeat center center;
	background-size: cover;
	/* transition: opacity 1s; */

    /* TRANSISITION */
	transition: all .2s ease;
	-webkit-animation: fade 0.2s infinite;
	-moz-animation: fade 0.2s infinite;
	-o-animation: fade 0.2s infinite;
	animation: fade 0.2s infinite;
}

.deception {
	background: url('../images/chapter-deception.png') no-repeat center center;
	background-size: cover;
	opacity: 1;
	transition: opacity 1s;
}

.supremacy {
	background: url('../images/chapter-supremacy.png') no-repeat center center;
	background-size: cover;
	opacity: 1;
	transition: opacity 1s;
}

.dynasties {
	background: url('../images/chapter-dynasties.png') no-repeat center center;
	background-size: cover;
	opacity: 1;
	transition: opacity 1s;
}
.history{
	background: url('../images/history_en.png') no-repeat center center;
	background-size: cover;
	opacity: 1;
	transition: opacity 1s;
}

.lang-select {
	position: relative;
	display: flex; /* change this to none for testing later sections */
	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	width: 50%;
	max-width: 800px;
	min-width: 400px;
	height: auto;
	top: 0;
	opacity: 1;
	transition: all .5s;
}

.lang-instructions-en {
	position: relative;
	width: 100%;
	height: auto;
	margin: 0 0 2px 0;
	color: white;
	text-align: center;
	font-family: 'Calluna', serif;
	font-style: italic;
	font-size: 2.1vw;
}

.lang-instructions-cn {
	position: relative;
	width: 100%;
	height: auto;
	margin-top: 0;
	margin-bottom: 3.5vh;
	color: white;
	text-align: center;
	font-family: 'Han', serif;
	font-weight: bold;
	font-size: 1.8vw;
}

.lang-buttons-wrapper {
	position: relative;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-around;
	width: 65%;
	height: auto;
}

.lang-button {
	position: relative;
	width: 40%;
	height: auto;
	transition: all .3s;
	cursor: pointer;
}

.lang-button:hover {
	transform: scale(1.075);
	transition: all .3s;
}

.lang-button:active {
	transform: scale(.95);
	transition: all .3s;
}

.loading {
	position: relative;
	display: none;
	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	width: 30%;
	top: 60px;
	opacity: 0;
	transition: all .5s;
	height: 50%;
	line-height: 2.2vw;
}

.loading-text {
	position: relative;
	width: 100%;
	height: auto;
	margin: 0 0 30px 0;
	color: white;
	text-align: center;
	font-family: 'Calluna', serif;
	font-style: italic;
	font-size: 1.8vw;
	height: 35%;
}

.loading-bar {
	position: relative;
	width: 100%;
	height: 1.5vh;
	border-radius: 4vh;
	border: solid 2px white;
}

.loading-fill {
	width: 0%;
	height: 1.5vh;
	border-radius: 4vh;
	background: rgba(255, 255, 255, 0.75);
	transition: all 26s; /* shorten transition to .2s when asset loading has been implemented */
}

.prologue {
	position: relative;
	display: none;
	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	width: 840px;
	height: 390px;
	top: 100px;
	opacity: 0;
	transition: all .8s;
}

.prologue2 {
	position: absolute;
	display: none;
	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	width: 550px;
	height: 800px;
    top: 15px;
	opacity: 0;
	transition: all .8s;
}

.prologue-chap1 {
	position: relative;
	display: none;
	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	width: 550px;
    height: 800px;
	top: -67px;
	opacity: 0;
	transition: all .8s;
}

.prologue p {
	position: relative;
	display: block;
	width: 75%;
	padding-top: 2vh;
	color: white;
	text-align: center;
	font-family: 'Editorial', serif;
	font-size: 1.8vw;
	opacity: 1;
	transition: opacity .5s;
	line-height: 2.4vw;
}

.prologue img {
	position: absolute;
    display: block;
    width: 100%;
}

.title {
	z-index: 999999;
	position: relative; 
	display: none; /* change this to none for testing later sections */
	flex-flow: column wrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	opacity: 0;	
	transition: all 1s;
}

.begin-button {
	z-index: 9999;
    position: absolute;
    bottom: 20vh;
    left: 45%;
    display: block;
    width: 8%;
    height: auto;
    cursor: pointer;
    transition: all .3s;
}

.begin-button:hover {
	transform: scale(1.075);
	transition: all .3s;
}

.begin-button:active {
	transform: scale(.95);
	transition: all .3s;
}

#credit_content{
	display: flex;
}

.credit{
	top: 100px;
	display: none;
	position: relative;
	flex-flow: column wrap;
	opacity: 0;
	transition: all .8s;
}

.credit p {
	margin-top: 0;
	color: white;
	text-align: left;
    font-family: 'Calluna';
    font-size: 1.6vw;
	opacity: 1;
	transition: opacity .5s;
}

.credit .left{
	margin-left: 30%;
}

.credit .col {
}

.credit img {
	display: block;
	width: 60%;
}

.prologue img.quote{
	/* display: none; */
	width: 75%;
	opacity: 0;
	transition: opacity 0.2s;
}

#prologue-img-quote{
	/* transition: opacity 0.2s; */
}

.prologue #chapter1_title{
	display: none;
	opacity: none;
	position: absolute;
	top: 50px;
	font-family: 'Calluna';
}

.prologue #chapter1_text{
	display: none;
	opacity: 0;
	margin-top: 20%;
	font-family: 'Editorial';
	
}

#btn_shape{
	display: none;
    position: absolute;
	bottom: 20vh;
	width: 10%;
	height: auto;
	cursor: pointer;
	transition: all .3s;	
}

#btn_continue{
	display: none;
	width: 150px;
    position: absolute;
	height: auto;
	cursor: pointer;
	transition: all .3s;
    bottom: 2%;
	top: unset;
}

#btn_continue_d{
	display: none;
	width: 10%;
	height: auto;
	cursor: pointer;
	transition: all .3s;
    bottom: -50px;
}

#chapter1-img{
	display: none;
	height: 85%;
	width: auto;
}

#chapter1-img2{
	display: none;
	width: 100%;
}

#chapter1_text{
font-size: 1.8vw;
}

.quote-c{
		font-size: 2.5vw;
		font-weight: bold;
		font-family: auto;
}

img.glitter-star {
	display: none;
	opacity: 0;
	position: absolute;
    height: 180px;
    width: 180px;
    top: -55px;
    right: 20px;
	animation: glitter 4s linear 0s infinite normal;
	-webkit-animation: glitter 4s linear 0s infinite normal;
	-moz-animation: glitter 4s linear 0s infinite normal;
	-ms-animation: glitter 4s linear 0s infinite normal;
	-o-animation: glitter 4s linear 0s infinite normal;
  }

  img.glitter-star2 {
	display: none;
	opacity: 0;
	position: absolute;
    height: 180px;
    width: 180px;
	bottom: 10px;
    left: -53px;
	animation: glitter 4s linear 0s infinite normal;
	-webkit-animation: glitter2 4s linear 0s infinite normal;
	-moz-animation: glitter2 4s linear 0s infinite normal;
	-ms-animation: glitter2 4s linear 0s infinite normal;
	-o-animation: glitter2 4s linear 0s infinite normal;
  }

  img.glitter-star3 {
	display: none;
	opacity: 0;
	position: absolute;
    height: 180px;
    width: 180px;
	top: 70px;
    right: -76px;
	animation: glitter 4s linear 0s infinite normal;
	-webkit-animation: glitter 4s linear 0s infinite normal;
	-moz-animation: glitter 4s linear 0s infinite normal;
	-ms-animation: glitter 4s linear 0s infinite normal;
	-o-animation: glitter 4s linear 0s infinite normal;
  }

  img.glitter-star4 {
	display: none;
	opacity: 0;
	position: absolute;
    height: 180px;
    width: 180px;
    bottom: 50px;
    left: -78px;
	animation: glitter 4s linear 0s infinite normal;
	-webkit-animation: glitter2 4s linear 0s infinite normal;
	-moz-animation: glitter2 4s linear 0s infinite normal;
	-ms-animation: glitter2 4s linear 0s infinite normal;
	-o-animation: glitter2 4s linear 0s infinite normal;
  }

  img.glitter-star5 {
    display: none;
    opacity: 0;
    position: absolute;
    height: 180px;
    width: 180px;
    top: 30px;
    right: -82px;
    animation: glitter 4s linear 0s infinite normal;
    -webkit-animation: glitter2 4s linear 0s infinite normal;
    -moz-animation: glitter2 4s linear 0s infinite normal;
    -ms-animation: glitter2 4s linear 0s infinite normal;
    -o-animation: glitter2 4s linear 0s infinite normal;
}

img.glitter-star6 {
    display: none;
    opacity: 0;
    position: absolute;
    height: 180px;
    width: 180px;
    bottom: -60px;
    left: -85px;
    animation: glitter 4s linear 0s infinite normal;
    -webkit-animation: glitter2 4s linear 0s infinite normal;
    -moz-animation: glitter2 4s linear 0s infinite normal;
    -ms-animation: glitter2 4s linear 0s infinite normal;
    -o-animation: glitter2 4s linear 0s infinite normal;
}

  @keyframes glitter {
	0% {
	  -webkit-transform: scale(1.0);
	  opacity: 1;
	}
	25% {
	  -webkit-transform: scale(0.5);
	  opacity: 0;
	}
	50% {
	  -webkit-transform: scale(1.0);
	  opacity: 1;
	}
	75% {
	  -webkit-transform: scale(0.5);
	  opacity: 0;
	}
	100% {
	  -webkit-transform: scale(1.0);
	  opacity: 1;
	}
  }

  @keyframes glitter2 {
	0% {
	  -webkit-transform: scale(0.5);
	  opacity: 0;
	}
	25% {
	  -webkit-transform: scale(1.0);
	  opacity: 1;
	}
	50% {
	  -webkit-transform: scale(0.5);
	  opacity: 0;
	}
	75% {
	  -webkit-transform: scale(1.0);
	  opacity: 1;
	}
	100% {
	  -webkit-transform: scale(0.5);
	  opacity: 0;
	}
  }

  .border_poem{
	height: 650px;
	display: block;
	opacity: 1;
	top:50px;
	width: 550px;
	position: absolute;
  }

@media screen and (max-width: 1024px) and (orientation:landscape) {

	#chapter1_text , #credit_content p{
		font-size: 2.6vw;
	}
	#btn_continue ,#btn_shape {
		width: 25%;
		bottom: 5%;
	}
	.btn_continue_d {
		width: 15% !important;
		bottom: 15% !important;
	}
	
	.begin-button {
		bottom: 25%;
		width: 13%;
	}
	.lang-instructions-en, .prologue p {
		font-size: 2.4vw;;
		width: 60%;
	}
	.prologue{
		width: 720px;
	}
	#chapter1-img2 {
		width: 100%;
	}
	.prologue img.quote{
		left: -10px;
		width: 95%;
	}

	img.glitter-star {
		top: -30px;
		right: 4px;
	}

	img.glitter-star3 {
		top: 70px;
		right: -83px;
	}

	img.glitter-star4 {
		bottom: 32px;
		left: -88px;
	}

	img.glitter-star5 {
		top: 10px;
		right: -80px;
	}

	img.glitter-star6 {
		bottom: -20px;
		left: -85px;
	}

	#border_poem2{
		width: 130%;
		top: -3%;
	}
	.border_stars{
		width: 126% !important;
		margin-top: 2% !important;
	}

	.loading-text {
		height: 20%;
	}

	.border_poem{
		height: 530px;
		display: block;
		opacity: 1;
		top: 50px;
		width: 410px;
		position: absolute;
	}
	.prologue2 {
		position: absolute;
		display: none;
		flex-flow: column wrap;
		align-items: center;
		justify-content: center;
		width: 420px;
		height: 650px;
		top: 0px;
		opacity: 0;
		transition: all .8s;
	}

	#replay{
		left: 21% !important;
	}

	#qrcode{
		right: 2% !important;
	}
 }

 @media screen and (min-width: 1025px) and (max-width: 1536px) and (min-height: 675px) and (orientation:landscape) {
	.border_poem {
		height: 499px;
		display: block;
		opacity: 1;
		top: 50px;
		width: 421px;
		position: absolute;
	}
	.prologue2 {
		position: absolute;
		display: none;
		flex-flow: column wrap;
		align-items: center;
		justify-content: center;
		width: 450px;
		height: 704px;
		top: -30px;
		opacity: 0;
		transition: all .8s;
	}
	#border_poem2{
		width: 100%;
		top: -3%;
	}

	.border_poem2 {
		width: 460px;
	}

	.prologue p {
		line-height: 2.6vw;
	}

	/* #fb-share{
		right: 210px !important;
		bottom: 15px !important;
	}
	#fb-share-text {
		right: 100px !important;
		width: 100px;
	}
	#fb{
		right: 210px !important;
		bottom: 15px !important;

	}
	#fb-share:hover{
		cursor: pointer;
	}

	#play-again-text{
		right: 260px !important;
		bottom: 50px !important;
	}

	#play-again{
		right: 290px !important;
		bottom: 25px !important;
	}

	#qr_code_text{
		right: 250px !important;
		bottom: 110px !important;
	}

	#qr_code{
		right: 400px !important;
		bottom: 15px !important;
	} */
 }
	@media screen and (min-width: 1920px) and (orientation:landscape) {
	.chapter.prologue {
		width: 600px !important;
		top: 10% !important;
	}
	.chapter.top-20{
		top: 20px !important;
	}
}
	@media screen and (max-width: 520px) {
		.alert{
			display: block !important;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			object-fit: fill;
			z-index: 999999;
		}
	}

	@media screen and (min-width: 1025px) and (max-width: 1536px) and (max-height: 674px) and (orientation:landscape) {
		#prologue2{
			height: 100%;
			width: 400px;
			top: -30px;
		}

		/* #fb-share{
			right: 210px !important;
			bottom: 15px !important;
		}
		#fb-share-text {
			right: 100px !important;
			width: 100px;
		}
		#fb{
			right: 210px !important;
			bottom: 15px !important;

		}
		#fb-share:hover{
			cursor: pointer;
		}

		#play-again-text{
			right: 260px !important;
			bottom: 50px !important;
		}

		#play-again{
			right: 290px !important;
			bottom: 25px !important;
		}

		#qr_code_text{
			right: 250px !important;
			bottom: 110px !important;
		}

		#qr_code{
			right: 400px !important;
			bottom: 15px !important;
		} */

	}
