
/* Variables to call */
:root{
--color1: rosybrown;
/*--color2: #554c40;*/
/*--color2: #754A34;*/
--color2: #4C2E21;
--color3: lightgoldenrodyellow;
/*--gradient: linear-gradient(var(--color2), var(--color2), var(--color2),  var(--color2),  rgba(85, 76, 64, 0.9), rgba(0, 0, 0, 0));*/
--gradient: linear-gradient(var(--color2), var(--color2), var(--color2),  var(--color2),  rgba(117, 74, 52, 0.9), rgba(0, 0, 0, 0));

} 

 /* Overall CSS/ Main Colors */
body{
	display: flex;
	flex-direction: column;
	font-family: "Poppins", sans-serif;
	letter-spacing: 2.0;
	font-size: 18px;
	color: lightyellow;
	background-color: var(--color3);
}

li{
	font-size: 22px;
}


h1, h2, h3, h4, h5{
	font-family: "Libre Baskerville", serif;
}

/* Background image */
body, html{
	background-image: url("../images/book.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}


/* Header Menubar*/
.navbar{
	background-color: var(--color2);
	background-image: url("../images/bookcover2.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	border-bottom: solid var(--color3) 5px;
	height: 70px;
	margin-bottom: 0;
	z-index: 99;
}


.navbar, .navbar-expand-lg, .navbar-light{
	position: fixed;
	top: 0;
	width: 100%; 
}


/* Placement of navbar menu */
ul.navbar-nav{
	display: flex;
	justify-content: space-around;
	margin-left: -40px;
	margin-right: 0;
}


/* Navbar link */
.nav-link{
	font-size: 24px;
	margin-left: 35px;
	color: lightyellow !important;	
	border-radius: 10px;
}

.navbar-toggler{
	color: var(--color3);
	border: solid var(--color3) 2px;
}

.navbar-light, .navbar-toggler{
	background-color: var(--color3);
}

a{
	position: relative;
	text-decoration: none;
}

a.effect:after{
	content: "";
	position: absolute;
	background-color: var(--color3);
	height: 2.9px;
	width: 0;
	left: 0;
	bottom: 0px;
	transition: 0.2s;
	border-radius: 10px;
}

a.effect:hover{
	color: #8550bd;
}

a.effect:hover:after{
	width: 100%;
}

a.foot-link{
	color: lightyellow !important;	
	text-align: right;
	font-size: 20px;
	margin-right: 10px;
}

a.foot-link:hover{
}

a.foot-link:after{
	transition: 0.2s !important;
}

/* Main Content */
main{
	height: auto;
} 

p{
	font-size: 22px;
}

.importance{
	font-size: 22px;
}

.main-content{
	color: black;
}

.showcase-container{
	display: flex;
	background-image: var(--gradient);
	height: 480px;
	width: auto;
}

.showcase-image{
	flex: 10%;
	margin-top: 75px;
	margin-bottom: 20px;
	margin-left: 70px;
	margin-right: 0px;
	border-radius: 20px;
	height: 250px;
	width: 150px;
}

.showcase-text{
	flex: 20%;
	height: 350px;
	width: 500px;
}

 h1.showcase-title{
	font-size: 90px;
	margin-top: 80px;
 }

 h2.showcase-caption{
 	font-size: 35px;
 	margin-top: 5px;
 }


.ct{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-left: 0px;
	margin-right: 0px;
}


.ct-item{
	font-size: 22px;
	margin: 15px;
	margin-left: 20px;
	margin-right: 20px;
}


/*for a href in table of content*/

a.tbl{
	color: black;
}

a.tbl:after{
	content: "";
	position: absolute;
	background-color: black;
	height: 1.9px;
	width: 0;
	left: 0;
	bottom: 0px;
	transition: 0.15s;
	border-radius: 10px;
}

a.tbl:hover{
	color: #000;
}

a.tbl:hover:after{
	width: 100%;
}

img.add-ons{
	border-radius: 25px;
	width: 360px;
	height: 310px;
	margin: 20px;
	margin-left: 50px;
	margin-top: 30px;
}




/*Early Life*/
/*The rows for family tree images*/
.familytree{
	display: flex;
	justify-content: space-around;
	margin-left: 0px;
	margin-right: 0px;
	height: 200px;
	width: auto;
}

img.familyprofile{
	width: 200px;
	height: 160px;
	margin-left: 0px;
	border-radius: 120px;
}

.familytext{
	display: flex;
	justify-content: space-around;
	margin-left: 0px;
	margin-right: 0px;
	width: auto;
}

img.familypic{
	border-radius: 30px;
}

/* For href of names and picture */

.familylink{
	text-decoration: none;
	color: black;
}

.familylink:hover{
	background-color: rgba(99, 99, 99, 0.2);
	border-radius: 40px;
	transition: 0.3s;
	padding-left: 3px;
	padding-right: 3px;
	padding-top: 3px;
}


.aboutbox{
	border-radius: 25px;
	border: double var(--color2) 5px;
	color: var(--color2);
	background-color: rgba(117, 74, 52, 0.2);
}


/*WorldMap*/

.mapa{
	/*background-image: url('../images/mapa.jpg');
	background-size: cover;*/
	background-color: white;
	position: relative;
	width: 800px;
	height: 500px;
	border-radius: 35px;
	border: solid 3px #000;
	margin: 12px;
	margin-left: 15%;
	font-size: 10px;
}

.mapa img{
	width: 100%;
	height: 100%;
	object-fit: contain;

}

.pin{
	background: var(--color1);
	position: absolute;
	width: 0.7em;
	height: 0.7em;
	border-radius: 50%;
}

.pin::hover{
	content: '';
	background: var(--color2);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.pin span{
	display: inline-block;
	white-space: nowrap;
	position: absolute;
	left: 1.5em;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--color3);
	border-radius: 3em;
	padding: 0.3em 0.6em;
	font-size: 0.9em;
}

.rpin{
	position: absolute;
	width: 0.7em;
	height: 0.7em;
}

.rpin::hover{
	content: '';
	background: var(--color2);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border-radius: 50%;
}


.rpin span{
	display: inline-block;
	white-space: nowrap;
	position: absolute;
	left: 1.5em;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--color3);
	border-radius: 3em;
	padding: 0.3em 0.6em;
	font-size: 0.9em;
}

.fright{
	top: 33%;
	left: 40.5%;
}

.ph{
	top: 50%;
	left: 79%;
}

.spain{
	top: 36.9%;
	left: 45.6%;
}

.swt{
	top: 34%;
	left: 49.5%;
}

.gmy{
	top: 30.5%;
	left: 49.7%;
}

.ity{
	top: 36.9%;
	left: 52.5%;
}

.fr{
	top: 33%;
	left: 48%;
}

.jpn{
	top: 38.9%;
	left: 82.3%;
}

.hk{
	top: 45%;
	left: 76.5%;
}

.west{
	top: 37%;
	left: 20%;
}

.belg{
	top: 30%;
	left: 48.7%;
}

.Sandakan{
	top: 53.5%;
	left: 77.2%;
}


@keyframes pulse {
	100% {
		opacity: 0;
		transform: translate(-50%, -50%)
		scale(2.5);
	}
}

@media screen and (max-width:600px){
	.mapa{
		font-size: 13px;
	}
}

.maplink{
	text-decoration: none;
	color: black;

}

.vidbox{
	border-radius: 35px;
	background-color: var(--color2);
	margin-left: 236px;
	width: 800px;
	padding: 20px;

}




/*For animation on scroll*/

section {
}

.hidden{
	opacity: 0;
	filter: blur(1px);
	transform: translateX(-10%);
	transition: all 0.90s;
}

.show{
	opacity: 1;
	filter: blur(0);
	transform: translateX(0);
	overflow: hidden;
}


button.thebtn{
	border: solid 2px var(--color2) !important;
}

button.thebtn:hover{
	background-color: rosybrown;
}


footer{
	height: auto;
	width: auto;
	flex-shrink: 0;
	background-color: var(--color2);
	background-image: url("../images/bookcover2.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	border-top: solid var(--color3) 5px;
	margin-top: 20px;
}



/*For small screen / phone screen*/
@media (max-width: 768px){

	ul.navbar-nav{
		margin-left: 50px !important;
		margin-right: 50px !important;
		text-align: center !important;
		background-color: var(--color2);
		border-radius: 25px;
		border: solid var(--color3) 3px;
	}

	li{
		font-size: 19px;
	}
	a.nav-link{
		margin-left: 0 !important;
	}

	a.effect:hover:after{
		width: 70% !important;
		margin-left: 50px;
	}

	li.phone-margin{
		margin-bottom: 10px;
	}

	

	body{
		font-size: 14px;
	}

	p{
		font-size: 19px !important;
	}

	.importance{
		font-size: 18px;
	}

	.container{
		width: 92%;
	}

	.mx-5{
		margin-left: 1.5rem !important;
		margin-right: 1rem !important;
	}
	.phone-box{
			margin-left: 15px !important;
			margin-right: 5px !important;
			padding: 0px !important;
			width: 430px;
		}
	.ms-5, .ms-4, .ms-3{
		margin-left: 10px !important;
	}

	.mt-5, .mt-4 {
		margin-top: 10px !important;
	}

	.ps-5, .ps-4, .ps-3{
		padding-left: 10px !important;
	}

	.pt-2{
		padding-top: 0 !important;
	}

	.ct{
		padding-right: 0px;
	}

	.ct-item{
		font-size: 18px;
	}

	h2.cti{
		font-size: 22px;
	}

	.showcase-title{
		font-size: 70px !important;
	}

	.showcase-caption{
		font-size: 25px !important;
	}

	.mapa{
		display: none;
	}

	.maptext{
		display: none;
	}	

	.showcase-text{
		position: absolute;
		flex: none;
		margin: 10px;
		margin-left: 25px;
		margin-top: 80px !important;
		width: auto;
		z-index: 90;
	}

	.smallershowcase{
		font-size: 53px !important;
	}

	.showcase-image{
		opacity: 15%;
		position: relative;
		float: left;

	}

	.vidbox{
		width: 470px;
		height: 350px;
		margin-left: 10px;
		margin-right: 10px;
		margin-top: 10px;
	}

	iframe{
		width: 420px;
		height: 240px;
	}

	img.add-ons{
		width: 200px;
		height: 210px;
		margin-left: 90px;
	}

	img.familyprofile{
		width: 90px;
		height: 90px;
		margin-left: 8px;
	}

	img.familypic, img.fpic{
		width: 200px !important;
		height: 180px !important;
	}

	.familytext{
	display: block;
	}

	.familylink:hover{
	margin-bottom: 0;
	padding-bottom: 0;
	}

	#introText1, #introText2, #introText3{
		font-size: 35px !important;
	}

	#preloading{
	background-size: 70% !important;
	}
}

@media(prefers-reduced-motion){
	.hide{
		display: none;
	}
}


/*#tablecontent{
	width: 50px;
	height: 50px;
	background: var(--color3) no-repeat center center;
	background-size: 50%;
	border-radius: 25px;
	position: fixed;
	margin-top: 6%;
	margin-left: 94%;
	z-index: 5;
}

#tablecontent:hover{
	width: 60px;
	height: 60px;
	border-radius: 35px;
	cursor: pointer;
	margin-top: 5.5%;
	margin-left: 93.5%;
}


#tablepopup{
	font-size: 16px;
	width: 100px; 
	height: 20px;
	border-radius: 25px; 
}

#maintable{
	background: var(--color3) no-repeat center center;
	background-size: 30%;
	width: 70%;
	height: 70%;
	margin: 84px;
	margin-left: 22%;
	border-radius: 25px;
	position: fixed;
	z-index: 91;
	display: none;
}
*/
/* Custom Scrollbar components */
::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: lightgoldenrodyellow;
}

::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.5);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

#intro-start{
/*	background-color: var(--color2);*/
	background: url("../images/bookcover2.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	height: 115vh;
	width: 100%;
	position: fixed;
	z-index: 100;
	opacity: 1;
}


#introText1, #introText2, #introText3, #startClick{
	text-align: center;
	margin: 60px;
}

#introText1, #introText2, #introText3{
	font-size: 60px;
}

#startClick{
	font-size: 20px;
	cursor: default;
}

.hide{
	opacity: 0;
	filter: blur(1px);
	transform: translateX(-5%);
	transition: all 0.90s;
}

.appear{
	opacity: 1;
	filter: blur(0);
	transform: translateX(0);
	overflow: hidden;
}

p.appear{
	opacity: 0.4 !important;
}



#preloading {
	background: #261D0E url(../images/preload.gif) no-repeat center center;
	background-size: 40%;
	height: 115vh;
	width: 100%;
	position: fixed;
	z-index: 100;
}
