/* =====================
* Script to ...
* Use of ...
* ----------------------
* - index.js (for homepage)
* ...
* @since 15.01.2022
* @author Huyen Thuong Luong
* @version 1.0
* @lastUpdated 19.01.2022
======================== */
/* Import @font-face {font-family: 'CorradineHand';src: url('fonts/346E0C_0_0.eot');src: url('fonts/346E0C_0_0.eot?#iefix') format('embedded-opentype'),url('fonts/346E0C_0_0.woff2') format('woff2'),url('fonts/346E0C_0_0.woff') format('woff'),url('fonts/346E0C_0_0.ttf') format('truetype');} */

body {
	width: 96vw;
	padding: 1vw; 
	background-color: #000; 
	font-family: Georgia; 
	font-size: 100%, line-height:125%; 
	color: #000;
}
main {
	width: inherit;
	background-color: #fff;
}
article {
	width: inherit;
}
section {
	width: inherit;
	padding: 0 0.5vw;
	box-sizing: content-box;
}
figure {
	margin-inline-start: 0.5vw;
	margin-inline-end: 0.5vw;
}
figcaption {
	text-align: center;
}

@media only screen and (max-width: 759.99px) {
	main {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    border-bottom-left-radius: 3em;
	}
}
@media only screen and (min-width: 760px) and (max-width: 1334px) {
	main {
		margin-top: -9em;
		padding-top: 20%;
	}
}
@media only screen and (min-width: 1334.01px) {
	main {
		margin-top: -5em;
		padding-top: 9%;
	}
}
h2, h3, h4 {
	padding-top: 1em;
	padding-bottom: 0.5em;
}
h1 {
	padding-left: 2em;
}
h2 {
	padding-left: 1.5em;
	padding-right: 1.5em;
}
h3 {
	padding-left: 1em;
	padding-right: 1em;
}
h4 {
	padding-left: 1em;
}
p {
	padding: 1em;
	text-align: justify;
}
div {}
span {
	padding: 0.5em;
}

ul {margin-left:15px; margin-bottom:2em;}
li {border-bottom: 1px solid ##8ECBF9;}
table {background-color: aliceblue; border: 1px solid #000; cell-padding:0; clear:left}

a:link {color:#29291a;}
a:hover{color: red}
a:active {color: orangered}
a:visited {color: darkred}

/*************************************************
****            Custom Styles				  ****
*************************************************/
/* Navigation */	
nav {
	display: inline-block;
    width: 100%;
    background-color: #ffe900;
    border-top-left-radius: 3em;
    border-top-right-radius: 3em;
	}
/* At lower resolutions people must click on the box to show the navigation */
@media only screen and (max-width: 759.99px) {
body {padding: 15px;}
nav>ul {
	width: 2.1em;
	height: 2.2em;
	overflow: hidden;
    box-sizing: border-box;
    border: 2px solid red;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
	padding-left: 2em;
}
.bar:before {
	content: "\f0c9";
	font-size: 2em;
}
.bar:hover {
	max-width: 90%;
	width: fit-content;
	max-height: 4em;
	height: max-content;
	margin-left: 5%;
	display: inline-flex;
	word-wrap: break-word;
}
nav>ul>li {
	list-style: none;
	width: max-content;
	margin-left: 0.5em;
}
nav>ul>li.active {
	display: none;
}
nav>ul>li a{
	visibility: none;
}
nav>ul>li a:hover{
	visibility: visible;
	background-color: #fff;
	color: #000;
}
}
/* At higher resolutions menu links will be shown */
@media only screen and (min-width: 760px) {
nav>ul {
	float: right;
    display: inline-flex;
    margin-inline-end: 3em;
    margin-block-start: 0;
    }
nav>ul>li {
	list-style: none; 
	margin-right: 1em; 
	padding: 10px;    
    border-left: #000 solid 2px;
    border-bottom: #000 solid;
    border-right: #000 solid 2px;
	border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #000;
    }
}
nav>ul>li a:link {
	text-decoration: none;
	color: #fff;
}
nav>ul>li a:visited {
	color: yellow;
}	
nav>ul>li.active {
	background-color: #000; 
	background-color: #ffe900; 
	color: red;
}

/*nav>ul>li:first-child {
} 
nav>ul>li:nth-child(2), nav>ul>li:nth-child(3), nav>ul>li:nth-child(4), nav>ul>li:nth-child(5) {
	
}*/
/* Header */
header {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.top {
	width: 100%;
	margin-top: -10px;
	background-color: #ffe900;
	display: grid;
	grid-template-columns: 1fr 3fr;
    align-items: baseline;
    grid-area: 1 /span 2;
}
/* for small screen on old mobile phone */
@media only screen and (max-width: 414px) {
.top {
	grid-template-columns: 1fr;
}
h1 {
	padding-left: 5px;
}
}
/* for smart phone, tablet */
@media only screen and (min-width: 415px) and (max-width: 759.99px) {
.top {
	grid-template-columns: auto 1fr;
}
h1 {
	padding-left: 0.5em;
}
}
/* for normal screen */
@media only screen and (min-width: 760px) and (max-width: 1439.99px) {
.deco-Top {
	grid-column: span 2;
	height: 4em;
	background-color: #ffe900;
	border-bottom-left-radius: 15em;
    border-bottom-right-radius: 15em;
}
.deco-Top-Left, .deco-Top-Right {
    margin: 2.5em 0 -2.5em 0;
	min-height: 100px;
	background-color: #ffe900;
	}
.deco-Top-Left {
    transform: skewY(20deg);
    }
.deco-Top-Right {
	transform: skewY(-20deg);
	}
.deco-Top2 {
    grid-column: span 2;
	height: 4em;
    background-color: #ffe900;
    border-bottom-left-radius: 4em;
    border-bottom-right-radius: 4em;
    margin: -6.5em 15% 0 15%;
	}
}
@media only screen and (min-width: 1440px) {

}
/* Sidebar: normal -> show a round button, click -> expanded */
aside {	
	position: fixed !important; /* because class fontAwasome has relative position */
	bottom: 3em;
	right: 3em;
	width: 60px;
    height: 60px;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 9;
    background-color: #fff;
    border-radius: 30px;
}
aside:hover {
	top: 50%;
	max-width: 90%;
	width: fit-content;
	height: max-content;
	margin-left: 5%;
	background-color: #fff;
	border-radius: 10px;
	padding-right: 10px;
	word-wrap: break-word;
}

/* Style for Detailseie */
.de {
	background-color: #fd0;
	background-image: linear-gradient(to left, #fd0, #fff);
	background-image: -webkit-linear-gradient(right, #fd0, #fff);
	text-align: left;
}
.vs, .bewertung {
	background-image: url("/image/vs.png");
	background-repeat-x: no-repeat;
	background-repeat-y: repeat;
}
.vs {
	min-width: 50px;
	background-position: left;
}
.bewertung {
	min-width: 5em;
	background-image: linear-gradient(to right, #fd0, #f00);
	background-image: -webkit-linear-gradient(left, #fd0, #f00);
/*	background: -webkit-gradient(linear, left top, right top, color-stop(0%,#fd0), color-stop(29%,#c23861), color-stop(62%,#ec4469), color-stop(82%,#ed5159), color-stop(100%,#f00)); /* Chrome,Safari4+ *
	background: -moz-linear-gradient(left,  #9d2d64 0%, #c23861 29%, #ec4469 62%, #ed5159 82%, #df5832 100%);
  background: -webkit-linear-gradient(left,  #9d2d64 0%,#c23861 29%,#ec4469 62%,#ed5159 82%,#df5832 100%);
  background: -o-linear-gradient(left,  #9d2d64 0%,#c23861 29%,#ec4469 62%,#ed5159 82%,#df5832 100%);
  background: -ms-linear-gradient(left,  #9d2d64 0%,#c23861 29%,#ec4469 62%,#ed5159 82%,#df5832 100%);
  background: linear-gradient(to right,  #9d2d64 0%,#c23861 29%,#ec4469 62%,#ed5159 82%,#df5832 100%);*/
	background-position: center;
}
.valuation {
	display: flex;
	flex-direction: row;
	padding-bottom: 1em;
}
.column {
	display: flex;
	flex-direction: column;
	justify-content: end;
}
.vn {
	max-width: 45vw;
	background-color: #f00;
	background-image: linear-gradient(to right, #f00, #fff);
	background-image: -webkit-linear-gradient(left, #f00, #fff);
	text-align: right;
}

/* icon */
.fontAwesome {position:relative; padding-left:20px;}
.fontAwesome:before {
	position: absolute;
	top: 0;
	left: 0;
	font-family: FontAwesome;
	color: #000;
	}
.icon-home:before {
    content: "\f015";
    font-size: 1.2em;
}
.heart:before {
	content: "\f08a";
	font-size: 3em;
	padding: 0.1em;
}
.star_empty:before {
    content: "\f006";
    font-size: 1.2em;
}
.star:before {
    content: "\f005";
    font-size: 1.2em;
}
/* display 2 -> 6 columns */
.col-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.col-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}
.col-4 {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr;	
}
.col-6 {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr auto 1fr;	
}
.two-col {
	display: grid;
	grid-template-columns: 1fr 2fr;
}
.three-col {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
}

.span2 {
	grid-column: span 2;
}
.span3 {
	grid-column: span 3;
}

.hidden {
	display: none;
}
.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
.lefttop {
	align-self: self-start;
}
.rightbottom {
	align-self: self-end;
}

/******************
 * Styles for image and video
 * ***************/
img {margin: 5px auto;}
.video {
}
/* showing video depends on resolution */
@media only screen and (max-width: 759.99px) {
	img {
	max-width: 44vw;
	}

	.video {
	width: 100%;
	max-width: 16em;
	}
}
@media only screen and (min-width: 760px) {
	img {
	max-width: 44vw;
	}
	.video {
	width: 40vw;
	min-height: 22.5vw;
	}
}

/******************
 * Styles for form
 * ****************/
 form {
 	width: 98%;
 }
 #start-question, #greeting {
    margin-bottom: 1em;
    font-size: 8em;
    text-align: center;
}

#name_input {
    font-size: 5em;
    border: none;
    border: none;
    border-bottom: #ddd dashed 2px;
    text-align: center;
}

#name_input:focus-visible {
    outline: none;
    text-align: center;
    border: none;
    border-bottom: #ddd dashed 2px;
}
		
/* FOOTER */
footer {
	margin-top: -2em;
	width:100%;
}
.thblogo {margin-right: 25px; border:0px;}

@media only screen and (max-width: 759.99px) {
.deco-bottom {
	height: 3em;
	background-color: #ffe900;
    border-top-left-radius: 3em;
}
.content {
	background-color: #ffe900;
	padding-left: 1em;
}
.deco-bottom2 {
	height: 3em;
	background-color: #ffe900;
    border-bottom-right-radius: 3em;
}	
}
/* At higher resolutions menu links will be shown */
@media only screen and (min-width: 760px) {
.deco-bottom {
	height: 12em;
	background-color: #fff;
}
.diagonal-box {
	position: relative;
	z-index: 3;
	transform: skewY(-9deg);
	background-color: #ffe900;
	margin-top: -5em;
	padding: 10% 0 5% 0;
}
.content {transform: skewY(9deg); max-width: 80%; margin: 0 auto;background-color: transparent;z-index: 3;}
.deco-bottom2 {
	position: relative;
	top: -12.3em;
	z-index: 1;
	height: 8em;
	background-color: red;
	transform: skewY(9deg);
}
footer {
	margin-bottom: -13em;
}
}
/***********************************************
 * Setting style for mobile phone, width < 415px
 ***********************************************/
@media only screen and (max-width: 415px) {
	img {
		max-width: 96vw;
	}
	.vn {
		max-width: 96vw;
	}
.col-2, .col-3, .two-col, .three-col {
	display: flex;
    flex-direction: column;
}
.col-4, .col-6 {
	grid-template-columns: auto 1fr;
}
}