@charset "UTF-8";
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
@import url('https://fonts.googleapis.com/css2?family=DM+Sans&display=swap');
body {
	font-family:"Noto Sans TC","Microsoft JhengHei", "Noto Sans CJK TC", PingFang, STHeiti, sans-serif, serif;
	text-align: center;
	padding: 10px;
	background-color: unset;
	display: flex;
    justify-content: center;
}
.game-container {
	width: 96vw;
	height:calc(96vw *360/640);
	background: white;
	border-radius:10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	transform-origin: center;
	transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}
.question, .answer-page {
	text-align: center;
	padding: 20px;
	position: absolute;
	width: 100%;
	height: 100%;
	transition: opacity 1s ease-in-out;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: center;
}
.option {
	background:unset;
	position:relative;
	color: white;
	border: none;
	padding: 10px 15px;
	font-size: 16px;
	text-align:left;
	cursor: pointer;
	width: 100%;
	height:18%;
	transition: background 0.3s, transform 0.1s;
	display: flex;
    align-items: center;
}
.option:before {
	content: "";
	background: var(--maincolor);
	transition: box-shadow 0.3s, transform 0.1s;
	display:block;
	width:120%;
	height:100%;
	position:absolute;
	z-index:9;	
	top:0;
	left:0;
	transform: skewX(-20deg);
	border-radius:2px;
	box-shadow: inset 0 0 0px rgba(200, 200, 200, 0);
}
.option span{
	z-index:10;
	position:relative;
}
.option:hover:before {
	transform: scale(0.95) skewX(-20deg);
	box-shadow:inset 0 0 30px rgba(200, 200, 200, 0.6);
}
.icon { 
	display: none; 
	margin-left: 10px;
	filter: brightness(10); 
	position: absolute !important;
    right: 0;
    background: rgba(255,0,0,0.8);
    border-radius: 5px;
	padding: 2px;
    padding-top: 0px;
}
#correctAnswer .icon{
	background: rgba(0, 255, 0, 0.8);
}
.answer-page { opacity: 0; display: none; }
.fade-in { opacity: 1 !important; display: flex !important; }
.fade-out { opacity: 0 !important; }
.rotate { transform: rotateY(360deg); }
.buttons { 
	display: flex;
    justify-content: center;
    align-items: center;
	margin-top: 20px; 
	position: absolute;
    width: 80vw;
    bottom: 10%;
}
.buttons button {
	margin: 10px;
	padding: 10px 15px;
	font-size: 16px;
	cursor: pointer;
	border: none;
	border-radius: 5px;
	transition: background 0.3s;
}
/*
.buttons .more { background: #27ae60; color: white; }
.buttons .more:hover { background: #229954; }
*/
.buttons .more ,.buttons .retry {
	background:unset;
	position:relative;
	color: white;
	border: none;
	padding: 10px 30px;
	font-size: 16px;
	text-align:left;
	cursor: pointer;
	width: 35%;
	height:18%;
	transition: background 0.3s, transform 0.1s;
	display: flex;
    align-items: center;
	z-index:10;
    justify-content: center;	
}
.buttons .more:before ,.buttons .retry:before {
	content: "";
	background: var(--maincolor);
	transition: box-shadow 0.3s, transform 0.1s;
	display:block;
	width:100%;
	height:100%;
	position:absolute;
	z-index:-1;	
	top:0;
	left:0;
	transform: skewX(-20deg);
	border-radius:2px;
	box-shadow: inset 0 0 0px rgba(200, 200, 200, 0);
}
.buttons .more:hover:before ,.buttons .retry:hover:before {
	transform: scale(0.95) skewX(-20deg);
	box-shadow:inset 0 0 30px rgba(200, 200, 200, 0.6);
}

.question h2,.answer-page h2{
	padding:20px;
	font-size:160%;
	font-weight:900;
	line-height:170%;
	letter-spacing:2px;
}

.qright{
	display:flex;
	flex-wrap: wrap;
}
.qright h2{
	width:60%;
	text-align: justify;
}
.qright.ttop{
	justify-content: flex-start;
}
.qright.tbottom{
	justify-content: flex-end;
}
.qright .options{
	width:40%;
	height:100%;
}
.qdown.question{
	justify-content: flex-end;
	padding-bottom: 80px;
}
.qdown .options {
    display: flex;
    gap: 20px;
    justify-content: center;
    height: 25%;
    flex-direction: row;
    flex-wrap: wrap;
}
.qdown .option{
	width: 45%;
    height: 60%;
}
.qdown .option:before{
	width: 100%;
    height: 100%;
}
.qdown h2{
    width: 90%;
    position: absolute;
    top: 20%;
}
.qdown .icon{
	right: 15px;
}
.answer-page p{
	width:70%;
	font-weight: 600;
    padding-bottom: 20px;
}

@media (max-width: 480px) {
	.qdown .options {
		display: flex;
		gap: 10px;
		height: 35%;
		line-height: 15px;
	}
	.qdown .option {
		height: 70%;
		padding-bottom: 8px;
	}
	.question, .answer-page {
		padding: 5px;
	}
	.qdown.question {
        padding-bottom: 45px;
	}
	.option {
		font-size: 12px;
		padding: 5px 10px
	}
	.question h2, .answer-page h2 {
		padding: 10px;
		font-size: 130%;
	}
	.qdown h2 {
		top: 10%;
		line-height: 120%;
	}
	.answer-page p {
		width: 90%;
		padding-bottom: 20px;
		font-size: 12px;
	}
	.buttons .more, .buttons .retry {
		padding: 5px 15px;
		font-size: 15px;
	}
	.buttons {
		bottom: 3%;
	}
  .nvnd01 .game-container,.nvnd02 .game-container,.nvnd03 .game-container,.nvnd05 .game-container{
    height: calc(96vw * 560 / 640);
  }
  .nvnd01 .question,.nvnd02 .question,.nvnd03 .question,.nvnd05 .question{
    background-size: 120% !important;
    background-position: 20% 170% !important;
  }
	.nvnd05 .question{
    background-position: 20% 270% !important;
  }
}
	