@font-face { font-family: '국립박물관문화재단클래식B'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/국립박물관문화재단클래식B.woff') format('woff'); font-weight: normal; font-style: normal; }
*{margin: 0; padding: 0;}
body{
    background: rgb(241, 193, 179);
    
}
main{
    /* 최대 가능 너비, 이것보다 작아야 */
    max-width: 900px;
    margin: 0 auto; 
    display: flex; flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

main .card{
    width: 150px; height: 200px;
    background: rgb(32, 107, 72); 
    margin: 1%;
    position: relative;
    perspective: 1000px;
    
}
main .card .front{
    position: absolute; left: 0; top: 0;
    transform: rotateY(0);
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    
    /* z-index: 10; */
}
main .card .front img{
    width: 150px;
}
main .card .back{
    position: absolute; left: 0; top: 0;
    transform: rotateY(-180deg);
    transition: transform 0.6s ease;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    
}
main .card .back img{
    width: 150px;
}


/* main .card:hover .front{
    transform: rotateY(180deg);
} */
main .card.is-selected .front{
    transform: rotateY(180deg);
}
/* main .card:hover .back{
    transform: rotateY(0);
} */
main .card.is-selected .back{
    transform: rotateY(0);
}


main [data-matched = "true"] .front{
    transform: rotateY(180deg) ;
    transition: transform 0.6s ;
}

main [data-matched = "true"] .back{
    transform: rotateY(0deg) ;
    transition: transform 0.6s ;
}

/*---------------왜!!!----------------*/

/* main [data-type = "img1"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img2"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img3"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img4"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img5"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img6"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img7"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img8"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img9"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
}
main [data-type = "img10"].back{
    background: url("assets/img/Group 1.jpg");
    background-size: cover;
} */


/*-------------------------------*/
.info .btn-sound{
    position: absolute; left: 0%; top: 2%;
    width: 5vw; height: 4vw; 
    font-size: 1.5vw;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/225363/icon-sound-on.svg) no-repeat;
    background-color: transparent;
    background-size: 100%;
    border-radius: 10%;
    /* border: 0.3vw solid rgb(32, 107, 72); */
    border: none;
    outline: none;
    color: rgb(32, 107, 72);
    font-family: '국립박물관문화재단클래식B'
}

.btn-sound:active {
    transform: translateY(1px);
}

.btn-sound::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15%;
    /* left: 1%; */
    width: 140%;
    height: 2px;
    background-color: rgb(32, 107, 72);
    transform: rotate(35deg);
    box-shadow: 0 0 10px 2px rgb(32, 107, 72);
}

.btn-sound.is-playing::before {
    display: none;
}

.info audio {
    /* position: absolute; left: 4%; top: 40%; */
    position: fixed; left: -270px; top: 11%;
    transform: rotate(-90deg);
    /* transform-origin: left; */
     transform-origin: right;
    /* width: 16.5vw;
    height: 5vh; */
     border-radius: 10%;
    /* border: 0.3vw solid rgb(32, 107, 72); */
}

.score {
    /* width: 100%;
    max-width: 950px; */
    display: flex; justify-content: center; align-items: center;
    font-size: 25px; font-weight: bold;
    color: rgb(32, 107, 72);
    font-family: '국립박물관문화재단클래식B'
    
}

.score .record{
    /*% 안 됨*/
    /* padding: 1% 20px; */
    margin: 0.5% 5%;
}
.score .turns span.last-turn{
    color: red;
}
/*---------------------------------*/
/*총점, 다시시도 버튼 각각 절대 위치로 넣기*/
/*원래 자리 크기정도만 배경 넣고 클래스 score 그대로 두고 success 크기 변경 또는 score width, height 크기 넣기*/
.success{
    display: none;
    position: fixed; left: 0; top: 0;
    /*width 100vw하면 스크롤바 */
    width: 100%; height: 100vh; z-index: 100;
    /* background: rgba(205, 239, 255, 0.5); */
    /* display: flex; justify-content: center; align-items: center; */
}
.success.is-visible{
    display: block;
}                                                                                                                                                                                                                                
/* .success .msgBox{
    position: absolute; left: 8%; top: 0; 
    border-top: 9vw solid rgb(239, 239, 239);
    border-left: 9vw solid transparent;
    border-right: 9vw solid transparent;
} */
.success .msgBox{
    position: absolute; right: 0%; top: 28.5%; 
    font-size: 1.5vw;
    width: 11vw; height: 21vh;
    background: rgb(239, 239, 239);
    /* border: 3px solid rgb(32, 107, 72); */
    border-radius: 40%;
    text-align: center; line-height: 21vh;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
    color: rgb(241, 193, 179);
    font-family: '국립박물관문화재단클래식B'
}

/* .success .message::before{
    content: '';
    position: absolute; left: -100%; top: 0%; z-index: -1;
    border-top: 9vw solid rgb(239, 239, 239);
    border-left: 9vw solid transparent;
    border-right: 9vw solid transparent;
} */
.success .continue{
    position: absolute; right: 0%; top: 5.5%; 
    font-size: 1.5vw;
    width: 11vw; height: 21vh;
    color:rgb(32, 107, 72);
    /* border: 3px solid rgb(32, 107, 72) ; */
    border-radius: 40%;
    outline: none;
    border-style: none;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
    font-family: '국립박물관문화재단클래식B'
}
.success .continue span{
    display: inline-block;
}

 /*-------------------------modal------------------------------*/
 .modal-button {
    position: fixed;   right: 0%; top: 51.5%; 
    z-index: 2;
    text-align: center; line-height: 21vh;
}
.modal-button a {
    width: 11vw; height: 21vh;
    font-size: 1.5vw;
    background: rgb(32, 107, 72);
    color: rgb(241, 193, 179);
    border-radius: 40%;
    text-decoration: none;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
    font-family: '국립박물관문화재단클래식B';
    display: inline-block;
    position: relative;
    transition: 0.1s transform;
    /* transform: scale(1); */
}

.modal-button .btn.modalClick{
    /* transform: scale(1.2); */
}
#modal {
    display: none;
    position: fixed;
    /* position: relative; */
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    /* z-index: -1; */
}

#modal .close {
    position: absolute;
    left: 50%; top: 10%; transform: translateX(-50%);
    /* right: -20px; */
    /* left: 80%; */
    /* z-index: -1000; */
    background: rgb(32, 107, 72);
    padding: 30px;
    border-radius: 50%;
}

#modal .close:hover {
    background: rgb(241, 193, 179);
}

#modal .close svg {
    width: 30px;
    fill: #fff;
    vertical-align: top;
}




