@charset "utf-8";

/* shape */
.card {
	position: relative;
	width: 400px;
	padding: 30px 30px;
	border-bottom-right-radius: 60px 5px;
	box-shadow: inset -20px -20px 5px -20px rgba(0, 0, 0, .1);
	font-size: 13px;
	/*color: #FFFFFF;*/
	color: #666;
}
.card:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0px 0px 3px #B1B1B1;
}
.card::after {
	content: '';
	position: absolute;
	display: block;
	width: 26px;
	height: 37px;
	background: url("../img/icon-pin@2x.png") no-repeat left top / auto 37px;
	top: -20px;
	left: 0;
	right: 0;
	margin: auto;
}

/* skin */
.bgRed		{ background-color: #E46; }
.bgGreen	{ background-color: #9C0; }
.bgBlue		{ background-color: #089; }
.bgYellow	{ background-color: #EC0; }
.bgPurple	{ background-color: #B18; }
.bgWhite	{ background-color: #fff; }

.pinOrange::after			{ background-position: -26px top; }
.pinPurple::after			{ background-position: -52px top; }
.pinPink::after				{ background-position: -78px top; }
.pinYellow::after			{ background-position: -104px top; }
.pinGreen::after			{ background-position: -130px top; }
.pinLightGreen::after	{ background-position: -156px top; }
.pinNavyBlue::after		{ background-position: -182px top; }
.pinBlue::after				{ background-position: -208px top; }
.pinLightBlue::after	{ background-position: -234px top; }
.pinGray::after				{ background-position: -260px top; }
.pinBlack::after			{ background-position: right top; }

/* motion */
@keyframes flapInTheWind {
	0% { border-bottom-right-radius: 60px 5px; box-shadow: inset -20px -20px 5px -20px rgba(0, 0, 0, .1); }
	20% { border-bottom-right-radius: 80px 20px; box-shadow: inset -20px -20px 10px -20px rgba(0, 0, 0, .1); }
	60% { border-bottom-right-radius: 60px 5px; box-shadow: inset -20px -20px 5px -20px rgba(0, 0, 0, .1); }
	100% { border-bottom-right-radius: 160px 30px; box-shadow: inset -20px -20px 15px -20px rgba(0, 0, 0, .1); }
}
.flapInTheWind {
	animation-name: flapInTheWind;
	animation-duration: 4s;
	animation-direction: alternate;
	animation-iteration-count: infinite;
}
.flapInTheWind:hover {
	animation: 0;
}

/* intractive motion */
.flip:hover {
	border-bottom-right-radius: 180px 30px;
	box-shadow: inset -20px -20px 20px -20px rgba(0, 0, 0, .1);
}
.flipMore:hover {
	border-bottom-right-radius: 300px 60px;
	box-shadow: inset -20px -20px 60px -20px rgba(0, 0, 0, .1);
}
.flipAnimation {
	transition: all .5s ease;
}
