body {
  font-family: Arial, Helvetica, Gill Sans;
  font-size: 20px;
  background: #FFFFFF;
  color: #444;
  margin: 0;
  overflow: hidden;
  line-height: 38px;
}

a{
	color: #5E7E1D;
	cursor: pointer;
}

.green{
	color:#899600;
	text-align: center;
	font-weight: bold;
}

.brown{
	color:#613B00;
	font-size: 24px;
}

h2{
	font-size: 26px;
}

.wrap{
	word-wrap: break-word;
	line-height: 24px;
}

.homenut{
	width: 60px;
	text-align: left;
	float: left;
	margin-right: 10px;
}

.overflowShow{
	overflow-x: hidden;
	overflow-y: scroll;
}

.spotName{
	font-size: 20px;
	color: #262626;
	font-weight: bold;
	text-shadow:#F9FF00 1px 0 10px;
	position: absolute;
}


img {
  display: block;
  width: 110%;
}

.Big-title{
	font-size: 50px;
	font-weight: bold;
	height: 60px;
}

.posrel{
	position: relative;
}

.framewrap{
	position: relative;
	overflow: hidden;
}

.wpframe{
	position: relative;
	top: -50px;
}

@media screen and (-webkit-min-device-pixel-ratio:0)
and (min-resolution:.001dpcm) {
	.wpframe{ 
		position: relative;
		top: -50px;
	}
}

@-moz-document url-prefix() {
	.wpframe{
		position: relative;
		top: -70px;
	}
}

.img-margin{
	margin: 50px 0 50px 0;
}

.img-margin img{
	width:100%;
}

input[type=checkbox] {
  display: none;
}

label {
  display: inline-block;
  margin-right: 1em;
  padding: 0.4em 0;
  cursor: pointer;
}

input[type=checkbox] + label:before {
  display: inline-block;
  position: relative;
  background: #444;
  margin-right: 8px;
  content: "";
  height: 16px;
  width: 16px;
  top: 1px;
}

input[type=checkbox]:checked + label:before {
  background: #00FFAA;
}

.container {
  width: 110%;
  height: 150%;
  margin: 0 auto;
  position: absolute;
  top:-150px;
  left:-10%;
  overflow: hidden;
  display: table;
}

.scene {
  padding: 0;
  margin: 0;
	height: 100%;
}

.border {
  border: 2px dashed #00FFAA;
}


.layer:nth-child(1) {
  opacity: 1;
}
.layer:nth-child(2) {
  opacity: 1;
}
.layer:nth-child(3) {
  opacity: 1;
}
.layer:nth-child(4) {
  opacity: 1;
}

.layer{
	position: absolute;
	background-size: 100%;
}

#nuts{
	z-index: 1000;
	height: 100%;
}

.logo{
	width:364px;
	height: 480px;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/logo.png") no-repeat;
	background-size: cover;
	position: absolute;
	left:50%;
	margin-left: -182px;
	top: -50px;
	pointer-events: none;
	transition: all 0.5s ease-in-out;
}

.intro{
	width:600px;
	padding: 40px;
	padding-top:100px;
	background-color: #FFFFFF;
	border: solid 3px #333333;
	border-radius: 50px;
	box-shadow:0px 0px 30px #000;  
	position: absolute;
	left:50%;
	top: 300px;
	line-height: 28px;
	margin-left: -340px;
	overflow: hidden;
	transition: all 0.5s ease;
	transform:scale(0.1,0.1);
	animation:bounce 1s ease-in-out forwards;
	-webkit-animation:bounce 1s ease-in-out forwards;
	-ms-animation:bounce 1s ease-in-out forwards;
	-o-animation:bounce 1s ease-in-out forwards;
}

.intro .content{
	height: auto;
	overflow: hidden;
}

.btn{
	text-align: center;
	vertical-align: middle;
	color: #FFF;
	font-weight: bold;
	font-size: 20px;
	margin: 25px auto;
	margin-bottom: 0px;
	width:150px;
	height: 25px;
	padding: 10px;
	background-color: #C7C922;
	border: solid 3px #333333;
	border-radius: 40px;
	transition: all 0.5s ease;
	cursor: pointer;
}

.btn:hover{
	background-color:#5E7E1D;
	transform:scale(1.2,1.2);
}

.hiddenSpot{
	top: 10%;
	opacity: 0;
	z-index: 2000;
	display: none;
	padding: 40px;
}

.show{
	opacity: 1;
	display: block;
}

.hiddenBg{
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	
	background-image: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/suprise.png");
	
	background-repeat: no-repeat;
	background-color: rgba(0,0,0,0.7);
	background-size: 5% auto;
	background-position: center center;
	transition: all 1s ease-in-out;
	display: none;
}

.hiddenBg-Show{
	
	background-size: 100% auto;
	background-position: center center;
}

@keyframes bounce{
	16.65%   {transform:scale(1.2,1.2)}
	33.3%   {transform:scale(0.8,0.8)}
	49.95%   {transform:scale(1.1,1.1)}
	66.6%   {transform:scale(0.9,0.9)}
	83.25%   {transform:scale(1.05,1.05)}
	100% {transform:scale(1,1)}
}
	
@-webkit-keyframes bounce /* Safari and Chrome */{
	16.65%   {transform:scale(1.3,1.3)}
	33.3%   {transform:scale(0.7,0.7)}
	49.95%   {transform:scale(1.2,1.2)}
	66.6%   {transform:scale(0.9,0.9)}
	83.25%   {transform:scale(1.1,1.1)}
	100% {transform:scale(1,1)}
}

.intro_nuts{
	width:450px;
	height: 220px;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/intro_nuts.png") no-repeat;
	background-size: cover;
	position: absolute;
	top: -160px;
	left:50%;
	margin-left: -225px;
}

.nut{
	width:120px;
	height:120px;
	position: absolute;
	cursor: pointer;
}

.bounce{
	display: none;
	animation:bounce 1s ease-in-out forwards;
	-webkit-animation:bounce 1s ease-in-out forwards;
	-ms-animation:bounce 1s ease-in-out forwards;
	-o-animation:bounce 1s ease-in-out forwards;
}

#nut1{
	top:25%;
	left:20%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut1_off.png") no-repeat;
	background-size: cover;
}

#nut1:hover, #nut1.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut1_on.png") no-repeat;
	background-size: cover;
}

#nut2{
	top: 35%;
	right:25%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut2_off.png") no-repeat;
	background-size: cover;
}

#nut2:hover, #nut2.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut2_on.png") no-repeat;
	background-size: cover;
}

#nut3{
	top: 25%;
	right:17%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut3_off.png") no-repeat;
	background-size: cover;
}

#nut3:hover, #nut3.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut3_on.png") no-repeat;
	background-size: cover;
}

#nut4{
	top: 50%;
	left:12%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut4_off.png") no-repeat;
	background-size: cover;
}

#nut4:hover, #nut4.opened{
	width:120px;
	height: 143px;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut4_on.png") no-repeat;
	background-size: cover;
}

#nut5{
	bottom: 20%;
	left:50%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut5_off.png") no-repeat;
	background-size: cover;
}

#nut5:hover, #nut5.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut5_on.png") no-repeat;
	background-size: cover;
}

#nut6{
	top: 50%;
	right:15%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut6_off.png") no-repeat;
	background-size: cover;
}

#nut6:hover, #nut6.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut6_on.png") no-repeat;
	background-size: cover;
}

#nut7{
	bottom: 15%;
	left:12%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut7_off.png") no-repeat;
	background-size: cover;
}

#nut7:hover, #nut7.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut7_on.png") no-repeat;
	background-size: cover;
}

#nut8{
	bottom: 15%;
	right:20%;
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut8_off.png") no-repeat;
	background-size: cover;
}

#nut8:hover, #nut8.opened{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/nut8_on.png") no-repeat;
	background-size: cover;
}

#layer-mobile{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/bg_mobile.jpg") no-repeat;
	background-size: cover;
	display: none;
}

.bg-other{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/bg_other.jpg") no-repeat;
	background-size: 100% auto;
	overflow-x: hidden;
	overflow-y: scroll;
}

.bg-about{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/bg_about.jpg") no-repeat;
	background-size: cover;
	overflow-x: hidden;
	overflow-y: scroll;
}

.bg-ioa{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/bg_ioa.jpg") no-repeat;
	background-size: contain;
	background-color: #5d5d5d;
	overflow-x: hidden;
	overflow-y: scroll;
}

.bg-seminar{
	background: url("/20220409010418oe_/https://www.ioa.cuhk.edu.hk/nutcrackers/images/bg_seminar.jpg") no-repeat;
	background-size: contain;
	background-color: #cbbeab;
	overflow-x: hidden;
	overflow-y: scroll;
}

.about{
	background: rgba(255, 255, 255, 1);
	width: 65%;
	margin:0 auto;
	padding: 80px;
	border-radius: 50px;
	margin-top:10%;
	box-shadow:0px 0px 30px #555;
	opacity: 94%;
}

.header{
	font-size: 38px;
	font-weight: bold;
	margin-bottom: 20px;
}

.header2{
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 20px;
}

.logo-about{
	width:20%;
	height: auto;
	margin-right: 5%;
}

.spacer{
	margin: 30px;
}

.contentRight{
	width: 75%;
	display: inline-block;
}

.floatL{
	float: left;
}

.floatR{
	float: right;
}

.ioa-logo{
	margin-right: 30px;
}

.ioa-logo img{
	height: 80px;
	width: auto;
}

.clear{
	clear: both;
}

.facebook-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
	margin-bottom: 25px;
}

.facebook-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

@media only screen and (max-width: 1400px) {
	.logo{
		width:334px;
		height: 440px;	
		left:50%;
		margin-left: -167px;
	}
	
	.intro{
		top: 260px;
	}
	
	.hiddenSpot{
		top: 10%;
	}
}

@media only screen and (max-width: 1024px) {
	 .nut{
		width:60px;
		height:60px;
	}
	
	.logo{
		width:280px;
		height:369px;
		left:50%;
		margin-left: -140px;
		top: -30px;
	}
	
	.intro{
		top: 210px;
	}
	
	.hiddenSpot{
		top: 10%;
	}
	
	#nut5{
		bottom: 10%;
	}
	
}



@media only screen and (max-width: 900px) {
	.nut{
		width:80px;
		height:80px;
	}
	
	.logo{
		width:200px;
		height:264px;
		left:50%;
		margin-left: -100px;
		top: -30px;
	}
	
	.intro{
		top: 160px;
		
		position: relative;
		width: 80%;
		margin: 0 auto;
		left: 0%;
		padding: 60px 20px 20px 20px;
		font-size: 16px;
	}
	
	.hiddenSpot{
		top: 80px;
		padding: 30px
	}
	
	.hiddenBg{
		background-position: 0 200px;
	}
	
	#nut2{
		top: 45%;
		right:22%;
	}
	
	#nut3{
		top: 35%;
		right:15%;
	}
	
	#nut5{
		bottom: 25%;
		
	}
	
	#nut6{
		top: 60%;
		right:20%;
	}
	
	.hiddenyoutube{
		height: 280px;
	}
	
	#layer-mobile{
		display: block;
	}
	
	.about{
		background-color: #FFFFFF;
		width: 70%;
		margin:0 auto;
		padding: 30px;
		border-radius: 40px;
		margin-top:30%;
		box-shadow:0px 0px 30px #555;  
	}

	.header{
		font-size: 30px;
		font-weight: bold;
	}
	
	.header2{
		font-size: 26px;
		font-weight: bold;
		margin-bottom: 15px;
	}
	
	.logo-about{
		width:100%;
		height: auto;
		margin:0 auto;
		margin-bottom:20px;
		float: none;
	}
	
	.logo-about img{
		width:100%;
	}

	.contentRight{
		width: 100%;
		float: none;
	}
	
	.Big-title{
		font-size: 40px;
		font-weight: bold;
	}
}

@media only screen and (max-width: 480px) {
	.hiddenyoutube{
		height: 200px;
	}
	
	.Big-title{
		font-size: 30px;
		font-weight: bold;
	}
	
	.ioa-logo{
		float: none;
		margin-bottom: 20px;
	}
	
	.nut{
		width:80px;
		height:80px;
	}
	
	.hiddenSpot{
		top: 80px;
		padding: 20px;
		border-radius: 30px;
	}
	
	
	.hiddenBg-Show{
		background-size: 200% auto;
		background-position: center center;
	}
	
	#nut1{
		top:35%;
		left:15%;
	}
	
	#nut4:hover, #nut4.opened{
		width:80px;
		height: 96px;
	}
}


@media only screen and (max-height: 750px) {
	.intro .content{
		height: auto;
		overflow: scroll;
	}
	
	.hiddenSpot{
		overflow: scroll;
	}
}


@media only screen and (min-width: 1200px) and (max-height: 820px) {
	.logo{
		width:300px;
		height:400px;
		margin-left: -150px;
	}
	
	.intro{
		top: 220px;
	}
}

@media only screen and (min-width: 1200px) and (max-height: 730px) {
	.logo{
		width:230px;
		height:300px;
		margin-left: -115px;
	}
	
	.intro{
		top: 130px;
	}
}