/*****************************************************************
* CSS for three dimansional opening doors of advent calender
  Design: blue
*
* (c) copyright noRiddle
*****************************************************************/

.cb:before, .cb:after {content:""; display:table;}
.cb:after {clear:both;}
.cb {zoom:1;} /* old IE */
.adv-h2 {
	/* padding: 0px 8px; */
	clear: both;
	background: #fff;
	color: #373737;
	font-size: 16px;
	text-align: center;
	border-radius: 10px 10px 0 0;
	/* margin-top: 10px; */
	margin-bottom: 15px;
}
.adv-wrap-wrap {
	position: relative;
	margin: 10px auto 10px;
	padding: 10px;
	max-width: 815px;
	background-color: #643818;
	box-shadow: 2px 2px 10px #5e5e5e;
	padding-right: 15px;
}
/*.adv-wrap-wrap:before {
    content: '';
    border-style: solid;
    border-width: 0 370px 100px;
    border-color: transparent transparent #510000 transparent;
    width: 0;
    height:0;
    position: absolute;
    bottom: 100.2%;
    left: 0;
}*/
.adv-wrap, .homesite .adv-wrap {
    position:relative;
    display:inline-block;
    width:auto;
    margin:0;
    padding:0;
    list-style-type:none;
    text-align:center;
    background:transparent url('images/pat7.jpg') repeat;
}
.door-frame {
    position:relative;
    display:inline; /*older IE*/
    display:inline-block;
    padding:10px;
    width:120px;
    height:120px;
}
.door-text {
	position: absolute;
	left: 10px;
	top: 10px;
	width: 120px;
	height: 120px;
	box-sizing: border-box;
	padding: 8px;
	background: #fff;
	color: #fff;
	font-weight: bold;
	text-align: center;
	border: 1px #fff;
	border-style: dashed dashed dashed solid;
	border-radius: 0 6px 6px 0;
	box-shadow: 1px 1px 5px #5e5e5e inset;
}
a.ins-txt, span.ins-txt {
	display: table-cell;
	height: 102px;
	width: 102px;
	color: #181818;
	text-decoration: none;
	vertical-align: middle;
	transform: scale(0.7, 0.7);
	opacity: 0.5;
	transition: all .5s ease .5s;
}
.adv-main-txt {
    display:block;
    margin:0 0 6px;
    font-size:14px;
    line-height:16px;
}
.adv-add-txt {
    display:block;
    font-size:11px;
    line-height:13px;
}
.adv-add-txt img {
    max-width:100%;
}
.door {
	width: 100%;
	height: 100%;
	background: #484848 url('images/pat7.jpg') repeat;
	-khtml-user-select: none;
	-o-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-transform-style: preserve-3d;
	-webkit-transform-origin: 0 50%;
	-webkit-transition: all 1.2s ease;
	-moz-transform-style: preserve-3d;
	-moz-transform-origin: 0 50%;
	-moz-transition: all 1.2s ease;
	-o-transform-style: preserve-3d;
	-o-transform-origin: 0 50%;
	-o-transition: all 1.2s ease;
	transform-style: preserve-3d;
	transform-origin: 0 50%;
	transition: all 1.2s ease;
	box-sizing: border-box;
	border: 1px #292929;
	border-style: dashed dashed dashed solid;
	border-radius: 0 6px 6px 0;
	box-shadow: 1px 1px 5px #292929;
	position: relative;
	z-index: 1;
}
.door label {
	display: block;
	width: 100%;
	height: 100%;
	-khtml-user-select: none;
	-o-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	font-size: 60px;
	font-weight: bold;
	line-height: 120px;
	text-align: center;
	color: #caa347;
	text-shadow: 0px -2px 0px #33210d, 0px 1px 1px #fff;
	transition: opacity 1.2s ease;
	cursor: pointer;
}
.door-frame .hidd-chbx {
    display:none;
}
/*animations*/
.door:hover label {opacity:.96;}
.door-frame .hidd-chbx:checked ~ .door {
    transform: perspective(800px) rotateY(-110deg);
    z-index:1;
    box-shadow:2px 2px 12px #000d1a;
}
.door-frame .hidd-chbx:checked ~ .door label {opacity:.2;}

.door-frame .hidd-chbx:checked ~ .door-text .ins-txt {
    transform: scale(1, 1) rotate(360deg);
    opacity:1;
}

.door-frame .hidd-chbx:checked ~ .door-text .ins-txt:hover {
	color: #e8bc53;
}