/* 글씨체 */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Gaegu&family=PT+Sans+Narrow:wght@400;700&display=swap');
/* 
.gaegu-regular {
  font-family: "Gaegu", serif;
  font-weight: 400;
  font-style: normal;
} 

.dm-serif-text-regular {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-text-regular-italic {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: italic;
}

.pt-sans-narrow-regular {
  font-family: "PT Sans Narrow", serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-narrow-bold {
  font-family: "PT Sans Narrow", serif;
  font-weight: 700;
  font-style: normal;
}
*/


.box {
    background-color: rgb(255, 255, 255);
    width: 150px;
    height: 150px;
    margin: 5px;
    position: relative;
    line-height: 14px;
}

h6 {
    padding: 10px;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 200px;
}

/* 헤더 */
#first-header {
    color: white;
}

#first-header i {
    color: white;
}

/* 카드 */
.flip-outer {
    perspective: 3000px;
    width: 200px;
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2
}

.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: card-rotate 20s linear infinite 3s both;
    
}

img {
    width: 200px;
    height: 117px;
    border-radius: 10px;
}

.front {
    width: 100%;
    position: absolute;
}

.back {
    width: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
}

@keyframes card-rotate {
    0% {
        transform:rotateY(0deg);
    } 40% {
        transform:rotateY(-360deg);
    } 100% {
        transform:rotateY(-360deg);
    }
}

/* 그리드 */
p {
    font-size: 8px;
    padding: 10px;
}

/* 투명 */
.transparent {
    font-family: "DM Serif Text", serif;
    font-style: italic;
    position: absolute;
    background-color: white;
    border: 1px solid white;
    background: linear-gradient(135deg, rgba(109, 92, 92, 0.6), rgb(255, 255, 255, 0.3) 40%);
    opacity: 0.9;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 1px 1px rgba(0,0,0,0.11), 
      0 2px 2px rgba(0,0,0,0.11), 
      0 4px 4px rgba(0,0,0,0.11), 
      0 8px 8px rgba(0,0,0,0.11), 
      0 16px 16px rgba(0,0,0,0.11), 
      0 32px 32px rgba(0,0,0,0.11);
    z-index: 10;
    justify-content: center;
    align-items: center;
    overflow-y: scroll;
    text-align: center;
    color: white;
}

/* 별자리 */
.star {
    width: 120px;
    height: 120px;
    position: absolute;
    z-index: 1;
    top: 7%;
    left: -20px;
    opacity: 0.7;
    transform: rotate(-15deg);
}

/* 스탬프 */
.stamp {
    z-index: 10;
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 30px;
    right: 10px;
    transform: rotate(15deg);
}

/* 투명 버튼 */
#trans-btn1 {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    top: 65%;
    left: 70px;
    line-height: 48px;
    font-size: 20px;
}

#trans-btn2 {
    width: 160px;
    height: 50px;
    border-radius: 20px;
    top: 65%;
    right: 70px;
    line-height: 50px;
    font-size: 15px;
}

/*모달 팝업 영역 스타일링*/
.modal {
    /*팝업 배경*/
        display: none;
        position: absolute;
        top:0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        background: rgba(0,0,0,0.5);
        z-index: 15
    }
    .modal .modal_popup {
    /*팝업*/
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        /* height: 500px; */
        overflow-y: scroll;
        padding: 20px;
        background: #ffffff;
        border-radius: 20px;
        > h3 {
            font-family: "DM Serif Text", serif;
            font-style: italic;
        }
        > p {
            padding: 20px 0px;
            font-size: 12px;
            line-height: 20px;
        }
    }
    .modal .modal_popup .close_btn {
        display: block;
        padding: 5px 10px;
        background-color: rgb(15, 15, 15);
        border: none;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
        transition: box-shadow 0.2s;
        font-size: 10px;
    }
