@charset "UTF-8";
@import url(./base.css);
@import url(https://fonts.googleapis.com/earlyaccess/nanummyeongjo.css);
.tarot-container{
    position: relative;
    display: block;
    width: 100%;
    background-image: url(../img/tarot/bg.png);
    background-position: center;
    background-repeat: no-repeat;
	background-size: cover;
    background-color: #400D68;
}
.tarot-container .wrapper{
	position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.tarot-main-rolls{
	width: 70%;
    margin-top: 100px;
    padding-bottom: 40px;
    opacity:0;
}
.tarot-card-container{
	position: relative;
    padding: 0 1.5em;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 30px;
    opacity:0;
}
.tarot-card-container .wrap{
	position: relative;
    display: inline-flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}
.tarot-card{
	width: calc(100%/3);
    position: relative;
    overflow: hidden;
    height: auto;
    padding-bottom: 52.45%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.tarot-card .card-wrapper{
	position: absolute;
	transition: transform 1s;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tarot-card.flipped .card-wrapper{
	transform: rotateY(180deg);
	transition: transform 1s;
}
.tarot-card:first-child .card-wrapper{
	justify-content: flex-start;
}
.tarot-card:last-child .card-wrapper{
	justify-content: flex-end;
}
.tarot-card .face{
	position: absolute;
    width: 90%;
    height: 90%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    text-align: center;
    box-shadow: 0 1px 4px 2px rgb(0 0 0 / 10%);
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
}
.tarot-card .face .card{
	position:relative;
	height: 100%;
    width: 100%;
	background: url(../img/tarot/unopened-card.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
}
.tarot-card .front{
	z-index:2;
}
.tarot-card .back{
	-webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    z-index:1;
}
.tarot-card .face.back{
	background: #fff;
	padding: 7px 7px;
}	
.tarot-fortune-msg{
	font-family:'Nanum Myeongjo';
	color: #fddda8;
    font-size: 1.2em;
	font-weight: 600;
    opacity:0;
}
.tarot-result-modal .modal-content-wrapper{
	padding-top: 25%;
}
.tarot-result-modal .tarot-coin{
	position: absolute;
    transform: translateY(-60%);
    text-align: center;
    width: 100%;
    margin: 0 auto;
    height: 280px;
}
.tarot-result-modal .tarot-coin .coin{
	position: relative;
    margin: 0px auto;
    width: 100%;
    height: 100%;
	background-image: url(../img/tarot/coin.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transform: scale(.8);
    transform: scale(.8);
    cursor:pointer;
}
.tarot-result-modal .modal-header{
	padding-top: 25%;
	padding-bottom: 5px;
}
.tarot-result-modal .modal-title{
	font-size: 1.8em !important;
}
.tarot-result-modal .modal-body{
	padding: 0 0 5px 0;
}
.tarot-result-modal .modal-footer > button{
	padding: 10px 5px;
    font-size: 1.2em;
}
.tarot-result-modal .tarot-point-msg{
	font-size: 1.2em;
	color:#212121;
}
.tarot-curtain{
	position: absolute;
    width: 100%;
    height: 80%;
    top: 0;
    left: 0;
    background-image: url(../img/tarot/label-curtain-2.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
}
.tarot-curtain.open{
	transition: all cubic-bezier(0.65, 0.05, 0.36, 1) 1s;
    transform: translateY(-88%);
}
.firecracker-lottie-container {
    position: absolute;
    transform: translateY(-20%);
}
.curtain-loading-lottie-container{
	margin-bottom: 10%;
}
.tarot-alarm-area{
    position: absolute;
    width: 90%;
    top: 30px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 15px 20px;
    align-items: center;
    background: rgba(255,255,255,0.8);
    border-radius: 100px;
    z-index: 1;
}
.tarot-alarm-area .tarot-alarm-txt{
    font-weight: 700;
    font-size: 13px;
    color: #252525;
}
.tarot-alarm-area .tarot-alarm-btn{
    display: flex;
    width: 100%;
    align-items: center;
    grid-column-gap: 10px;
}
.tarot-alarm-area .tarot-alarm-btn span{
    font-weight: 800;
    font-size: 13px;
    color: #FF5862;
}
.tarot-alarm-area .tarot-alarm-btn i{
    content: " ";
    background-image: url(../img/tarot/ic-alerm.svg);
    background-repeat: no-repeat;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: contain;
}
.common-msg-modal.tarot-result-modal .tarot-close-btn{
    position: absolute;
    right: 0;
    top: 32%;
    width: 18px;
    height: 18px;
    background-image: url(../img/tarot/tarot-close-btn.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor:pointer;
    z-index: 1;
}
@media screen and (max-width : 375px){
	.tarot-fortune-msg{
		font-size: 1em;
	}
}
@media screen and (max-width : 320px){
	.tarot-main-rolls {width: 75%;}
	.tarot-main-title{font-size:1.1em;}
	.tarot-card-container{
		padding: 0 .5em;
		padding-top: 30px;
	    padding-bottom: 30px;
	}
	.tarot-card .face{
		width:95%;
		height:95%;
	}
	.tarot-fortune-msg{
		font-size: 1em;
	}
}